WebGPU
Module:w3c.WebGPU
Support: Experimental
Type Aliases
GPUBufferUsageFlagsGPUMapModeFlagsGPUTextureUsageFlagsGPUShaderStageFlagsGPUBindingResourceGPUPipelineConstantValueGPUColorWriteFlagsGPUBufferDynamicOffsetGPUStencilValueGPUSampleMaskGPUDepthBiasGPUSize64GPUIntegerCoordinateGPUIndex32GPUSize32GPUSignedOffset32GPUSize64OutGPUIntegerCoordinateOutGPUSize32OutGPUFlagsConstantGPUColorGPUOrigin2DGPUOrigin3DGPUExtent3DGPUCopyExternalImageSource
Mixin GPUObjectBase
1 members: 1 undocumented
Properties
---
Dictionary GPUObjectDescriptorBase
1 members: 1 undocumented
Properties
---
Interface GPUSupportedLimits
35 members: 35 undocumented
Properties
---
Interface GPUSupportedFeatures
---
Interface WGSLLanguageFeatures
---
Interface GPUAdapterInfo
7 members: 7 undocumented
Properties
---
Mixin NavigatorGPU
1 members: 1 undocumented
Properties
---
Interface GPU
3 members: 1 supported, 2 undocumented
Methods
Properties
---
Dictionary GPURequestAdapterOptions
Docs: w3c Docs
4 members: 4 undocumented
Properties
---
Enum GPUPowerPreference
| Value | Description |
|---|---|
low-power | |
high-performance |
Interface GPUAdapter
Docs: w3c Docs
4 members: 1 supported, 3 undocumented
Methods
Properties
---
Dictionary GPUDeviceDescriptor
Extends: GPUObjectDescriptorBase
3 members: 3 undocumented
Properties
---
Enum GPUFeatureName
| Value | Description |
|---|---|
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
Properties
---
Interface GPUBuffer
Implements: GPUObjectBase
7 members: 1 supported, 6 undocumented
Methods
Properties
---
Enum GPUBufferMapState
| Value | Description |
|---|---|
unmapped | |
pending | |
mapped |
Dictionary GPUBufferDescriptor
Extends: GPUObjectDescriptorBase
3 members: 1 supported, 2 undocumented
Properties
---
Interface GPUTexture
Implements: GPUObjectBase
11 members: 1 supported, 10 undocumented
Methods
Properties
---
Dictionary GPUTextureDescriptor
Extends: GPUObjectDescriptorBase
8 members: 1 supported, 7 undocumented
Properties
---
Enum GPUTextureDimension
| Value | Description |
|---|---|
1d | |
2d | |
3d |
Interface GPUTextureView
Implements: GPUObjectBase
Docs: w3c Docs
---
Dictionary GPUTextureViewDescriptor
Extends: GPUObjectDescriptorBase
Docs: w3c Docs
9 members: 9 undocumented
Properties
---
Enum GPUTextureViewDimension
| Value | Description |
|---|---|
1d | |
2d | |
2d-array | |
cube | |
cube-array | |
3d |
Enum GPUTextureAspect
| Value | Description |
|---|---|
all | |
stencil-only | |
depth-only |
Enum GPUTextureFormat
| Value | Description |
|---|---|
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
---
Interface GPUSampler
Implements: GPUObjectBase
---
Dictionary GPUSamplerDescriptor
Extends: GPUObjectDescriptorBase
10 members: 10 undocumented
Properties
---
Enum GPUAddressMode
| Value | Description |
|---|---|
clamp-to-edge | |
repeat | |
mirror-repeat |
Enum GPUFilterMode
| Value | Description |
|---|---|
nearest | |
linear |
Enum GPUMipmapFilterMode
| Value | Description |
|---|---|
nearest | |
linear |
Enum GPUCompareFunction
| Value | Description |
|---|---|
never | |
less | |
equal | |
less-equal | |
greater | |
not-equal | |
greater-equal | |
always |
Interface GPUBindGroupLayout
Implements: GPUObjectBase
---
Dictionary GPUBindGroupLayoutDescriptor
Extends: GPUObjectDescriptorBase
1 members: 1 undocumented
Properties
---
Dictionary GPUBindGroupLayoutEntry
7 members: 7 undocumented
Properties
---
Enum GPUBufferBindingType
| Value | Description |
|---|---|
uniform | |
storage | |
read-only-storage |
Dictionary GPUBufferBindingLayout
3 members: 3 undocumented
Properties
---
Enum GPUSamplerBindingType
| Value | Description |
|---|---|
filtering | |
non-filtering | |
comparison |
Dictionary GPUSamplerBindingLayout
1 members: 1 undocumented
Properties
---
Enum GPUTextureSampleType
| Value | Description |
|---|---|
float | |
unfilterable-float | |
depth | |
sint | |
uint |
Dictionary GPUTextureBindingLayout
3 members: 3 undocumented
Properties
---
Enum GPUStorageTextureAccess
| Value | Description |
|---|---|
write-only | |
read-only | |
read-write |
Dictionary GPUStorageTextureBindingLayout
3 members: 3 undocumented
Properties
---
Dictionary GPUExternalTextureBindingLayout
---
Interface GPUBindGroup
Implements: GPUObjectBase
---
Dictionary GPUBindGroupDescriptor
Extends: GPUObjectDescriptorBase
2 members: 2 undocumented
Properties
---
Dictionary GPUBindGroupEntry
2 members: 2 undocumented
Properties
---
Dictionary GPUBufferBinding
3 members: 1 supported, 2 undocumented
Properties
---
Interface GPUPipelineLayout
Implements: GPUObjectBase
---
Dictionary GPUPipelineLayoutDescriptor
Extends: GPUObjectDescriptorBase
1 members: 1 undocumented
Properties
---
Interface GPUShaderModule
Implements: GPUObjectBase
1 members: 1 partial
Methods
---
Dictionary GPUShaderModuleDescriptor
Extends: GPUObjectDescriptorBase
2 members: 2 undocumented
Properties
---
Dictionary GPUShaderModuleCompilationHint
2 members: 2 undocumented
Properties
---
Enum GPUCompilationMessageType
| Value | Description |
|---|---|
error | |
warning | |
info |
Interface GPUCompilationMessage
6 members: 6 undocumented
Properties
---
Interface GPUCompilationInfo
Docs: w3c Docs
1 members: 1 undocumented
Properties
---
Interface GPUPipelineError
Extends: w3c.DOMException
2 members: 2 undocumented
Constructors
Properties
---
Dictionary GPUPipelineErrorInit
1 members: 1 undocumented
Properties
---
Enum GPUPipelineErrorReason
| Value | Description |
|---|---|
validation | |
internal |
Enum GPUAutoLayoutMode
| Value | Description |
|---|---|
auto |
Dictionary GPUPipelineDescriptorBase
Extends: GPUObjectDescriptorBase
1 members: 1 undocumented
Properties
---
Mixin GPUPipelineBase
1 members: 1 undocumented
Methods
---
Dictionary GPUProgrammableStage
3 members: 3 undocumented
Properties
---
Interface GPUComputePipeline
Implements: GPUObjectBase, GPUPipelineBase
---
Dictionary GPUComputePipelineDescriptor
Extends: GPUPipelineDescriptorBase
1 members: 1 undocumented
Properties
---
Interface GPURenderPipeline
Implements: GPUObjectBase, GPUPipelineBase
---
Dictionary GPURenderPipelineDescriptor
Extends: GPUPipelineDescriptorBase
5 members: 5 undocumented
Properties
---
Dictionary GPUPrimitiveState
5 members: 5 undocumented
Properties
---
Enum GPUPrimitiveTopology
| Value | Description |
|---|---|
point-list | |
line-list | |
line-strip | |
triangle-list | |
triangle-strip |
Enum GPUFrontFace
| Value | Description |
|---|---|
ccw | |
cw |
Enum GPUCullMode
| Value | Description |
|---|---|
none | |
front | |
back |
Dictionary GPUMultisampleState
3 members: 3 undocumented
Properties
---
Dictionary GPUFragmentState
Extends: GPUProgrammableStage
1 members: 1 undocumented
Properties
---
Dictionary GPUColorTargetState
3 members: 3 undocumented
Properties
---
Dictionary GPUBlendState
2 members: 2 undocumented
Properties
---
Dictionary GPUBlendComponent
3 members: 3 undocumented
Properties
---
Enum GPUBlendFactor
| Value | Description |
|---|---|
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
| Value | Description |
|---|---|
add | |
subtract | |
reverse-subtract | |
min | |
max |
Dictionary GPUDepthStencilState
10 members: 10 undocumented
Properties
---
Dictionary GPUStencilFaceState
4 members: 4 undocumented
Properties
---
Enum GPUStencilOperation
| Value | Description |
|---|---|
keep | |
zero | |
replace | |
invert | |
increment-clamp | |
decrement-clamp | |
increment-wrap | |
decrement-wrap |
Enum GPUIndexFormat
| Value | Description |
|---|---|
uint16 | |
uint32 |
Enum GPUVertexFormat
| Value | Description |
|---|---|
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
| Value | Description |
|---|---|
vertex | |
instance |
Dictionary GPUVertexState
Extends: GPUProgrammableStage
1 members: 1 undocumented
Properties
---
Dictionary GPUVertexBufferLayout
3 members: 3 undocumented
Properties
---
Dictionary GPUVertexAttribute
3 members: 3 undocumented
Properties
---
Interface GPUCommandBuffer
Implements: GPUObjectBase
---
Dictionary GPUCommandBufferDescriptor
Extends: GPUObjectDescriptorBase
---
Mixin GPUCommandsMixin
---
Interface GPUCommandEncoder
Implements: GPUObjectBase, GPUCommandsMixin, GPUDebugCommandsMixin
10 members: 1 supported, 9 undocumented
Methods
---
Dictionary GPUCommandEncoderDescriptor
Extends: GPUObjectDescriptorBase
---
Mixin GPUBindingCommandsMixin
2 members: 2 undocumented
Methods
---
Mixin GPUDebugCommandsMixin
3 members: 3 undocumented
Methods
---
Interface GPUComputePassEncoder
Implements: GPUObjectBase, GPUCommandsMixin, GPUDebugCommandsMixin, GPUBindingCommandsMixin
4 members: 1 supported, 3 undocumented
Methods
---
Dictionary GPUComputePassTimestampWrites
3 members: 3 undocumented
Properties
---
Dictionary GPUComputePassDescriptor
Extends: GPUObjectDescriptorBase
1 members: 1 undocumented
Properties
---
Interface GPURenderPassEncoder
Implements: GPUObjectBase, GPUCommandsMixin, GPUDebugCommandsMixin, GPUBindingCommandsMixin, GPURenderCommandsMixin
8 members: 1 supported, 7 undocumented
Methods
---
Dictionary GPURenderPassTimestampWrites
3 members: 3 undocumented
Properties
---
Dictionary GPURenderPassDescriptor
Extends: GPUObjectDescriptorBase
5 members: 5 undocumented
Properties
---
Dictionary GPURenderPassColorAttachment
6 members: 6 undocumented
Properties
---
Dictionary GPURenderPassDepthStencilAttachment
9 members: 9 undocumented
Properties
---
Enum GPULoadOp
| Value | Description |
|---|---|
load | |
clear |
Enum GPUStoreOp
| Value | Description |
|---|---|
store | |
discard |
Dictionary GPURenderPassLayout
Extends: GPUObjectDescriptorBase
3 members: 3 undocumented
Properties
---
Mixin GPURenderCommandsMixin
7 members: 1 supported, 6 undocumented
Methods
---
Interface GPURenderBundle
Implements: GPUObjectBase
---
Dictionary GPURenderBundleDescriptor
Extends: GPUObjectDescriptorBase
---
Interface GPURenderBundleEncoder
Implements: GPUObjectBase, GPUCommandsMixin, GPUDebugCommandsMixin, GPUBindingCommandsMixin, GPURenderCommandsMixin
1 members: 1 undocumented
Methods
---
Dictionary GPURenderBundleEncoderDescriptor
Extends: GPURenderPassLayout
2 members: 2 undocumented
Properties
---
Dictionary GPUQueueDescriptor
Extends: GPUObjectDescriptorBase
---
Interface GPUQueue
Implements: GPUObjectBase
5 members: 1 supported, 4 undocumented
Methods
---
Interface GPUQuerySet
Implements: GPUObjectBase
3 members: 3 undocumented
Methods
Properties
---
Dictionary GPUQuerySetDescriptor
Extends: GPUObjectDescriptorBase
2 members: 2 undocumented
Properties
---
Enum GPUQueryType
| Value | Description |
|---|---|
occlusion | |
timestamp |
Interface GPUCanvasContext
Docs: w3c Docs
5 members: 1 partial, 4 undocumented
Methods
Properties
---
Enum GPUCanvasAlphaMode
| Value | Description |
|---|---|
opaque | |
premultiplied |
Enum GPUCanvasToneMappingMode
| Value | Description |
|---|---|
standard | |
extended |
Dictionary GPUCanvasToneMapping
1 members: 1 undocumented
Properties
---
Dictionary GPUCanvasConfiguration
7 members: 7 undocumented
Properties
---
Enum GPUDeviceLostReason
| Value | Description |
|---|---|
unknown | |
destroyed |
Interface GPUDeviceLostInfo
2 members: 2 undocumented
Properties
---
Interface GPUDevice
Extends: w3c.EventTarget
Implements: GPUObjectBase
24 members: 1 supported, 23 undocumented
Methods
Properties
---
Interface GPUError
1 members: 1 undocumented
Properties
---
Interface GPUValidationError
Extends: GPUError
1 members: 1 undocumented
Constructors
---
Interface GPUOutOfMemoryError
Extends: GPUError
1 members: 1 undocumented
Constructors
---
Interface GPUInternalError
Extends: GPUError
1 members: 1 undocumented
Constructors
---
Enum GPUErrorFilter
| Value | Description |
|---|---|
validation | |
out-of-memory | |
internal |
Interface GPUDevice
Extends: w3c.EventTarget
Implements: GPUObjectBase
24 members: 1 supported, 23 undocumented
Methods
Properties
---
Interface GPUUncapturedErrorEvent
Extends: w3c.Event
2 members: 2 undocumented
Constructors
Properties
---
Dictionary GPUUncapturedErrorEventInit
Extends: w3c.EventInit
1 members: 1 undocumented
Properties
---
Interface GPUDevice
Extends: w3c.EventTarget
Implements: GPUObjectBase
24 members: 1 supported, 23 undocumented
Methods
Properties
---
Dictionary GPUColorDict
4 members: 4 undocumented
Properties
---
Dictionary GPUOrigin2DDict
Properties
---
Dictionary GPUOrigin3DDict
3 members: 2 supported, 1 undocumented
Properties
---
Dictionary GPUExtent3DDict
3 members: 3 undocumented
Properties
---
Dictionary GPUTexelCopyBufferLayout
3 members: 3 undocumented
Properties
---
Dictionary GPUTexelCopyBufferInfo
Extends: GPUTexelCopyBufferLayout
1 members: 1 undocumented
Properties
---
Dictionary GPUTexelCopyTextureInfo
4 members: 4 undocumented
Properties
---
Dictionary GPUCopyExternalImageDestInfo
Extends: GPUTexelCopyTextureInfo
2 members: 2 undocumented
Properties
---
Dictionary GPUCopyExternalImageSourceInfo
3 members: 3 undocumented
Properties
---