WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
Bitflags

Type and constant definitions for bitflag types. More...

Typedefs

typedef WGPUFlags WGPUBufferUsage
 
typedef WGPUFlags WGPUColorWriteMask
 
typedef WGPUFlags WGPUMapMode
 
typedef WGPUFlags WGPUShaderStage
 
typedef WGPUFlags WGPUTextureUsage
 

Variables

static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000
 
static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001
 
static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002
 
static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004
 
static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008
 
static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010
 
static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020
 
static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040
 
static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080
 
static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100
 
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200
 
static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000
 
static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001
 
static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002
 
static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004
 
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008
 
static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F
 
static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000
 
static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001
 
static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002
 
static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000
 
static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001
 
static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002
 
static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004
 
static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000
 
static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001
 
static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002
 
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004
 
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008
 
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010
 

Detailed Description

Type and constant definitions for bitflag types.

Typedef Documentation

◆ WGPUBufferUsage

For reserved non-standard bitflag values, see Bitflag Registry.

Definition at line 1215 of file webgpu.h.

◆ WGPUColorWriteMask

For reserved non-standard bitflag values, see Bitflag Registry.

Definition at line 1266 of file webgpu.h.

◆ WGPUMapMode

For reserved non-standard bitflag values, see Bitflag Registry.

Definition at line 1283 of file webgpu.h.

◆ WGPUShaderStage

For reserved non-standard bitflag values, see Bitflag Registry.

Definition at line 1294 of file webgpu.h.

◆ WGPUTextureUsage

For reserved non-standard bitflag values, see Bitflag Registry.

Definition at line 1306 of file webgpu.h.

Variable Documentation

◆ WGPUBufferUsage_None

const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000
static

0.

Definition at line 1219 of file webgpu.h.

◆ WGPUBufferUsage_MapRead

const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001
static

The buffer can be mapped on the CPU side in read mode (using WGPUMapMode_Read).

Definition at line 1223 of file webgpu.h.

◆ WGPUBufferUsage_MapWrite

const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002
static

The buffer can be mapped on the CPU side in write mode (using WGPUMapMode_Write).

Note
This usage is not required to set mappedAtCreation to true in WGPUBufferDescriptor.

Definition at line 1229 of file webgpu.h.

◆ WGPUBufferUsage_CopySrc

const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004
static

The buffer can be used as the source of a GPU-side copy operation.

Definition at line 1233 of file webgpu.h.

◆ WGPUBufferUsage_CopyDst

const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008
static

The buffer can be used as the destination of a GPU-side copy operation.

Definition at line 1237 of file webgpu.h.

◆ WGPUBufferUsage_Index

const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010
static

The buffer can be used as an Index buffer when doing indexed drawing in a render pipeline.

Definition at line 1241 of file webgpu.h.

◆ WGPUBufferUsage_Vertex

const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020
static

The buffer can be used as an Vertex buffer when using a render pipeline.

Definition at line 1245 of file webgpu.h.

◆ WGPUBufferUsage_Uniform

const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040
static

The buffer can be bound to a shader as a uniform buffer.

Definition at line 1249 of file webgpu.h.

◆ WGPUBufferUsage_Storage

const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080
static

The buffer can be bound to a shader as a storage buffer.

Definition at line 1253 of file webgpu.h.

◆ WGPUBufferUsage_Indirect

const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100
static

The buffer can store arguments for an indirect draw call.

Definition at line 1257 of file webgpu.h.

◆ WGPUBufferUsage_QueryResolve

const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200
static

The buffer can store the result of a timestamp or occlusion query.

Definition at line 1261 of file webgpu.h.

◆ WGPUColorWriteMask_None

const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000
static

0.

Definition at line 1270 of file webgpu.h.

◆ WGPUColorWriteMask_Red

const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001
static

Definition at line 1271 of file webgpu.h.

◆ WGPUColorWriteMask_Green

const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002
static

Definition at line 1272 of file webgpu.h.

◆ WGPUColorWriteMask_Blue

const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004
static

Definition at line 1273 of file webgpu.h.

◆ WGPUColorWriteMask_Alpha

const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008
static

Definition at line 1274 of file webgpu.h.

◆ WGPUColorWriteMask_All

const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F
static

Red | Green | Blue | Alpha.

Definition at line 1278 of file webgpu.h.

◆ WGPUMapMode_None

const WGPUMapMode WGPUMapMode_None = 0x0000000000000000
static

0.

Definition at line 1287 of file webgpu.h.

◆ WGPUMapMode_Read

const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001
static

Definition at line 1288 of file webgpu.h.

◆ WGPUMapMode_Write

const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002
static

Definition at line 1289 of file webgpu.h.

◆ WGPUShaderStage_None

const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000
static

0.

Definition at line 1298 of file webgpu.h.

◆ WGPUShaderStage_Vertex

const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001
static

Definition at line 1299 of file webgpu.h.

◆ WGPUShaderStage_Fragment

const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002
static

Definition at line 1300 of file webgpu.h.

◆ WGPUShaderStage_Compute

const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004
static

Definition at line 1301 of file webgpu.h.

◆ WGPUTextureUsage_None

const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000
static

0.

Definition at line 1310 of file webgpu.h.

◆ WGPUTextureUsage_CopySrc

const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001
static

Definition at line 1311 of file webgpu.h.

◆ WGPUTextureUsage_CopyDst

const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002
static

Definition at line 1312 of file webgpu.h.

◆ WGPUTextureUsage_TextureBinding

const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004
static

Definition at line 1313 of file webgpu.h.

◆ WGPUTextureUsage_StorageBinding

const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008
static

Definition at line 1314 of file webgpu.h.

◆ WGPUTextureUsage_RenderAttachment

const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010
static

Definition at line 1315 of file webgpu.h.