pub trait GPUCommandEncoderMethods<D: DomTypes> {
// Required methods
fn BeginComputePass(
&self,
descriptor: &GPUComputePassDescriptor,
) -> Root<Dom<GPUComputePassEncoder>>;
fn BeginRenderPass(
&self,
descriptor: &GPURenderPassDescriptor,
) -> Result<Root<Dom<GPURenderPassEncoder>>, Error>;
fn CopyBufferToBuffer(
&self,
source: &GPUBuffer,
sourceOffset: u64,
destination: &GPUBuffer,
destinationOffset: u64,
size: u64,
);
fn CopyBufferToTexture(
&self,
source: &GPUImageCopyBuffer,
destination: &GPUImageCopyTexture,
copySize: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict,
) -> Result<(), Error>;
fn CopyTextureToBuffer(
&self,
source: &GPUImageCopyTexture,
destination: &GPUImageCopyBuffer,
copySize: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict,
) -> Result<(), Error>;
fn CopyTextureToTexture(
&self,
source: &GPUImageCopyTexture,
destination: &GPUImageCopyTexture,
copySize: RangeEnforcedUnsignedLongSequenceOrGPUExtent3DDict,
) -> Result<(), Error>;
fn Finish(
&self,
descriptor: &GPUCommandBufferDescriptor,
) -> Root<Dom<GPUCommandBuffer>>;
fn Label(&self) -> USVString;
fn SetLabel(&self, value: USVString);
}