WebGPU

Module: w3c.WebGPU Support: Experimental

Type Aliases

  • GPUBufferUsageFlags
  • GPUMapModeFlags
  • GPUTextureUsageFlags
  • GPUShaderStageFlags
  • GPUBindingResource
  • GPUPipelineConstantValue
  • GPUColorWriteFlags
  • GPUBufferDynamicOffset
  • GPUStencilValue
  • GPUSampleMask
  • GPUDepthBias
  • GPUSize64
  • GPUIntegerCoordinate
  • GPUIndex32
  • GPUSize32
  • GPUSignedOffset32
  • GPUSize64Out
  • GPUIntegerCoordinateOut
  • GPUSize32Out
  • GPUFlagsConstant
  • GPUColor
  • GPUOrigin2D
  • GPUOrigin3D
  • GPUExtent3D
  • GPUCopyExternalImageSource

Mixin GPUObjectBase

1 members: 1 undocumented

Properties

⚪ label
→ string

---

Dictionary GPUObjectDescriptorBase

1 members: 1 undocumented

Properties

⚪ label
→ string

---

Interface GPUSupportedLimits

35 members: 35 undocumented

Properties

⚪ maxTextureDimension1D
→ u32
⚪ maxTextureDimension2D
→ u32
⚪ maxTextureDimension3D
→ u32
⚪ maxTextureArrayLayers
→ u32
⚪ maxBindGroups
→ u32
⚪ maxBindGroupsPlusVertexBuffers
→ u32
⚪ maxBindingsPerBindGroup
→ u32
⚪ maxDynamicUniformBuffersPerPipelineLayout
→ u32
⚪ maxDynamicStorageBuffersPerPipelineLayout
→ u32
⚪ maxSampledTexturesPerShaderStage
→ u32
⚪ maxSamplersPerShaderStage
→ u32
⚪ maxStorageBuffersPerShaderStage
→ u32
⚪ maxStorageBuffersInVertexStage
→ u32
⚪ maxStorageBuffersInFragmentStage
→ u32
⚪ maxStorageTexturesPerShaderStage
→ u32
⚪ maxStorageTexturesInVertexStage
→ u32
⚪ maxStorageTexturesInFragmentStage
→ u32
⚪ maxUniformBuffersPerShaderStage
→ u32
⚪ maxUniformBufferBindingSize
→ u64
⚪ maxStorageBufferBindingSize
→ u64
⚪ minUniformBufferOffsetAlignment
→ u32
⚪ minStorageBufferOffsetAlignment
→ u32
⚪ maxVertexBuffers
→ u32
⚪ maxBufferSize
→ u64
⚪ maxVertexAttributes
→ u32
⚪ maxVertexBufferArrayStride
→ u32
⚪ maxInterStageShaderVariables
→ u32
⚪ maxColorAttachments
→ u32
⚪ maxColorAttachmentBytesPerSample
→ u32
⚪ maxComputeWorkgroupStorageSize
→ u32
⚪ maxComputeInvocationsPerWorkgroup
→ u32
⚪ maxComputeWorkgroupSizeX
→ u32
⚪ maxComputeWorkgroupSizeY
→ u32
⚪ maxComputeWorkgroupSizeZ
→ u32
⚪ maxComputeWorkgroupsPerDimension
→ u32

---

Interface GPUSupportedFeatures

---

Interface WGSLLanguageFeatures

---

Interface GPUAdapterInfo

7 members: 7 undocumented

Properties

⚪ vendor
→ string
⚪ architecture
→ string
⚪ device
→ string
⚪ description
→ string
⚪ subgroupMinSize
→ u32
⚪ subgroupMaxSize
→ u32
⚪ isFallbackAdapter
→ boolean

---

Mixin NavigatorGPU

1 members: 1 undocumented

Properties

⚪ gpu
→ GPU

---

Interface GPU

3 members: 1 supported, 2 undocumented

Methods

🟢 requestAdapter(options)
Supported
⚪ getPreferredCanvasFormat()
→ GPUTextureFormat

Properties

⚪ wgslLanguageFeatures
→ WGSLLanguageFeatures

---

Dictionary GPURequestAdapterOptions

Docs: w3c Docs

4 members: 4 undocumented

Properties

⚪ featureLevel
→ string
⚪ powerPreference
→ GPUPowerPreference
⚪ forceFallbackAdapter
→ boolean
⚪ xrCompatible
→ boolean

---

Enum GPUPowerPreference

ValueDescription
low-power
high-performance

Interface GPUAdapter

Docs: w3c Docs

4 members: 1 supported, 3 undocumented

Methods

⚪ requestDevice(descriptor)
→ Promise

Properties

🟢 features
Supported
⚪ limits
→ GPUSupportedLimits
⚪ info
→ GPUAdapterInfo

---

Dictionary GPUDeviceDescriptor

Extends: GPUObjectDescriptorBase

3 members: 3 undocumented

Properties

⚪ requiredFeatures
→ sequence
⚪ requiredLimits
→ record
⚪ defaultQueue
→ GPUQueueDescriptor

---

Enum GPUFeatureName

ValueDescription
core-features-and-limits
depth-clip-control
depth32float-stencil8
texture-compression-bc
texture-compression-bc-sliced-3d
texture-compression-etc2
texture-compression-astc
texture-compression-astc-sliced-3d
timestamp-query
indirect-first-instance
shader-f16
rg11b10ufloat-renderable
bgra8unorm-storage
float32-filterable
float32-blendable
clip-distances
dual-source-blending
subgroups
texture-formats-tier1
texture-formats-tier2
primitive-index
texture-component-swizzle

