#[repr(C)]pub struct GPURenderBundleEncoder<D: DomTypes> {
reflector_: Reflector,
device: Dom<D::GPUDevice>,
label: DomRefCell<USVString>,
droppable: DroppableGPURenderBundleEncoder,
}Fields§
§reflector_: Reflector§device: Dom<D::GPUDevice>§label: DomRefCell<USVString>§droppable: DroppableGPURenderBundleEncoderImplementations§
Source§impl<D> GPURenderBundleEncoder<D>where
D: Equivalence,
impl<D> GPURenderBundleEncoder<D>where
D: Equivalence,
fn new_inherited( device: &D::GPUDevice, channel: WebGPU, label: USVString, render_bundle_encoder: WebGPURenderBundleEncoder, ) -> Self
pub(crate) fn new( cx: &mut JSContext, global: &D::GlobalScope, render_bundle_encoder: WebGPURenderBundleEncoder, device: &D::GPUDevice, channel: WebGPU, label: USVString, ) -> DomRoot<Self>
Source§impl<D> GPURenderBundleEncoder<D>where
D: Equivalence,
D::GPUDevice: GPUDeviceTrait<D>,
D::GlobalScope: WebGPUGlobalTrait,
Self: DomGlobalGeneric<D>,
impl<D> GPURenderBundleEncoder<D>where
D: Equivalence,
D::GPUDevice: GPUDeviceTrait<D>,
D::GlobalScope: WebGPUGlobalTrait,
Self: DomGlobalGeneric<D>,
Sourcepub fn create(
cx: &mut JSContext,
device: &D::GPUDevice,
descriptor: &GPURenderBundleEncoderDescriptor,
) -> Fallible<DomRoot<GPURenderBundleEncoder<D>>>
pub fn create( cx: &mut JSContext, device: &D::GPUDevice, descriptor: &GPURenderBundleEncoderDescriptor, ) -> Fallible<DomRoot<GPURenderBundleEncoder<D>>>
pub(crate) fn id(&self) -> WebGPURenderBundleEncoder
§impl<D: DomTypes> GPURenderBundleEncoder<D>
impl<D: DomTypes> GPURenderBundleEncoder<D>
fn __assert_parent_type(&self)
Trait Implementations§
Source§impl<D: DomTypes> DomObject for GPURenderBundleEncoder<D>
impl<D: DomTypes> DomObject for GPURenderBundleEncoder<D>
type ReflectorType = <Reflector as DomObject>::ReflectorType
Source§fn reflector(&self) -> &Reflector<Self::ReflectorType>
fn reflector(&self) -> &Reflector<Self::ReflectorType>
Returns the receiver’s reflector.
§impl<D: DomTypes> Drop for GPURenderBundleEncoder<D>
impl<D: DomTypes> Drop for GPURenderBundleEncoder<D>
Source§impl<D> GPURenderBundleEncoderMethods<D> for GPURenderBundleEncoder<D>where
D: Equivalence,
D::GPUDevice: DomGlobalGeneric<D> + GPUDeviceTrait<D>,
D::GPUExternalTexture: GPUExternalTextureTrait<D>,
D::GlobalScope: WebGPUGlobalTrait + GlobalScopeHelpers<D>,
D::Promise: PromiseHelpers<D>,
Self: DomGlobalGeneric<D>,
impl<D> GPURenderBundleEncoderMethods<D> for GPURenderBundleEncoder<D>where
D: Equivalence,
D::GPUDevice: DomGlobalGeneric<D> + GPUDeviceTrait<D>,
D::GPUExternalTexture: GPUExternalTextureTrait<D>,
D::GlobalScope: WebGPUGlobalTrait + GlobalScopeHelpers<D>,
D::Promise: PromiseHelpers<D>,
Self: DomGlobalGeneric<D>,
Source§fn SetBindGroup(
&self,
index: u32,
bind_group: &GPUBindGroup<D>,
dynamic_offsets: Vec<u32>,
)
fn SetBindGroup( &self, index: u32, bind_group: &GPUBindGroup<D>, dynamic_offsets: Vec<u32>, )
Source§fn SetPipeline(&self, pipeline: &GPURenderPipeline<D>)
fn SetPipeline(&self, pipeline: &GPURenderPipeline<D>)
Source§fn SetIndexBuffer(
&self,
buffer: &D::GPUBuffer,
index_format: GPUIndexFormat,
offset: u64,
size: u64,
)
fn SetIndexBuffer( &self, buffer: &D::GPUBuffer, index_format: GPUIndexFormat, offset: u64, size: u64, )
Source§fn SetVertexBuffer(
&self,
slot: u32,
buffer: Option<&GPUBuffer<D>>,
offset: u64,
size: u64,
)
fn SetVertexBuffer( &self, slot: u32, buffer: Option<&GPUBuffer<D>>, offset: u64, size: u64, )
Source§fn Draw(
&self,
vertex_count: u32,
instance_count: u32,
first_vertex: u32,
first_instance: u32,
)
fn Draw( &self, vertex_count: u32, instance_count: u32, first_vertex: u32, first_instance: u32, )
Source§fn DrawIndexed(
&self,
index_count: u32,
instance_count: u32,
first_index: u32,
base_vertex: i32,
first_instance: u32,
)
fn DrawIndexed( &self, index_count: u32, instance_count: u32, first_index: u32, base_vertex: i32, first_instance: u32, )
Source§fn DrawIndirect(&self, indirect_buffer: &GPUBuffer<D>, indirect_offset: u64)
fn DrawIndirect(&self, indirect_buffer: &GPUBuffer<D>, indirect_offset: u64)
Source§fn DrawIndexedIndirect(
&self,
indirect_buffer: &GPUBuffer<D>,
indirect_offset: u64,
)
fn DrawIndexedIndirect( &self, indirect_buffer: &GPUBuffer<D>, indirect_offset: u64, )
Source§fn PushDebugGroup(&self, group_label: USVString)
fn PushDebugGroup(&self, group_label: USVString)
Source§fn PopDebugGroup(&self)
fn PopDebugGroup(&self)
Source§fn InsertDebugMarker(&self, marker_label: USVString)
fn InsertDebugMarker(&self, marker_label: USVString)
Source§fn Finish(
&self,
cx: &mut JSContext,
descriptor: &GPURenderBundleDescriptor,
) -> DomRoot<D::GPURenderBundle>
fn Finish( &self, cx: &mut JSContext, descriptor: &GPURenderBundleDescriptor, ) -> DomRoot<D::GPURenderBundle>
Source§impl<D: DomTypes> HasParent for GPURenderBundleEncoder<D>
impl<D: DomTypes> HasParent for GPURenderBundleEncoder<D>
§impl<D: DomTypes> IDLInterface for GPURenderBundleEncoder<D>
impl<D: DomTypes> IDLInterface for GPURenderBundleEncoder<D>
§const PROTO_FIRST: u16 = 390
const PROTO_FIRST: u16 = 390
First prototype ID in the DFS-ordered range for this interface and its descendants.
§const PROTO_LAST: u16 = 390
const PROTO_LAST: u16 = 390
Last prototype ID in the DFS-ordered range for this interface and its descendants.
Source§impl<D> MallocSizeOf for GPURenderBundleEncoder<D>where
D: MallocSizeOf + DomTypes,
impl<D> MallocSizeOf for GPURenderBundleEncoder<D>where
D: MallocSizeOf + DomTypes,
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl<D: DomTypes> MutDomObject for GPURenderBundleEncoder<D>
impl<D: DomTypes> MutDomObject for GPURenderBundleEncoder<D>
Source§impl<D: DomTypes> PartialEq for GPURenderBundleEncoder<D>
impl<D: DomTypes> PartialEq for GPURenderBundleEncoder<D>
Source§impl<D: DomTypes> ToJSValConvertible for GPURenderBundleEncoder<D>
impl<D: DomTypes> ToJSValConvertible for GPURenderBundleEncoder<D>
Source§fn to_jsval(&self, cx: &mut JSContext, rval: MutableHandleValue<'_>)
fn to_jsval(&self, cx: &mut JSContext, rval: MutableHandleValue<'_>)
Convert
self to a JSVal. JSAPI failure causes a panic.Source§impl<D> Traceable for GPURenderBundleEncoder<D>where
D: JSTraceable + DomTypes,
impl<D> Traceable for GPURenderBundleEncoder<D>where
D: JSTraceable + DomTypes,
impl<D: DomTypes> Eq for GPURenderBundleEncoder<D>
Auto Trait Implementations§
impl<D> !Freeze for GPURenderBundleEncoder<D>
impl<D> !RefUnwindSafe for GPURenderBundleEncoder<D>
impl<D> !Send for GPURenderBundleEncoder<D>
impl<D> !Sync for GPURenderBundleEncoder<D>
impl<D> Unpin for GPURenderBundleEncoder<D>
impl<D> UnsafeUnpin for GPURenderBundleEncoder<D>
impl<D> UnwindSafe for GPURenderBundleEncoder<D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<D, T> DomGlobalGeneric<D> for T
impl<D, T> DomGlobalGeneric<D> for T
Source§fn global_from_reflector(&self) -> Root<Dom<<D as DomTypes>::GlobalScope>>where
Self: Sized,
fn global_from_reflector(&self) -> Root<Dom<<D as DomTypes>::GlobalScope>>where
Self: Sized,
Returns the [
GlobalScope] of the realm that the DomObject was created in. If this
object is a Node, this will be different from it’s owning Document if adopted by. For
Nodes it’s almost always better to use NodeTraits::owning_global.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert