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

Enums. More...

Typedefs

typedef enum WGPUAdapterType WGPUAdapterType
 
typedef enum WGPUAddressMode WGPUAddressMode
 
typedef enum WGPUBackendType WGPUBackendType
 
typedef enum WGPUBlendFactor WGPUBlendFactor
 
typedef enum WGPUBlendOperation WGPUBlendOperation
 
typedef enum WGPUBufferBindingType WGPUBufferBindingType
 
typedef enum WGPUBufferMapState WGPUBufferMapState
 
typedef enum WGPUCallbackMode WGPUCallbackMode
 
typedef enum WGPUCompareFunction WGPUCompareFunction
 
typedef enum WGPUCompilationInfoRequestStatus WGPUCompilationInfoRequestStatus
 
typedef enum WGPUCompilationMessageType WGPUCompilationMessageType
 
typedef enum WGPUCompositeAlphaMode WGPUCompositeAlphaMode
 
typedef enum WGPUCreatePipelineAsyncStatus WGPUCreatePipelineAsyncStatus
 
typedef enum WGPUCullMode WGPUCullMode
 
typedef enum WGPUDeviceLostReason WGPUDeviceLostReason
 
typedef enum WGPUErrorFilter WGPUErrorFilter
 
typedef enum WGPUErrorType WGPUErrorType
 
typedef enum WGPUFeatureLevel WGPUFeatureLevel
 
typedef enum WGPUFeatureName WGPUFeatureName
 
typedef enum WGPUFilterMode WGPUFilterMode
 
typedef enum WGPUFrontFace WGPUFrontFace
 
typedef enum WGPUIndexFormat WGPUIndexFormat
 
typedef enum WGPULoadOp WGPULoadOp
 
typedef enum WGPUMapAsyncStatus WGPUMapAsyncStatus
 
typedef enum WGPUMipmapFilterMode WGPUMipmapFilterMode
 
typedef enum WGPUOptionalBool WGPUOptionalBool
 
typedef enum WGPUPopErrorScopeStatus WGPUPopErrorScopeStatus
 
typedef enum WGPUPowerPreference WGPUPowerPreference
 
typedef enum WGPUPredefinedColorSpace WGPUPredefinedColorSpace
 
typedef enum WGPUPresentMode WGPUPresentMode
 
typedef enum WGPUPrimitiveTopology WGPUPrimitiveTopology
 
typedef enum WGPUQueryType WGPUQueryType
 
typedef enum WGPUQueueWorkDoneStatus WGPUQueueWorkDoneStatus
 
typedef enum WGPURequestAdapterStatus WGPURequestAdapterStatus
 
typedef enum WGPURequestDeviceStatus WGPURequestDeviceStatus
 
typedef enum WGPUSType WGPUSType
 
typedef enum WGPUSamplerBindingType WGPUSamplerBindingType
 
typedef enum WGPUStatus WGPUStatus
 
typedef enum WGPUStencilOperation WGPUStencilOperation
 
typedef enum WGPUStorageTextureAccess WGPUStorageTextureAccess
 
typedef enum WGPUStoreOp WGPUStoreOp
 
typedef enum WGPUSurfaceGetCurrentTextureStatus WGPUSurfaceGetCurrentTextureStatus
 
typedef enum WGPUTextureAspect WGPUTextureAspect
 
typedef enum WGPUTextureDimension WGPUTextureDimension
 
typedef enum WGPUTextureFormat WGPUTextureFormat
 
typedef enum WGPUTextureSampleType WGPUTextureSampleType
 
typedef enum WGPUTextureViewDimension WGPUTextureViewDimension
 
typedef enum WGPUToneMappingMode WGPUToneMappingMode
 
typedef enum WGPUVertexFormat WGPUVertexFormat
 
typedef enum WGPUVertexStepMode WGPUVertexStepMode
 
typedef enum WGPUWGSLLanguageFeatureName WGPUWGSLLanguageFeatureName
 
typedef enum WGPUWaitStatus WGPUWaitStatus
 

Enumerations

