pub(crate) trait GPUCommandEncoderMethods<D>where
D: DomTypes,{
Show 13 methods
// Required methods
fn BeginRenderPass(
&self,
cx: &mut JSContext,
descriptor: &GPURenderPassDescriptor<D>,
) -> Result<Root<Dom<<D as DomTypes>::GPURenderPassEncoder>>, Error>;
fn BeginComputePass(
&self,
cx: &mut JSContext,
descriptor: &GPUComputePassDescriptor<D>,
) -> Root<Dom<<D as DomTypes>::GPUComputePassEncoder>>;
fn CopyBufferToBuffer(
&self,
source: &<D as DomTypes>::GPUBuffer,
sourceOffset: u64,
destination: &<D as DomTypes>::GPUBuffer,
destinationOffset: u64,
size: u64,
);
fn CopyBufferToTexture(
&self,
source: &GPUTexelCopyBufferInfo<D>,
destination: &GPUTexelCopyTextureInfo<D>,
copySize: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict,
) -> Result<(), Error>;
fn CopyTextureToBuffer(
&self,
source: &GPUTexelCopyTextureInfo<D>,
destination: &GPUTexelCopyBufferInfo<D>,
copySize: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict,
) -> Result<(), Error>;
fn CopyTextureToTexture(
&self,
source: &GPUTexelCopyTextureInfo<D>,
destination: &GPUTexelCopyTextureInfo<D>,
copySize: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict,
) -> Result<(), Error>;
fn ResolveQuerySet(
&self,
querySet: &<D as DomTypes>::GPUQuerySet,
firstQuery: u32,
queryCount: u32,
destination: &<D as DomTypes>::GPUBuffer,
destinationOffset: u64,
);
fn Finish(
&self,
cx: &mut JSContext,
descriptor: &GPUCommandBufferDescriptor,
) -> Root<Dom<<D as DomTypes>::GPUCommandBuffer>>;
fn PushDebugGroup(&self, groupLabel: USVString);
fn PopDebugGroup(&self);
fn InsertDebugMarker(&self, markerLabel: USVString);
fn Label(&self) -> USVString;
fn SetLabel(&self, cx: &NoGC, value: USVString);
}Required Methods§
fn BeginRenderPass( &self, cx: &mut JSContext, descriptor: &GPURenderPassDescriptor<D>, ) -> Result<Root<Dom<<D as DomTypes>::GPURenderPassEncoder>>, Error>
fn BeginComputePass( &self, cx: &mut JSContext, descriptor: &GPUComputePassDescriptor<D>, ) -> Root<Dom<<D as DomTypes>::GPUComputePassEncoder>>
fn CopyBufferToBuffer( &self, source: &<D as DomTypes>::GPUBuffer, sourceOffset: u64, destination: &<D as DomTypes>::GPUBuffer, destinationOffset: u64, size: u64, )
fn CopyBufferToTexture( &self, source: &GPUTexelCopyBufferInfo<D>, destination: &GPUTexelCopyTextureInfo<D>, copySize: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict, ) -> Result<(), Error>
fn CopyTextureToBuffer( &self, source: &GPUTexelCopyTextureInfo<D>, destination: &GPUTexelCopyBufferInfo<D>, copySize: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict, ) -> Result<(), Error>
fn CopyTextureToTexture( &self, source: &GPUTexelCopyTextureInfo<D>, destination: &GPUTexelCopyTextureInfo<D>, copySize: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict, ) -> Result<(), Error>
fn ResolveQuerySet( &self, querySet: &<D as DomTypes>::GPUQuerySet, firstQuery: u32, queryCount: u32, destination: &<D as DomTypes>::GPUBuffer, destinationOffset: u64, )
fn Finish( &self, cx: &mut JSContext, descriptor: &GPUCommandBufferDescriptor, ) -> Root<Dom<<D as DomTypes>::GPUCommandBuffer>>
fn PushDebugGroup(&self, groupLabel: USVString)
fn PopDebugGroup(&self)
fn InsertDebugMarker(&self, markerLabel: USVString)
fn Label(&self) -> USVString
fn SetLabel(&self, cx: &NoGC, value: USVString)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".