GPUQueue

  • label: USVString
  • submit(commandBuffers: sequence<GPUCommandBuffer>): void

    GPUCommandBuffer

    • label: USVString
  • onSubmittedWorkDone(): Promise<void>
  • writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: BufferSource, dataOffset: GPUSize64, size: GPUSize64): void

    GPUBuffer

    • label: USVString
    • size: GPUSize64
    • usage: GPUBufferUsageFlags
    • mapAsync(mode: GPUMapModeFlags, offset: GPUSize64, size: GPUSize64): Promise<void>
    • getMappedRange(offset: GPUSize64, size: GPUSize64): ArrayBuffer
    • unmap(): void
    • destroy(): void

    GPUSize64

    typedef GPUSize64 = unsigned long long
  • writeTexture(destination: GPUImageCopyTexture, data: BufferSource, dataLayout: GPUImageDataLayout, size: GPUExtent3D): void

    GPUImageCopyTexture

    • texture: GPUTexturerequired
    • mipLevel: GPUIntegerCoordinate= 0
    • origin: GPUOrigin3D= { … }
    • aspect: GPUTextureAspect= 'all'

    GPUIntegerCoordinate

    typedef GPUIntegerCoordinate = unsigned long

    GPUOrigin3D

    typedef GPUOrigin3D = sequence<GPUIntegerCoordinate> | GPUOrigin3DDict

    GPUOrigin3DDict

    • x: GPUIntegerCoordinate= 0
    • y: GPUIntegerCoordinate= 0
    • z: GPUIntegerCoordinate= 0

    GPUTextureAspect

    'all', 'stencil-only', 'depth-only'

    GPUImageDataLayout

    • offset: GPUSize64= 0
    • bytesPerRow: GPUSize32
    • rowsPerImage: GPUSize32

    GPUSize64

    typedef GPUSize64 = unsigned long long

    GPUSize32

    typedef GPUSize32 = unsigned long

    GPUExtent3D

    typedef GPUExtent3D = sequence<GPUIntegerCoordinate> | GPUExtent3DDict

    GPUExtent3DDict

    • width: GPUIntegerCoordinaterequired
    • height: GPUIntegerCoordinate= 1
    • depthOrArrayLayers: GPUIntegerCoordinate= 1
  • copyExternalImageToTexture(source: GPUImageCopyExternalImage, destination: GPUImageCopyTextureTagged, copySize: GPUExtent3D): void

    GPUImageCopyExternalImage

    • source: ImageBitmap | HTMLCanvasElement | OffscreenCanvasrequired
    • origin: GPUOrigin2D= { … }
    • flipY: boolean

    GPUOrigin2D

    typedef GPUOrigin2D = sequence<GPUIntegerCoordinate> | GPUOrigin2DDict

    GPUIntegerCoordinate

    typedef GPUIntegerCoordinate = unsigned long

    GPUOrigin2DDict

    • x: GPUIntegerCoordinate= 0
    • y: GPUIntegerCoordinate= 0

    GPUImageCopyTextureTagged

    • texture: GPUTexturerequired
    • mipLevel: GPUIntegerCoordinate= 0
    • origin: GPUOrigin3D= { … }
    • aspect: GPUTextureAspect= 'all'
    • colorSpace: PredefinedColorSpace= 'srgb'
    • premultipliedAlpha: boolean

    GPUOrigin3D

    typedef GPUOrigin3D = sequence<GPUIntegerCoordinate> | GPUOrigin3DDict

    GPUOrigin3DDict

    • x: GPUIntegerCoordinate= 0
    • y: GPUIntegerCoordinate= 0
    • z: GPUIntegerCoordinate= 0

    GPUTextureAspect

    'all', 'stencil-only', 'depth-only'

    GPUExtent3D

    typedef GPUExtent3D = sequence<GPUIntegerCoordinate> | GPUExtent3DDict

    GPUExtent3DDict

    • width: GPUIntegerCoordinaterequired
    • height: GPUIntegerCoordinate= 1
    • depthOrArrayLayers: GPUIntegerCoordinate= 1