source image and origin to copy to destination
.
The texture subresource and origin to write to, and its encoding metadata.
Extents of the content to write from source
to destination
.
Returns a Promise that resolves once this queue finishes processing all the work submitted up to this moment. Resolution of this Promise implies the completion of mapAsync calls made prior to that call, on GPUBuffers last used exclusively on that queue.
Schedules the execution of the command buffers by the GPU on this queue.
Submitted command buffers cannot be used again.
commandBuffers
:
Issues a write operation of the provided data into a GPUBuffer.
The buffer to write to.
Offset in bytes into buffer
to begin writing at.
Data to write into buffer
.
Optional
dataOffset: numberOffset in into data
to begin writing from. Given in elements if
data
is a TypedArray
and bytes otherwise.
Optional
size: numberSize of content to write from data
to buffer
. Given in elements if
data
is a TypedArray
and bytes otherwise.
Issues a write operation of the provided data into a GPUTexture.
The texture subresource and origin to write to.
Data to write into destination
.
Layout of the content in data
.
Extents of the content to write from data
to destination
.
Generated using TypeDoc
Issues a copy operation of the contents of a platform image/canvas into the destination texture. This operation performs encoding into the destination encoding according to the parameters of GPUCopyExternalImageDestInfo. Copying into a
-srgb
texture results in the same texture bytes, not the same decoded values, as copying into the corresponding non--srgb
format. Thus, after a copy operation, sampling the destination texture has different results depending on whether its format is-srgb
, all else unchanged.