Optional
descriptor: GPUComputePassDescriptorDescription of the GPURenderPassEncoder to create.
Encode a command into the GPUCommandEncoder that fills a sub-region of a GPUBuffer with zeros.
Shorthand, equivalent to copyBufferToBuffer.
Encode a command into the GPUCommandEncoder that copies data from a sub-region of a GPUBuffer to a sub-region of another GPUBuffer.
The GPUBuffer to copy from.
Offset in bytes into source
to begin copying from.
The GPUBuffer to copy to.
Offset in bytes into destination
to place the copied data.
Optional
size: numberBytes to copy. Defaults to the size of the buffer source
minus sourceOffset
.
Encode a command into the GPUCommandEncoder that copies data from a sub-region of a GPUBuffer to a sub-region of one or multiple continuous texture subresources.
Combined with copySize
, defines the region of the source buffer.
Combined with copySize
, defines the region of the destination texture subresource.
copySize
:
Encode a command into the GPUCommandEncoder that copies data from a sub-region of one or multiple continuous texture subresources to a sub-region of a GPUBuffer.
Combined with copySize
, defines the region of the source texture subresources.
Combined with copySize
, defines the region of the destination buffer.
copySize
:
Encode a command into the GPUCommandEncoder that copies data from a sub-region of one or multiple contiguous texture subresources to another sub-region of one or multiple continuous texture subresources.
Combined with copySize
, defines the region of the source texture subresources.
Combined with copySize
, defines the region of the destination texture subresources.
copySize
:
Completes recording of the commands sequence and returns a corresponding GPUCommandBuffer. descriptor:
Optional
descriptor: GPUObjectDescriptorBaseEnds the labeled debug group most recently started by pushDebugGroup.
Resolves query results from a GPUQuerySet out into a range of a GPUBuffer. querySet: firstQuery: queryCount: destination: destinationOffset:
Generated using TypeDoc
Begins encoding a render pass described by
descriptor
.