enum  WGPUAdapterType {
  WGPUAdapterType_DiscreteGPU = 0x00000001 ,
  WGPUAdapterType_IntegratedGPU = 0x00000002 ,
  WGPUAdapterType_CPU = 0x00000003 ,
  WGPUAdapterType_Unknown = 0x00000004 ,
  WGPUAdapterType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUAddressMode {
  WGPUAddressMode_Undefined = 0x00000000 ,
  WGPUAddressMode_ClampToEdge = 0x00000001 ,
  WGPUAddressMode_Repeat = 0x00000002 ,
  WGPUAddressMode_MirrorRepeat = 0x00000003 ,
  WGPUAddressMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUBackendType {
  WGPUBackendType_Undefined = 0x00000000 ,
  WGPUBackendType_Null = 0x00000001 ,
  WGPUBackendType_WebGPU = 0x00000002 ,
  WGPUBackendType_D3D11 = 0x00000003 ,
  WGPUBackendType_D3D12 = 0x00000004 ,
  WGPUBackendType_Metal = 0x00000005 ,
  WGPUBackendType_Vulkan = 0x00000006 ,
  WGPUBackendType_OpenGL = 0x00000007 ,
  WGPUBackendType_OpenGLES = 0x00000008 ,
  WGPUBackendType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUBlendFactor {
  WGPUBlendFactor_Undefined = 0x00000000 ,
  WGPUBlendFactor_Zero = 0x00000001 ,
  WGPUBlendFactor_One = 0x00000002 ,
  WGPUBlendFactor_Src = 0x00000003 ,
  WGPUBlendFactor_OneMinusSrc = 0x00000004 ,
  WGPUBlendFactor_SrcAlpha = 0x00000005 ,
  WGPUBlendFactor_OneMinusSrcAlpha = 0x00000006 ,
  WGPUBlendFactor_Dst = 0x00000007 ,
  WGPUBlendFactor_OneMinusDst = 0x00000008 ,
  WGPUBlendFactor_DstAlpha = 0x00000009 ,
  WGPUBlendFactor_OneMinusDstAlpha = 0x0000000A ,
  WGPUBlendFactor_SrcAlphaSaturated = 0x0000000B ,
  WGPUBlendFactor_Constant = 0x0000000C ,
  WGPUBlendFactor_OneMinusConstant = 0x0000000D ,
  WGPUBlendFactor_Src1 = 0x0000000E ,
  WGPUBlendFactor_OneMinusSrc1 = 0x0000000F ,
  WGPUBlendFactor_Src1Alpha = 0x00000010 ,
  WGPUBlendFactor_OneMinusSrc1Alpha = 0x00000011 ,
  WGPUBlendFactor_Force32 = 0x7FFFFFFF
}
 
enum  WGPUBlendOperation {
  WGPUBlendOperation_Undefined = 0x00000000 ,
  WGPUBlendOperation_Add = 0x00000001 ,
  WGPUBlendOperation_Subtract = 0x00000002 ,
  WGPUBlendOperation_ReverseSubtract = 0x00000003 ,
  WGPUBlendOperation_Min = 0x00000004 ,
  WGPUBlendOperation_Max = 0x00000005 ,
  WGPUBlendOperation_Force32 = 0x7FFFFFFF
}
 
enum  WGPUBufferBindingType {
  WGPUBufferBindingType_BindingNotUsed = 0x00000000 ,
  WGPUBufferBindingType_Undefined = 0x00000001 ,
  WGPUBufferBindingType_Uniform = 0x00000002 ,
  WGPUBufferBindingType_Storage = 0x00000003 ,
  WGPUBufferBindingType_ReadOnlyStorage = 0x00000004 ,
  WGPUBufferBindingType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUBufferMapState {
  WGPUBufferMapState_Unmapped = 0x00000001 ,
  WGPUBufferMapState_Pending = 0x00000002 ,
  WGPUBufferMapState_Mapped = 0x00000003 ,
  WGPUBufferMapState_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCallbackMode {
  WGPUCallbackMode_WaitAnyOnly = 0x00000001 ,
  WGPUCallbackMode_AllowProcessEvents = 0x00000002 ,
  WGPUCallbackMode_AllowSpontaneous = 0x00000003 ,
  WGPUCallbackMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCompareFunction {
  WGPUCompareFunction_Undefined = 0x00000000 ,
  WGPUCompareFunction_Never = 0x00000001 ,
  WGPUCompareFunction_Less = 0x00000002 ,
  WGPUCompareFunction_Equal = 0x00000003 ,
  WGPUCompareFunction_LessEqual = 0x00000004 ,
  WGPUCompareFunction_Greater = 0x00000005 ,
  WGPUCompareFunction_NotEqual = 0x00000006 ,
  WGPUCompareFunction_GreaterEqual = 0x00000007 ,
  WGPUCompareFunction_Always = 0x00000008 ,
  WGPUCompareFunction_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCompilationInfoRequestStatus {
  WGPUCompilationInfoRequestStatus_Success = 0x00000001 ,
  WGPUCompilationInfoRequestStatus_InstanceDropped = 0x00000002 ,
  WGPUCompilationInfoRequestStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCompilationMessageType {
  WGPUCompilationMessageType_Error = 0x00000001 ,
  WGPUCompilationMessageType_Warning = 0x00000002 ,
  WGPUCompilationMessageType_Info = 0x00000003 ,
  WGPUCompilationMessageType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCompositeAlphaMode {
  WGPUCompositeAlphaMode_Auto = 0x00000000 ,
  WGPUCompositeAlphaMode_Opaque = 0x00000001 ,
  WGPUCompositeAlphaMode_Premultiplied = 0x00000002 ,
  WGPUCompositeAlphaMode_Unpremultiplied = 0x00000003 ,
  WGPUCompositeAlphaMode_Inherit = 0x00000004 ,
  WGPUCompositeAlphaMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCreatePipelineAsyncStatus {
  WGPUCreatePipelineAsyncStatus_Success = 0x00000001 ,
  WGPUCreatePipelineAsyncStatus_InstanceDropped = 0x00000002 ,
  WGPUCreatePipelineAsyncStatus_ValidationError = 0x00000003 ,
  WGPUCreatePipelineAsyncStatus_InternalError = 0x00000004 ,
  WGPUCreatePipelineAsyncStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCullMode {
  WGPUCullMode_Undefined = 0x00000000 ,
  WGPUCullMode_None = 0x00000001 ,
  WGPUCullMode_Front = 0x00000002 ,
  WGPUCullMode_Back = 0x00000003 ,
  WGPUCullMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUDeviceLostReason {
  WGPUDeviceLostReason_Unknown = 0x00000001 ,
  WGPUDeviceLostReason_Destroyed = 0x00000002 ,
  WGPUDeviceLostReason_InstanceDropped = 0x00000003 ,
  WGPUDeviceLostReason_FailedCreation = 0x00000004 ,
  WGPUDeviceLostReason_Force32 = 0x7FFFFFFF
}
 
enum  WGPUErrorFilter {
  WGPUErrorFilter_Validation = 0x00000001 ,
  WGPUErrorFilter_OutOfMemory = 0x00000002 ,
  WGPUErrorFilter_Internal = 0x00000003 ,
  WGPUErrorFilter_Force32 = 0x7FFFFFFF
}
 
enum  WGPUErrorType {
  WGPUErrorType_NoError = 0x00000001 ,
  WGPUErrorType_Validation = 0x00000002 ,
  WGPUErrorType_OutOfMemory = 0x00000003 ,
  WGPUErrorType_Internal = 0x00000004 ,
  WGPUErrorType_Unknown = 0x00000005 ,
  WGPUErrorType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUFeatureLevel {
  WGPUFeatureLevel_Undefined = 0x00000000 ,
  WGPUFeatureLevel_Compatibility = 0x00000001 ,
  WGPUFeatureLevel_Core = 0x00000002 ,
  WGPUFeatureLevel_Force32 = 0x7FFFFFFF
}
 
enum  WGPUFeatureName {
  WGPUFeatureName_Undefined = 0x00000000 ,
  WGPUFeatureName_DepthClipControl = 0x00000001 ,
  WGPUFeatureName_Depth32FloatStencil8 = 0x00000002 ,
  WGPUFeatureName_TimestampQuery = 0x00000003 ,
  WGPUFeatureName_TextureCompressionBC = 0x00000004 ,
  WGPUFeatureName_TextureCompressionBCSliced3D = 0x00000005 ,
  WGPUFeatureName_TextureCompressionETC2 = 0x00000006 ,
  WGPUFeatureName_TextureCompressionASTC = 0x00000007 ,
  WGPUFeatureName_TextureCompressionASTCSliced3D = 0x00000008 ,
  WGPUFeatureName_IndirectFirstInstance = 0x00000009 ,
  WGPUFeatureName_ShaderF16 = 0x0000000A ,
  WGPUFeatureName_RG11B10UfloatRenderable = 0x0000000B ,
  WGPUFeatureName_BGRA8UnormStorage = 0x0000000C ,
  WGPUFeatureName_Float32Filterable = 0x0000000D ,
  WGPUFeatureName_Float32Blendable = 0x0000000E ,
  WGPUFeatureName_ClipDistances = 0x0000000F ,
  WGPUFeatureName_DualSourceBlending = 0x00000010 ,
  WGPUFeatureName_Subgroups = 0x00000011 ,
  WGPUFeatureName_Force32 = 0x7FFFFFFF
}
 
enum  WGPUFilterMode {
  WGPUFilterMode_Undefined = 0x00000000 ,
  WGPUFilterMode_Nearest = 0x00000001 ,
  WGPUFilterMode_Linear = 0x00000002 ,
  WGPUFilterMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUFrontFace {
  WGPUFrontFace_Undefined = 0x00000000 ,
  WGPUFrontFace_CCW = 0x00000001 ,
  WGPUFrontFace_CW = 0x00000002 ,
  WGPUFrontFace_Force32 = 0x7FFFFFFF
}
 
enum  WGPUIndexFormat {
  WGPUIndexFormat_Undefined = 0x00000000 ,
  WGPUIndexFormat_Uint16 = 0x00000001 ,
  WGPUIndexFormat_Uint32 = 0x00000002 ,
  WGPUIndexFormat_Force32 = 0x7FFFFFFF
}
 
enum  WGPULoadOp {
  WGPULoadOp_Undefined = 0x00000000 ,
  WGPULoadOp_Load = 0x00000001 ,
  WGPULoadOp_Clear = 0x00000002 ,
  WGPULoadOp_Force32 = 0x7FFFFFFF
}
 
enum  WGPUMapAsyncStatus {
  WGPUMapAsyncStatus_Success = 0x00000001 ,
  WGPUMapAsyncStatus_InstanceDropped = 0x00000002 ,
  WGPUMapAsyncStatus_Error = 0x00000003 ,
  WGPUMapAsyncStatus_Aborted = 0x00000004 ,
  WGPUMapAsyncStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUMipmapFilterMode {
  WGPUMipmapFilterMode_Undefined = 0x00000000 ,
  WGPUMipmapFilterMode_Nearest = 0x00000001 ,
  WGPUMipmapFilterMode_Linear = 0x00000002 ,
  WGPUMipmapFilterMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUOptionalBool {
  WGPUOptionalBool_False = 0x00000000 ,
  WGPUOptionalBool_True = 0x00000001 ,
  WGPUOptionalBool_Undefined = 0x00000002 ,
  WGPUOptionalBool_Force32 = 0x7FFFFFFF
}
 
enum  WGPUPopErrorScopeStatus {
  WGPUPopErrorScopeStatus_Success = 0x00000001 ,
  WGPUPopErrorScopeStatus_InstanceDropped = 0x00000002 ,
  WGPUPopErrorScopeStatus_Error = 0x00000003 ,
  WGPUPopErrorScopeStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUPowerPreference {
  WGPUPowerPreference_Undefined = 0x00000000 ,
  WGPUPowerPreference_LowPower = 0x00000001 ,
  WGPUPowerPreference_HighPerformance = 0x00000002 ,
  WGPUPowerPreference_Force32 = 0x7FFFFFFF
}
 
enum  WGPUPredefinedColorSpace {
  WGPUPredefinedColorSpace_SRGB = 0x00000001 ,
  WGPUPredefinedColorSpace_DisplayP3 = 0x00000002 ,
  WGPUPredefinedColorSpace_Force32 = 0x7FFFFFFF
}
 
enum  WGPUPresentMode {
  WGPUPresentMode_Undefined = 0x00000000 ,
  WGPUPresentMode_Fifo = 0x00000001 ,
  WGPUPresentMode_FifoRelaxed = 0x00000002 ,
  WGPUPresentMode_Immediate = 0x00000003 ,
  WGPUPresentMode_Mailbox = 0x00000004 ,
  WGPUPresentMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUPrimitiveTopology {
  WGPUPrimitiveTopology_Undefined = 0x00000000 ,
  WGPUPrimitiveTopology_PointList = 0x00000001 ,
  WGPUPrimitiveTopology_LineList = 0x00000002 ,
  WGPUPrimitiveTopology_LineStrip = 0x00000003 ,
  WGPUPrimitiveTopology_TriangleList = 0x00000004 ,
  WGPUPrimitiveTopology_TriangleStrip = 0x00000005 ,
  WGPUPrimitiveTopology_Force32 = 0x7FFFFFFF
}
 
enum  WGPUQueryType {
  WGPUQueryType_Occlusion = 0x00000001 ,
  WGPUQueryType_Timestamp = 0x00000002 ,
  WGPUQueryType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUQueueWorkDoneStatus {
  WGPUQueueWorkDoneStatus_Success = 0x00000001 ,
  WGPUQueueWorkDoneStatus_InstanceDropped = 0x00000002 ,
  WGPUQueueWorkDoneStatus_Error = 0x00000003 ,
  WGPUQueueWorkDoneStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPURequestAdapterStatus {
  WGPURequestAdapterStatus_Success = 0x00000001 ,
  WGPURequestAdapterStatus_InstanceDropped = 0x00000002 ,
  WGPURequestAdapterStatus_Unavailable = 0x00000003 ,
  WGPURequestAdapterStatus_Error = 0x00000004 ,
  WGPURequestAdapterStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPURequestDeviceStatus {
  WGPURequestDeviceStatus_Success = 0x00000001 ,
  WGPURequestDeviceStatus_InstanceDropped = 0x00000002 ,
  WGPURequestDeviceStatus_Error = 0x00000003 ,
  WGPURequestDeviceStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUSType {
  WGPUSType_ShaderSourceSPIRV = 0x00000001 ,
  WGPUSType_ShaderSourceWGSL = 0x00000002 ,
  WGPUSType_RenderPassMaxDrawCount = 0x00000003 ,
  WGPUSType_SurfaceSourceMetalLayer = 0x00000004 ,
  WGPUSType_SurfaceSourceWindowsHWND = 0x00000005 ,
  WGPUSType_SurfaceSourceXlibWindow = 0x00000006 ,
  WGPUSType_SurfaceSourceWaylandSurface = 0x00000007 ,
  WGPUSType_SurfaceSourceAndroidNativeWindow = 0x00000008 ,
  WGPUSType_SurfaceSourceXCBWindow = 0x00000009 ,
  WGPUSType_SurfaceColorManagement = 0x0000000A ,
  WGPUSType_RequestAdapterWebXROptions = 0x0000000B ,
  WGPUSType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUSamplerBindingType {
  WGPUSamplerBindingType_BindingNotUsed = 0x00000000 ,
  WGPUSamplerBindingType_Undefined = 0x00000001 ,
  WGPUSamplerBindingType_Filtering = 0x00000002 ,
  WGPUSamplerBindingType_NonFiltering = 0x00000003 ,
  WGPUSamplerBindingType_Comparison = 0x00000004 ,
  WGPUSamplerBindingType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUStatus {
  WGPUStatus_Success = 0x00000001 ,
  WGPUStatus_Error = 0x00000002 ,
  WGPUStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUStencilOperation {
  WGPUStencilOperation_Undefined = 0x00000000 ,
  WGPUStencilOperation_Keep = 0x00000001 ,
  WGPUStencilOperation_Zero = 0x00000002 ,
  WGPUStencilOperation_Replace = 0x00000003 ,
  WGPUStencilOperation_Invert = 0x00000004 ,
  WGPUStencilOperation_IncrementClamp = 0x00000005 ,
  WGPUStencilOperation_DecrementClamp = 0x00000006 ,
  WGPUStencilOperation_IncrementWrap = 0x00000007 ,
  WGPUStencilOperation_DecrementWrap = 0x00000008 ,
  WGPUStencilOperation_Force32 = 0x7FFFFFFF
}
 
enum  WGPUStorageTextureAccess {
  WGPUStorageTextureAccess_BindingNotUsed = 0x00000000 ,
  WGPUStorageTextureAccess_Undefined = 0x00000001 ,
  WGPUStorageTextureAccess_WriteOnly = 0x00000002 ,
  WGPUStorageTextureAccess_ReadOnly = 0x00000003 ,
  WGPUStorageTextureAccess_ReadWrite = 0x00000004 ,
  WGPUStorageTextureAccess_Force32 = 0x7FFFFFFF
}
 
enum  WGPUStoreOp {
  WGPUStoreOp_Undefined = 0x00000000 ,
  WGPUStoreOp_Store = 0x00000001 ,
  WGPUStoreOp_Discard = 0x00000002 ,
  WGPUStoreOp_Force32 = 0x7FFFFFFF
}
 
enum  WGPUSurfaceGetCurrentTextureStatus {
  WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal = 0x00000001 ,
  WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal = 0x00000002 ,
  WGPUSurfaceGetCurrentTextureStatus_Timeout = 0x00000003 ,
  WGPUSurfaceGetCurrentTextureStatus_Outdated = 0x00000004 ,
  WGPUSurfaceGetCurrentTextureStatus_Lost = 0x00000005 ,
  WGPUSurfaceGetCurrentTextureStatus_Error = 0x00000006 ,
  WGPUSurfaceGetCurrentTextureStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUTextureAspect {
  WGPUTextureAspect_Undefined = 0x00000000 ,
  WGPUTextureAspect_All = 0x00000001 ,
  WGPUTextureAspect_StencilOnly = 0x00000002 ,
  WGPUTextureAspect_DepthOnly = 0x00000003 ,
  WGPUTextureAspect_Force32 = 0x7FFFFFFF
}
 
enum  WGPUTextureDimension {
  WGPUTextureDimension_Undefined = 0x00000000 ,
  WGPUTextureDimension_1D = 0x00000001 ,
  WGPUTextureDimension_2D = 0x00000002 ,
  WGPUTextureDimension_3D = 0x00000003 ,
  WGPUTextureDimension_Force32 = 0x7FFFFFFF
}
 
enum  WGPUTextureFormat {
  WGPUTextureFormat_Undefined = 0x00000000 ,
  WGPUTextureFormat_R8Unorm = 0x00000001 ,
  WGPUTextureFormat_R8Snorm = 0x00000002 ,
  WGPUTextureFormat_R8Uint = 0x00000003 ,
  WGPUTextureFormat_R8Sint = 0x00000004 ,
  WGPUTextureFormat_R16Uint = 0x00000005 ,
  WGPUTextureFormat_R16Sint = 0x00000006 ,
  WGPUTextureFormat_R16Float = 0x00000007 ,
  WGPUTextureFormat_RG8Unorm = 0x00000008 ,
  WGPUTextureFormat_RG8Snorm = 0x00000009 ,
  WGPUTextureFormat_RG8Uint = 0x0000000A ,
  WGPUTextureFormat_RG8Sint = 0x0000000B ,
  WGPUTextureFormat_R32Float = 0x0000000C ,
  WGPUTextureFormat_R32Uint = 0x0000000D ,
  WGPUTextureFormat_R32Sint = 0x0000000E ,
  WGPUTextureFormat_RG16Uint = 0x0000000F ,
  WGPUTextureFormat_RG16Sint = 0x00000010 ,
  WGPUTextureFormat_RG16Float = 0x00000011 ,
  WGPUTextureFormat_RGBA8Unorm = 0x00000012 ,
  WGPUTextureFormat_RGBA8UnormSrgb = 0x00000013 ,
  WGPUTextureFormat_RGBA8Snorm = 0x00000014 ,
  WGPUTextureFormat_RGBA8Uint = 0x00000015 ,
  WGPUTextureFormat_RGBA8Sint = 0x00000016 ,
  WGPUTextureFormat_BGRA8Unorm = 0x00000017 ,
  WGPUTextureFormat_BGRA8UnormSrgb = 0x00000018 ,
  WGPUTextureFormat_RGB10A2Uint = 0x00000019 ,
  WGPUTextureFormat_RGB10A2Unorm = 0x0000001A ,
  WGPUTextureFormat_RG11B10Ufloat = 0x0000001B ,
  WGPUTextureFormat_RGB9E5Ufloat = 0x0000001C ,
  WGPUTextureFormat_RG32Float = 0x0000001D ,
  WGPUTextureFormat_RG32Uint = 0x0000001E ,
  WGPUTextureFormat_RG32Sint = 0x0000001F ,
  WGPUTextureFormat_RGBA16Uint = 0x00000020 ,
  WGPUTextureFormat_RGBA16Sint = 0x00000021 ,
  WGPUTextureFormat_RGBA16Float = 0x00000022 ,
  WGPUTextureFormat_RGBA32Float = 0x00000023 ,
  WGPUTextureFormat_RGBA32Uint = 0x00000024 ,
  WGPUTextureFormat_RGBA32Sint = 0x00000025 ,
  WGPUTextureFormat_Stencil8 = 0x00000026 ,
  WGPUTextureFormat_Depth16Unorm = 0x00000027 ,
  WGPUTextureFormat_Depth24Plus = 0x00000028 ,
  WGPUTextureFormat_Depth24PlusStencil8 = 0x00000029 ,
  WGPUTextureFormat_Depth32Float = 0x0000002A ,
  WGPUTextureFormat_Depth32FloatStencil8 = 0x0000002B ,
  WGPUTextureFormat_BC1RGBAUnorm = 0x0000002C ,
  WGPUTextureFormat_BC1RGBAUnormSrgb = 0x0000002D ,
  WGPUTextureFormat_BC2RGBAUnorm = 0x0000002E ,
  WGPUTextureFormat_BC2RGBAUnormSrgb = 0x0000002F ,
  WGPUTextureFormat_BC3RGBAUnorm = 0x00000030 ,
  WGPUTextureFormat_BC3RGBAUnormSrgb = 0x00000031 ,
  WGPUTextureFormat_BC4RUnorm = 0x00000032 ,
  WGPUTextureFormat_BC4RSnorm = 0x00000033 ,
  WGPUTextureFormat_BC5RGUnorm = 0x00000034 ,
  WGPUTextureFormat_BC5RGSnorm = 0x00000035 ,
  WGPUTextureFormat_BC6HRGBUfloat = 0x00000036 ,
  WGPUTextureFormat_BC6HRGBFloat = 0x00000037 ,
  WGPUTextureFormat_BC7RGBAUnorm = 0x00000038 ,
  WGPUTextureFormat_BC7RGBAUnormSrgb = 0x00000039 ,
  WGPUTextureFormat_ETC2RGB8Unorm = 0x0000003A ,
  WGPUTextureFormat_ETC2RGB8UnormSrgb = 0x0000003B ,
  WGPUTextureFormat_ETC2RGB8A1Unorm = 0x0000003C ,
  WGPUTextureFormat_ETC2RGB8A1UnormSrgb = 0x0000003D ,
  WGPUTextureFormat_ETC2RGBA8Unorm = 0x0000003E ,
  WGPUTextureFormat_ETC2RGBA8UnormSrgb = 0x0000003F ,
  WGPUTextureFormat_EACR11Unorm = 0x00000040 ,
  WGPUTextureFormat_EACR11Snorm = 0x00000041 ,
  WGPUTextureFormat_EACRG11Unorm = 0x00000042 ,
  WGPUTextureFormat_EACRG11Snorm = 0x00000043 ,
  WGPUTextureFormat_ASTC4x4Unorm = 0x00000044 ,
  WGPUTextureFormat_ASTC4x4UnormSrgb = 0x00000045 ,
  WGPUTextureFormat_ASTC5x4Unorm = 0x00000046 ,
  WGPUTextureFormat_ASTC5x4UnormSrgb = 0x00000047 ,
  WGPUTextureFormat_ASTC5x5Unorm = 0x00000048 ,
  WGPUTextureFormat_ASTC5x5UnormSrgb = 0x00000049 ,
  WGPUTextureFormat_ASTC6x5Unorm = 0x0000004A ,
  WGPUTextureFormat_ASTC6x5UnormSrgb = 0x0000004B ,
  WGPUTextureFormat_ASTC6x6Unorm = 0x0000004C ,
  WGPUTextureFormat_ASTC6x6UnormSrgb = 0x0000004D ,
  WGPUTextureFormat_ASTC8x5Unorm = 0x0000004E ,
  WGPUTextureFormat_ASTC8x5UnormSrgb = 0x0000004F ,
  WGPUTextureFormat_ASTC8x6Unorm = 0x00000050 ,
  WGPUTextureFormat_ASTC8x6UnormSrgb = 0x00000051 ,
  WGPUTextureFormat_ASTC8x8Unorm = 0x00000052 ,
  WGPUTextureFormat_ASTC8x8UnormSrgb = 0x00000053 ,
  WGPUTextureFormat_ASTC10x5Unorm = 0x00000054 ,
  WGPUTextureFormat_ASTC10x5UnormSrgb = 0x00000055 ,
  WGPUTextureFormat_ASTC10x6Unorm = 0x00000056 ,
  WGPUTextureFormat_ASTC10x6UnormSrgb = 0x00000057 ,
  WGPUTextureFormat_ASTC10x8Unorm = 0x00000058 ,
  WGPUTextureFormat_ASTC10x8UnormSrgb = 0x00000059 ,
  WGPUTextureFormat_ASTC10x10Unorm = 0x0000005A ,
  WGPUTextureFormat_ASTC10x10UnormSrgb = 0x0000005B ,
  WGPUTextureFormat_ASTC12x10Unorm = 0x0000005C ,
  WGPUTextureFormat_ASTC12x10UnormSrgb = 0x0000005D ,
  WGPUTextureFormat_ASTC12x12Unorm = 0x0000005E ,
  WGPUTextureFormat_ASTC12x12UnormSrgb = 0x0000005F ,
  WGPUTextureFormat_Force32 = 0x7FFFFFFF
}
 
enum  WGPUTextureSampleType {
  WGPUTextureSampleType_BindingNotUsed = 0x00000000 ,
  WGPUTextureSampleType_Undefined = 0x00000001 ,
  WGPUTextureSampleType_Float = 0x00000002 ,
  WGPUTextureSampleType_UnfilterableFloat = 0x00000003 ,
  WGPUTextureSampleType_Depth = 0x00000004 ,
  WGPUTextureSampleType_Sint = 0x00000005 ,
  WGPUTextureSampleType_Uint = 0x00000006 ,
  WGPUTextureSampleType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUTextureViewDimension {
  WGPUTextureViewDimension_Undefined = 0x00000000 ,
  WGPUTextureViewDimension_1D = 0x00000001 ,
  WGPUTextureViewDimension_2D = 0x00000002 ,
  WGPUTextureViewDimension_2DArray = 0x00000003 ,
  WGPUTextureViewDimension_Cube = 0x00000004 ,
  WGPUTextureViewDimension_CubeArray = 0x00000005 ,
  WGPUTextureViewDimension_3D = 0x00000006 ,
  WGPUTextureViewDimension_Force32 = 0x7FFFFFFF
}
 
enum  WGPUToneMappingMode {
  WGPUToneMappingMode_Standard = 0x00000001 ,
  WGPUToneMappingMode_Extended = 0x00000002 ,
  WGPUToneMappingMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUVertexFormat {
  WGPUVertexFormat_Uint8 = 0x00000001 ,
  WGPUVertexFormat_Uint8x2 = 0x00000002 ,
  WGPUVertexFormat_Uint8x4 = 0x00000003 ,
  WGPUVertexFormat_Sint8 = 0x00000004 ,
  WGPUVertexFormat_Sint8x2 = 0x00000005 ,
  WGPUVertexFormat_Sint8x4 = 0x00000006 ,
  WGPUVertexFormat_Unorm8 = 0x00000007 ,
  WGPUVertexFormat_Unorm8x2 = 0x00000008 ,
  WGPUVertexFormat_Unorm8x4 = 0x00000009 ,
  WGPUVertexFormat_Snorm8 = 0x0000000A ,
  WGPUVertexFormat_Snorm8x2 = 0x0000000B ,
  WGPUVertexFormat_Snorm8x4 = 0x0000000C ,
  WGPUVertexFormat_Uint16 = 0x0000000D ,
  WGPUVertexFormat_Uint16x2 = 0x0000000E ,
  WGPUVertexFormat_Uint16x4 = 0x0000000F ,
  WGPUVertexFormat_Sint16 = 0x00000010 ,
  WGPUVertexFormat_Sint16x2 = 0x00000011 ,
  WGPUVertexFormat_Sint16x4 = 0x00000012 ,
  WGPUVertexFormat_Unorm16 = 0x00000013 ,
  WGPUVertexFormat_Unorm16x2 = 0x00000014 ,
  WGPUVertexFormat_Unorm16x4 = 0x00000015 ,
  WGPUVertexFormat_Snorm16 = 0x00000016 ,
  WGPUVertexFormat_Snorm16x2 = 0x00000017 ,
  WGPUVertexFormat_Snorm16x4 = 0x00000018 ,
  WGPUVertexFormat_Float16 = 0x00000019 ,
  WGPUVertexFormat_Float16x2 = 0x0000001A ,
  WGPUVertexFormat_Float16x4 = 0x0000001B ,
  WGPUVertexFormat_Float32 = 0x0000001C ,
  WGPUVertexFormat_Float32x2 = 0x0000001D ,
  WGPUVertexFormat_Float32x3 = 0x0000001E ,
  WGPUVertexFormat_Float32x4 = 0x0000001F ,
  WGPUVertexFormat_Uint32 = 0x00000020 ,
  WGPUVertexFormat_Uint32x2 = 0x00000021 ,
  WGPUVertexFormat_Uint32x3 = 0x00000022 ,
  WGPUVertexFormat_Uint32x4 = 0x00000023 ,
  WGPUVertexFormat_Sint32 = 0x00000024 ,
  WGPUVertexFormat_Sint32x2 = 0x00000025 ,
  WGPUVertexFormat_Sint32x3 = 0x00000026 ,
  WGPUVertexFormat_Sint32x4 = 0x00000027 ,
  WGPUVertexFormat_Unorm10_10_10_2 = 0x00000028 ,
  WGPUVertexFormat_Unorm8x4BGRA = 0x00000029 ,
  WGPUVertexFormat_Force32 = 0x7FFFFFFF
}
 
enum  WGPUVertexStepMode {
  WGPUVertexStepMode_Undefined = 0x00000000 ,
  WGPUVertexStepMode_Vertex = 0x00000001 ,
  WGPUVertexStepMode_Instance = 0x00000002 ,
  WGPUVertexStepMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUWGSLLanguageFeatureName {
  WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures = 0x00000001 ,
  WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct = 0x00000002 ,
  WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters = 0x00000003 ,
  WGPUWGSLLanguageFeatureName_PointerCompositeAccess = 0x00000004 ,
  WGPUWGSLLanguageFeatureName_Force32 = 0x7FFFFFFF
}
 
enum  WGPUWaitStatus {
  WGPUWaitStatus_Success = 0x00000001 ,
  WGPUWaitStatus_TimedOut = 0x00000002 ,
  WGPUWaitStatus_Error = 0x00000003 ,
  WGPUWaitStatus_Force32 = 0x7FFFFFFF
}
 

Detailed Description

Enums.

Typedef Documentation

◆ WGPUAdapterType

◆ WGPUAddressMode

◆ WGPUBackendType

◆ WGPUBlendFactor

◆ WGPUBlendOperation

◆ WGPUBufferBindingType

◆ WGPUBufferMapState

◆ WGPUCallbackMode

The callback mode controls how a callback for an asynchronous operation may be fired. See Asynchronous Operations for how these are used.

◆ WGPUCompareFunction

◆ WGPUCompilationInfoRequestStatus

◆ WGPUCompilationMessageType

◆ WGPUCompositeAlphaMode

Describes how frames are composited with other contents on the screen when wgpuSurfacePresent is called.

◆ WGPUCreatePipelineAsyncStatus

◆ WGPUCullMode

typedef enum WGPUCullMode WGPUCullMode

◆ WGPUDeviceLostReason

◆ WGPUErrorFilter

◆ WGPUErrorType

◆ WGPUFeatureLevel

◆ WGPUFeatureName

◆ WGPUFilterMode

◆ WGPUFrontFace

◆ WGPUIndexFormat

◆ WGPULoadOp

typedef enum WGPULoadOp WGPULoadOp

◆ WGPUMapAsyncStatus

◆ WGPUMipmapFilterMode

◆ WGPUOptionalBool

◆ WGPUPopErrorScopeStatus

◆ WGPUPowerPreference

◆ WGPUPredefinedColorSpace

◆ WGPUPresentMode

Describes when and in which order frames are presented on the screen when wgpuSurfacePresent is called.

◆ WGPUPrimitiveTopology

◆ WGPUQueryType

◆ WGPUQueueWorkDoneStatus

◆ WGPURequestAdapterStatus

◆ WGPURequestDeviceStatus

◆ WGPUSType

typedef enum WGPUSType WGPUSType

◆ WGPUSamplerBindingType

◆ WGPUStatus

typedef enum WGPUStatus WGPUStatus

Status code returned (synchronously) from many operations. Generally indicates an invalid input like an unknown enum value or Out-Struct-Chain Error. Read the function's documentation for specific error conditions.

◆ WGPUStencilOperation

◆ WGPUStorageTextureAccess

◆ WGPUStoreOp

typedef enum WGPUStoreOp WGPUStoreOp

◆ WGPUSurfaceGetCurrentTextureStatus

◆ WGPUTextureAspect

◆ WGPUTextureDimension

◆ WGPUTextureFormat

◆ WGPUTextureSampleType

◆ WGPUTextureViewDimension

◆ WGPUToneMappingMode

◆ WGPUVertexFormat

◆ WGPUVertexStepMode

◆ WGPUWGSLLanguageFeatureName

◆ WGPUWaitStatus

Status returned from a call to wgpuInstanceWaitAny.

Enumeration Type Documentation

◆ WGPUAdapterType

Enumerator
WGPUAdapterType_DiscreteGPU 
WGPUAdapterType_IntegratedGPU 
WGPUAdapterType_CPU 
WGPUAdapterType_Unknown 
WGPUAdapterType_Force32 

Definition at line 291 of file webgpu.h.

◆ WGPUAddressMode

Enumerator
WGPUAddressMode_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUAddressMode_ClampToEdge 
WGPUAddressMode_Repeat 
WGPUAddressMode_MirrorRepeat 
WGPUAddressMode_Force32 

Definition at line 299 of file webgpu.h.

◆ WGPUBackendType

Enumerator
WGPUBackendType_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUBackendType_Null 
WGPUBackendType_WebGPU 
WGPUBackendType_D3D11 
WGPUBackendType_D3D12 
WGPUBackendType_Metal 
WGPUBackendType_Vulkan 
WGPUBackendType_OpenGL 
WGPUBackendType_OpenGLES 
WGPUBackendType_Force32 

Definition at line 310 of file webgpu.h.

◆ WGPUBlendFactor

Enumerator
WGPUBlendFactor_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUBlendFactor_Zero 
WGPUBlendFactor_One 
WGPUBlendFactor_Src 
WGPUBlendFactor_OneMinusSrc 
WGPUBlendFactor_SrcAlpha 
WGPUBlendFactor_OneMinusSrcAlpha 
WGPUBlendFactor_Dst 
WGPUBlendFactor_OneMinusDst 
WGPUBlendFactor_DstAlpha 
WGPUBlendFactor_OneMinusDstAlpha 
WGPUBlendFactor_SrcAlphaSaturated 
WGPUBlendFactor_Constant 
WGPUBlendFactor_OneMinusConstant 
WGPUBlendFactor_Src1 
WGPUBlendFactor_OneMinusSrc1 
WGPUBlendFactor_Src1Alpha 
WGPUBlendFactor_OneMinusSrc1Alpha 
WGPUBlendFactor_Force32 

Definition at line 326 of file webgpu.h.

◆ WGPUBlendOperation

Enumerator
WGPUBlendOperation_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUBlendOperation_Add 
WGPUBlendOperation_Subtract 
WGPUBlendOperation_ReverseSubtract 
WGPUBlendOperation_Min 
WGPUBlendOperation_Max 
WGPUBlendOperation_Force32 

Definition at line 351 of file webgpu.h.

◆ WGPUBufferBindingType

Enumerator
WGPUBufferBindingType_BindingNotUsed 

0. Indicates that this WGPUBufferBindingLayout member of its parent WGPUBindGroupLayoutEntry is not used. (See also Sentinel Values.)

WGPUBufferBindingType_Undefined 

1. Indicates no value is passed for this argument. See Sentinel Values.

WGPUBufferBindingType_Uniform 
WGPUBufferBindingType_Storage 
WGPUBufferBindingType_ReadOnlyStorage 
WGPUBufferBindingType_Force32 

Definition at line 364 of file webgpu.h.

◆ WGPUBufferMapState

Enumerator
WGPUBufferMapState_Unmapped 
WGPUBufferMapState_Pending 
WGPUBufferMapState_Mapped 
WGPUBufferMapState_Force32 

Definition at line 381 of file webgpu.h.

◆ WGPUCallbackMode

The callback mode controls how a callback for an asynchronous operation may be fired. See Asynchronous Operations for how these are used.

Enumerator
WGPUCallbackMode_WaitAnyOnly 

Callbacks created with WGPUCallbackMode_WaitAnyOnly:

WGPUCallbackMode_AllowProcessEvents 

Callbacks created with WGPUCallbackMode_AllowProcessEvents:

  • fire for the same reasons as callbacks created with WGPUCallbackMode_WaitAnyOnly
  • fire inside a call to wgpuInstanceProcessEvents if the asynchronous operation is complete.
WGPUCallbackMode_AllowSpontaneous 

Callbacks created with WGPUCallbackMode_AllowSpontaneous:

  • fire for the same reasons as callbacks created with WGPUCallbackMode_AllowProcessEvents
  • may fire spontaneously on an arbitrary or application thread, when the WebGPU implementations discovers that the asynchronous operation is complete.

    Implementations should fire spontaneous callbacks as soon as possible.

Note
Because spontaneous callbacks may fire at an arbitrary time on an arbitrary thread, applications should take extra care when acquiring locks or mutating state inside the callback. It undefined behavior to re-entrantly call into the webgpu.h API if the callback fires while inside the callstack of another webgpu.h function that is not wgpuInstanceWaitAny or wgpuInstanceProcessEvents.
WGPUCallbackMode_Force32 

Definition at line 391 of file webgpu.h.

◆ WGPUCompareFunction

Enumerator
WGPUCompareFunction_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUCompareFunction_Never 
WGPUCompareFunction_Less 
WGPUCompareFunction_Equal 
WGPUCompareFunction_LessEqual 
WGPUCompareFunction_Greater 
WGPUCompareFunction_NotEqual 
WGPUCompareFunction_GreaterEqual 
WGPUCompareFunction_Always 
WGPUCompareFunction_Force32 

Definition at line 417 of file webgpu.h.

◆ WGPUCompilationInfoRequestStatus

Enumerator
WGPUCompilationInfoRequestStatus_Success 
WGPUCompilationInfoRequestStatus_InstanceDropped 
WGPUCompilationInfoRequestStatus_Force32 

Definition at line 433 of file webgpu.h.

◆ WGPUCompilationMessageType

Enumerator
WGPUCompilationMessageType_Error 
WGPUCompilationMessageType_Warning 
WGPUCompilationMessageType_Info 
WGPUCompilationMessageType_Force32 

Definition at line 439 of file webgpu.h.

◆ WGPUCompositeAlphaMode

Describes how frames are composited with other contents on the screen when wgpuSurfacePresent is called.

Enumerator
WGPUCompositeAlphaMode_Auto 

0. Lets the WebGPU implementation choose the best mode (supported, and with the best performance) between WGPUCompositeAlphaMode_Opaque or WGPUCompositeAlphaMode_Inherit.

WGPUCompositeAlphaMode_Opaque 

The alpha component of the image is ignored and teated as if it is always 1.0.

WGPUCompositeAlphaMode_Premultiplied 

The alpha component is respected and non-alpha components are assumed to be already multiplied with the alpha component. For example, (0.5, 0, 0, 0.5) is semi-transparent bright red.

WGPUCompositeAlphaMode_Unpremultiplied 

The alpha component is respected and non-alpha components are assumed to NOT be already multiplied with the alpha component. For example, (1.0, 0, 0, 0.5) is semi-transparent bright red.

WGPUCompositeAlphaMode_Inherit 

The handling of the alpha component is unknown to WebGPU and should be handled by the application using system-specific APIs. This mode may be unavailable (for example on Wasm).

WGPUCompositeAlphaMode_Force32 

Definition at line 449 of file webgpu.h.

◆ WGPUCreatePipelineAsyncStatus

Enumerator
WGPUCreatePipelineAsyncStatus_Success 
WGPUCreatePipelineAsyncStatus_InstanceDropped 
WGPUCreatePipelineAsyncStatus_ValidationError 
WGPUCreatePipelineAsyncStatus_InternalError 
WGPUCreatePipelineAsyncStatus_Force32 

Definition at line 473 of file webgpu.h.

◆ WGPUCullMode

Enumerator
WGPUCullMode_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUCullMode_None 
WGPUCullMode_Front 
WGPUCullMode_Back 
WGPUCullMode_Force32 

Definition at line 481 of file webgpu.h.

◆ WGPUDeviceLostReason

Enumerator
WGPUDeviceLostReason_Unknown 
WGPUDeviceLostReason_Destroyed 
WGPUDeviceLostReason_InstanceDropped 
WGPUDeviceLostReason_FailedCreation 
WGPUDeviceLostReason_Force32 

Definition at line 492 of file webgpu.h.

◆ WGPUErrorFilter

Enumerator
WGPUErrorFilter_Validation 
WGPUErrorFilter_OutOfMemory 
WGPUErrorFilter_Internal 
WGPUErrorFilter_Force32 

Definition at line 500 of file webgpu.h.

◆ WGPUErrorType

Enumerator
WGPUErrorType_NoError 
WGPUErrorType_Validation 
WGPUErrorType_OutOfMemory 
WGPUErrorType_Internal 
WGPUErrorType_Unknown 
WGPUErrorType_Force32 

Definition at line 507 of file webgpu.h.

◆ WGPUFeatureLevel

See WGPURequestAdapterOptions::featureLevel.

Enumerator
WGPUFeatureLevel_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUFeatureLevel_Compatibility 

"Compatibility" profile which can be supported on OpenGL ES 3.1 and D3D11.

WGPUFeatureLevel_Core 

"Core" profile which can be supported on Vulkan/Metal/D3D12 (at least).

WGPUFeatureLevel_Force32 

Definition at line 519 of file webgpu.h.

◆ WGPUFeatureName

Enumerator
WGPUFeatureName_Undefined 

0.

WGPUFeatureName_DepthClipControl 
WGPUFeatureName_Depth32FloatStencil8 
WGPUFeatureName_TimestampQuery 
WGPUFeatureName_TextureCompressionBC 
WGPUFeatureName_TextureCompressionBCSliced3D 
WGPUFeatureName_TextureCompressionETC2 
WGPUFeatureName_TextureCompressionASTC 
WGPUFeatureName_TextureCompressionASTCSliced3D 
WGPUFeatureName_IndirectFirstInstance 
WGPUFeatureName_ShaderF16 
WGPUFeatureName_RG11B10UfloatRenderable 
WGPUFeatureName_BGRA8UnormStorage 
WGPUFeatureName_Float32Filterable 
WGPUFeatureName_Float32Blendable 
WGPUFeatureName_ClipDistances 
WGPUFeatureName_DualSourceBlending 
WGPUFeatureName_Subgroups 
WGPUFeatureName_Force32 

Definition at line 535 of file webgpu.h.

◆ WGPUFilterMode

Enumerator
WGPUFilterMode_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUFilterMode_Nearest 
WGPUFilterMode_Linear 
WGPUFilterMode_Force32 

Definition at line 560 of file webgpu.h.

◆ WGPUFrontFace

Enumerator
WGPUFrontFace_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUFrontFace_CCW 
WGPUFrontFace_CW 
WGPUFrontFace_Force32 

Definition at line 570 of file webgpu.h.

◆ WGPUIndexFormat

Enumerator
WGPUIndexFormat_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUIndexFormat_Uint16 
WGPUIndexFormat_Uint32 
WGPUIndexFormat_Force32 

Definition at line 580 of file webgpu.h.

◆ WGPULoadOp

enum WGPULoadOp
Enumerator
WGPULoadOp_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPULoadOp_Load 
WGPULoadOp_Clear 
WGPULoadOp_Force32 

Definition at line 590 of file webgpu.h.

◆ WGPUMapAsyncStatus

Enumerator
WGPUMapAsyncStatus_Success 
WGPUMapAsyncStatus_InstanceDropped 
WGPUMapAsyncStatus_Error 
WGPUMapAsyncStatus_Aborted 
WGPUMapAsyncStatus_Force32 

Definition at line 600 of file webgpu.h.

◆ WGPUMipmapFilterMode

Enumerator
WGPUMipmapFilterMode_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUMipmapFilterMode_Nearest 
WGPUMipmapFilterMode_Linear 
WGPUMipmapFilterMode_Force32 

Definition at line 608 of file webgpu.h.

◆ WGPUOptionalBool

Enumerator
WGPUOptionalBool_False 

0.

WGPUOptionalBool_True 
WGPUOptionalBool_Undefined 
WGPUOptionalBool_Force32 

Definition at line 618 of file webgpu.h.

◆ WGPUPopErrorScopeStatus

Enumerator
WGPUPopErrorScopeStatus_Success 

The error scope stack was successfully popped and a result was reported.

WGPUPopErrorScopeStatus_InstanceDropped 
WGPUPopErrorScopeStatus_Error 

The error scope stack could not be popped, because it was empty.

WGPUPopErrorScopeStatus_Force32 

Definition at line 628 of file webgpu.h.

◆ WGPUPowerPreference

Enumerator
WGPUPowerPreference_Undefined 

0. No preference. (See also Sentinel Values.)

WGPUPowerPreference_LowPower 
WGPUPowerPreference_HighPerformance 
WGPUPowerPreference_Force32 

Definition at line 641 of file webgpu.h.

◆ WGPUPredefinedColorSpace

Enumerator
WGPUPredefinedColorSpace_SRGB 
WGPUPredefinedColorSpace_DisplayP3 
WGPUPredefinedColorSpace_Force32 

Definition at line 651 of file webgpu.h.

◆ WGPUPresentMode

Describes when and in which order frames are presented on the screen when wgpuSurfacePresent is called.

Enumerator
WGPUPresentMode_Undefined 

0. Present mode is not specified. Use the default.

WGPUPresentMode_Fifo 

The presentation of the image to the user waits for the next vertical blanking period to update in a first-in, first-out manner. Tearing cannot be observed and frame-loop will be limited to the display's refresh rate. This is the only mode that's always available.

WGPUPresentMode_FifoRelaxed 

The presentation of the image to the user tries to wait for the next vertical blanking period but may decide to not wait if a frame is presented late. Tearing can sometimes be observed but late-frame don't produce a full-frame stutter in the presentation. This is still a first-in, first-out mechanism so a frame-loop will be limited to the display's refresh rate.

WGPUPresentMode_Immediate 

The presentation of the image to the user is updated immediately without waiting for a vertical blank. Tearing can be observed but latency is minimized.

WGPUPresentMode_Mailbox 

The presentation of the image to the user waits for the next vertical blanking period to update to the latest provided image. Tearing cannot be observed and a frame-loop is not limited to the display's refresh rate.

WGPUPresentMode_Force32 

Definition at line 660 of file webgpu.h.

◆ WGPUPrimitiveTopology

Enumerator
WGPUPrimitiveTopology_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUPrimitiveTopology_PointList 
WGPUPrimitiveTopology_LineList 
WGPUPrimitiveTopology_LineStrip 
WGPUPrimitiveTopology_TriangleList 
WGPUPrimitiveTopology_TriangleStrip 
WGPUPrimitiveTopology_Force32 

Definition at line 690 of file webgpu.h.

◆ WGPUQueryType

Enumerator
WGPUQueryType_Occlusion 
WGPUQueryType_Timestamp 
WGPUQueryType_Force32 

Definition at line 703 of file webgpu.h.

◆ WGPUQueueWorkDoneStatus

Enumerator
WGPUQueueWorkDoneStatus_Success 
WGPUQueueWorkDoneStatus_InstanceDropped 
WGPUQueueWorkDoneStatus_Error 

There was some deterministic error. (Note this is currently never used, but it will be relevant when it's possible to create a queue object.)

WGPUQueueWorkDoneStatus_Force32 

Definition at line 709 of file webgpu.h.

◆ WGPURequestAdapterStatus

Enumerator
WGPURequestAdapterStatus_Success 
WGPURequestAdapterStatus_InstanceDropped 
WGPURequestAdapterStatus_Unavailable 
WGPURequestAdapterStatus_Error 
WGPURequestAdapterStatus_Force32 

Definition at line 720 of file webgpu.h.

◆ WGPURequestDeviceStatus

Enumerator
WGPURequestDeviceStatus_Success 
WGPURequestDeviceStatus_InstanceDropped 
WGPURequestDeviceStatus_Error 
WGPURequestDeviceStatus_Force32 

Definition at line 728 of file webgpu.h.

◆ WGPUSType

enum WGPUSType
Enumerator
WGPUSType_ShaderSourceSPIRV 
WGPUSType_ShaderSourceWGSL 
WGPUSType_RenderPassMaxDrawCount 
WGPUSType_SurfaceSourceMetalLayer 
WGPUSType_SurfaceSourceWindowsHWND 
WGPUSType_SurfaceSourceXlibWindow 
WGPUSType_SurfaceSourceWaylandSurface 
WGPUSType_SurfaceSourceAndroidNativeWindow 
WGPUSType_SurfaceSourceXCBWindow 
WGPUSType_SurfaceColorManagement 
WGPUSType_RequestAdapterWebXROptions 
WGPUSType_Force32 

Definition at line 735 of file webgpu.h.

◆ WGPUSamplerBindingType

Enumerator
WGPUSamplerBindingType_BindingNotUsed 

0. Indicates that this WGPUSamplerBindingLayout member of its parent WGPUBindGroupLayoutEntry is not used. (See also Sentinel Values.)

WGPUSamplerBindingType_Undefined 

1. Indicates no value is passed for this argument. See Sentinel Values.

WGPUSamplerBindingType_Filtering 
WGPUSamplerBindingType_NonFiltering 
WGPUSamplerBindingType_Comparison 
WGPUSamplerBindingType_Force32 

Definition at line 750 of file webgpu.h.

◆ WGPUStatus

enum WGPUStatus

Status code returned (synchronously) from many operations. Generally indicates an invalid input like an unknown enum value or Out-Struct-Chain Error. Read the function's documentation for specific error conditions.

Enumerator
WGPUStatus_Success 
WGPUStatus_Error 
WGPUStatus_Force32 

Definition at line 772 of file webgpu.h.

◆ WGPUStencilOperation

Enumerator
WGPUStencilOperation_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUStencilOperation_Keep 
WGPUStencilOperation_Zero 
WGPUStencilOperation_Replace 
WGPUStencilOperation_Invert 
WGPUStencilOperation_IncrementClamp 
WGPUStencilOperation_DecrementClamp 
WGPUStencilOperation_IncrementWrap 
WGPUStencilOperation_DecrementWrap 
WGPUStencilOperation_Force32 

Definition at line 778 of file webgpu.h.

◆ WGPUStorageTextureAccess

Enumerator
WGPUStorageTextureAccess_BindingNotUsed 

0. Indicates that this WGPUStorageTextureBindingLayout member of its parent WGPUBindGroupLayoutEntry is not used. (See also Sentinel Values.)

WGPUStorageTextureAccess_Undefined 

1. Indicates no value is passed for this argument. See Sentinel Values.

WGPUStorageTextureAccess_WriteOnly 
WGPUStorageTextureAccess_ReadOnly 
WGPUStorageTextureAccess_ReadWrite 
WGPUStorageTextureAccess_Force32 

Definition at line 794 of file webgpu.h.

◆ WGPUStoreOp

Enumerator
WGPUStoreOp_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUStoreOp_Store 
WGPUStoreOp_Discard 
WGPUStoreOp_Force32 

Definition at line 811 of file webgpu.h.

◆ WGPUSurfaceGetCurrentTextureStatus

The status enum for wgpuSurfaceGetCurrentTexture.

Enumerator
WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal 

Yay! Everything is good and we can render this frame.

WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal 

Still OK - the surface can present the frame, but in a suboptimal way. The surface may need reconfiguration.

WGPUSurfaceGetCurrentTextureStatus_Timeout 

Some operation timed out while trying to acquire the frame.

WGPUSurfaceGetCurrentTextureStatus_Outdated 

The surface is too different to be used, compared to when it was originally created.

WGPUSurfaceGetCurrentTextureStatus_Lost 

The connection to whatever owns the surface was lost, or generally needs to be fully reinitialized.

WGPUSurfaceGetCurrentTextureStatus_Error 

There was some deterministic error (for example, the surface is not configured, or there was an Out-Struct-Chain Error). Should produce Implementation-Defined Logging containing details.

WGPUSurfaceGetCurrentTextureStatus_Force32 

Definition at line 824 of file webgpu.h.

◆ WGPUTextureAspect

Enumerator
WGPUTextureAspect_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUTextureAspect_All 
WGPUTextureAspect_StencilOnly 
WGPUTextureAspect_DepthOnly 
WGPUTextureAspect_Force32 

Definition at line 852 of file webgpu.h.

◆ WGPUTextureDimension

Enumerator
WGPUTextureDimension_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUTextureDimension_1D 
WGPUTextureDimension_2D 
WGPUTextureDimension_3D 
WGPUTextureDimension_Force32 

Definition at line 863 of file webgpu.h.

◆ WGPUTextureFormat

Enumerator
WGPUTextureFormat_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUTextureFormat_R8Unorm 
WGPUTextureFormat_R8Snorm 
WGPUTextureFormat_R8Uint 
WGPUTextureFormat_R8Sint 
WGPUTextureFormat_R16Uint 
WGPUTextureFormat_R16Sint 
WGPUTextureFormat_R16Float 
WGPUTextureFormat_RG8Unorm 
WGPUTextureFormat_RG8Snorm 
WGPUTextureFormat_RG8Uint 
WGPUTextureFormat_RG8Sint 
WGPUTextureFormat_R32Float 
WGPUTextureFormat_R32Uint 
WGPUTextureFormat_R32Sint 
WGPUTextureFormat_RG16Uint 
WGPUTextureFormat_RG16Sint 
WGPUTextureFormat_RG16Float 
WGPUTextureFormat_RGBA8Unorm 
WGPUTextureFormat_RGBA8UnormSrgb 
WGPUTextureFormat_RGBA8Snorm 
WGPUTextureFormat_RGBA8Uint 
WGPUTextureFormat_RGBA8Sint 
WGPUTextureFormat_BGRA8Unorm 
WGPUTextureFormat_BGRA8UnormSrgb 
WGPUTextureFormat_RGB10A2Uint 
WGPUTextureFormat_RGB10A2Unorm 
WGPUTextureFormat_RG11B10Ufloat 
WGPUTextureFormat_RGB9E5Ufloat 
WGPUTextureFormat_RG32Float 
WGPUTextureFormat_RG32Uint 
WGPUTextureFormat_RG32Sint 
WGPUTextureFormat_RGBA16Uint 
WGPUTextureFormat_RGBA16Sint 
WGPUTextureFormat_RGBA16Float 
WGPUTextureFormat_RGBA32Float 
WGPUTextureFormat_RGBA32Uint 
WGPUTextureFormat_RGBA32Sint 
WGPUTextureFormat_Stencil8 
WGPUTextureFormat_Depth16Unorm 
WGPUTextureFormat_Depth24Plus 
WGPUTextureFormat_Depth24PlusStencil8 
WGPUTextureFormat_Depth32Float 
WGPUTextureFormat_Depth32FloatStencil8 
WGPUTextureFormat_BC1RGBAUnorm 
WGPUTextureFormat_BC1RGBAUnormSrgb 
WGPUTextureFormat_BC2RGBAUnorm 
WGPUTextureFormat_BC2RGBAUnormSrgb 
WGPUTextureFormat_BC3RGBAUnorm 
WGPUTextureFormat_BC3RGBAUnormSrgb 
WGPUTextureFormat_BC4RUnorm 
WGPUTextureFormat_BC4RSnorm 
WGPUTextureFormat_BC5RGUnorm 
WGPUTextureFormat_BC5RGSnorm 
WGPUTextureFormat_BC6HRGBUfloat 
WGPUTextureFormat_BC6HRGBFloat 
WGPUTextureFormat_BC7RGBAUnorm 
WGPUTextureFormat_BC7RGBAUnormSrgb 
WGPUTextureFormat_ETC2RGB8Unorm 
WGPUTextureFormat_ETC2RGB8UnormSrgb 
WGPUTextureFormat_ETC2RGB8A1Unorm 
WGPUTextureFormat_ETC2RGB8A1UnormSrgb 
WGPUTextureFormat_ETC2RGBA8Unorm 
WGPUTextureFormat_ETC2RGBA8UnormSrgb 
WGPUTextureFormat_EACR11Unorm 
WGPUTextureFormat_EACR11Snorm 
WGPUTextureFormat_EACRG11Unorm 
WGPUTextureFormat_EACRG11Snorm 
WGPUTextureFormat_ASTC4x4Unorm 
WGPUTextureFormat_ASTC4x4UnormSrgb 
WGPUTextureFormat_ASTC5x4Unorm 
WGPUTextureFormat_ASTC5x4UnormSrgb 
WGPUTextureFormat_ASTC5x5Unorm 
WGPUTextureFormat_ASTC5x5UnormSrgb 
WGPUTextureFormat_ASTC6x5Unorm 
WGPUTextureFormat_ASTC6x5UnormSrgb 
WGPUTextureFormat_ASTC6x6Unorm 
WGPUTextureFormat_ASTC6x6UnormSrgb 
WGPUTextureFormat_ASTC8x5Unorm 
WGPUTextureFormat_ASTC8x5UnormSrgb 
WGPUTextureFormat_ASTC8x6Unorm 
WGPUTextureFormat_ASTC8x6UnormSrgb 
WGPUTextureFormat_ASTC8x8Unorm 
WGPUTextureFormat_ASTC8x8UnormSrgb 
WGPUTextureFormat_ASTC10x5Unorm 
WGPUTextureFormat_ASTC10x5UnormSrgb 
WGPUTextureFormat_ASTC10x6Unorm 
WGPUTextureFormat_ASTC10x6UnormSrgb 
WGPUTextureFormat_ASTC10x8Unorm 
WGPUTextureFormat_ASTC10x8UnormSrgb 
WGPUTextureFormat_ASTC10x10Unorm 
WGPUTextureFormat_ASTC10x10UnormSrgb 
WGPUTextureFormat_ASTC12x10Unorm 
WGPUTextureFormat_ASTC12x10UnormSrgb 
WGPUTextureFormat_ASTC12x12Unorm 
WGPUTextureFormat_ASTC12x12UnormSrgb 
WGPUTextureFormat_Force32 

Definition at line 874 of file webgpu.h.

◆ WGPUTextureSampleType

Enumerator
WGPUTextureSampleType_BindingNotUsed 

0. Indicates that this WGPUTextureBindingLayout member of its parent WGPUBindGroupLayoutEntry is not used. (See also Sentinel Values.)

WGPUTextureSampleType_Undefined 

1. Indicates no value is passed for this argument. See Sentinel Values.

WGPUTextureSampleType_Float 
WGPUTextureSampleType_UnfilterableFloat 
WGPUTextureSampleType_Depth 
WGPUTextureSampleType_Sint 
WGPUTextureSampleType_Uint 
WGPUTextureSampleType_Force32 

Definition at line 977 of file webgpu.h.

◆ WGPUTextureViewDimension

Enumerator
WGPUTextureViewDimension_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUTextureViewDimension_1D 
WGPUTextureViewDimension_2D 
WGPUTextureViewDimension_2DArray 
WGPUTextureViewDimension_Cube 
WGPUTextureViewDimension_CubeArray 
WGPUTextureViewDimension_3D 
WGPUTextureViewDimension_Force32 

Definition at line 996 of file webgpu.h.

◆ WGPUToneMappingMode

Enumerator
WGPUToneMappingMode_Standard 
WGPUToneMappingMode_Extended 
WGPUToneMappingMode_Force32 

Definition at line 1010 of file webgpu.h.

◆ WGPUVertexFormat

Enumerator
WGPUVertexFormat_Uint8 
WGPUVertexFormat_Uint8x2 
WGPUVertexFormat_Uint8x4 
WGPUVertexFormat_Sint8 
WGPUVertexFormat_Sint8x2 
WGPUVertexFormat_Sint8x4 
WGPUVertexFormat_Unorm8 
WGPUVertexFormat_Unorm8x2 
WGPUVertexFormat_Unorm8x4 
WGPUVertexFormat_Snorm8 
WGPUVertexFormat_Snorm8x2 
WGPUVertexFormat_Snorm8x4 
WGPUVertexFormat_Uint16 
WGPUVertexFormat_Uint16x2 
WGPUVertexFormat_Uint16x4 
WGPUVertexFormat_Sint16 
WGPUVertexFormat_Sint16x2 
WGPUVertexFormat_Sint16x4 
WGPUVertexFormat_Unorm16 
WGPUVertexFormat_Unorm16x2 
WGPUVertexFormat_Unorm16x4 
WGPUVertexFormat_Snorm16 
WGPUVertexFormat_Snorm16x2 
WGPUVertexFormat_Snorm16x4 
WGPUVertexFormat_Float16 
WGPUVertexFormat_Float16x2 
WGPUVertexFormat_Float16x4 
WGPUVertexFormat_Float32 
WGPUVertexFormat_Float32x2 
WGPUVertexFormat_Float32x3 
WGPUVertexFormat_Float32x4 
WGPUVertexFormat_Uint32 
WGPUVertexFormat_Uint32x2 
WGPUVertexFormat_Uint32x3 
WGPUVertexFormat_Uint32x4 
WGPUVertexFormat_Sint32 
WGPUVertexFormat_Sint32x2 
WGPUVertexFormat_Sint32x3 
WGPUVertexFormat_Sint32x4 
WGPUVertexFormat_Unorm10_10_10_2 
WGPUVertexFormat_Unorm8x4BGRA 
WGPUVertexFormat_Force32 

Definition at line 1016 of file webgpu.h.

◆ WGPUVertexStepMode

Enumerator
WGPUVertexStepMode_Undefined 

0. Indicates no value is passed for this argument. See Sentinel Values.

WGPUVertexStepMode_Vertex 
WGPUVertexStepMode_Instance 
WGPUVertexStepMode_Force32 

Definition at line 1061 of file webgpu.h.

◆ WGPUWGSLLanguageFeatureName

Enumerator
WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures 
WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct 
WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters 
WGPUWGSLLanguageFeatureName_PointerCompositeAccess 
WGPUWGSLLanguageFeatureName_Force32 

Definition at line 1071 of file webgpu.h.

◆ WGPUWaitStatus

Status returned from a call to wgpuInstanceWaitAny.

Enumerator
WGPUWaitStatus_Success 

At least one WGPUFuture completed successfully.

WGPUWaitStatus_TimedOut 

The wait operation succeeded, but no WGPUFutures completed within the timeout.

WGPUWaitStatus_Error 

The call was invalid for some reason (see wgpuInstanceWaitAny). Should produce Implementation-Defined Logging containing details.

WGPUWaitStatus_Force32 

Definition at line 1082 of file webgpu.h.