Interface GPUDevice

Extends: w3c.EventTarget Implements: GPUObjectBase

24 members: 1 supported, 23 undocumented

Methods

⚪ destroy()
Not documented
⚪ createBuffer(descriptor)
→ GPUBuffer
⚪ createTexture(descriptor)
→ GPUTexture
⚪ createSampler(descriptor)
→ GPUSampler
⚪ importExternalTexture(descriptor)
→ GPUExternalTexture
⚪ createBindGroupLayout(descriptor)
→ GPUBindGroupLayout
⚪ createPipelineLayout(descriptor)
→ GPUPipelineLayout
⚪ createBindGroup(descriptor)
→ GPUBindGroup
⚪ createShaderModule(descriptor)
→ GPUShaderModule
⚪ createComputePipeline(descriptor)
→ GPUComputePipeline
⚪ createRenderPipeline(descriptor)
→ GPURenderPipeline
⚪ createComputePipelineAsync(descriptor)
→ Promise
⚪ createRenderPipelineAsync(descriptor)
→ Promise
⚪ createCommandEncoder(descriptor)
→ GPUCommandEncoder
⚪ createRenderBundleEncoder(descriptor)
→ GPURenderBundleEncoder
⚪ createQuerySet(descriptor)
→ GPUQuerySet
⚪ pushErrorScope(filter)
GPUErrorFilter
⚪ popErrorScope()
→ Promise

Properties

🟢 features
Supported
⚪ limits
→ GPUSupportedLimits
⚪ adapterInfo
→ GPUAdapterInfo
⚪ queue
→ GPUQueue
⚪ lost
→ Promise
⚪ onuncapturederror
→ EventHandler

---

Interface GPUBuffer

Implements: GPUObjectBase

7 members: 1 supported, 6 undocumented

Methods

⚪ mapAsync(mode, offset, size)
→ Promise
⚪ getMappedRange(offset, size)
→ BufferSource
⚪ unmap()
Not documented
⚪ destroy()
Not documented

Properties

🟢 size
Supported
⚪ usage
→ GPUFlagsConstant
⚪ mapState
→ GPUBufferMapState

---

Enum GPUBufferMapState

ValueDescription
unmapped
pending
mapped

Dictionary GPUBufferDescriptor

Extends: GPUObjectDescriptorBase

3 members: 1 supported, 2 undocumented

Properties

🟢 size
Supported
⚪ usage
→ GPUBufferUsageFlags
⚪ mappedAtCreation
→ boolean

---

Interface GPUTexture

Implements: GPUObjectBase

11 members: 1 supported, 10 undocumented

Methods

🟢 createView(descriptor)
Supported
⚪ destroy()
Not documented

Properties

⚪ width
→ GPUIntegerCoordinateOut
⚪ height
→ GPUIntegerCoordinateOut
⚪ depthOrArrayLayers
→ GPUIntegerCoordinateOut
⚪ mipLevelCount
→ GPUIntegerCoordinateOut
⚪ sampleCount
→ GPUSize32Out
⚪ dimension
→ GPUTextureDimension
⚪ format
→ GPUTextureFormat
⚪ usage
→ GPUFlagsConstant
⚪ textureBindingViewDimension
→ (GPUTextureViewDimension or undefined)

---

Dictionary GPUTextureDescriptor

Extends: GPUObjectDescriptorBase

8 members: 1 supported, 7 undocumented

Properties

🟢 size
Supported
⚪ mipLevelCount
→ GPUIntegerCoordinate
⚪ sampleCount
→ GPUSize32
⚪ dimension
→ GPUTextureDimension
⚪ format
→ GPUTextureFormat
⚪ usage
→ GPUTextureUsageFlags
⚪ viewFormats
→ sequence
⚪ textureBindingViewDimension
→ GPUTextureViewDimension

---

Enum GPUTextureDimension

ValueDescription
1d
2d
3d

Interface GPUTextureView

Implements: GPUObjectBase Docs: w3c Docs

---

Dictionary GPUTextureViewDescriptor

Extends: GPUObjectDescriptorBase Docs: w3c Docs

9 members: 9 undocumented

Properties

⚪ format
→ GPUTextureFormat
⚪ dimension
→ GPUTextureViewDimension
⚪ usage
→ GPUTextureUsageFlags
⚪ aspect
→ GPUTextureAspect
⚪ baseMipLevel
→ GPUIntegerCoordinate
⚪ mipLevelCount
→ GPUIntegerCoordinate
⚪ baseArrayLayer
→ GPUIntegerCoordinate
⚪ arrayLayerCount
→ GPUIntegerCoordinate
⚪ swizzle
→ string

---

Enum GPUTextureViewDimension

ValueDescription
1d
2d
2d-array
cube
cube-array
3d

Enum GPUTextureAspect

ValueDescription
all
stencil-only
depth-only

Enum GPUTextureFormat

