GPUComputePassEncoder

  • GPUCommandEncoder.beginComputePass(descriptor: GPUComputePassDescriptor): GPUComputePassEncoder

    GPUComputePassDescriptor

    • label: USVString
    • timestampWrites: GPUComputePassTimestampWrites= []

    GPUComputePassTimestampWrites

    typedef GPUComputePassTimestampWrites = sequence<GPUComputePassTimestampWrite>

    GPUComputePassTimestampWrite

    • querySet: GPUQuerySetrequired
    • queryIndex: GPUSize32required
    • location: GPUComputePassTimestampLocationrequired

    GPUSize32

    typedef GPUSize32 = unsigned long

    GPUComputePassTimestampLocation

    'beginning', 'end'
  • label: USVString
  • setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup, dynamicOffsets: sequence<GPUBufferDynamicOffset>): void

    GPUIndex32

    typedef GPUIndex32 = unsigned long

    GPUBindGroup

    • label: USVString

    GPUBufferDynamicOffset

    typedef GPUBufferDynamicOffset = unsigned long
  • setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void

    GPUIndex32

    typedef GPUIndex32 = unsigned long

    GPUBindGroup

    • label: USVString

    GPUSize64

    typedef GPUSize64 = unsigned long long

    GPUSize32

    typedef GPUSize32 = unsigned long
  • pushDebugGroup(groupLabel: USVString): void
  • popDebugGroup(): void
  • insertDebugMarker(markerLabel: USVString): void
  • setPipeline(pipeline: GPUComputePipeline): void

    GPUComputePipeline

  • dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY: GPUSize32, workgroupCountZ: GPUSize32): void

    GPUSize32

    typedef GPUSize32 = unsigned long
  • dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: 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
  • end(): void