Creates an instance of the Dawn WebGPU system
Instance CreateInstance(
InstanceDescriptor const* descriptor)
Returns
The created Instance.
Arguments
- descriptor: The InstanceDescriptor pointer. Maybe
nullptr
to create a default instance.
Value | Description |
---|---|
kArrayLayerCountUndefined |
Undefined value for array layer count. Providing undefined will cause a default value to be used. |
kCopyStrideUndefined |
Undefined value for copy stride. Providing undefined will cause a default value to be used. |
kLimitU32Undefined |
Undefined U32 limit value. Providing undefined will cause a default value to be used. |
kLimitU64Undefined |
Undefined U64 limit value. Providing undefined will cause a default value to be used. |
kMipLevelCountUndefined |
Undefined mip level count. Providing undefined will cause a default value to be used. |
kStrideUndefined |
Undefined stride. Providing undefined will cause a default value to be used. |
kWholeMapSize |
Value representing size of entire map. Providing undefined will cause a default value to be used. |
kWholeSize |
Value representing the whole size value. Providing undefined will cause a default value to be used. |
Provides information on the type of adapter.
Value | Description |
---|---|
DiscreteGPU |
A separate discrete GPU adapter |
IntegratedGPU |
An integrated GPU / CPU adapter |
CPU |
A CPU adapter |
Unknown |
A unknown adapter type |
Describes the behaviour of the sampler if the sampler footprint extends beyond the bounds of the sampled texture.
See GPUAddressMode for more information.
Value | Description |
---|---|
Repeat |
Texture coordinates wrap to the other side of the texture |
MirrorRepeat |
Texture coordinates wrap to the other side of the texture, but the texture is flipped when the integer part of the coordinate is odd. |
ClampToEdge |
Texture coordinates are clamped between 0.0 and 1.0, inclusive. |
Selects how the contents of the surface will be interpreted when read, when rendered to the screen or used as an image source.
See GPUCanvasAlphaMode for more information.
Value | Description |
---|---|
Premultiplied |
Read RBGA as premultipled: color values are premultipled by their alpha value. |
Unpremultiplied |
Read RGBA as not premulitipled: Color values are not premultipled by their alpha value |
Opaque |
Read RGB as opaque and ignore alpha value |
Specifies the type of backend to use with Dawn.
Value | Description |
---|---|
Null |
A null backend |
WebGPU |
The WebGPU backend |
D3D11 |
The D3D11 backend |
D3D12 |
The D3D12 backend |
Metal |
The Metal backend |
Vulkan |
The Vulkan backend |
OpenGL |
The OpenGL backend |
OpenGLES |
The OpenGL ES backend |
Determines how a blend factor is calculated. This factor will be combined with the original color based on the selected blend operation.
See GPUBlendFactor for more information.
Value | Description |
---|---|
Zero |
Factor is set to zero.(0, 0, 0, 0) |
One |
Factor is set to one. (1, 1, 1, 1) |
Src |
Factor is set to the source values. (R_src, G_src, B_src, A_src) |
OneMinusSrc |
Factor is set to one minus source value. (1 - R_src, 1 - G_src, 1 - B_src, 1 - A_src) |
SrcAlpha |
Factor is set to the source alpha value. (A_src, A_src, A_src, A_src) |
OneMinusSrcAlpha |
Factor is set to one minus the source alpha value. (1 - A_src, 1 - A_src, 1 - A_src, 1 - A_src) |
Dst |
Factor is set to the destination value.(R_dst, G_dst, B_dst, A_dst) |
OneMinusDst |
Factor is set to one minus destination value. (1 - R_dst, 1 - G_dst, 1 - B_dst, 1 - A_dst) |
DstAlpha |
Factor is set to the destinatinon alpha value. (A_dst, A_dst, A_dst, A_dst) |
OneMinusDstAlpha |
Factor is set to one minus the destionation alpha value. (1 - A_dst, 1 - A_dst, 1 - A_dst, 1 - A_dst) |
SrcAlphaSaturated |
Factor is set to the source alpha value. (A_src, A_src, A_src, A_src) |
Constant |
Factor is set to the constant value. (See RenderPassEncoder::SetBlendConstant for setting of the constant value.) (R_const, G_const, B_const, A_const) |
OneMinusConstant |
Factor is set to one minus the constant value. (See RenderPassEncoder::SetBlendConstant for setting of the constant value.) (1 - R_const, 1 - G_const, 1 - B_const, 1 - A_const) |
The algorithm used to blend source and destination colors.
See GPUBlendOperation for more information.
Value | Description |
---|---|
Add |
Adds the scaled source and scaled destination together.(RGBA_src × RGBA_src_factor) + (RGBA_dst × RGBA_dst_factor) |
Subtract |
Subtracts the scaled destination from the scaled source.(RGBA_src × RGBA_src_factor) - (RGBA_dst × RGBA_dst_factor) |
ReverseSubtract |
Subtracts the scaled source from the scaled destination.(RGBA_dst × RGBA_dst_factor) - (RGBA_src × RGBA_src_factor) |
Min |
Takes the minimum of the source and destination.min(RGBA_src, RGBA_dst) |
Max |
Takes the maximum of the source and destination.max(RGBA_src, RGBA_dst) |
Describes the address space and access mode for the buffer binding. The value used must match up to the address space and access mode set in the corresponding WGSL shader.
See GPUBufferBindingType for more information.
Value | Description |
---|---|
Undefined |
Undefined binding. (Tags the binding as a non-buffer binding) |
Uniform |
Binding in the uniform address space. |
Storage |
Binding in the storage address space with read-write access mode. |
ReadOnlyStorage |
Binding in the storage address space with read access mode. |
Value | Description |
---|---|
Success |
|
Error |
|
Unknown |
|
DeviceLost |
|
DestroyedBeforeCallback |
|
UnmappedBeforeCallback |
Value | Description |
---|---|
Unmapped |
|
Pending |
|
Mapped |
Value | Description |
---|---|
Undefined |
|
Never |
|
Less |
|
LessEqual |
|
Greater |
|
GreaterEqual |
|
Equal |
|
NotEqual |
|
Always |
Value | Description |
---|---|
Success |
|
Error |
|
DeviceLost |
|
Unknown |
Value | Description |
---|---|
Error |
|
Warning |
|
Info |
Value | Description |
---|---|
Beginning |
|
End |
Value | Description |
---|---|
Success |
|
Error |
|
DeviceLost |
|
DeviceDestroyed |
|
Unknown |
Value | Description |
---|---|
None |
|
Front |
|
Back |
Value | Description |
---|---|
Undefined |
|
Destroyed |
Value | Description |
---|---|
Validation |
|
OutOfMemory |
|
Internal |
Value | Description |
---|---|
NoError |
|
Validation |
|
OutOfMemory |
|
Internal |
|
Unknown |
|
DeviceLost |
Value | Description |
---|---|
Rotate0Degrees |
|
Rotate90Degrees |
|
Rotate180Degrees |
|
Rotate270Degrees |
Value | Description |
---|---|
Undefined |
|
DepthClipControl |
|
Depth32FloatStencil8 |
|
TimestampQuery |
|
PipelineStatisticsQuery |
|
TextureCompressionBC |
|
TextureCompressionETC2 |
|
TextureCompressionASTC |
|
IndirectFirstInstance |
|
ShaderF16 |
|
RG11B10UfloatRenderable |
|
DawnShaderFloat16 |
|
DawnInternalUsages |
|
DawnMultiPlanarFormats |
|
DawnNative |
|
ChromiumExperimentalDp4a |
|
TimestampQueryInsidePasses |
Value | Description |
---|---|
Nearest |
|
Linear |
Value | Description |
---|---|
CCW |
|
CW |
Value | Description |
---|---|
Undefined |
|
Uint16 |
|
Uint32 |
Value | Description |
---|---|
Undefined |
|
Clear |
|
Load |
Value | Description |
---|---|
Verbose |
|
Info |
|
Warning |
|
Error |
Value | Description |
---|---|
Nearest |
|
Linear |
Value | Description |
---|---|
VertexShaderInvocations |
|
ClipperInvocations |
|
ClipperPrimitivesOut |
|
FragmentShaderInvocations |
|
ComputeShaderInvocations |
Value | Description |
---|---|
Undefined |
|
LowPower |
|
HighPerformance |
Value | Description |
---|---|
Immediate |
|
Mailbox |
|
Fifo |
Value | Description |
---|---|
PointList |
|
LineList |
|
LineStrip |
|
TriangleList |
|
TriangleStrip |
Value | Description |
---|---|
Occlusion |
|
PipelineStatistics |
|
Timestamp |
Value | Description |
---|---|
Success |
|
Error |
|
Unknown |
|
DeviceLost |
Value | Description |
---|---|
Beginning |
|
End |
Value | Description |
---|---|
Success |
|
Unavailable |
|
Error |
|
Unknown |
Value | Description |
---|---|
Success |
|
Error |
|
Unknown |
Value | Description |
---|---|
Invalid |
|
SurfaceDescriptorFromMetalLayer |
|
SurfaceDescriptorFromWindowsHWND |
|
SurfaceDescriptorFromXlibWindow |
|
SurfaceDescriptorFromCanvasHTMLSelector |
|
ShaderModuleSPIRVDescriptor |
|
ShaderModuleWGSLDescriptor |
|
PrimitiveDepthClipControl |
|
SurfaceDescriptorFromWaylandSurface |
|
SurfaceDescriptorFromAndroidNativeWindow |
|
SurfaceDescriptorFromXcbWindow |
|
SurfaceDescriptorFromWindowsCoreWindow |
|
ExternalTextureBindingEntry |
|
ExternalTextureBindingLayout |
|
SurfaceDescriptorFromWindowsSwapChainPanel |
|
RenderPassDescriptorMaxDrawCount |
|
DawnTextureInternalUsageDescriptor |
|
DawnTogglesDeviceDescriptor |
|
DawnEncoderInternalUsageDescriptor |
|
DawnInstanceDescriptor |
|
DawnCacheDeviceDescriptor |
|
DawnAdapterPropertiesPowerPreference |
|
DawnBufferDescriptorErrorInfoFromWireClient |
Value | Description |
---|---|
Undefined |
|
Filtering |
|
NonFiltering |
|
Comparison |
Value | Description |
---|---|
Keep |
|
Zero |
|
Replace |
|
Invert |
|
IncrementClamp |
|
DecrementClamp |
|
IncrementWrap |
|
DecrementWrap |
Value | Description |
---|---|
Undefined |
|
WriteOnly |
Value | Description |
---|---|
Undefined |
|
Store |
|
Discard |
Value | Description |
---|---|
All |
|
StencilOnly |
|
DepthOnly |
|
Plane0Only |
|
Plane1Only |
Value | Description |
---|---|
Float |
|
Sint |
|
Uint |
|
DepthComparison |
Value | Description |
---|---|
1D |
|
2D |
|
3D |
Value | Description |
---|---|
Undefined |
|
R8Unorm |
|
R8Snorm |
|
R8Uint |
|
R8Sint |
|
R16Uint |
|
R16Sint |
|
R16Float |
|
RG8Unorm |
|
RG8Snorm |
|
RG8Uint |
|
RG8Sint |
|
R32Float |
|
R32Uint |
|
R32Sint |
|
RG16Uint |
|
RG16Sint |
|
RG16Float |
|
RGBA8Unorm |
|
RGBA8UnormSrgb |
|
RGBA8Snorm |
|
RGBA8Uint |
|
RGBA8Sint |
|
BGRA8Unorm |
|
BGRA8UnormSrgb |
|
RGB10A2Unorm |
|
RG11B10Ufloat |
|
RGB9E5Ufloat |
|
RG32Float |
|
RG32Uint |
|
RG32Sint |
|
RGBA16Uint |
|
RGBA16Sint |
|
RGBA16Float |
|
RGBA32Float |
|
RGBA32Uint |
|
RGBA32Sint |
|
Stencil8 |
|
Depth16Unorm |
|
Depth24Plus |
|
Depth24PlusStencil8 |
|
Depth32Float |
|
Depth32FloatStencil8 |
|
BC1RGBAUnorm |
|
BC1RGBAUnormSrgb |
|
BC2RGBAUnorm |
|
BC2RGBAUnormSrgb |
|
BC3RGBAUnorm |
|
BC3RGBAUnormSrgb |
|
BC4RUnorm |
|
BC4RSnorm |
|
BC5RGUnorm |
|
BC5RGSnorm |
|
BC6HRGBUfloat |
|
BC6HRGBFloat |
|
BC7RGBAUnorm |
|
BC7RGBAUnormSrgb |
|
ETC2RGB8Unorm |
|
ETC2RGB8UnormSrgb |
|
ETC2RGB8A1Unorm |
|
ETC2RGB8A1UnormSrgb |
|
ETC2RGBA8Unorm |
|
ETC2RGBA8UnormSrgb |
|
EACR11Unorm |
|
EACR11Snorm |
|
EACRG11Unorm |
|
EACRG11Snorm |
|
ASTC4x4Unorm |
|
ASTC4x4UnormSrgb |
|
ASTC5x4Unorm |
|
ASTC5x4UnormSrgb |
|
ASTC5x5Unorm |
|
ASTC5x5UnormSrgb |
|
ASTC6x5Unorm |
|
ASTC6x5UnormSrgb |
|
ASTC6x6Unorm |
|
ASTC6x6UnormSrgb |
|
ASTC8x5Unorm |
|
ASTC8x5UnormSrgb |
|
ASTC8x6Unorm |
|
ASTC8x6UnormSrgb |
|
ASTC8x8Unorm |
|
ASTC8x8UnormSrgb |
|
ASTC10x5Unorm |
|
ASTC10x5UnormSrgb |
|
ASTC10x6Unorm |
|
ASTC10x6UnormSrgb |
|
ASTC10x8Unorm |
|
ASTC10x8UnormSrgb |
|
ASTC10x10Unorm |
|
ASTC10x10UnormSrgb |
|
ASTC12x10Unorm |
|
ASTC12x10UnormSrgb |
|
ASTC12x12Unorm |
|
ASTC12x12UnormSrgb |
|
R8BG8Biplanar420Unorm |
Value | Description |
---|---|
Undefined |
|
Float |
|
UnfilterableFloat |
|
Depth |
|
Sint |
|
Uint |
Value | Description |
---|---|
Undefined |
|
1D |
|
2D |
|
2DArray |
|
Cube |
|
CubeArray |
|
3D |
Value | Description |
---|---|
Undefined |
|
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 |
Value | Description |
---|---|
Vertex |
|
Instance |
|
VertexBufferNotUsed |
The Dawn WebGPU bitmasks, while enum class
s support the various bitwise
operators in order to use them as bitmasks.
Value | Description |
---|---|
None |
|
MapRead |
|
MapWrite |
|
CopySrc |
|
CopyDst |
|
Index |
|
Vertex |
|
Uniform |
|
Storage |
|
Indirect |
|
QueryResolve |
Value | Description |
---|---|
None |
|
Red |
|
Green |
|
Blue |
|
Alpha |
|
All |
Value | Description |
---|---|
None |
|
Read |
|
Write |
Value | Description |
---|---|
None |
|
Vertex |
|
Fragment |
|
Compute |
Determine how a GPUTexture maybe be used after creation.
See GPUTextureUsage for more information.
Value | Description |
---|---|
None |
No usage specified. |
CopySrc |
The texture can be used as the source of a copy operation. |
CopyDst |
The texture can be used as the destination of a copy operation. |
TextureBinding |
The texture can be bound for use as a sampled texture in a shader. |
StorageBinding |
The texture can be bound for use as a storage texture in a shader. |
RenderAttachment |
The texture can be used as a colour or depth/stencil attachment in a render pass. |
Present |
The texture can be used to “present” the texture on screen. |
Creates an instance of the Dawn WebGPU system
Instance CreateInstance(
InstanceDescriptor const* descriptor)
The created Instance.
nullptr
to create a default instance.void (*BufferMapCallback)(
WGPUBufferMapAsyncStatus status,
void * userdata)
void (*CompilationInfoCallback)(
WGPUCompilationInfoRequestStatus status,
WGPUCompilationInfo const* compilationInfo,
void * userdata)
void (*CreateComputePipelineAsyncCallback)(
WGPUCreatePipelineAsyncStatus status,
WGPUComputePipeline pipeline,
char const* message,
void * userdata)
void (*CreateRenderPipelineAsyncCallback)(
WGPUCreatePipelineAsyncStatus status,
WGPURenderPipeline pipeline,
char const* message,
void * userdata)
void (*DeviceLostCallback)(
WGPUDeviceLostReason reason,
char const* message,
void * userdata)
void (*ErrorCallback)(
WGPUErrorType type,
char const* message,
void * userdata)
void (*LoggingCallback)(
WGPULoggingType type,
char const* message,
void * userdata)
void (*Proc)()
void (*QueueWorkDoneCallback)(
WGPUQueueWorkDoneStatus status,
void * userdata)
void (*RequestAdapterCallback)(
WGPURequestAdapterStatus status,
WGPUAdapter adapter,
char const* message,
void * userdata)
void (*RequestDeviceCallback)(
WGPURequestDeviceStatus status,
WGPUDevice device,
char const* message,
void * userdata)
Members | Default | Description |
---|---|---|
ChainedStructOut const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
uint32_t vendorID | The PCIe ID if available but can be other values on systems which do not provide a PCIe ID. | |
char const* vendorName | The name of the vendor of the adapter, if available. Empty string otherwise. | |
char const* architecture | The name of the family or class of GPUs the adapter belongs to, if available. Empty string otherwise. | |
uint32_t deviceID | The vendor-specific device identifier. | |
char const* name | A vendor-specific identifier for the adapter, if available. Empty string otherwise. | |
char const* driverDescription | A human readable string describing the adapter as reported by the driver, if available. Empty string otherwise. | |
AdapterType adapterType | The type of the adapter | |
BackendType backendType | The backend platform used by the adapter |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
BindGroupLayout layout | ||
uint32_t entryCount | ||
BindGroupEntry const* entries |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
uint32_t binding | ||
Buffer buffer | ||
uint64_t offset | 0 |
|
uint64_t size | WGPU_WHOLE_SIZE |
|
Sampler sampler | ||
TextureView textureView |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
uint32_t entryCount | ||
BindGroupLayoutEntry const* entries |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
uint32_t binding | ||
ShaderStage visibility | ||
BufferBindingLayout buffer | ||
SamplerBindingLayout sampler | ||
TextureBindingLayout texture | ||
StorageTextureBindingLayout storageTexture |
Members | Default | Description |
---|---|---|
BlendOperation operation | BlendOperation::Add |
|
BlendFactor srcFactor | BlendFactor::One |
|
BlendFactor dstFactor | BlendFactor::Zero |
Members | Default | Description |
---|---|---|
BlendComponent color | ||
BlendComponent alpha |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
BufferBindingType type | BufferBindingType::Undefined |
|
bool hasDynamicOffset | false |
|
uint64_t minBindingSize | 0 |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
BufferUsage usage | ||
uint64_t size | ||
bool mappedAtCreation | false |
Members | Default | Description |
---|---|---|
double r | ||
double g | ||
double b | ||
double a |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
TextureFormat format | ||
BlendState const* blend | ||
ColorWriteMask writeMask | ColorWriteMask::All |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
uint32_t messageCount | ||
CompilationMessage const* messages |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* message | ||
CompilationMessageType type | ||
uint64_t lineNum | ||
uint64_t linePos | ||
uint64_t offset | ||
uint64_t length |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
uint32_t timestampWriteCount | 0 |
|
ComputePassTimestampWrite const* timestampWrites |
Members | Default | Description |
---|---|---|
QuerySet querySet | ||
uint32_t queryIndex | ||
ComputePassTimestampLocation location |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
PipelineLayout layout | ||
ProgrammableStageDescriptor compute |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* key | ||
double value |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
bool flipY | false |
|
bool needsColorSpaceConversion | false |
|
AlphaMode srcAlphaMode | AlphaMode::Unpremultiplied |
|
float const* srcTransferFunctionParameters | ||
float const* conversionMatrix | ||
float const* dstTransferFunctionParameters | ||
AlphaMode dstAlphaMode | AlphaMode::Unpremultiplied |
|
bool internalUsage | false |
Members | Default | Description |
---|---|---|
ChainedStructOut const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::DawnAdapterPropertiesPowerPreference |
Structure type |
PowerPreference powerPreference | PowerPreference::Undefined |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::DawnBufferDescriptorErrorInfoFromWireClient |
Structure type |
bool outOfMemory | false |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::DawnCacheDeviceDescriptor |
Structure type |
char const* isolationKey | "" |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::DawnEncoderInternalUsageDescriptor |
Structure type |
bool useInternalUsages | false |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::DawnInstanceDescriptor |
Structure type |
uint32_t additionalRuntimeSearchPathsCount | 0 |
|
char const*const* additionalRuntimeSearchPaths |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::DawnTextureInternalUsageDescriptor |
Structure type |
TextureUsage internalUsage | TextureUsage::None |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::DawnTogglesDeviceDescriptor |
Structure type |
uint32_t forceEnabledTogglesCount | 0 |
|
char const*const* forceEnabledToggles | ||
uint32_t forceDisabledTogglesCount | 0 |
|
char const*const* forceDisabledToggles |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
TextureFormat format | ||
bool depthWriteEnabled | false |
|
CompareFunction depthCompare | CompareFunction::Always |
|
StencilFaceState stencilFront | ||
StencilFaceState stencilBack | ||
uint32_t stencilReadMask | 0xFFFFFFFF |
|
uint32_t stencilWriteMask | 0xFFFFFFFF |
|
int32_t depthBias | 0 |
|
float depthBiasSlopeScale | 0.0f |
|
float depthBiasClamp | 0.0f |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
uint32_t requiredFeaturesCount | 0 |
|
FeatureName const* requiredFeatures | FeatureName::Nullptr |
|
RequiredLimits const* requiredLimits | ||
QueueDescriptor defaultQueue |
Members | Default | Description |
---|---|---|
uint32_t width | 0 |
|
uint32_t height | 1 |
Members | Default | Description |
---|---|---|
uint32_t width | ||
uint32_t height | 1 |
|
uint32_t depthOrArrayLayers | 1 |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::ExternalTextureBindingEntry |
Structure type |
ExternalTexture externalTexture |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::ExternalTextureBindingLayout |
Structure type |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
TextureView plane0 | ||
TextureView plane1 | ||
Origin2D visibleOrigin | ||
Extent2D visibleSize | ||
bool doYuvToRgbConversionOnly | false |
|
float const* yuvToRgbConversionMatrix | ||
float const* srcTransferFunctionParameters | ||
float const* dstTransferFunctionParameters | ||
float const* gamutConversionMatrix | ||
bool flipY | false |
|
ExternalTextureRotation rotation | ExternalTextureRotation::Rotate0Degrees |
|
ExternalTextureVisibleRect visibleRect |
Members | Default | Description |
---|---|---|
float x | 0.0 |
|
float y | 0.0 |
|
float width | 1.0 |
|
float height | 1.0 |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
ShaderModule module | ||
char const* entryPoint | ||
uint32_t constantCount | 0 |
|
ConstantEntry const* constants | ||
uint32_t targetCount | ||
ColorTargetState const* targets |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
TextureDataLayout layout | ||
Buffer buffer |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
ExternalTexture externalTexture | ||
Origin3D origin |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
Texture texture | ||
uint32_t mipLevel | 0 |
|
Origin3D origin | ||
TextureAspect aspect | TextureAspect::All |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
Members | Default | Description |
---|---|---|
uint32_t maxTextureDimension1D | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxTextureDimension2D | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxTextureDimension3D | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxTextureArrayLayers | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxBindGroups | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxBindingsPerBindGroup | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxDynamicUniformBuffersPerPipelineLayout | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxDynamicStorageBuffersPerPipelineLayout | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxSampledTexturesPerShaderStage | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxSamplersPerShaderStage | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxStorageBuffersPerShaderStage | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxStorageTexturesPerShaderStage | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxUniformBuffersPerShaderStage | WGPU_LIMIT_U32_UNDEFINED |
|
uint64_t maxUniformBufferBindingSize | WGPU_LIMIT_U64_UNDEFINED |
|
uint64_t maxStorageBufferBindingSize | WGPU_LIMIT_U64_UNDEFINED |
|
uint32_t minUniformBufferOffsetAlignment | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t minStorageBufferOffsetAlignment | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxVertexBuffers | WGPU_LIMIT_U32_UNDEFINED |
|
uint64_t maxBufferSize | WGPU_LIMIT_U64_UNDEFINED |
|
uint32_t maxVertexAttributes | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxVertexBufferArrayStride | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxInterStageShaderComponents | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxInterStageShaderVariables | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxColorAttachments | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxColorAttachmentBytesPerSample | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxComputeWorkgroupStorageSize | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxComputeInvocationsPerWorkgroup | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxComputeWorkgroupSizeX | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxComputeWorkgroupSizeY | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxComputeWorkgroupSizeZ | WGPU_LIMIT_U32_UNDEFINED |
|
uint32_t maxComputeWorkgroupsPerDimension | WGPU_LIMIT_U32_UNDEFINED |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
uint32_t count | 1 |
|
uint32_t mask | 0xFFFFFFFF |
|
bool alphaToCoverageEnabled | false |
Members | Default | Description |
---|---|---|
uint32_t x | 0 |
|
uint32_t y | 0 |
Members | Default | Description |
---|---|---|
uint32_t x | 0 |
|
uint32_t y | 0 |
|
uint32_t z | 0 |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
uint32_t bindGroupLayoutCount | ||
BindGroupLayout const* bindGroupLayouts |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::PrimitiveDepthClipControl |
Structure type |
bool unclippedDepth | false |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
PrimitiveTopology topology | PrimitiveTopology::TriangleList |
|
IndexFormat stripIndexFormat | IndexFormat::Undefined |
|
FrontFace frontFace | FrontFace::CCW |
|
CullMode cullMode | CullMode::None |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
ShaderModule module | ||
char const* entryPoint | ||
uint32_t constantCount | 0 |
|
ConstantEntry const* constants |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
QueryType type | ||
uint32_t count | ||
PipelineStatisticName const* pipelineStatistics | ||
uint32_t pipelineStatisticsCount | 0 |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
uint32_t colorFormatsCount | ||
TextureFormat const* colorFormats | ||
TextureFormat depthStencilFormat | TextureFormat::Undefined |
|
uint32_t sampleCount | 1 |
|
bool depthReadOnly | false |
|
bool stencilReadOnly | false |
Members | Default | Description |
---|---|---|
TextureView view | ||
TextureView resolveTarget | ||
LoadOp loadOp | ||
StoreOp storeOp | ||
Color clearColor | Color::{NAN,NAN,NAN,NAN} |
|
Color clearValue |
Members | Default | Description |
---|---|---|
TextureView view | ||
LoadOp depthLoadOp | LoadOp::Undefined |
|
StoreOp depthStoreOp | StoreOp::Undefined |
|
float clearDepth | NAN |
|
float depthClearValue | 0 |
|
bool depthReadOnly | false |
|
LoadOp stencilLoadOp | LoadOp::Undefined |
|
StoreOp stencilStoreOp | StoreOp::Undefined |
|
uint32_t clearStencil | 0 |
|
uint32_t stencilClearValue | 0 |
|
bool stencilReadOnly | false |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
uint32_t colorAttachmentCount | ||
RenderPassColorAttachment const* colorAttachments | ||
RenderPassDepthStencilAttachment const* depthStencilAttachment | ||
QuerySet occlusionQuerySet | ||
uint32_t timestampWriteCount | 0 |
|
RenderPassTimestampWrite const* timestampWrites |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::RenderPassDescriptorMaxDrawCount |
Structure type |
uint64_t maxDrawCount | 50000000 |
Members | Default | Description |
---|---|---|
QuerySet querySet | ||
uint32_t queryIndex | ||
RenderPassTimestampLocation location |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
PipelineLayout layout | ||
VertexState vertex | ||
PrimitiveState primitive | ||
DepthStencilState const* depthStencil | ||
MultisampleState multisample | ||
FragmentState const* fragment |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
Surface compatibleSurface | ||
PowerPreference powerPreference | PowerPreference::Undefined |
|
bool forceFallbackAdapter | false |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
Limits limits |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SamplerBindingType type | SamplerBindingType::Undefined |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
AddressMode addressModeU | AddressMode::ClampToEdge |
|
AddressMode addressModeV | AddressMode::ClampToEdge |
|
AddressMode addressModeW | AddressMode::ClampToEdge |
|
FilterMode magFilter | FilterMode::Nearest |
|
FilterMode minFilter | FilterMode::Nearest |
|
FilterMode mipmapFilter | FilterMode::Nearest |
|
MipmapFilterMode mipmapFilter | MipmapFilterMode::Nearest |
|
float lodMinClamp | 0.0f |
|
float lodMaxClamp | 1000.0f |
|
CompareFunction compare | CompareFunction::Undefined |
|
uint16_t maxAnisotropy | 1 |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::ShaderModuleSPIRVDescriptor |
Structure type |
uint32_t codeSize | ||
uint32_t const* code |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::ShaderModuleWGSLDescriptor |
Structure type |
char const* source | ||
char const* code |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* entryPoint | ||
PipelineLayout layout |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
uint32_t hintCount | 0 |
|
ShaderModuleCompilationHint const* hints |
Members | Default | Description |
---|---|---|
CompareFunction compare | CompareFunction::Always |
|
StencilOperation failOp | StencilOperation::Keep |
|
StencilOperation depthFailOp | StencilOperation::Keep |
|
StencilOperation passOp | StencilOperation::Keep |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
StorageTextureAccess access | StorageTextureAccess::Undefined |
|
TextureFormat format | TextureFormat::Undefined |
|
TextureViewDimension viewDimension | TextureViewDimension::Undefined |
Members | Default | Description |
---|---|---|
ChainedStructOut const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
Limits limits |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::SurfaceDescriptorFromAndroidNativeWindow |
Structure type |
void * window |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::SurfaceDescriptorFromCanvasHTMLSelector |
Structure type |
char const* selector |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::SurfaceDescriptorFromMetalLayer |
Structure type |
void * layer |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::SurfaceDescriptorFromWaylandSurface |
Structure type |
void * display | ||
void * surface |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::SurfaceDescriptorFromWindowsHWND |
Structure type |
void * hinstance | ||
void * hwnd |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::SurfaceDescriptorFromWindowsCoreWindow |
Structure type |
void * coreWindow |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::SurfaceDescriptorFromWindowsSwapChainPanel |
Structure type |
void * swapChainPanel |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::SurfaceDescriptorFromXcbWindow |
Structure type |
void * connection | ||
uint32_t window |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
SType stype |
SType::SurfaceDescriptorFromXlibWindow |
Structure type |
void * display | ||
uint32_t window |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
TextureUsage usage | ||
TextureFormat format | ||
uint32_t width | ||
uint32_t height | ||
PresentMode presentMode | ||
uint64_t implementation | 0 |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
TextureSampleType sampleType | TextureSampleType::Undefined |
|
TextureViewDimension viewDimension | TextureViewDimension::Undefined |
|
bool multisampled | false |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
uint64_t offset | 0 |
|
uint32_t bytesPerRow | WGPU_COPY_STRIDE_UNDEFINED |
|
uint32_t rowsPerImage | WGPU_COPY_STRIDE_UNDEFINED |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
TextureUsage usage | ||
TextureDimension dimension | TextureDimension::2D |
|
Extent3D size | ||
TextureFormat format | ||
uint32_t mipLevelCount | 1 |
|
uint32_t sampleCount | 1 |
|
uint32_t viewFormatCount | 0 |
|
TextureFormat const* viewFormats |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
char const* label | ||
TextureFormat format | TextureFormat::Undefined |
|
TextureViewDimension dimension | TextureViewDimension::Undefined |
|
uint32_t baseMipLevel | 0 |
|
uint32_t mipLevelCount | WGPU_MIP_LEVEL_COUNT_UNDEFINED |
|
uint32_t baseArrayLayer | 0 |
|
uint32_t arrayLayerCount | WGPU_ARRAY_LAYER_COUNT_UNDEFINED |
|
TextureAspect aspect | TextureAspect::All |
Members | Default | Description |
---|---|---|
VertexFormat format | ||
uint64_t offset | ||
uint32_t shaderLocation |
Members | Default | Description |
---|---|---|
uint64_t arrayStride | ||
VertexStepMode stepMode | VertexStepMode::Vertex |
|
uint32_t attributeCount | ||
VertexAttribute const* attributes |
Members | Default | Description |
---|---|---|
ChainedStruct const* nextInChain |
nullptr |
Pointer to next chained structure. Maybe nullptr . |
ShaderModule module | ||
char const* entryPoint | ||
uint32_t constantCount | 0 |
|
ConstantEntry const* constants | ||
uint32_t bufferCount | 0 |
|
VertexBufferLayout const* buffers |
An adapter identifies an implemention of WebGPU on the system.
See Adapters for more information.
Retrieves the limits which can be used with this adapter.
bool GetLimits(
SupportedLimits * limits)
Returns true if the limits were successfully retrieved.
void RequestDevice(
DeviceDescriptor const* descriptor,
RequestDeviceCallback callback,
void * userdata)
void SetLabel(
char const* label)
void SetLabel(
char const* label)
void Destroy()
void const * GetConstMappedRange(
size_t offset,
size_t size)
void * GetMappedRange(
size_t offset,
size_t size)
uint64_t GetSize()
void MapAsync(
MapMode mode,
size_t offset,
size_t size,
BufferMapCallback callback,
void * userdata)
void SetLabel(
char const* label)
void Unmap()
void SetLabel(
char const* label)
ComputePassEncoder BeginComputePass(
ComputePassDescriptor const* descriptor)
RenderPassEncoder BeginRenderPass(
RenderPassDescriptor const* descriptor)
void ClearBuffer(
Buffer buffer,
uint64_t offset,
uint64_t size)
void CopyBufferToBuffer(
Buffer source,
uint64_t sourceOffset,
Buffer destination,
uint64_t destinationOffset,
uint64_t size)
void CopyBufferToTexture(
ImageCopyBuffer const* source,
ImageCopyTexture const* destination,
Extent3D const* copySize)
void CopyTextureToBuffer(
ImageCopyTexture const* source,
ImageCopyBuffer const* destination,
Extent3D const* copySize)
void CopyTextureToTexture(
ImageCopyTexture const* source,
ImageCopyTexture const* destination,
Extent3D const* copySize)
void CopyTextureToTextureInternal(
ImageCopyTexture const* source,
ImageCopyTexture const* destination,
Extent3D const* copySize)
CommandBuffer Finish(
CommandBufferDescriptor const* descriptor)
void InjectValidationError(
char const* message)
void InsertDebugMarker(
char const* markerLabel)
void PopDebugGroup()
void PushDebugGroup(
char const* groupLabel)
void ResolveQuerySet(
QuerySet querySet,
uint32_t firstQuery,
uint32_t queryCount,
Buffer destination,
uint64_t destinationOffset)
void SetLabel(
char const* label)
void WriteBuffer(
Buffer buffer,
uint64_t bufferOffset,
uint8_t const* data,
uint64_t size)
void WriteTimestamp(
QuerySet querySet,
uint32_t queryIndex)
void BeginPipelineStatisticsQuery(
QuerySet querySet,
uint32_t queryIndex)
void Dispatch(
uint32_t workgroupCountX,
uint32_t workgroupCountY,
uint32_t workgroupCountZ)
void DispatchIndirect(
Buffer indirectBuffer,
uint64_t indirectOffset)
void DispatchWorkgroups(
uint32_t workgroupCountX,
uint32_t workgroupCountY,
uint32_t workgroupCountZ)
void DispatchWorkgroupsIndirect(
Buffer indirectBuffer,
uint64_t indirectOffset)
void End()
void EndPass()
void EndPipelineStatisticsQuery()
void InsertDebugMarker(
char const* markerLabel)
void PopDebugGroup()
void PushDebugGroup(
char const* groupLabel)
void SetBindGroup(
uint32_t groupIndex,
BindGroup group,
uint32_t dynamicOffsetCount,
uint32_t const* dynamicOffsets)
void SetLabel(
char const* label)
void WriteTimestamp(
QuerySet querySet,
uint32_t queryIndex)
BindGroupLayout GetBindGroupLayout(
uint32_t groupIndex)
void SetLabel(
char const* label)
BindGroup CreateBindGroup(
BindGroupDescriptor const* descriptor)
BindGroupLayout CreateBindGroupLayout(
BindGroupLayoutDescriptor const* descriptor)
CommandEncoder CreateCommandEncoder(
CommandEncoderDescriptor const* descriptor)
ComputePipeline CreateComputePipeline(
ComputePipelineDescriptor const* descriptor)
void CreateComputePipelineAsync(
ComputePipelineDescriptor const* descriptor,
CreateComputePipelineAsyncCallback callback,
void * userdata)
Buffer CreateErrorBuffer(
BufferDescriptor const* descriptor)
Texture CreateErrorTexture(
TextureDescriptor const* descriptor)
ExternalTexture CreateExternalTexture(
ExternalTextureDescriptor const* externalTextureDescriptor)
PipelineLayout CreatePipelineLayout(
PipelineLayoutDescriptor const* descriptor)
QuerySet CreateQuerySet(
QuerySetDescriptor const* descriptor)
RenderBundleEncoder CreateRenderBundleEncoder(
RenderBundleEncoderDescriptor const* descriptor)
RenderPipeline CreateRenderPipeline(
RenderPipelineDescriptor const* descriptor)
void CreateRenderPipelineAsync(
RenderPipelineDescriptor const* descriptor,
CreateRenderPipelineAsyncCallback callback,
void * userdata)
Sampler CreateSampler(
SamplerDescriptor const* descriptor)
ShaderModule CreateShaderModule(
ShaderModuleDescriptor const* descriptor)
SwapChain CreateSwapChain(
Surface surface,
SwapChainDescriptor const* descriptor)
SwapChain CreateSwapChain(
Surface surface,
SwapChainDescriptor const* descriptor)
Texture CreateTexture(
TextureDescriptor const* descriptor)
void Destroy()
bool PopErrorScope(
ErrorCallback callback,
void * userdata)
void SetDeviceLostCallback(
DeviceLostCallback callback,
void * userdata)
void SetLabel(
char const* label)
void SetLoggingCallback(
LoggingCallback callback,
void * userdata)
void SetUncapturedErrorCallback(
ErrorCallback callback,
void * userdata)
void Tick()
void Destroy()
void SetLabel(
char const* label)
Surface CreateSurface(
SurfaceDescriptor const* descriptor)
void ProcessEvents()
void RequestAdapter(
RequestAdapterOptions const* options,
RequestAdapterCallback callback,
void * userdata)
void SetLabel(
char const* label)
void Destroy()
uint32_t GetCount()
void SetLabel(
char const* label)
void CopyExternalTextureForBrowser(
ImageCopyExternalTexture const* source,
ImageCopyTexture const* destination,
Extent3D const* copySize,
CopyTextureForBrowserOptions const* options)
void CopyTextureForBrowser(
ImageCopyTexture const* source,
ImageCopyTexture const* destination,
Extent3D const* copySize,
CopyTextureForBrowserOptions const* options)
void OnSubmittedWorkDone(
uint64_t signalValue,
QueueWorkDoneCallback callback,
void * userdata)
void OnSubmittedWorkDone(
QueueWorkDoneCallback callback,
void * userdata)
void SetLabel(
char const* label)
void Submit(
uint32_t commandCount,
CommandBuffer const* commands)
void WriteBuffer(
Buffer buffer,
uint64_t bufferOffset,
void const* data,
size_t size)
void WriteTexture(
ImageCopyTexture const* destination,
void const* data,
size_t dataSize,
TextureDataLayout const* dataLayout,
Extent3D const* writeSize)
void Draw(
uint32_t vertexCount,
uint32_t instanceCount,
uint32_t firstVertex,
uint32_t firstInstance)
void DrawIndexed(
uint32_t indexCount,
uint32_t instanceCount,
uint32_t firstIndex,
int32_t baseVertex,
uint32_t firstInstance)
void DrawIndexedIndirect(
Buffer indirectBuffer,
uint64_t indirectOffset)
void DrawIndirect(
Buffer indirectBuffer,
uint64_t indirectOffset)
void InsertDebugMarker(
char const* markerLabel)
void PopDebugGroup()
void PushDebugGroup(
char const* groupLabel)
void SetBindGroup(
uint32_t groupIndex,
BindGroup group,
uint32_t dynamicOffsetCount,
uint32_t const* dynamicOffsets)
void SetIndexBuffer(
Buffer buffer,
IndexFormat format,
uint64_t offset,
uint64_t size)
void SetLabel(
char const* label)
void SetVertexBuffer(
uint32_t slot,
Buffer buffer,
uint64_t offset,
uint64_t size)
void BeginOcclusionQuery(
uint32_t queryIndex)
void BeginPipelineStatisticsQuery(
QuerySet querySet,
uint32_t queryIndex)
void Draw(
uint32_t vertexCount,
uint32_t instanceCount,
uint32_t firstVertex,
uint32_t firstInstance)
void DrawIndexed(
uint32_t indexCount,
uint32_t instanceCount,
uint32_t firstIndex,
int32_t baseVertex,
uint32_t firstInstance)
void DrawIndexedIndirect(
Buffer indirectBuffer,
uint64_t indirectOffset)
void DrawIndirect(
Buffer indirectBuffer,
uint64_t indirectOffset)
void End()
void EndOcclusionQuery()
void EndPass()
void EndPipelineStatisticsQuery()
void ExecuteBundles(
uint32_t bundleCount,
RenderBundle const* bundles)
void InsertDebugMarker(
char const* markerLabel)
void PopDebugGroup()
void PushDebugGroup(
char const* groupLabel)
void SetBindGroup(
uint32_t groupIndex,
BindGroup group,
uint32_t dynamicOffsetCount,
uint32_t const* dynamicOffsets)
void SetIndexBuffer(
Buffer buffer,
IndexFormat format,
uint64_t offset,
uint64_t size)
void SetLabel(
char const* label)
void SetScissorRect(
uint32_t x,
uint32_t y,
uint32_t width,
uint32_t height)
void SetStencilReference(
uint32_t reference)
void SetVertexBuffer(
uint32_t slot,
Buffer buffer,
uint64_t offset,
uint64_t size)
void SetViewport(
float x,
float y,
float width,
float height,
float minDepth,
float maxDepth)
void WriteTimestamp(
QuerySet querySet,
uint32_t queryIndex)
BindGroupLayout GetBindGroupLayout(
uint32_t groupIndex)
void SetLabel(
char const* label)
void SetLabel(
char const* label)
void GetCompilationInfo(
CompilationInfoCallback callback,
void * userdata)
void SetLabel(
char const* label)
void Configure(
TextureFormat format,
TextureUsage allowedUsage,
uint32_t width,
uint32_t height)
void Present()
TextureView CreateView(
TextureViewDescriptor const* descriptor)
void Destroy()
uint32_t GetDepthOrArrayLayers()
uint32_t GetHeight()
uint32_t GetMipLevelCount()
uint32_t GetSampleCount()
uint32_t GetWidth()
void SetLabel(
char const* label)
void SetLabel(
char const* label)