ValueDescription
r8unorm
r8snorm
r8uint
r8sint
r16unorm
r16snorm
r16uint
r16sint
r16float
rg8unorm
rg8snorm
rg8uint
rg8sint
r32uint
r32sint
r32float
rg16unorm
rg16snorm
rg16uint
rg16sint
rg16float
rgba8unorm
rgba8unorm-srgb
rgba8snorm
rgba8uint
rgba8sint
bgra8unorm
bgra8unorm-srgb
rgb9e5ufloat
rgb10a2uint
rgb10a2unorm
rg11b10ufloat
rg32uint
rg32sint
rg32float
rgba16unorm
rgba16snorm
rgba16uint
rgba16sint
rgba16float
rgba32uint
rgba32sint
rgba32float
stencil8
depth16unorm
depth24plus
depth24plus-stencil8
depth32float
depth32float-stencil8
bc1-rgba-unorm
bc1-rgba-unorm-srgb
bc2-rgba-unorm
bc2-rgba-unorm-srgb
bc3-rgba-unorm
bc3-rgba-unorm-srgb
bc4-r-unorm
bc4-r-snorm
bc5-rg-unorm
bc5-rg-snorm
bc6h-rgb-ufloat
bc6h-rgb-float
bc7-rgba-unorm
bc7-rgba-unorm-srgb
etc2-rgb8unorm
etc2-rgb8unorm-srgb
etc2-rgb8a1unorm
etc2-rgb8a1unorm-srgb
etc2-rgba8unorm
etc2-rgba8unorm-srgb
eac-r11unorm
eac-r11snorm
eac-rg11unorm
eac-rg11snorm
astc-4x4-unorm
astc-4x4-unorm-srgb
astc-5x4-unorm
astc-5x4-unorm-srgb
astc-5x5-unorm
astc-5x5-unorm-srgb
astc-6x5-unorm
astc-6x5-unorm-srgb
astc-6x6-unorm
astc-6x6-unorm-srgb
astc-8x5-unorm
astc-8x5-unorm-srgb
astc-8x6-unorm
astc-8x6-unorm-srgb
astc-8x8-unorm
astc-8x8-unorm-srgb
astc-10x5-unorm
astc-10x5-unorm-srgb
astc-10x6-unorm
astc-10x6-unorm-srgb
astc-10x8-unorm
astc-10x8-unorm-srgb
astc-10x10-unorm
astc-10x10-unorm-srgb
astc-12x10-unorm
astc-12x10-unorm-srgb
astc-12x12-unorm
astc-12x12-unorm-srgb

Interface GPUExternalTexture

Implements: GPUObjectBase

---

Dictionary GPUExternalTextureDescriptor

Extends: GPUObjectDescriptorBase

2 members: 2 undocumented

Properties

⚪ source
→ (HTMLVideoElement or VideoFrame)
⚪ colorSpace
→ PredefinedColorSpace

---

Interface GPUSampler

Implements: GPUObjectBase

---

Dictionary GPUSamplerDescriptor

Extends: GPUObjectDescriptorBase

10 members: 10 undocumented

Properties

⚪ addressModeU
→ GPUAddressMode
⚪ addressModeV
→ GPUAddressMode
⚪ addressModeW
→ GPUAddressMode
⚪ magFilter
→ GPUFilterMode
⚪ minFilter
→ GPUFilterMode
⚪ mipmapFilter
→ GPUMipmapFilterMode
⚪ lodMinClamp
→ f32
⚪ lodMaxClamp
→ f32
⚪ compare
→ GPUCompareFunction
⚪ maxAnisotropy
→ u16

---

Enum GPUAddressMode

ValueDescription
clamp-to-edge
repeat
mirror-repeat

Enum GPUFilterMode

ValueDescription
nearest
linear

Enum GPUMipmapFilterMode

ValueDescription
nearest
linear

Enum GPUCompareFunction

ValueDescription
never
less
equal
less-equal
greater
not-equal
greater-equal
always

Interface GPUBindGroupLayout

Implements: GPUObjectBase

---

Dictionary GPUBindGroupLayoutDescriptor

Extends: GPUObjectDescriptorBase

1 members: 1 undocumented

Properties

⚪ entries
→ sequence

---

Dictionary GPUBindGroupLayoutEntry

7 members: 7 undocumented

Properties

⚪ binding
→ GPUIndex32
⚪ visibility
→ GPUShaderStageFlags
⚪ buffer
→ GPUBufferBindingLayout
⚪ sampler
→ GPUSamplerBindingLayout
⚪ texture
→ GPUTextureBindingLayout
⚪ storageTexture
→ GPUStorageTextureBindingLayout
⚪ externalTexture
→ GPUExternalTextureBindingLayout

---

Enum GPUBufferBindingType

ValueDescription
uniform
storage
read-only-storage

Dictionary GPUBufferBindingLayout

3 members: 3 undocumented

Properties

⚪ type
→ GPUBufferBindingType
⚪ hasDynamicOffset
→ boolean
⚪ minBindingSize
→ GPUSize64

---

Enum GPUSamplerBindingType

ValueDescription
filtering
non-filtering
comparison

Dictionary GPUSamplerBindingLayout

1 members: 1 undocumented

Properties

⚪ type
→ GPUSamplerBindingType

---

Enum GPUTextureSampleType

ValueDescription
float
unfilterable-float
depth
sint
uint

Dictionary GPUTextureBindingLayout

3 members: 3 undocumented

Properties

⚪ sampleType
→ GPUTextureSampleType
⚪ viewDimension
→ GPUTextureViewDimension
⚪ multisampled
→ boolean

---

Enum GPUStorageTextureAccess

ValueDescription
write-only
read-only
read-write

Dictionary GPUStorageTextureBindingLayout

3 members: 3 undocumented

Properties

⚪ access
→ GPUStorageTextureAccess
⚪ format
→ GPUTextureFormat
⚪ viewDimension
→ GPUTextureViewDimension

---

Dictionary GPUExternalTextureBindingLayout

---

Interface GPUBindGroup

Implements: GPUObjectBase

