Interfaces
- GPU
- GPUAdapter
- GPUAdapterInfo
- GPUBindGroup
- GPUBindGroupLayout
- GPUBuffer
- GPUCanvasContext
- GPUCommandBuffer
- GPUCommandEncoder
- GPUCompilationInfo
- GPUCompilationMessage
- GPUComputePassEncoder
- GPUComputePipeline
- GPUDevice
- GPUDeviceLostInfo
- GPUError
- GPUExternalTexture
- GPUInternalError
- GPUOutOfMemoryError
- GPUPipelineError
- GPUPipelineLayout
- GPUQuerySet
- GPUQueue
- GPURenderBundle
- GPURenderBundleEncoder
- GPURenderPassEncoder
- GPURenderPipeline
- GPUSampler
- GPUShaderModule
- GPUSupportedFeatures
- GPUSupportedLimits
- GPUTexture
- GPUTextureView
- GPUUncapturedErrorEvent
- GPUValidationError
- WGSLLanguageFeatures
Dictionaries
- GPUBindGroupDescriptor
- GPUBindGroupEntry
- GPUBindGroupLayoutDescriptor
- GPUBindGroupLayoutEntry
- GPUBlendComponent
- GPUBlendState
- GPUBufferBinding
- GPUBufferBindingLayout
- GPUBufferDescriptor
- GPUCanvasConfiguration
- GPUColorDict
- GPUColorTargetState
- GPUCommandBufferDescriptor
- GPUCommandEncoderDescriptor
- GPUComputePassDescriptor
- GPUComputePassTimestampWrites
- GPUComputePipelineDescriptor
- GPUDepthStencilState
- GPUDeviceDescriptor
- GPUExtent3DDict
- GPUExternalTextureBindingLayout
- GPUExternalTextureDescriptor
- GPUFragmentState
- GPUMultisampleState
- GPUObjectDescriptorBase
- GPUOrigin2DDict
- GPUOrigin3DDict
- GPUPipelineDescriptorBase
- GPUPipelineErrorInit
- GPUPipelineLayoutDescriptor
- GPUPrimitiveState
- GPUProgrammableStage
- GPUQuerySetDescriptor
- GPUQueueDescriptor
- GPURenderBundleDescriptor
- GPURenderBundleEncoderDescriptor
- GPURenderPassColorAttachment
- GPURenderPassDepthStencilAttachment
- GPURenderPassDescriptor
- GPURenderPassLayout
- GPURenderPassTimestampWrites
- GPURenderPipelineDescriptor
- GPURequestAdapterOptions
- GPUSamplerBindingLayout
- GPUSamplerDescriptor
- GPUShaderModuleCompilationHint
- GPUShaderModuleDescriptor
- GPUStencilFaceState
- GPUStorageTextureBindingLayout
- GPUTextureBindingLayout
- GPUTextureDescriptor
- GPUTextureViewDescriptor
- GPUUncapturedErrorEventInit
- GPUVertexAttribute
- GPUVertexBufferLayout
- GPUVertexState
Enums
- GPUAddressMode
- GPUAutoLayoutMode
- GPUBlendFactor
- GPUBlendOperation
- GPUBufferBindingType
- GPUBufferMapState
- GPUCanvasAlphaMode
- GPUCompareFunction
- GPUCompilationMessageType
- GPUCullMode
- GPUDeviceLostReason
- GPUErrorFilter
- GPUFeatureName
- GPUFilterMode
- GPUFrontFace
- GPUIndexFormat
- GPULoadOp
- GPUMipmapFilterMode
- GPUPipelineErrorReason
- GPUPowerPreference
- GPUPrimitiveTopology
- GPUQueryType
- GPUSamplerBindingType
- GPUStencilOperation
- GPUStorageTextureAccess
- GPUStoreOp
- GPUTextureAspect
- GPUTextureDimension
- GPUTextureFormat
- GPUTextureSampleType
- GPUTextureViewDimension
- GPUVertexFormat
- GPUVertexStepMode
Typedefs
- GPUBindingResource
- GPUBufferDynamicOffset
- GPUBufferUsageFlags
- GPUColor
- GPUColorWriteFlags
- GPUDepthBias
- GPUExtent3D
- GPUFlagsConstant
- GPUIndex32
- GPUIntegerCoordinate
- GPUIntegerCoordinateOut
- GPUMapModeFlags
- GPUOrigin2D
- GPUOrigin3D
- GPUPipelineConstantValue
- GPUSampleMask
- GPUShaderStageFlags
- GPUSignedOffset32
- GPUSize32
- GPUSize32Out
- GPUSize64
- GPUSize64Out
- GPUStencilValue
- GPUTextureUsageFlags
GPURenderPipeline
GPUDevice.createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline
GPURenderPipelineDescriptor
- label: USVString
- vertex: GPUVertexStaterequired
- primitive: GPUPrimitiveState= {}
- depthStencil: GPUDepthStencilState
- multisample: GPUMultisampleState= {}
- fragment: GPUFragmentState
GPUPipelineLayout
- label: USVString
GPUAutoLayoutMode
'auto'GPUVertexState
- entryPoint: USVStringrequired
- constants: record<USVString, GPUPipelineConstantValue>
- buffers: sequence<GPUVertexBufferLayout>= []
GPUPipelineConstantValue
typedef GPUPipelineConstantValue = doubleGPUVertexBufferLayout
- arrayStride: GPUSize64required
- stepMode: GPUVertexStepMode= 'vertex'
- attributes: sequence<GPUVertexAttribute>required
GPUSize64
typedef GPUSize64 = unsigned long longGPUVertexStepMode
'vertex', 'instance'GPUVertexAttribute
- format: GPUVertexFormatrequired
- offset: GPUSize64required
- shaderLocation: GPUIndex32required
GPUVertexFormat
'uint8x2', 'uint8x4', 'sint8x2', 'sint8x4', 'unorm8x2', 'unorm8x4', 'snorm8x2', 'snorm8x4', 'uint16x2', 'uint16x4', 'sint16x2', 'sint16x4', 'unorm16x2', 'unorm16x4', 'snorm16x2', 'snorm16x4', 'float16x2', 'float16x4', 'float32', 'float32x2', 'float32x3', 'float32x4', 'uint32', 'uint32x2', 'uint32x3', 'uint32x4', 'sint32', 'sint32x2', 'sint32x3', 'sint32x4'GPUIndex32
typedef GPUIndex32 = unsigned longGPUPrimitiveState
- topology: GPUPrimitiveTopology= 'triangle-list'
- stripIndexFormat: GPUIndexFormat
- frontFace: GPUFrontFace= 'ccw'
- cullMode: GPUCullMode= 'none'
- unclippedDepth: boolean= 'false'
GPUPrimitiveTopology
'point-list', 'line-list', 'line-strip', 'triangle-list', 'triangle-strip'GPUIndexFormat
'uint16', 'uint32'GPUFrontFace
'ccw', 'cw'GPUCullMode
'none', 'front', 'back'GPUDepthStencilState
- format: GPUTextureFormatrequired
- depthWriteEnabled: booleanrequired
- depthCompare: GPUCompareFunctionrequired
- stencilFront: GPUStencilFaceState= {}
- stencilBack: GPUStencilFaceState= {}
- stencilReadMask: GPUStencilValue= 0xFFFFFFFF
- stencilWriteMask: GPUStencilValue= 0xFFFFFFFF
- depthBias: GPUDepthBias= 0
- depthBiasSlopeScale: float= 0
- depthBiasClamp: float= 0
GPUTextureFormat
'r8unorm', 'r8snorm', 'r8uint', 'r8sint', 'r16uint', 'r16sint', 'r16float', 'rg8unorm', 'rg8snorm', 'rg8uint', 'rg8sint', 'r32uint', 'r32sint', 'r32float', 'rg16uint', 'rg16sint', 'rg16float', 'rgba8unorm', 'rgba8unorm-srgb', 'rgba8snorm', 'rgba8uint', 'rgba8sint', 'bgra8unorm', 'bgra8unorm-srgb', 'rgb9e5ufloat', 'rgb10a2unorm', 'rg11b10ufloat', 'rg32uint', 'rg32sint', 'rg32float', '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'GPUCompareFunction
'never', 'less', 'equal', 'less-equal', 'greater', 'not-equal', 'greater-equal', 'always'GPUStencilFaceState
- compare: GPUCompareFunction= 'always'
- failOp: GPUStencilOperation= 'keep'
- depthFailOp: GPUStencilOperation= 'keep'
- passOp: GPUStencilOperation= 'keep'
GPUStencilOperation
'keep', 'zero', 'replace', 'invert', 'increment-clamp', 'decrement-clamp', 'increment-wrap', 'decrement-wrap'GPUStencilValue
typedef GPUStencilValue = unsigned longGPUDepthBias
typedef GPUDepthBias = longGPUMultisampleState
- count: GPUSize32= 1
- mask: GPUSampleMask= 0xFFFFFFFF
- alphaToCoverageEnabled: boolean= 'false'
GPUSize32
typedef GPUSize32 = unsigned longGPUSampleMask
typedef GPUSampleMask = unsigned longGPUFragmentState
- entryPoint: USVStringrequired
- constants: record<USVString, GPUPipelineConstantValue>
- targets: sequence<GPUColorTargetState>required
GPUColorTargetState
- format: GPUTextureFormatrequired
- blend: GPUBlendState
- writeMask: GPUColorWriteFlags= 0xF
GPUBlendState
- color: GPUBlendComponentrequired
- alpha: GPUBlendComponentrequired
GPUBlendComponent
- operation: GPUBlendOperation= 'add'
- srcFactor: GPUBlendFactor= 'one'
- dstFactor: GPUBlendFactor= 'zero'
GPUBlendOperation
'add', 'subtract', 'reverse-subtract', 'min', 'max'GPUBlendFactor
'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'GPUColorWriteFlags
typedef GPUColorWriteFlags = unsigned long- GPUColorWrite.RED = 0x1
- GPUColorWrite.GREEN = 0x2
- GPUColorWrite.BLUE = 0x4
- GPUColorWrite.ALPHA = 0x8
- GPUColorWrite.ALL = 0xF
GPUDevice.createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>
GPURenderPipelineDescriptor
- label: USVString
- vertex: GPUVertexStaterequired
- primitive: GPUPrimitiveState= {}
- depthStencil: GPUDepthStencilState
- multisample: GPUMultisampleState= {}
- fragment: GPUFragmentState
GPUPipelineLayout
- label: USVString
GPUAutoLayoutMode
'auto'GPUVertexState
- entryPoint: USVStringrequired
- constants: record<USVString, GPUPipelineConstantValue>
- buffers: sequence<GPUVertexBufferLayout>= []
GPUPipelineConstantValue
typedef GPUPipelineConstantValue = doubleGPUVertexBufferLayout
- arrayStride: GPUSize64required
- stepMode: GPUVertexStepMode= 'vertex'
- attributes: sequence<GPUVertexAttribute>required
GPUSize64
typedef GPUSize64 = unsigned long longGPUVertexStepMode
'vertex', 'instance'GPUVertexAttribute
- format: GPUVertexFormatrequired
- offset: GPUSize64required
- shaderLocation: GPUIndex32required
GPUVertexFormat
'uint8x2', 'uint8x4', 'sint8x2', 'sint8x4', 'unorm8x2', 'unorm8x4', 'snorm8x2', 'snorm8x4', 'uint16x2', 'uint16x4', 'sint16x2', 'sint16x4', 'unorm16x2', 'unorm16x4', 'snorm16x2', 'snorm16x4', 'float16x2', 'float16x4', 'float32', 'float32x2', 'float32x3', 'float32x4', 'uint32', 'uint32x2', 'uint32x3', 'uint32x4', 'sint32', 'sint32x2', 'sint32x3', 'sint32x4'GPUIndex32
typedef GPUIndex32 = unsigned longGPUPrimitiveState
- topology: GPUPrimitiveTopology= 'triangle-list'
- stripIndexFormat: GPUIndexFormat
- frontFace: GPUFrontFace= 'ccw'
- cullMode: GPUCullMode= 'none'
- unclippedDepth: boolean= 'false'
GPUPrimitiveTopology
'point-list', 'line-list', 'line-strip', 'triangle-list', 'triangle-strip'GPUIndexFormat
'uint16', 'uint32'GPUFrontFace
'ccw', 'cw'GPUCullMode
'none', 'front', 'back'GPUDepthStencilState
- format: GPUTextureFormatrequired
- depthWriteEnabled: booleanrequired
- depthCompare: GPUCompareFunctionrequired
- stencilFront: GPUStencilFaceState= {}
- stencilBack: GPUStencilFaceState= {}
- stencilReadMask: GPUStencilValue= 0xFFFFFFFF
- stencilWriteMask: GPUStencilValue= 0xFFFFFFFF
- depthBias: GPUDepthBias= 0
- depthBiasSlopeScale: float= 0
- depthBiasClamp: float= 0
GPUTextureFormat
'r8unorm', 'r8snorm', 'r8uint', 'r8sint', 'r16uint', 'r16sint', 'r16float', 'rg8unorm', 'rg8snorm', 'rg8uint', 'rg8sint', 'r32uint', 'r32sint', 'r32float', 'rg16uint', 'rg16sint', 'rg16float', 'rgba8unorm', 'rgba8unorm-srgb', 'rgba8snorm', 'rgba8uint', 'rgba8sint', 'bgra8unorm', 'bgra8unorm-srgb', 'rgb9e5ufloat', 'rgb10a2unorm', 'rg11b10ufloat', 'rg32uint', 'rg32sint', 'rg32float', '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'GPUCompareFunction
'never', 'less', 'equal', 'less-equal', 'greater', 'not-equal', 'greater-equal', 'always'GPUStencilFaceState
- compare: GPUCompareFunction= 'always'
- failOp: GPUStencilOperation= 'keep'
- depthFailOp: GPUStencilOperation= 'keep'
- passOp: GPUStencilOperation= 'keep'
GPUStencilOperation
'keep', 'zero', 'replace', 'invert', 'increment-clamp', 'decrement-clamp', 'increment-wrap', 'decrement-wrap'GPUStencilValue
typedef GPUStencilValue = unsigned longGPUDepthBias
typedef GPUDepthBias = longGPUMultisampleState
- count: GPUSize32= 1
- mask: GPUSampleMask= 0xFFFFFFFF
- alphaToCoverageEnabled: boolean= 'false'
GPUSize32
typedef GPUSize32 = unsigned longGPUSampleMask
typedef GPUSampleMask = unsigned longGPUFragmentState
- entryPoint: USVStringrequired
- constants: record<USVString, GPUPipelineConstantValue>
- targets: sequence<GPUColorTargetState>required
GPUColorTargetState
- format: GPUTextureFormatrequired
- blend: GPUBlendState
- writeMask: GPUColorWriteFlags= 0xF
GPUBlendState
- color: GPUBlendComponentrequired
- alpha: GPUBlendComponentrequired
GPUBlendComponent
- operation: GPUBlendOperation= 'add'
- srcFactor: GPUBlendFactor= 'one'
- dstFactor: GPUBlendFactor= 'zero'
GPUBlendOperation
'add', 'subtract', 'reverse-subtract', 'min', 'max'GPUBlendFactor
'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'GPUColorWriteFlags
typedef GPUColorWriteFlags = unsigned long- GPUColorWrite.RED = 0x1
- GPUColorWrite.GREEN = 0x2
- GPUColorWrite.BLUE = 0x4
- GPUColorWrite.ALPHA = 0x8
- GPUColorWrite.ALL = 0xF
- label: USVString