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
GPURenderPassEncoder
GPUCommandEncoder.beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder
GPURenderPassDescriptor
- label: USVString= ''
- colorAttachments: sequence<GPURenderPassColorAttachment>required
- depthStencilAttachment: GPURenderPassDepthStencilAttachment
- occlusionQuerySet: GPUQuerySet
- timestampWrites: GPURenderPassTimestampWrites
- maxDrawCount: GPUSize64= 50000000
GPURenderPassColorAttachment
- resolveTarget: GPUTextureView
- clearValue: GPUColor
- loadOp: GPULoadOprequired
- storeOp: GPUStoreOprequired
GPUColor
typedef GPUColor = sequence<double> | GPUColorDictGPUColorDict
- r: doublerequired
- g: doublerequired
- b: doublerequired
- a: doublerequired
GPULoadOp
'load', 'clear'GPUStoreOp
'store', 'discard'GPURenderPassDepthStencilAttachment
- depthClearValue: float
- depthLoadOp: GPULoadOp
- depthStoreOp: GPUStoreOp
- depthReadOnly: boolean= 'false'
- stencilClearValue: GPUStencilValue= 0
- stencilLoadOp: GPULoadOp
- stencilStoreOp: GPUStoreOp
- stencilReadOnly: boolean= 'false'
GPUStencilValue
typedef GPUStencilValue = unsigned longGPURenderPassTimestampWrites
- beginningOfPassWriteIndex: GPUSize32
- endOfPassWriteIndex: GPUSize32
GPUSize32
typedef GPUSize32 = unsigned longGPUSize64
typedef GPUSize64 = unsigned long long
- label: USVString
setPipeline(pipeline: GPURenderPipeline): void
GPURenderPipeline
- GPUDevice.createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>
- label: USVString
- getBindGroupLayout(index: unsigned long): GPUBindGroupLayout
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset: GPUSize64, size: GPUSize64): void
GPUBuffer
- label: USVString
- size: GPUSize64Out
- usage: GPUFlagsConstant
- mapState: GPUBufferMapState
- mapAsync(mode: GPUMapModeFlags, offset: GPUSize64, size: GPUSize64): Promise<void>
- getMappedRange(offset: GPUSize64, size: GPUSize64): ArrayBuffer
- unmap(): void
- destroy(): void
GPUIndexFormat
'uint16', 'uint32'GPUSize64
typedef GPUSize64 = unsigned long longsetVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer, offset: GPUSize64, size: GPUSize64): void
GPUIndex32
typedef GPUIndex32 = unsigned longGPUBuffer
- label: USVString
- size: GPUSize64Out
- usage: GPUFlagsConstant
- mapState: GPUBufferMapState
- mapAsync(mode: GPUMapModeFlags, offset: GPUSize64, size: GPUSize64): Promise<void>
- getMappedRange(offset: GPUSize64, size: GPUSize64): ArrayBuffer
- unmap(): void
- destroy(): void
GPUSize64
typedef GPUSize64 = unsigned long longdraw(vertexCount: GPUSize32, instanceCount: GPUSize32, firstVertex: GPUSize32, firstInstance: GPUSize32): void
GPUSize32
typedef GPUSize32 = unsigned longdrawIndexed(indexCount: GPUSize32, instanceCount: GPUSize32, firstIndex: GPUSize32, baseVertex: GPUSignedOffset32, firstInstance: GPUSize32): void
GPUSize32
typedef GPUSize32 = unsigned longGPUSignedOffset32
typedef GPUSignedOffset32 = longdrawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void
GPUBuffer
- label: USVString
- size: GPUSize64Out
- usage: GPUFlagsConstant
- mapState: GPUBufferMapState
- mapAsync(mode: GPUMapModeFlags, offset: GPUSize64, size: GPUSize64): Promise<void>
- getMappedRange(offset: GPUSize64, size: GPUSize64): ArrayBuffer
- unmap(): void
- destroy(): void
GPUSize64
typedef GPUSize64 = unsigned long longdrawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void
GPUBuffer
- label: USVString
- size: GPUSize64Out
- usage: GPUFlagsConstant
- mapState: GPUBufferMapState
- mapAsync(mode: GPUMapModeFlags, offset: GPUSize64, size: GPUSize64): Promise<void>
- getMappedRange(offset: GPUSize64, size: GPUSize64): ArrayBuffer
- unmap(): void
- destroy(): void
GPUSize64
typedef GPUSize64 = unsigned long longsetBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup, dynamicOffsets: sequence<GPUBufferDynamicOffset>): void
GPUIndex32
typedef GPUIndex32 = unsigned longGPUBindGroup
- label: USVString
GPUBufferDynamicOffset
typedef GPUBufferDynamicOffset = unsigned longsetBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void
GPUIndex32
typedef GPUIndex32 = unsigned longGPUBindGroup
- label: USVString
GPUSize64
typedef GPUSize64 = unsigned long longGPUSize32
typedef GPUSize32 = unsigned long- pushDebugGroup(groupLabel: USVString): void
- popDebugGroup(): void
- insertDebugMarker(markerLabel: USVString): void
- setViewport(x: float, y: float, width: float, height: float, minDepth: float, maxDepth: float): void
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void
GPUIntegerCoordinate
typedef GPUIntegerCoordinate = unsigned longsetBlendConstant(color: GPUColor): void
GPUColor
typedef GPUColor = sequence<double> | GPUColorDictGPUColorDict
- r: doublerequired
- g: doublerequired
- b: doublerequired
- a: doublerequired
setStencilReference(reference: GPUStencilValue): void
GPUStencilValue
typedef GPUStencilValue = unsigned longbeginOcclusionQuery(queryIndex: GPUSize32): void
GPUSize32
typedef GPUSize32 = unsigned long- endOcclusionQuery(): void
executeBundles(bundles: sequence<GPURenderBundle>): void
GPURenderBundle
- label: USVString
- end(): void