---

Dictionary GPUBindGroupDescriptor

Extends: GPUObjectDescriptorBase

2 members: 2 undocumented

Properties

⚪ layout
→ GPUBindGroupLayout
⚪ entries
→ sequence

---

Dictionary GPUBindGroupEntry

2 members: 2 undocumented

Properties

⚪ binding
→ GPUIndex32
⚪ resource
→ GPUBindingResource

---

Dictionary GPUBufferBinding

3 members: 1 supported, 2 undocumented

Properties

⚪ buffer
→ GPUBuffer
⚪ offset
→ GPUSize64
🟢 size
Supported

---

Interface GPUPipelineLayout

Implements: GPUObjectBase

---

Dictionary GPUPipelineLayoutDescriptor

Extends: GPUObjectDescriptorBase

1 members: 1 undocumented

Properties

⚪ bindGroupLayouts
→ sequence

---

Interface GPUShaderModule

Implements: GPUObjectBase

1 members: 1 partial

Methods

🟡 getCompilationInfo()
— getCompilationInfo stub

---

Dictionary GPUShaderModuleDescriptor

Extends: GPUObjectDescriptorBase

2 members: 2 undocumented

Properties

⚪ code
→ string
⚪ compilationHints
→ sequence

---

Dictionary GPUShaderModuleCompilationHint

2 members: 2 undocumented

Properties

⚪ entryPoint
→ string
⚪ layout
→ (GPUPipelineLayout or GPUAutoLayoutMode)

---

Enum GPUCompilationMessageType

ValueDescription
error
warning
info

Interface GPUCompilationMessage

6 members: 6 undocumented

Properties

⚪ message
→ string
⚪ type
→ GPUCompilationMessageType
⚪ lineNum
→ u64
⚪ linePos
→ u64
⚪ offset
→ u64
⚪ length
→ u64

---

Interface GPUCompilationInfo

Docs: w3c Docs

1 members: 1 undocumented

Properties

⚪ messages
→ sequence

---

Interface GPUPipelineError

Extends: w3c.DOMException

2 members: 2 undocumented

Constructors

⚪ constructor(message, options)
string, GPUPipelineErrorInit

Properties

⚪ reason
→ GPUPipelineErrorReason

---

Dictionary GPUPipelineErrorInit

1 members: 1 undocumented

Properties

⚪ reason
→ GPUPipelineErrorReason

---

Enum GPUPipelineErrorReason

ValueDescription
validation
internal

Enum GPUAutoLayoutMode

ValueDescription
auto

Dictionary GPUPipelineDescriptorBase

Extends: GPUObjectDescriptorBase

1 members: 1 undocumented

Properties

⚪ layout
→ (GPUPipelineLayout or GPUAutoLayoutMode)

---

Mixin GPUPipelineBase

1 members: 1 undocumented

Methods

⚪ getBindGroupLayout(index)
→ GPUBindGroupLayout

---

Dictionary GPUProgrammableStage

3 members: 3 undocumented

Properties

⚪ module
→ GPUShaderModule
⚪ entryPoint
→ string
⚪ constants
→ record

---

Interface GPUComputePipeline

Implements: GPUObjectBase, GPUPipelineBase

---

Dictionary GPUComputePipelineDescriptor

Extends: GPUPipelineDescriptorBase

1 members: 1 undocumented

Properties

⚪ compute
→ GPUProgrammableStage

---

Interface GPURenderPipeline

Implements: GPUObjectBase, GPUPipelineBase

---

Dictionary GPURenderPipelineDescriptor

Extends: GPUPipelineDescriptorBase

5 members: 5 undocumented

Properties

⚪ vertex
→ GPUVertexState
⚪ primitive
→ GPUPrimitiveState
⚪ depthStencil
→ GPUDepthStencilState
⚪ multisample
→ GPUMultisampleState
⚪ fragment
→ GPUFragmentState

---

Dictionary GPUPrimitiveState

5 members: 5 undocumented

Properties

⚪ topology
→ GPUPrimitiveTopology
⚪ stripIndexFormat
→ GPUIndexFormat
⚪ frontFace
→ GPUFrontFace
⚪ cullMode
→ GPUCullMode
⚪ unclippedDepth
→ boolean

---

Enum GPUPrimitiveTopology

ValueDescription
point-list
line-list
line-strip
triangle-list
triangle-strip

Enum GPUFrontFace

ValueDescription
ccw
cw

Enum GPUCullMode

ValueDescription
none
front
back

Dictionary GPUMultisampleState

3 members: 3 undocumented

Properties

⚪ count
→ GPUSize32
⚪ mask
→ GPUSampleMask
⚪ alphaToCoverageEnabled
→ boolean

---

Dictionary GPUFragmentState

Extends: GPUProgrammableStage

1 members: 1 undocumented

Properties

⚪ targets
→ sequence

---

Dictionary GPUColorTargetState

3 members: 3 undocumented

Properties

⚪ format
→ GPUTextureFormat
⚪ blend
→ GPUBlendState
⚪ writeMask
→ GPUColorWriteFlags

---

Dictionary GPUBlendState

2 members: 2 undocumented

Properties

⚪ color
→ GPUBlendComponent
⚪ alpha
→ GPUBlendComponent

---

Dictionary GPUBlendComponent

3 members: 3 undocumented

Properties

⚪ operation
→ GPUBlendOperation
⚪ srcFactor
→ GPUBlendFactor
⚪ dstFactor
→ GPUBlendFactor

---

Enum GPUBlendFactor

