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
- GPUCanvasToneMapping
- 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
- GPUCanvasToneMappingMode
- 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
GPUCanvasConfiguration
device: GPUDevicerequired
GPUDevice
- label: USVString
- features: GPUSupportedFeatures
- limits: GPUSupportedLimits
- queue: GPUQueue
- onuncapturederror: EventHandler
- destroy(): void
- createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer
- createTexture(descriptor: GPUTextureDescriptor): GPUTexture
- createSampler(descriptor: GPUSamplerDescriptor): GPUSampler
- importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture
- createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout
- createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout
- createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup
- createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule
- createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline
- createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline
- createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>
- createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>
- createCommandEncoder(descriptor: GPUCommandEncoderDescriptor): GPUCommandEncoder
- createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder
- createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet
- pushErrorScope(filter: GPUErrorFilter): void
- popErrorScope(): Promise<GPUError>
format: GPUTextureFormatrequired
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', 'rgb10a2uint', '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'usage: GPUTextureUsageFlags= 0x10
GPUTextureUsageFlags
typedef GPUTextureUsageFlags = unsigned long- GPUTextureUsage.COPY_SRC = 0x01
- GPUTextureUsage.COPY_DST = 0x02
- GPUTextureUsage.TEXTURE_BINDING = 0x04
- GPUTextureUsage.STORAGE_BINDING = 0x08
- GPUTextureUsage.RENDER_ATTACHMENT = 0x10
viewFormats: sequence<GPUTextureFormat>= []
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', 'rgb10a2uint', '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'- colorSpace: PredefinedColorSpace= 'srgb'
toneMapping: GPUCanvasToneMapping= {}
GPUCanvasToneMapping
- mode: GPUCanvasToneMappingMode= 'standard'
GPUCanvasToneMappingMode
'standard', 'extended'alphaMode: GPUCanvasAlphaMode= 'opaque'
GPUCanvasAlphaMode
'opaque', 'premultiplied'