Interface gpuGPUCommandEncoder
interface gpuGPUCommandEncoder { get label(): string; beginComputePass(descriptor?): gpuGPUComputePassEncoder; beginRenderPass(descriptor): gpuGPURenderPassEncoder; clearBuffer(buffer,
offset?,
size?): void; copyBufferToBuffer(source,
sourceOffset,
destination,
destinationOffset,
size): void; copyBufferToTexture(source,
destination,
copySize): void; copyTextureToBuffer(source,
destination,
copySize): void; copyTextureToTexture(source,
destination,
copySize): void; finish(param0?): gpuGPUCommandBuffer; } Accessors
label
- get label(): string
Returns string
Methods
clearBuffer
- clearBuffer(buffer, offset?, size?): void
Parameters
- buffer: gpuGPUBuffer
Optional
offset: number | bigintOptional
size: number | bigint
Returns void
copyBufferToBuffer
- copyBufferToBuffer(source, sourceOffset, destination, destinationOffset, size): void
Parameters
- source: gpuGPUBuffer
- sourceOffset: number | bigint
- destination: gpuGPUBuffer
- destinationOffset: number | bigint
- size: number | bigint
Returns void
copyBufferToTexture
- copyBufferToTexture(source, destination, copySize): void
Returns void
copyTextureToBuffer
- copyTextureToBuffer(source, destination, copySize): void
Returns void
copyTextureToTexture
- copyTextureToTexture(source, destination, copySize): void
Returns void