ValueDescription
zero
one
src
one-minus-src
src-alpha
one-minus-src-alpha
dst
one-minus-dst
dst-alpha
one-minus-dst-alpha
src-alpha-saturated
constant
one-minus-constant
src1
one-minus-src1
src1-alpha
one-minus-src1-alpha

Enum GPUBlendOperation

ValueDescription
add
subtract
reverse-subtract
min
max

Dictionary GPUDepthStencilState

10 members: 10 undocumented

Properties

⚪ format
→ GPUTextureFormat
⚪ depthWriteEnabled
→ boolean
⚪ depthCompare
→ GPUCompareFunction
⚪ stencilFront
→ GPUStencilFaceState
⚪ stencilBack
→ GPUStencilFaceState
⚪ stencilReadMask
→ GPUStencilValue
⚪ stencilWriteMask
→ GPUStencilValue
⚪ depthBias
→ GPUDepthBias
⚪ depthBiasSlopeScale
→ f32
⚪ depthBiasClamp
→ f32

---

Dictionary GPUStencilFaceState

4 members: 4 undocumented

Properties

⚪ compare
→ GPUCompareFunction
⚪ failOp
→ GPUStencilOperation
⚪ depthFailOp
→ GPUStencilOperation
⚪ passOp
→ GPUStencilOperation

---

Enum GPUStencilOperation

ValueDescription
keep
zero
replace
invert
increment-clamp
decrement-clamp
increment-wrap
decrement-wrap

Enum GPUIndexFormat

ValueDescription
uint16
uint32

Enum GPUVertexFormat

ValueDescription
uint8
uint8x2
uint8x4
sint8
sint8x2
sint8x4
unorm8
unorm8x2
unorm8x4
snorm8
snorm8x2
snorm8x4
uint16
uint16x2
uint16x4
sint16
sint16x2
sint16x4
unorm16
unorm16x2
unorm16x4
snorm16
snorm16x2
snorm16x4
float16
float16x2
float16x4
float32
float32x2
float32x3
float32x4
uint32
uint32x2
uint32x3
uint32x4
sint32
sint32x2
sint32x3
sint32x4
unorm10-10-10-2
unorm8x4-bgra

Enum GPUVertexStepMode

ValueDescription
vertex
instance

Dictionary GPUVertexState

Extends: GPUProgrammableStage

1 members: 1 undocumented

Properties

⚪ buffers
→ sequence

---

Dictionary GPUVertexBufferLayout

3 members: 3 undocumented

Properties

⚪ arrayStride
→ GPUSize64
⚪ stepMode
→ GPUVertexStepMode
⚪ attributes
→ sequence

---

Dictionary GPUVertexAttribute

3 members: 3 undocumented

Properties

⚪ format
→ GPUVertexFormat
⚪ offset
→ GPUSize64
⚪ shaderLocation
→ GPUIndex32

---

Interface GPUCommandBuffer

Implements: GPUObjectBase

---

Dictionary GPUCommandBufferDescriptor

Extends: GPUObjectDescriptorBase

---

Mixin GPUCommandsMixin

---

Interface GPUCommandEncoder

Implements: GPUObjectBase, GPUCommandsMixin, GPUDebugCommandsMixin

10 members: 1 supported, 9 undocumented

Methods

🟢 beginRenderPass(descriptor)
Supported
⚪ beginComputePass(descriptor)
→ GPUComputePassEncoder
⚪ copyBufferToBuffer(source, destination, size)
GPUBuffer, GPUBuffer, GPUSize64
⚪ copyBufferToBuffer(source, sourceOffset, destination, destinationOffset, size)
GPUBuffer, GPUSize64, GPUBuffer, GPUSize64, GPUSize64
⚪ copyBufferToTexture(source, destination, copySize)
GPUTexelCopyBufferInfo, GPUTexelCopyTextureInfo, GPUExtent3D
⚪ copyTextureToBuffer(source, destination, copySize)
GPUTexelCopyTextureInfo, GPUTexelCopyBufferInfo, GPUExtent3D
⚪ copyTextureToTexture(source, destination, copySize)
GPUTexelCopyTextureInfo, GPUTexelCopyTextureInfo, GPUExtent3D
⚪ clearBuffer(buffer, offset, size)
GPUBuffer, GPUSize64, GPUSize64
⚪ resolveQuerySet(querySet, firstQuery, queryCount, destination, destinationOffset)
GPUQuerySet, GPUSize32, GPUSize32, GPUBuffer, GPUSize64
⚪ finish(descriptor)
→ GPUCommandBuffer

---

Dictionary GPUCommandEncoderDescriptor

Extends: GPUObjectDescriptorBase

---

Mixin GPUBindingCommandsMixin

2 members: 2 undocumented

Methods

⚪ setBindGroup(index, bindGroup, dynamicOffsets)
GPUIndex32, GPUBindGroup?, sequence
⚪ setBindGroup(index, bindGroup, dynamicOffsetsData, dynamicOffsetsDataStart, dynamicOffsetsDataLength)
GPUIndex32, GPUBindGroup?, BufferSource, GPUSize64, GPUSize32

---

Mixin GPUDebugCommandsMixin

3 members: 3 undocumented

Methods

⚪ pushDebugGroup(groupLabel)
string
⚪ popDebugGroup()
Not documented
⚪ insertDebugMarker(markerLabel)
string

---

Interface GPUComputePassEncoder

Implements: GPUObjectBase, GPUCommandsMixin, GPUDebugCommandsMixin, GPUBindingCommandsMixin

