generated library

Extension Types

$GPUBufferUsage
$GPUColorWrite
$GPUMapMode
$GPUShaderStage
$GPUTextureUsage
GPU
The GPU interface of the WebGPU API is the starting point for using WebGPU. It can be used to return a GPUAdapter from which you can request devices, configure features and limits, and more.
GPUAdapter
The GPUAdapter interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
GPUAdapterInfo
The GPUAdapterInfo interface of the WebGPU API contains identifying information about a GPUAdapter.
GPUBindGroup
The GPUBindGroup interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
GPUBindGroupDescriptor
GPUBindGroupEntry
GPUBindGroupLayout
The GPUBindGroupLayout interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups.
GPUBindGroupLayoutDescriptor
GPUBindGroupLayoutEntry
GPUBlendComponent
GPUBlendState
GPUBuffer
The GPUBuffer interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
GPUBufferBinding
GPUBufferBindingLayout
GPUBufferDescriptor
GPUCanvasConfiguration
GPUCanvasContext
The GPUCanvasContext interface of the WebGPU API represents the WebGPU rendering context of a canvas element, returned via an HTMLCanvasElement.getContext call with a contextType of "webgpu".
GPUCanvasToneMapping
GPUColorDict
GPUColorTargetState
GPUCommandBuffer
The GPUCommandBuffer interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
GPUCommandBufferDescriptor
GPUCommandEncoder
The GPUCommandEncoder interface of the WebGPU API represents a command encoder, used to encode commands to be issued to the GPU.
GPUCommandEncoderDescriptor
GPUCompilationInfo
The GPUCompilationInfo interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code.
GPUCompilationMessage
The GPUCompilationMessage interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
GPUComputePassDescriptor
GPUComputePassEncoder
The GPUComputePassEncoder interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
GPUComputePassTimestampWrites
GPUComputePipeline
The GPUComputePipeline interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
GPUComputePipelineDescriptor
GPUDepthStencilState
GPUDevice
The GPUDevice interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
GPUDeviceDescriptor
GPUDeviceLostInfo
The GPUDeviceLostInfo interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
GPUError
The GPUError interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event.
GPUExtent3DDict
GPUExternalTexture
The GPUExternalTexture interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations.
GPUExternalTextureBindingLayout
GPUExternalTextureDescriptor
GPUFragmentState
GPUImageCopyBuffer
GPUImageCopyExternalImage
GPUImageCopyTexture
GPUImageCopyTextureTagged
GPUImageDataLayout
GPUInternalError
The GPUInternalError interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
GPUMultisampleState
GPUObjectDescriptorBase
GPUOrigin2DDict
GPUOrigin3DDict
GPUOutOfMemoryError
The GPUOutOfMemoryError interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation.
GPUPipelineDescriptorBase
GPUPipelineError
The GPUPipelineError interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync or GPUDevice.createRenderPipelineAsync call rejects.
GPUPipelineErrorInit
GPUPipelineLayout
The GPUPipelineLayout interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
GPUPipelineLayoutDescriptor
GPUPrimitiveState
GPUProgrammableStage
GPUQuerySet
The GPUQuerySet interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
GPUQuerySetDescriptor
GPUQueue
The GPUQueue interface of the WebGPU API controls execution of encoded commands on the GPU.
GPUQueueDescriptor
GPURenderBundle
The GPURenderBundle interface of the WebGPU API represents a container for pre-recorded bundles of commands.
GPURenderBundleDescriptor
GPURenderBundleEncoder
The GPURenderBundleEncoder interface of the WebGPU API is used to pre-record bundles of commands.
GPURenderBundleEncoderDescriptor
GPURenderPassColorAttachment
GPURenderPassDepthStencilAttachment
GPURenderPassDescriptor
GPURenderPassEncoder
The GPURenderPassEncoder interface of the WebGPU API encodes commands related to controlling the vertex and fragment shader stages, as issued by a GPURenderPipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
GPURenderPassLayout
GPURenderPassTimestampWrites
GPURenderPipeline
The GPURenderPipeline interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
GPURenderPipelineDescriptor
GPURequestAdapterOptions
GPUSampler
The GPUSampler interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
GPUSamplerBindingLayout
GPUSamplerDescriptor
GPUShaderModule
The GPUShaderModule interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
GPUShaderModuleCompilationHint
GPUShaderModuleDescriptor
GPUStencilFaceState
GPUStorageTextureBindingLayout
GPUSupportedFeatures
The GPUSupportedFeatures interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
GPUSupportedLimits
The GPUSupportedLimits interface of the WebGPU API describes the limits supported by a GPUAdapter.
GPUTexture
The GPUTexture interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
GPUTextureBindingLayout
GPUTextureDescriptor
GPUTextureView
The GPUTextureView interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
GPUTextureViewDescriptor
GPUUncapturedErrorEvent
The GPUUncapturedErrorEvent interface of the WebGPU API is the event object type for the GPUDevice GPUDevice.uncapturederror_event event, used for telemetry and to report unexpected errors.
GPUUncapturedErrorEventInit
GPUValidationError
The GPUValidationError interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
GPUVertexAttribute
GPUVertexBufferLayout
GPUVertexState
WGSLLanguageFeatures
The WGSLLanguageFeatures interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.

Properties

GPUBufferUsage $GPUBufferUsage
no setter
GPUColorWrite $GPUColorWrite
no setter
GPUMapMode $GPUMapMode
no setter
GPUShaderStage $GPUShaderStage
no setter
GPUTextureUsage $GPUTextureUsage
no setter

Typedefs

AllowSharedBufferSource = JSObject
GPUAddressMode = String
GPUAutoLayoutMode = String
GPUBindingResource = JSObject
GPUBlendFactor = String
GPUBlendOperation = String
GPUBufferBindingType = String
GPUBufferDynamicOffset = int
GPUBufferMapState = String
GPUBufferUsageFlags = int
GPUCanvasAlphaMode = String
GPUCanvasToneMappingMode = String
GPUColor = JSObject
GPUColorWriteFlags = int
GPUCompareFunction = String
GPUCompilationMessageType = String
GPUCullMode = String
GPUDepthBias = int
GPUDeviceLostReason = String
GPUErrorFilter = String
GPUExtent3D = JSObject
GPUFeatureName = String
GPUFilterMode = String
GPUFlagsConstant = int
GPUFrontFace = String
GPUImageCopyExternalImageSource = JSObject
GPUIndex32 = int
GPUIndexFormat = String
GPUIntegerCoordinate = int
GPUIntegerCoordinateOut = int
GPULoadOp = String
GPUMapModeFlags = int
GPUMipmapFilterMode = String
GPUOrigin2D = JSObject
GPUOrigin3D = JSObject
GPUPipelineErrorReason = String
GPUPowerPreference = String
GPUPrimitiveTopology = String
GPUQueryType = String
GPUSampleMask = int
GPUSamplerBindingType = String
GPUShaderStageFlags = int
GPUSignedOffset32 = int
GPUSize32 = int
GPUSize32Out = int
GPUSize64 = int
GPUSize64Out = int
GPUStencilOperation = String
GPUStencilValue = int
GPUStorageTextureAccess = String
GPUStoreOp = String
GPUTextureAspect = String
GPUTextureDimension = String
GPUTextureFormat = String
GPUTextureSampleType = String
GPUTextureUsageFlags = int
GPUTextureViewDimension = String
GPUVertexFormat = String
GPUVertexStepMode = String
PredefinedColorSpace = String