Interface GPUQueue
__brand: "GPUQueue";
label: string;
copyExternalImageToTexture(
source: GPUCopyExternalImageSourceInfo,
destination: GPUCopyExternalImageDestInfo,
copySize: GPUExtent3DStrict,
): undefined;
onSubmittedWorkDone(): Promise<undefined>;
submit(commandBuffers: Iterable<GPUCommandBuffer>): undefined;
writeBuffer(
buffer: GPUBuffer,
bufferOffset: number,
data: SharedArrayBuffer | BufferSource,
dataOffset?: number,
size?: number,
): undefined;
writeTexture(
destination: GPUTexelCopyTextureInfo,
data: SharedArrayBuffer | BufferSource,
dataLayout: GPUTexelCopyBufferLayout,
size: GPUExtent3DStrict,
): undefined;
}
                 
                    
                  Hierarchy
              
              - GPUObjectBase- GPUQueue (View Summary)
 
 Index
Properties
Methods
 Methods
copyExternalImageToTexture    
- copyExternalImageToTexture(
 source: GPUCopyExternalImageSourceInfo,
 destination: GPUCopyExternalImageDestInfo,
 copySize: GPUExtent3DStrict,
 ): undefined
- Issues a copy operation of the contents of a platform image/canvas into the destination texture. This operation performs [[#color-space-conversions|color encoding]] into the destination encoding according to the parameters of GPUCopyExternalImageDestInfo. Copying into a - -srgbtexture results in the same texture bytes, not the same decoded values, as copying into the corresponding non-- -srgbformat. Thus, after a copy operation, sampling the destination texture has different results depending on whether its format is- -srgb, all else unchanged.- Parameters- source: GPUCopyExternalImageSourceInfosource image and origin to copy to destination.
- destination: GPUCopyExternalImageDestInfoThe texture subresource and origin to write to, and its encoding metadata. 
- copySize: GPUExtent3DStrictExtents of the content to write from sourcetodestination.
 - Returns undefined
- source: GPUCopyExternalImageSourceInfo
onSubmittedWorkDone   
- onSubmittedWorkDone(): Promise<undefined>
- 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 GPUBuffer#mapAsync calls made prior to that call, on GPUBuffers last used exclusively on that queue. - Returns Promise<undefined>
submit
- submit(commandBuffers: Iterable<GPUCommandBuffer>): undefined
- Schedules the execution of the command buffers by the GPU on this queue. Submitted command buffers cannot be used again. - commandBuffers:- Parameters- commandBuffers: Iterable<GPUCommandBuffer>
 - Returns undefined
writeBuffer 
- writeBuffer(
 buffer: GPUBuffer,
 bufferOffset: number,
 data: SharedArrayBuffer | BufferSource,
 dataOffset?: number,
 size?: number,
 ): undefined
- Issues a write operation of the provided data into a GPUBuffer. - Parameters- buffer: GPUBufferThe buffer to write to. 
- bufferOffset: numberOffset in bytes into bufferto begin writing at.
- data: SharedArrayBuffer | BufferSourceData to write into buffer.
- OptionaldataOffset: number- Offset in into - datato begin writing from. Given in elements if- datais a- TypedArrayand bytes otherwise.
- Optionalsize: number- Size of content to write from - datato- buffer. Given in elements if- datais a- TypedArrayand bytes otherwise.
 - Returns undefined
- buffer: GPUBuffer
writeTexture 
- writeTexture(
 destination: GPUTexelCopyTextureInfo,
 data: SharedArrayBuffer | BufferSource,
 dataLayout: GPUTexelCopyBufferLayout,
 size: GPUExtent3DStrict,
 ): undefined
- Issues a write operation of the provided data into a GPUTexture. - Parameters- destination: GPUTexelCopyTextureInfoThe texture subresource and origin to write to. 
- data: SharedArrayBuffer | BufferSourceData to write into destination.
- dataLayout: GPUTexelCopyBufferLayoutLayout of the content in data.
- size: GPUExtent3DStrictExtents of the content to write from datatodestination.
 - Returns undefined
- destination: GPUTexelCopyTextureInfo
Nominal type branding. https://github.com/microsoft/TypeScript/pull/33038