4 members: 1 supported, 3 undocumented

Methods

🟢 setPipeline(pipeline)
Supported
⚪ dispatchWorkgroups(workgroupCountX, workgroupCountY, workgroupCountZ)
GPUSize32, GPUSize32, GPUSize32
⚪ dispatchWorkgroupsIndirect(indirectBuffer, indirectOffset)
GPUBuffer, GPUSize64
⚪ end()
Not documented

---

Dictionary GPUComputePassTimestampWrites

3 members: 3 undocumented

Properties

⚪ querySet
→ GPUQuerySet
⚪ beginningOfPassWriteIndex
→ GPUSize32
⚪ endOfPassWriteIndex
→ GPUSize32

---

Dictionary GPUComputePassDescriptor

Extends: GPUObjectDescriptorBase

1 members: 1 undocumented

Properties

⚪ timestampWrites
→ GPUComputePassTimestampWrites

---

Interface GPURenderPassEncoder

Implements: GPUObjectBase, GPUCommandsMixin, GPUDebugCommandsMixin, GPUBindingCommandsMixin, GPURenderCommandsMixin

8 members: 1 supported, 7 undocumented

Methods

🟢 setViewport(x, y, width, height, minDepth, maxDepth)
Supported
⚪ setScissorRect(x, y, width, height)
GPUIntegerCoordinate, GPUIntegerCoordinate, GPUIntegerCoordinate, GPUIntegerCoordinate
⚪ setBlendConstant(color)
GPUColor
⚪ setStencilReference(reference)
GPUStencilValue
⚪ beginOcclusionQuery(queryIndex)
GPUSize32
⚪ endOcclusionQuery()
Not documented
⚪ executeBundles(bundles)
sequence
⚪ end()
Not documented

---

Dictionary GPURenderPassTimestampWrites

3 members: 3 undocumented

Properties

⚪ querySet
→ GPUQuerySet
⚪ beginningOfPassWriteIndex
→ GPUSize32
⚪ endOfPassWriteIndex
→ GPUSize32

---

Dictionary GPURenderPassDescriptor

Extends: GPUObjectDescriptorBase

5 members: 5 undocumented

Properties

⚪ colorAttachments
→ sequence
⚪ depthStencilAttachment
→ GPURenderPassDepthStencilAttachment
⚪ occlusionQuerySet
→ GPUQuerySet
⚪ timestampWrites
→ GPURenderPassTimestampWrites
⚪ maxDrawCount
→ GPUSize64

---

Dictionary GPURenderPassColorAttachment

6 members: 6 undocumented

Properties

⚪ view
→ (GPUTexture or GPUTextureView)
⚪ depthSlice
→ GPUIntegerCoordinate
⚪ resolveTarget
→ (GPUTexture or GPUTextureView)
⚪ clearValue
→ GPUColor
⚪ loadOp
→ GPULoadOp
⚪ storeOp
→ GPUStoreOp

---

Dictionary GPURenderPassDepthStencilAttachment

9 members: 9 undocumented

Properties

⚪ view
→ (GPUTexture or GPUTextureView)
⚪ depthClearValue
→ f32
⚪ depthLoadOp
→ GPULoadOp
⚪ depthStoreOp
→ GPUStoreOp
⚪ depthReadOnly
→ boolean
⚪ stencilClearValue
→ GPUStencilValue
⚪ stencilLoadOp
→ GPULoadOp
⚪ stencilStoreOp
→ GPUStoreOp
⚪ stencilReadOnly
→ boolean

---

Enum GPULoadOp

ValueDescription
load
clear

Enum GPUStoreOp

ValueDescription
store
discard

Dictionary GPURenderPassLayout

Extends: GPUObjectDescriptorBase

3 members: 3 undocumented

Properties

⚪ colorFormats
→ sequence
⚪ depthStencilFormat
→ GPUTextureFormat
⚪ sampleCount
→ GPUSize32

---

Mixin GPURenderCommandsMixin

7 members: 1 supported, 6 undocumented

Methods

🟢 setPipeline(pipeline)
Supported
⚪ setIndexBuffer(buffer, indexFormat, offset, size)
GPUBuffer, GPUIndexFormat, GPUSize64, GPUSize64
⚪ setVertexBuffer(slot, buffer, offset, size)
GPUIndex32, GPUBuffer?, GPUSize64, GPUSize64
⚪ draw(vertexCount, instanceCount, firstVertex, firstInstance)
GPUSize32, GPUSize32, GPUSize32, GPUSize32
⚪ drawIndexed(indexCount, instanceCount, firstIndex, baseVertex, firstInstance)
GPUSize32, GPUSize32, GPUSize32, GPUSignedOffset32, GPUSize32
⚪ drawIndirect(indirectBuffer, indirectOffset)
GPUBuffer, GPUSize64
⚪ drawIndexedIndirect(indirectBuffer, indirectOffset)
GPUBuffer, GPUSize64

---

Interface GPURenderBundle

Implements: GPUObjectBase

---

Dictionary GPURenderBundleDescriptor

Extends: GPUObjectDescriptorBase

---

Interface GPURenderBundleEncoder

Implements: GPUObjectBase, GPUCommandsMixin, GPUDebugCommandsMixin, GPUBindingCommandsMixin, GPURenderCommandsMixin

1 members: 1 undocumented

Methods

⚪ finish(descriptor)
→ GPURenderBundle

---

Dictionary GPURenderBundleEncoderDescriptor

Extends: GPURenderPassLayout

2 members: 2 undocumented

