WebGPU Native  v0.1.0
The WebGPU C API
Loading...
Searching...
No Matches
Bitflags

Enum used as bit flags. More...

Typedefs

typedef enum WGPUBufferUsage WGPUBufferUsage
 
typedef WGPUFlags WGPUBufferUsageFlags
 
typedef enum WGPUColorWriteMask WGPUColorWriteMask
 
typedef WGPUFlags WGPUColorWriteMaskFlags
 
typedef enum WGPUMapMode WGPUMapMode
 
typedef WGPUFlags WGPUMapModeFlags
 
typedef enum WGPUShaderStage WGPUShaderStage
 
typedef WGPUFlags WGPUShaderStageFlags
 
typedef enum WGPUTextureUsage WGPUTextureUsage
 
typedef WGPUFlags WGPUTextureUsageFlags
 

Enumerations

enum  WGPUBufferUsage {
  WGPUBufferUsage_None = 0x00000000 ,
  WGPUBufferUsage_MapRead = 0x00000001 ,
  WGPUBufferUsage_MapWrite = 0x00000002 ,
  WGPUBufferUsage_CopySrc = 0x00000004 ,
  WGPUBufferUsage_CopyDst = 0x00000008 ,
  WGPUBufferUsage_Index = 0x00000010 ,
  WGPUBufferUsage_Vertex = 0x00000020 ,
  WGPUBufferUsage_Uniform = 0x00000040 ,
  WGPUBufferUsage_Storage = 0x00000080 ,
  WGPUBufferUsage_Indirect = 0x00000100 ,
  WGPUBufferUsage_QueryResolve = 0x00000200 ,
  WGPUBufferUsage_Force32 = 0x7FFFFFFF
}
 
enum  WGPUColorWriteMask {
  WGPUColorWriteMask_None = 0x00000000 ,
  WGPUColorWriteMask_Red = 0x00000001 ,
  WGPUColorWriteMask_Green = 0x00000002 ,
  WGPUColorWriteMask_Blue = 0x00000004 ,
  WGPUColorWriteMask_Alpha = 0x00000008 ,
  WGPUColorWriteMask_All = WGPUColorWriteMask_None | WGPUColorWriteMask_Red | WGPUColorWriteMask_Green | WGPUColorWriteMask_Blue | WGPUColorWriteMask_Alpha ,
  WGPUColorWriteMask_Force32 = 0x7FFFFFFF
}
 
enum  WGPUMapMode {
  WGPUMapMode_None = 0x00000000 ,
  WGPUMapMode_Read = 0x00000001 ,
  WGPUMapMode_Write = 0x00000002 ,
  WGPUMapMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUShaderStage {
  WGPUShaderStage_None = 0x00000000 ,
  WGPUShaderStage_Vertex = 0x00000001 ,
  WGPUShaderStage_Fragment = 0x00000002 ,
  WGPUShaderStage_Compute = 0x00000004 ,
  WGPUShaderStage_Force32 = 0x7FFFFFFF
}
 
enum  WGPUTextureUsage {
  WGPUTextureUsage_None = 0x00000000 ,
  WGPUTextureUsage_CopySrc = 0x00000001 ,
  WGPUTextureUsage_CopyDst = 0x00000002 ,
  WGPUTextureUsage_TextureBinding = 0x00000004 ,
  WGPUTextureUsage_StorageBinding = 0x00000008 ,
  WGPUTextureUsage_RenderAttachment = 0x00000010 ,
  WGPUTextureUsage_Force32 = 0x7FFFFFFF
}
 

Detailed Description

Enum used as bit flags.

Typedef Documentation

◆ WGPUBufferUsageFlags

typedef WGPUFlags WGPUBufferUsageFlags

Definition at line 733 of file webgpu.h.

◆ WGPUColorWriteMaskFlags

typedef WGPUFlags WGPUColorWriteMaskFlags

Definition at line 744 of file webgpu.h.

◆ WGPUMapModeFlags

typedef WGPUFlags WGPUMapModeFlags

Definition at line 752 of file webgpu.h.

◆ WGPUShaderStageFlags

typedef WGPUFlags WGPUShaderStageFlags

Definition at line 761 of file webgpu.h.

◆ WGPUTextureUsageFlags

typedef WGPUFlags WGPUTextureUsageFlags

Definition at line 772 of file webgpu.h.

Enumeration Type Documentation

◆ WGPUBufferUsage

enum WGPUBufferUsage

Definition at line 719 of file webgpu.h.

◆ WGPUColorWriteMask

enum WGPUColorWriteMask

Definition at line 735 of file webgpu.h.

◆ WGPUMapMode

enum WGPUMapMode

Definition at line 746 of file webgpu.h.

◆ WGPUShaderStage

enum WGPUShaderStage

Definition at line 754 of file webgpu.h.

◆ WGPUTextureUsage

enum WGPUTextureUsage

Definition at line 763 of file webgpu.h.