pub trait GPURenderBundleEncoderMethods<D: DomTypes> {
Show 14 methods
// Required methods
fn Finish(
&self,
cx: &mut JSContext,
descriptor: &GPURenderBundleDescriptor,
) -> DomRoot<D::GPURenderBundle>;
fn SetBindGroup(
&self,
index: u32,
bindGroup: &D::GPUBindGroup,
dynamicOffsets: Vec<u32>,
);
fn PushDebugGroup(&self, groupLabel: USVString);
fn PopDebugGroup(&self);
fn InsertDebugMarker(&self, markerLabel: USVString);
fn Label(&self) -> USVString;
fn SetLabel(&self, cx: &NoGC, value: USVString);
fn SetPipeline(&self, pipeline: &D::GPURenderPipeline);
fn SetIndexBuffer(
&self,
buffer: &D::GPUBuffer,
indexFormat: GPUIndexFormat,
offset: u64,
size: u64,
);
fn SetVertexBuffer(
&self,
slot: u32,
buffer: Option<&D::GPUBuffer>,
offset: u64,
size: u64,
);
fn Draw(
&self,
vertexCount: u32,
instanceCount: u32,
firstVertex: u32,
firstInstance: u32,
);
fn DrawIndexed(
&self,
indexCount: u32,
instanceCount: u32,
firstIndex: u32,
baseVertex: i32,
firstInstance: u32,
);
fn DrawIndirect(&self, indirectBuffer: &D::GPUBuffer, indirectOffset: u64);
fn DrawIndexedIndirect(
&self,
indirectBuffer: &D::GPUBuffer,
indirectOffset: u64,
);
}Required Methods§
fn Finish( &self, cx: &mut JSContext, descriptor: &GPURenderBundleDescriptor, ) -> DomRoot<D::GPURenderBundle>
fn SetBindGroup( &self, index: u32, bindGroup: &D::GPUBindGroup, dynamicOffsets: Vec<u32>, )
fn PushDebugGroup(&self, groupLabel: USVString)
fn PopDebugGroup(&self)
fn InsertDebugMarker(&self, markerLabel: USVString)
fn Label(&self) -> USVString
fn SetLabel(&self, cx: &NoGC, value: USVString)
fn SetPipeline(&self, pipeline: &D::GPURenderPipeline)
fn SetIndexBuffer( &self, buffer: &D::GPUBuffer, indexFormat: GPUIndexFormat, offset: u64, size: u64, )
fn SetVertexBuffer( &self, slot: u32, buffer: Option<&D::GPUBuffer>, offset: u64, size: u64, )
fn Draw( &self, vertexCount: u32, instanceCount: u32, firstVertex: u32, firstInstance: u32, )
fn DrawIndexed( &self, indexCount: u32, instanceCount: u32, firstIndex: u32, baseVertex: i32, firstInstance: u32, )
fn DrawIndirect(&self, indirectBuffer: &D::GPUBuffer, indirectOffset: u64)
fn DrawIndexedIndirect( &self, indirectBuffer: &D::GPUBuffer, indirectOffset: u64, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".