class GPUCommandEncoder
implements GPUObjectBase

Properties

label: string

Methods

beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder
clearBuffer(
destination: GPUBuffer,
destinationOffset?: number,
size?: number,
): undefined
copyBufferToBuffer(
source: GPUBuffer,
sourceOffset: number,
destination: GPUBuffer,
destinationOffset: number,
size: number,
): undefined
copyBufferToTexture(
destination: GPUImageCopyTexture,
copySize: GPUExtent3D,
): undefined
copyTextureToBuffer(
destination: GPUImageCopyBuffer,
copySize: GPUExtent3D,
): undefined
copyTextureToTexture(
destination: GPUImageCopyTexture,
copySize: GPUExtent3D,
): undefined
insertDebugMarker(markerLabel: string): undefined
popDebugGroup(): undefined
pushDebugGroup(groupLabel: string): undefined
resolveQuerySet(
querySet: GPUQuerySet,
firstQuery: number,
queryCount: number,
destination: GPUBuffer,
destinationOffset: number,
): undefined
writeTimestamp(querySet: GPUQuerySet, queryIndex: number): undefined