Properties

⚪ depthReadOnly
→ boolean
⚪ stencilReadOnly
→ boolean

---

Dictionary GPUQueueDescriptor

Extends: GPUObjectDescriptorBase

---

Interface GPUQueue

Implements: GPUObjectBase

5 members: 1 supported, 4 undocumented

Methods

🟢 submit(commandBuffers)
Supported
⚪ onSubmittedWorkDone()
→ Promise
⚪ writeBuffer(buffer, bufferOffset, data, dataOffset, size)
GPUBuffer, GPUSize64, AllowSharedBufferSource, GPUSize64, GPUSize64
⚪ writeTexture(destination, data, dataLayout, size)
GPUTexelCopyTextureInfo, AllowSharedBufferSource, GPUTexelCopyBufferLayout, GPUExtent3D
⚪ copyExternalImageToTexture(source, destination, copySize)
GPUCopyExternalImageSourceInfo, GPUCopyExternalImageDestInfo, GPUExtent3D

---

Interface GPUQuerySet

Implements: GPUObjectBase

3 members: 3 undocumented

Methods

⚪ destroy()
Not documented

Properties

⚪ type
→ GPUQueryType
⚪ count
→ GPUSize32Out

---

Dictionary GPUQuerySetDescriptor

Extends: GPUObjectDescriptorBase

2 members: 2 undocumented

Properties

⚪ type
→ GPUQueryType
⚪ count
→ GPUSize32

---

Enum GPUQueryType

ValueDescription
occlusion
timestamp

Interface GPUCanvasContext

Docs: w3c Docs

5 members: 1 partial, 4 undocumented

Methods

⚪ configure(configuration)
GPUCanvasConfiguration
⚪ unconfigure()
Not documented
⚪ getConfiguration()
→ GPUCanvasConfiguration?
⚪ getCurrentTexture()
→ GPUTexture

Properties

🟡 canvas
— surface configure/unconfigure/getCurrentTexture via GPUWindow; no HTMLCanvasElement

---

Enum GPUCanvasAlphaMode

ValueDescription
opaque
premultiplied

Enum GPUCanvasToneMappingMode

ValueDescription
standard
extended

Dictionary GPUCanvasToneMapping

1 members: 1 undocumented

Properties

⚪ mode
→ GPUCanvasToneMappingMode

---

Dictionary GPUCanvasConfiguration

7 members: 7 undocumented

Properties

⚪ device
→ GPUDevice
⚪ format
→ GPUTextureFormat
⚪ usage
→ GPUTextureUsageFlags
⚪ viewFormats
→ sequence
⚪ colorSpace
→ PredefinedColorSpace
⚪ toneMapping
→ GPUCanvasToneMapping
⚪ alphaMode
→ GPUCanvasAlphaMode

---

Enum GPUDeviceLostReason

ValueDescription
unknown
destroyed

Interface GPUDeviceLostInfo

2 members: 2 undocumented

Properties

⚪ reason
→ GPUDeviceLostReason
⚪ message
→ string

---

Interface GPUDevice

Extends: w3c.EventTarget Implements: GPUObjectBase

24 members: 1 supported, 23 undocumented

Methods

⚪ destroy()
Not documented
⚪ createBuffer(descriptor)
→ GPUBuffer
⚪ createTexture(descriptor)
→ GPUTexture
⚪ createSampler(descriptor)
→ GPUSampler
⚪ importExternalTexture(descriptor)
→ GPUExternalTexture
⚪ createBindGroupLayout(descriptor)
→ GPUBindGroupLayout
⚪ createPipelineLayout(descriptor)
→ GPUPipelineLayout
⚪ createBindGroup(descriptor)
→ GPUBindGroup
⚪ createShaderModule(descriptor)
→ GPUShaderModule
⚪ createComputePipeline(descriptor)
→ GPUComputePipeline
⚪ createRenderPipeline(descriptor)
→ GPURenderPipeline
⚪ createComputePipelineAsync(descriptor)
→ Promise
⚪ createRenderPipelineAsync(descriptor)
→ Promise
⚪ createCommandEncoder(descriptor)
→ GPUCommandEncoder
⚪ createRenderBundleEncoder(descriptor)
→ GPURenderBundleEncoder
⚪ createQuerySet(descriptor)
→ GPUQuerySet
⚪ pushErrorScope(filter)
GPUErrorFilter
⚪ popErrorScope()
→ Promise

Properties

🟢 features
Supported
⚪ limits
→ GPUSupportedLimits
⚪ adapterInfo
→ GPUAdapterInfo
⚪ queue
→ GPUQueue
⚪ lost
→ Promise
⚪ onuncapturederror
→ EventHandler

---

Interface GPUError

1 members: 1 undocumented

Properties

⚪ message
→ string

---

Interface GPUValidationError

Extends: GPUError

1 members: 1 undocumented

Constructors

⚪ constructor(message)
string

---

Interface GPUOutOfMemoryError

Extends: GPUError

1 members: 1 undocumented

Constructors

⚪ constructor(message)
string

---

Interface GPUInternalError

Extends: GPUError

1 members: 1 undocumented

Constructors

⚪ constructor(message)
string

---

Enum GPUErrorFilter

ValueDescription
validation
out-of-memory
internal

Interface GPUDevice

Extends: w3c.EventTarget Implements: GPUObjectBase

24 members: 1 supported, 23 undocumented

Methods

