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 1161 of file webgpu.h.

◆ WGPUColorWriteMask

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

Definition at line 1210 of file webgpu.h.

◆ WGPUMapMode

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

Definition at line 1239 of file webgpu.h.

◆ WGPUShaderStage

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

Definition at line 1256 of file webgpu.h.

◆ WGPUTextureUsage

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

Definition at line 1277 of file webgpu.h.

Variable Documentation

◆ WGPUBufferUsage_None

const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000
static

0x0000000000000000.

Definition at line 1165 of file webgpu.h.

◆ WGPUBufferUsage_MapRead

const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001
static

0x0000000000000001.

Definition at line 1169 of file webgpu.h.

◆ WGPUBufferUsage_MapWrite

const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002
static

0x0000000000000002.

Definition at line 1173 of file webgpu.h.

◆ WGPUBufferUsage_CopySrc

const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004
static

0x0000000000000004.

Definition at line 1177 of file webgpu.h.

◆ WGPUBufferUsage_CopyDst

const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008
static

0x0000000000000008.

Definition at line 1181 of file webgpu.h.

◆ WGPUBufferUsage_Index

const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010
static

0x0000000000000010.

Definition at line 1185 of file webgpu.h.

◆ WGPUBufferUsage_Vertex

const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020
static

0x0000000000000020.

Definition at line 1189 of file webgpu.h.

◆ WGPUBufferUsage_Uniform

const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040
static

0x0000000000000040.

Definition at line 1193 of file webgpu.h.

◆ WGPUBufferUsage_Storage

const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080
static

0x0000000000000080.

Definition at line 1197 of file webgpu.h.

◆ WGPUBufferUsage_Indirect

const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100
static

0x0000000000000100.

Definition at line 1201 of file webgpu.h.

◆ WGPUBufferUsage_QueryResolve

const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200
static

0x0000000000000200.

Definition at line 1205 of file webgpu.h.

◆ WGPUColorWriteMask_None

const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000
static

0x0000000000000000.

Definition at line 1214 of file webgpu.h.

◆ WGPUColorWriteMask_Red

const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001
static

0x0000000000000001.

Definition at line 1218 of file webgpu.h.

◆ WGPUColorWriteMask_Green

const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002
static

0x0000000000000002.

Definition at line 1222 of file webgpu.h.

◆ WGPUColorWriteMask_Blue

const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004
static

0x0000000000000004.

Definition at line 1226 of file webgpu.h.

◆ WGPUColorWriteMask_Alpha

const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008
static

0x0000000000000008.

Definition at line 1230 of file webgpu.h.

◆ WGPUColorWriteMask_All

const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F
static

0x000000000000000F (Red | Green | Blue | Alpha).

Definition at line 1234 of file webgpu.h.

◆ WGPUMapMode_None

const WGPUMapMode WGPUMapMode_None = 0x0000000000000000
static

0x0000000000000000.

Definition at line 1243 of file webgpu.h.

◆ WGPUMapMode_Read

const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001
static

0x0000000000000001.

Definition at line 1247 of file webgpu.h.

◆ WGPUMapMode_Write

const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002
static

0x0000000000000002.

Definition at line 1251 of file webgpu.h.

◆ WGPUShaderStage_None

const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000
static

0x0000000000000000.

Definition at line 1260 of file webgpu.h.

◆ WGPUShaderStage_Vertex

const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001
static

0x0000000000000001.

Definition at line 1264 of file webgpu.h.

◆ WGPUShaderStage_Fragment

const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002
static

0x0000000000000002.

Definition at line 1268 of file webgpu.h.

◆ WGPUShaderStage_Compute

const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004
static

0x0000000000000004.

Definition at line 1272 of file webgpu.h.

◆ WGPUTextureUsage_None

const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000
static

0x0000000000000000.

Definition at line 1281 of file webgpu.h.

◆ WGPUTextureUsage_CopySrc

const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001
static

0x0000000000000001.

Definition at line 1285 of file webgpu.h.

◆ WGPUTextureUsage_CopyDst

const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002
static

0x0000000000000002.

Definition at line 1289 of file webgpu.h.

◆ WGPUTextureUsage_TextureBinding

const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004
static

0x0000000000000004.

Definition at line 1293 of file webgpu.h.

◆ WGPUTextureUsage_StorageBinding

const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008
static

0x0000000000000008.

Definition at line 1297 of file webgpu.h.

◆ WGPUTextureUsage_RenderAttachment

const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010
static

0x0000000000000010.

Definition at line 1301 of file webgpu.h.