⚪ destroy()
Not documented
⚪ createBuffer(descriptor)
→ GPUBuffer
⚪ createTexture(descriptor)
→ GPUTexture
⚪ createSampler(descriptor)
→ GPUSampler
⚪ importExternalTexture(descriptor)
→ GPUExternalTexture
⚪ createBindGroupLayout(descriptor)
→ GPUBindGroupLayout
⚪ createPipelineLayout(descriptor)
→ GPUPipelineLayout
⚪ createBindGroup(descriptor)
→ GPUBindGroup
⚪ createShaderModule(descriptor)
→ GPUShaderModule
⚪ createComputePipeline(descriptor)
→ GPUComputePipeline
⚪ createRenderPipeline(descriptor)
→ GPURenderPipeline
⚪ createComputePipelineAsync(descriptor)
→ Promise
⚪ createRenderPipelineAsync(descriptor)
→ Promise
⚪ createCommandEncoder(descriptor)
→ GPUCommandEncoder
⚪ createRenderBundleEncoder(descriptor)
→ GPURenderBundleEncoder
⚪ createQuerySet(descriptor)
→ GPUQuerySet
⚪ pushErrorScope(filter)
GPUErrorFilter
⚪ popErrorScope()
→ Promise

Properties

🟢 features
Supported
⚪ limits
→ GPUSupportedLimits
⚪ adapterInfo
→ GPUAdapterInfo
⚪ queue
→ GPUQueue
⚪ lost
→ Promise
⚪ onuncapturederror
→ EventHandler

---

Interface GPUUncapturedErrorEvent

Extends: w3c.Event

2 members: 2 undocumented

Constructors

⚪ constructor(type, gpuUncapturedErrorEventInitDict)
string, GPUUncapturedErrorEventInit

Properties

⚪ error
→ GPUError

---

Dictionary GPUUncapturedErrorEventInit

Extends: w3c.EventInit

1 members: 1 undocumented

Properties

⚪ error
→ GPUError

---

Interface GPUDevice

Extends: w3c.EventTarget Implements: GPUObjectBase

24 members: 1 supported, 23 undocumented

Methods

⚪ destroy()
Not documented
⚪ createBuffer(descriptor)
→ GPUBuffer
⚪ createTexture(descriptor)
→ GPUTexture
⚪ createSampler(descriptor)
→ GPUSampler
⚪ importExternalTexture(descriptor)
→ GPUExternalTexture
⚪ createBindGroupLayout(descriptor)
→ GPUBindGroupLayout
⚪ createPipelineLayout(descriptor)
→ GPUPipelineLayout
⚪ createBindGroup(descriptor)
→ GPUBindGroup
⚪ createShaderModule(descriptor)
→ GPUShaderModule
⚪ createComputePipeline(descriptor)
→ GPUComputePipeline
⚪ createRenderPipeline(descriptor)
→ GPURenderPipeline
⚪ createComputePipelineAsync(descriptor)
→ Promise
⚪ createRenderPipelineAsync(descriptor)
→ Promise
⚪ createCommandEncoder(descriptor)
→ GPUCommandEncoder
⚪ createRenderBundleEncoder(descriptor)
→ GPURenderBundleEncoder
⚪ createQuerySet(descriptor)
→ GPUQuerySet
⚪ pushErrorScope(filter)
GPUErrorFilter
⚪ popErrorScope()
→ Promise

Properties

🟢 features
Supported
⚪ limits
→ GPUSupportedLimits
⚪ adapterInfo
→ GPUAdapterInfo
⚪ queue
→ GPUQueue
⚪ lost
→ Promise
⚪ onuncapturederror
→ EventHandler

---

Dictionary GPUColorDict

4 members: 4 undocumented

Properties

⚪ r
→ f64
⚪ g
→ f64
⚪ b
→ f64
⚪ a
→ f64

---

Dictionary GPUOrigin2DDict

Properties

🟢 x
Supported
🟢 y
Supported

---

Dictionary GPUOrigin3DDict

3 members: 2 supported, 1 undocumented

Properties

🟢 x
Supported
🟢 y
Supported
⚪ z
→ GPUIntegerCoordinate

---

Dictionary GPUExtent3DDict

3 members: 3 undocumented

Properties

⚪ width
→ GPUIntegerCoordinate
⚪ height
→ GPUIntegerCoordinate
⚪ depthOrArrayLayers
→ GPUIntegerCoordinate

---

Dictionary GPUTexelCopyBufferLayout

3 members: 3 undocumented

Properties

⚪ offset
→ GPUSize64
⚪ bytesPerRow
→ GPUSize32
⚪ rowsPerImage
→ GPUSize32

---

Dictionary GPUTexelCopyBufferInfo

Extends: GPUTexelCopyBufferLayout

1 members: 1 undocumented

Properties

⚪ buffer
→ GPUBuffer

---

Dictionary GPUTexelCopyTextureInfo

4 members: 4 undocumented

Properties

⚪ texture
→ GPUTexture
⚪ mipLevel
→ GPUIntegerCoordinate
⚪ origin
→ GPUOrigin3D
⚪ aspect
→ GPUTextureAspect

---

Dictionary GPUCopyExternalImageDestInfo

Extends: GPUTexelCopyTextureInfo

2 members: 2 undocumented

Properties

⚪ colorSpace
→ PredefinedColorSpace
⚪ premultipliedAlpha
→ boolean

---

Dictionary GPUCopyExternalImageSourceInfo

3 members: 3 undocumented

Properties

⚪ source
→ GPUCopyExternalImageSource
⚪ origin
→ GPUOrigin2D
⚪ flipY
→ boolean

---