WebGPU Native  v0.1.0
The WebGPU C API
Loading...
Searching...
No Matches
webgpu.h File Reference
#include <stdint.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  WGPUChainedStruct
 
struct  WGPUChainedStructOut
 
struct  WGPUAdapterInfo
 
struct  WGPUAdapterProperties
 
struct  WGPUBindGroupEntry
 
struct  WGPUBlendComponent
 
struct  WGPUBufferBindingLayout
 
struct  WGPUBufferDescriptor
 
struct  WGPUColor
 
struct  WGPUCommandBufferDescriptor
 
struct  WGPUCommandEncoderDescriptor
 
struct  WGPUCompilationMessage
 
struct  WGPUComputePassTimestampWrites
 
struct  WGPUConstantEntry
 
struct  WGPUExtent3D
 
struct  WGPUInstanceDescriptor
 
struct  WGPULimits
 
struct  WGPUMultisampleState
 
struct  WGPUOrigin3D
 
struct  WGPUPipelineLayoutDescriptor
 
struct  WGPUPrimitiveDepthClipControl
 
struct  WGPUPrimitiveState
 
struct  WGPUQuerySetDescriptor
 
struct  WGPUQueueDescriptor
 
struct  WGPURenderBundleDescriptor
 
struct  WGPURenderBundleEncoderDescriptor
 
struct  WGPURenderPassDepthStencilAttachment
 
struct  WGPURenderPassDescriptorMaxDrawCount
 
struct  WGPURenderPassTimestampWrites
 
struct  WGPURequestAdapterOptions
 
struct  WGPUSamplerBindingLayout
 
struct  WGPUSamplerDescriptor
 
struct  WGPUShaderModuleCompilationHint
 
struct  WGPUShaderModuleSPIRVDescriptor
 
struct  WGPUShaderModuleWGSLDescriptor
 
struct  WGPUStencilFaceState
 
struct  WGPUStorageTextureBindingLayout
 
struct  WGPUSurfaceCapabilities
 
struct  WGPUSurfaceConfiguration
 
struct  WGPUSurfaceDescriptor
 
struct  WGPUSurfaceDescriptorFromAndroidNativeWindow
 
struct  WGPUSurfaceDescriptorFromCanvasHTMLSelector
 
struct  WGPUSurfaceDescriptorFromMetalLayer
 
struct  WGPUSurfaceDescriptorFromWaylandSurface
 
struct  WGPUSurfaceDescriptorFromWindowsHWND
 
struct  WGPUSurfaceDescriptorFromXcbWindow
 
struct  WGPUSurfaceDescriptorFromXlibWindow
 
struct  WGPUSurfaceTexture
 
struct  WGPUTextureBindingLayout
 
struct  WGPUTextureDataLayout
 
struct  WGPUTextureViewDescriptor
 
struct  WGPUVertexAttribute
 
struct  WGPUBindGroupDescriptor
 
struct  WGPUBindGroupLayoutEntry
 
struct  WGPUBlendState
 
struct  WGPUCompilationInfo
 
struct  WGPUComputePassDescriptor
 
struct  WGPUDepthStencilState
 
struct  WGPUImageCopyBuffer
 
struct  WGPUImageCopyTexture
 
struct  WGPUProgrammableStageDescriptor
 
struct  WGPURenderPassColorAttachment
 
struct  WGPURequiredLimits
 
struct  WGPUShaderModuleDescriptor
 
struct  WGPUSupportedLimits
 
struct  WGPUTextureDescriptor
 
struct  WGPUVertexBufferLayout
 
struct  WGPUBindGroupLayoutDescriptor
 
struct  WGPUColorTargetState
 
struct  WGPUComputePipelineDescriptor
 
struct  WGPUDeviceDescriptor
 
struct  WGPURenderPassDescriptor
 
struct  WGPUVertexState
 
struct  WGPUFragmentState
 
struct  WGPURenderPipelineDescriptor
 

Macros

#define WGPU_EXPORT
 
#define WGPU_OBJECT_ATTRIBUTE
 
#define WGPU_ENUM_ATTRIBUTE
 
#define WGPU_STRUCTURE_ATTRIBUTE
 
#define WGPU_FUNCTION_ATTRIBUTE
 
#define WGPU_NULLABLE
 
#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED   (0xffffffffUL)
 
#define WGPU_COPY_STRIDE_UNDEFINED   (0xffffffffUL)
 
#define WGPU_DEPTH_SLICE_UNDEFINED   (0xffffffffUL)
 
#define WGPU_LIMIT_U32_UNDEFINED   (0xffffffffUL)
 
#define WGPU_LIMIT_U64_UNDEFINED   (0xffffffffffffffffULL)
 
#define WGPU_MIP_LEVEL_COUNT_UNDEFINED   (0xffffffffUL)
 
#define WGPU_QUERY_SET_INDEX_UNDEFINED   (0xffffffffUL)
 
#define WGPU_WHOLE_MAP_SIZE   (SIZE_MAX)
 
#define WGPU_WHOLE_SIZE   (0xffffffffffffffffULL)
 

Typedefs

typedef uint32_t WGPUFlags
 
typedef uint32_t WGPUBool
 
typedef struct WGPUAdapterImpl * WGPUAdapter
 
typedef struct WGPUBindGroupImpl * WGPUBindGroup
 
typedef struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
 
typedef struct WGPUBufferImpl * WGPUBuffer
 
typedef struct WGPUCommandBufferImpl * WGPUCommandBuffer
 
typedef struct WGPUCommandEncoderImpl * WGPUCommandEncoder
 
typedef struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
 
typedef struct WGPUComputePipelineImpl * WGPUComputePipeline
 
typedef struct WGPUDeviceImpl * WGPUDevice
 
typedef struct WGPUInstanceImpl * WGPUInstance
 
typedef struct WGPUPipelineLayoutImpl * WGPUPipelineLayout
 
typedef struct WGPUQuerySetImpl * WGPUQuerySet
 
typedef struct WGPUQueueImpl * WGPUQueue
 
typedef struct WGPURenderBundleImpl * WGPURenderBundle
 
typedef struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
 
typedef struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
 
typedef struct WGPURenderPipelineImpl * WGPURenderPipeline
 
typedef struct WGPUSamplerImpl * WGPUSampler
 
typedef struct WGPUShaderModuleImpl * WGPUShaderModule
 
typedef struct WGPUSurfaceImpl * WGPUSurface
 
typedef struct WGPUTextureImpl * WGPUTexture
 
typedef struct WGPUTextureViewImpl * WGPUTextureView
 
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 WGPUBufferMapAsyncStatus WGPUBufferMapAsyncStatus
 
typedef enum WGPUBufferMapState WGPUBufferMapState
 
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 WGPUFeatureName WGPUFeatureName
 
typedef enum WGPUFilterMode WGPUFilterMode
 
typedef enum WGPUFrontFace WGPUFrontFace
 
typedef enum WGPUIndexFormat WGPUIndexFormat
 
typedef enum WGPULoadOp WGPULoadOp
 
typedef enum WGPUMipmapFilterMode WGPUMipmapFilterMode
 
typedef enum WGPUPowerPreference WGPUPowerPreference
 
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 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 WGPUVertexFormat WGPUVertexFormat
 
typedef enum WGPUVertexStepMode WGPUVertexStepMode
 
typedef enum WGPUWGSLFeatureName WGPUWGSLFeatureName
 
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
 
typedef void(* WGPUProc) (void)
 
typedef void(* WGPUDeviceLostCallback) (WGPUDeviceLostReason reason, char const *message, void *userdata)
 
typedef void(* WGPUErrorCallback) (WGPUErrorType type, char const *message, void *userdata)
 
typedef void(* WGPUAdapterRequestAdapterInfoCallback) (struct WGPUAdapterInfo adapterInfo, void *userdata)
 
typedef void(* WGPUAdapterRequestDeviceCallback) (WGPURequestDeviceStatus status, WGPUDevice device, char const *message, void *userdata)
 
typedef void(* WGPUBufferMapAsyncCallback) (WGPUBufferMapAsyncStatus status, void *userdata)
 
typedef void(* WGPUDeviceCreateComputePipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, char const *message, void *userdata)
 
typedef void(* WGPUDeviceCreateRenderPipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, char const *message, void *userdata)
 
typedef void(* WGPUInstanceRequestAdapterCallback) (WGPURequestAdapterStatus status, WGPUAdapter adapter, char const *message, void *userdata)
 
typedef void(* WGPUQueueOnSubmittedWorkDoneCallback) (WGPUQueueWorkDoneStatus status, void *userdata)
 
typedef void(* WGPUShaderModuleGetCompilationInfoCallback) (WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata)
 
typedef struct WGPUChainedStruct WGPUChainedStruct
 
typedef struct WGPUChainedStructOut WGPUChainedStructOut
 
typedef struct WGPUAdapterInfo WGPUAdapterInfo
 
typedef struct WGPUAdapterProperties WGPUAdapterProperties
 
typedef struct WGPUBindGroupEntry WGPUBindGroupEntry
 
typedef struct WGPUBlendComponent WGPUBlendComponent
 
typedef struct WGPUBufferBindingLayout WGPUBufferBindingLayout
 
typedef struct WGPUBufferDescriptor WGPUBufferDescriptor
 
typedef struct WGPUColor WGPUColor
 
typedef struct WGPUCommandBufferDescriptor WGPUCommandBufferDescriptor
 
typedef struct WGPUCommandEncoderDescriptor WGPUCommandEncoderDescriptor
 
typedef struct WGPUCompilationMessage WGPUCompilationMessage
 
typedef struct WGPUComputePassTimestampWrites WGPUComputePassTimestampWrites
 
typedef struct WGPUConstantEntry WGPUConstantEntry
 
typedef struct WGPUExtent3D WGPUExtent3D
 
typedef struct WGPUInstanceDescriptor WGPUInstanceDescriptor
 
typedef struct WGPULimits WGPULimits
 
typedef struct WGPUMultisampleState WGPUMultisampleState
 
typedef struct WGPUOrigin3D WGPUOrigin3D
 
typedef struct WGPUPipelineLayoutDescriptor WGPUPipelineLayoutDescriptor
 
typedef struct WGPUPrimitiveDepthClipControl WGPUPrimitiveDepthClipControl
 
typedef struct WGPUPrimitiveState WGPUPrimitiveState
 
typedef struct WGPUQuerySetDescriptor WGPUQuerySetDescriptor
 
typedef struct WGPUQueueDescriptor WGPUQueueDescriptor
 
typedef struct WGPURenderBundleDescriptor WGPURenderBundleDescriptor
 
typedef struct WGPURenderBundleEncoderDescriptor WGPURenderBundleEncoderDescriptor
 
typedef struct WGPURenderPassDepthStencilAttachment WGPURenderPassDepthStencilAttachment
 
typedef struct WGPURenderPassDescriptorMaxDrawCount WGPURenderPassDescriptorMaxDrawCount
 
typedef struct WGPURenderPassTimestampWrites WGPURenderPassTimestampWrites
 
typedef struct WGPURequestAdapterOptions WGPURequestAdapterOptions
 
typedef struct WGPUSamplerBindingLayout WGPUSamplerBindingLayout
 
typedef struct WGPUSamplerDescriptor WGPUSamplerDescriptor
 
typedef struct WGPUShaderModuleCompilationHint WGPUShaderModuleCompilationHint
 
typedef struct WGPUShaderModuleSPIRVDescriptor WGPUShaderModuleSPIRVDescriptor
 
typedef struct WGPUShaderModuleWGSLDescriptor WGPUShaderModuleWGSLDescriptor
 
typedef struct WGPUStencilFaceState WGPUStencilFaceState
 
typedef struct WGPUStorageTextureBindingLayout WGPUStorageTextureBindingLayout
 
typedef struct WGPUSurfaceCapabilities WGPUSurfaceCapabilities
 
typedef struct WGPUSurfaceConfiguration WGPUSurfaceConfiguration
 
typedef struct WGPUSurfaceDescriptor WGPUSurfaceDescriptor
 
typedef struct WGPUSurfaceDescriptorFromAndroidNativeWindow WGPUSurfaceDescriptorFromAndroidNativeWindow
 
typedef struct WGPUSurfaceDescriptorFromCanvasHTMLSelector WGPUSurfaceDescriptorFromCanvasHTMLSelector
 
typedef struct WGPUSurfaceDescriptorFromMetalLayer WGPUSurfaceDescriptorFromMetalLayer
 
typedef struct WGPUSurfaceDescriptorFromWaylandSurface WGPUSurfaceDescriptorFromWaylandSurface
 
typedef struct WGPUSurfaceDescriptorFromWindowsHWND WGPUSurfaceDescriptorFromWindowsHWND
 
typedef struct WGPUSurfaceDescriptorFromXcbWindow WGPUSurfaceDescriptorFromXcbWindow
 
typedef struct WGPUSurfaceDescriptorFromXlibWindow WGPUSurfaceDescriptorFromXlibWindow
 
typedef struct WGPUSurfaceTexture WGPUSurfaceTexture
 
typedef struct WGPUTextureBindingLayout WGPUTextureBindingLayout
 
typedef struct WGPUTextureDataLayout WGPUTextureDataLayout
 
typedef struct WGPUTextureViewDescriptor WGPUTextureViewDescriptor
 
typedef struct WGPUVertexAttribute WGPUVertexAttribute
 
typedef struct WGPUBindGroupDescriptor WGPUBindGroupDescriptor
 
typedef struct WGPUBindGroupLayoutEntry WGPUBindGroupLayoutEntry
 
typedef struct WGPUBlendState WGPUBlendState
 
typedef struct WGPUCompilationInfo WGPUCompilationInfo
 
typedef struct WGPUComputePassDescriptor WGPUComputePassDescriptor
 
typedef struct WGPUDepthStencilState WGPUDepthStencilState
 
typedef struct WGPUImageCopyBuffer WGPUImageCopyBuffer
 
typedef struct WGPUImageCopyTexture WGPUImageCopyTexture
 
typedef struct WGPUProgrammableStageDescriptor WGPUProgrammableStageDescriptor
 
typedef struct WGPURenderPassColorAttachment WGPURenderPassColorAttachment
 
typedef struct WGPURequiredLimits WGPURequiredLimits
 
typedef struct WGPUShaderModuleDescriptor WGPUShaderModuleDescriptor
 
typedef struct WGPUSupportedLimits WGPUSupportedLimits
 
typedef struct WGPUTextureDescriptor WGPUTextureDescriptor
 
typedef struct WGPUVertexBufferLayout WGPUVertexBufferLayout
 
typedef struct WGPUBindGroupLayoutDescriptor WGPUBindGroupLayoutDescriptor
 
typedef struct WGPUColorTargetState WGPUColorTargetState
 
typedef struct WGPUComputePipelineDescriptor WGPUComputePipelineDescriptor
 
typedef struct WGPUDeviceDescriptor WGPUDeviceDescriptor
 
typedef struct WGPURenderPassDescriptor WGPURenderPassDescriptor
 
typedef struct WGPUVertexState WGPUVertexState
 
typedef struct WGPUFragmentState WGPUFragmentState
 
typedef struct WGPURenderPipelineDescriptor WGPURenderPipelineDescriptor
 
typedef WGPUInstance(* WGPUProcCreateInstance) (WGPUInstanceDescriptor const *descriptor)
 
typedef WGPUProc(* WGPUProcGetProcAddress) (WGPUDevice device, char const *procName)
 
typedef size_t(* WGPUProcAdapterEnumerateFeatures) (WGPUAdapter adapter, WGPUFeatureName *features)
 
typedef WGPUBool(* WGPUProcAdapterGetLimits) (WGPUAdapter adapter, WGPUSupportedLimits *limits)
 
typedef void(* WGPUProcAdapterGetProperties) (WGPUAdapter adapter, WGPUAdapterProperties *properties)
 
typedef WGPUBool(* WGPUProcAdapterHasFeature) (WGPUAdapter adapter, WGPUFeatureName feature)
 
typedef void(* WGPUProcAdapterRequestAdapterInfo) (WGPUAdapter adapter, WGPUAdapterRequestAdapterInfoCallback callback, void *userdata)
 
typedef void(* WGPUProcAdapterRequestDevice) (WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPUAdapterRequestDeviceCallback callback, void *userdata)
 
typedef void(* WGPUProcAdapterReference) (WGPUAdapter adapter)
 
typedef void(* WGPUProcAdapterRelease) (WGPUAdapter adapter)
 
typedef void(* WGPUProcBindGroupSetLabel) (WGPUBindGroup bindGroup, char const *label)
 
typedef void(* WGPUProcBindGroupReference) (WGPUBindGroup bindGroup)
 
typedef void(* WGPUProcBindGroupRelease) (WGPUBindGroup bindGroup)
 
typedef void(* WGPUProcBindGroupLayoutSetLabel) (WGPUBindGroupLayout bindGroupLayout, char const *label)
 
typedef void(* WGPUProcBindGroupLayoutReference) (WGPUBindGroupLayout bindGroupLayout)
 
typedef void(* WGPUProcBindGroupLayoutRelease) (WGPUBindGroupLayout bindGroupLayout)
 
typedef void(* WGPUProcBufferDestroy) (WGPUBuffer buffer)
 
typedef void const *(* WGPUProcBufferGetConstMappedRange) (WGPUBuffer buffer, size_t offset, size_t size)
 
typedef WGPUBufferMapState(* WGPUProcBufferGetMapState) (WGPUBuffer buffer)
 
typedef void *(* WGPUProcBufferGetMappedRange) (WGPUBuffer buffer, size_t offset, size_t size)
 
typedef uint64_t(* WGPUProcBufferGetSize) (WGPUBuffer buffer)
 
typedef WGPUBufferUsageFlags(* WGPUProcBufferGetUsage) (WGPUBuffer buffer)
 
typedef void(* WGPUProcBufferMapAsync) (WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapAsyncCallback callback, void *userdata)
 
typedef void(* WGPUProcBufferSetLabel) (WGPUBuffer buffer, char const *label)
 
typedef void(* WGPUProcBufferUnmap) (WGPUBuffer buffer)
 
typedef void(* WGPUProcBufferReference) (WGPUBuffer buffer)
 
typedef void(* WGPUProcBufferRelease) (WGPUBuffer buffer)
 
typedef void(* WGPUProcCommandBufferSetLabel) (WGPUCommandBuffer commandBuffer, char const *label)
 
typedef void(* WGPUProcCommandBufferReference) (WGPUCommandBuffer commandBuffer)
 
typedef void(* WGPUProcCommandBufferRelease) (WGPUCommandBuffer commandBuffer)
 
typedef WGPUComputePassEncoder(* WGPUProcCommandEncoderBeginComputePass) (WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const *descriptor)
 
typedef WGPURenderPassEncoder(* WGPUProcCommandEncoderBeginRenderPass) (WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor)
 
typedef void(* WGPUProcCommandEncoderClearBuffer) (WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
 
typedef void(* WGPUProcCommandEncoderCopyBufferToBuffer) (WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
 
typedef void(* WGPUProcCommandEncoderCopyBufferToTexture) (WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize)
 
typedef void(* WGPUProcCommandEncoderCopyTextureToBuffer) (WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyBuffer const *destination, WGPUExtent3D const *copySize)
 
typedef void(* WGPUProcCommandEncoderCopyTextureToTexture) (WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize)
 
typedef WGPUCommandBuffer(* WGPUProcCommandEncoderFinish) (WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const *descriptor)
 
typedef void(* WGPUProcCommandEncoderInsertDebugMarker) (WGPUCommandEncoder commandEncoder, char const *markerLabel)
 
typedef void(* WGPUProcCommandEncoderPopDebugGroup) (WGPUCommandEncoder commandEncoder)
 
typedef void(* WGPUProcCommandEncoderPushDebugGroup) (WGPUCommandEncoder commandEncoder, char const *groupLabel)
 
typedef void(* WGPUProcCommandEncoderResolveQuerySet) (WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
 
typedef void(* WGPUProcCommandEncoderSetLabel) (WGPUCommandEncoder commandEncoder, char const *label)
 
typedef void(* WGPUProcCommandEncoderWriteTimestamp) (WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
 
typedef void(* WGPUProcCommandEncoderReference) (WGPUCommandEncoder commandEncoder)
 
typedef void(* WGPUProcCommandEncoderRelease) (WGPUCommandEncoder commandEncoder)
 
typedef void(* WGPUProcComputePassEncoderDispatchWorkgroups) (WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
 
typedef void(* WGPUProcComputePassEncoderDispatchWorkgroupsIndirect) (WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
typedef void(* WGPUProcComputePassEncoderEnd) (WGPUComputePassEncoder computePassEncoder)
 
typedef void(* WGPUProcComputePassEncoderInsertDebugMarker) (WGPUComputePassEncoder computePassEncoder, char const *markerLabel)
 
typedef void(* WGPUProcComputePassEncoderPopDebugGroup) (WGPUComputePassEncoder computePassEncoder)
 
typedef void(* WGPUProcComputePassEncoderPushDebugGroup) (WGPUComputePassEncoder computePassEncoder, char const *groupLabel)
 
typedef void(* WGPUProcComputePassEncoderSetBindGroup) (WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
 
typedef void(* WGPUProcComputePassEncoderSetLabel) (WGPUComputePassEncoder computePassEncoder, char const *label)
 
typedef void(* WGPUProcComputePassEncoderSetPipeline) (WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
 
typedef void(* WGPUProcComputePassEncoderReference) (WGPUComputePassEncoder computePassEncoder)
 
typedef void(* WGPUProcComputePassEncoderRelease) (WGPUComputePassEncoder computePassEncoder)
 
typedef WGPUBindGroupLayout(* WGPUProcComputePipelineGetBindGroupLayout) (WGPUComputePipeline computePipeline, uint32_t groupIndex)
 
typedef void(* WGPUProcComputePipelineSetLabel) (WGPUComputePipeline computePipeline, char const *label)
 
typedef void(* WGPUProcComputePipelineReference) (WGPUComputePipeline computePipeline)
 
typedef void(* WGPUProcComputePipelineRelease) (WGPUComputePipeline computePipeline)
 
typedef WGPUBindGroup(* WGPUProcDeviceCreateBindGroup) (WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)
 
typedef WGPUBindGroupLayout(* WGPUProcDeviceCreateBindGroupLayout) (WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)
 
typedef WGPUBuffer(* WGPUProcDeviceCreateBuffer) (WGPUDevice device, WGPUBufferDescriptor const *descriptor)
 
typedef WGPUCommandEncoder(* WGPUProcDeviceCreateCommandEncoder) (WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)
 
typedef WGPUComputePipeline(* WGPUProcDeviceCreateComputePipeline) (WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)
 
typedef void(* WGPUProcDeviceCreateComputePipelineAsync) (WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUDeviceCreateComputePipelineAsyncCallback callback, void *userdata)
 
typedef WGPUPipelineLayout(* WGPUProcDeviceCreatePipelineLayout) (WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)
 
typedef WGPUQuerySet(* WGPUProcDeviceCreateQuerySet) (WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)
 
typedef WGPURenderBundleEncoder(* WGPUProcDeviceCreateRenderBundleEncoder) (WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)
 
typedef WGPURenderPipeline(* WGPUProcDeviceCreateRenderPipeline) (WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)
 
typedef void(* WGPUProcDeviceCreateRenderPipelineAsync) (WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUDeviceCreateRenderPipelineAsyncCallback callback, void *userdata)
 
typedef WGPUSampler(* WGPUProcDeviceCreateSampler) (WGPUDevice device, WGPUSamplerDescriptor const *descriptor)
 
typedef WGPUShaderModule(* WGPUProcDeviceCreateShaderModule) (WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)
 
typedef WGPUTexture(* WGPUProcDeviceCreateTexture) (WGPUDevice device, WGPUTextureDescriptor const *descriptor)
 
typedef void(* WGPUProcDeviceDestroy) (WGPUDevice device)
 
typedef size_t(* WGPUProcDeviceEnumerateFeatures) (WGPUDevice device, WGPUFeatureName *features)
 
typedef WGPUBool(* WGPUProcDeviceGetLimits) (WGPUDevice device, WGPUSupportedLimits *limits)
 
typedef WGPUQueue(* WGPUProcDeviceGetQueue) (WGPUDevice device)
 
typedef WGPUBool(* WGPUProcDeviceHasFeature) (WGPUDevice device, WGPUFeatureName feature)
 
typedef void(* WGPUProcDevicePopErrorScope) (WGPUDevice device, WGPUErrorCallback callback, void *userdata)
 
typedef void(* WGPUProcDevicePushErrorScope) (WGPUDevice device, WGPUErrorFilter filter)
 
typedef void(* WGPUProcDeviceSetLabel) (WGPUDevice device, char const *label)
 
typedef void(* WGPUProcDeviceSetUncapturedErrorCallback) (WGPUDevice device, WGPUErrorCallback callback, void *userdata)
 
typedef void(* WGPUProcDeviceReference) (WGPUDevice device)
 
typedef void(* WGPUProcDeviceRelease) (WGPUDevice device)
 
typedef WGPUSurface(* WGPUProcInstanceCreateSurface) (WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor)
 
typedef WGPUBool(* WGPUProcInstanceHasWGSLLanguageFeature) (WGPUInstance instance, WGPUWGSLFeatureName feature)
 
typedef void(* WGPUProcInstanceProcessEvents) (WGPUInstance instance)
 
typedef void(* WGPUProcInstanceRequestAdapter) (WGPUInstance instance, WGPURequestAdapterOptions const *options, WGPUInstanceRequestAdapterCallback callback, void *userdata)
 
typedef void(* WGPUProcInstanceReference) (WGPUInstance instance)
 
typedef void(* WGPUProcInstanceRelease) (WGPUInstance instance)
 
typedef void(* WGPUProcPipelineLayoutSetLabel) (WGPUPipelineLayout pipelineLayout, char const *label)
 
typedef void(* WGPUProcPipelineLayoutReference) (WGPUPipelineLayout pipelineLayout)
 
typedef void(* WGPUProcPipelineLayoutRelease) (WGPUPipelineLayout pipelineLayout)
 
typedef void(* WGPUProcQuerySetDestroy) (WGPUQuerySet querySet)
 
typedef uint32_t(* WGPUProcQuerySetGetCount) (WGPUQuerySet querySet)
 
typedef WGPUQueryType(* WGPUProcQuerySetGetType) (WGPUQuerySet querySet)
 
typedef void(* WGPUProcQuerySetSetLabel) (WGPUQuerySet querySet, char const *label)
 
typedef void(* WGPUProcQuerySetReference) (WGPUQuerySet querySet)
 
typedef void(* WGPUProcQuerySetRelease) (WGPUQuerySet querySet)
 
typedef void(* WGPUProcQueueOnSubmittedWorkDone) (WGPUQueue queue, WGPUQueueOnSubmittedWorkDoneCallback callback, void *userdata)
 
typedef void(* WGPUProcQueueSetLabel) (WGPUQueue queue, char const *label)
 
typedef void(* WGPUProcQueueSubmit) (WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands)
 
typedef void(* WGPUProcQueueWriteBuffer) (WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size)
 
typedef void(* WGPUProcQueueWriteTexture) (WGPUQueue queue, WGPUImageCopyTexture const *destination, void const *data, size_t dataSize, WGPUTextureDataLayout const *dataLayout, WGPUExtent3D const *writeSize)
 
typedef void(* WGPUProcQueueReference) (WGPUQueue queue)
 
typedef void(* WGPUProcQueueRelease) (WGPUQueue queue)
 
typedef void(* WGPUProcRenderBundleSetLabel) (WGPURenderBundle renderBundle, char const *label)
 
typedef void(* WGPUProcRenderBundleReference) (WGPURenderBundle renderBundle)
 
typedef void(* WGPUProcRenderBundleRelease) (WGPURenderBundle renderBundle)
 
typedef void(* WGPUProcRenderBundleEncoderDraw) (WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
 
typedef void(* WGPUProcRenderBundleEncoderDrawIndexed) (WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
 
typedef void(* WGPUProcRenderBundleEncoderDrawIndexedIndirect) (WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
typedef void(* WGPUProcRenderBundleEncoderDrawIndirect) (WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
typedef WGPURenderBundle(* WGPUProcRenderBundleEncoderFinish) (WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const *descriptor)
 
typedef void(* WGPUProcRenderBundleEncoderInsertDebugMarker) (WGPURenderBundleEncoder renderBundleEncoder, char const *markerLabel)
 
typedef void(* WGPUProcRenderBundleEncoderPopDebugGroup) (WGPURenderBundleEncoder renderBundleEncoder)
 
typedef void(* WGPUProcRenderBundleEncoderPushDebugGroup) (WGPURenderBundleEncoder renderBundleEncoder, char const *groupLabel)
 
typedef void(* WGPUProcRenderBundleEncoderSetBindGroup) (WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
 
typedef void(* WGPUProcRenderBundleEncoderSetIndexBuffer) (WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
 
typedef void(* WGPUProcRenderBundleEncoderSetLabel) (WGPURenderBundleEncoder renderBundleEncoder, char const *label)
 
typedef void(* WGPUProcRenderBundleEncoderSetPipeline) (WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
 
typedef void(* WGPUProcRenderBundleEncoderSetVertexBuffer) (WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
 
typedef void(* WGPUProcRenderBundleEncoderReference) (WGPURenderBundleEncoder renderBundleEncoder)
 
typedef void(* WGPUProcRenderBundleEncoderRelease) (WGPURenderBundleEncoder renderBundleEncoder)
 
typedef void(* WGPUProcRenderPassEncoderBeginOcclusionQuery) (WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
 
typedef void(* WGPUProcRenderPassEncoderDraw) (WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
 
typedef void(* WGPUProcRenderPassEncoderDrawIndexed) (WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
 
typedef void(* WGPUProcRenderPassEncoderDrawIndexedIndirect) (WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
typedef void(* WGPUProcRenderPassEncoderDrawIndirect) (WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
typedef void(* WGPUProcRenderPassEncoderEnd) (WGPURenderPassEncoder renderPassEncoder)
 
typedef void(* WGPUProcRenderPassEncoderEndOcclusionQuery) (WGPURenderPassEncoder renderPassEncoder)
 
typedef void(* WGPUProcRenderPassEncoderExecuteBundles) (WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles)
 
typedef void(* WGPUProcRenderPassEncoderInsertDebugMarker) (WGPURenderPassEncoder renderPassEncoder, char const *markerLabel)
 
typedef void(* WGPUProcRenderPassEncoderPopDebugGroup) (WGPURenderPassEncoder renderPassEncoder)
 
typedef void(* WGPUProcRenderPassEncoderPushDebugGroup) (WGPURenderPassEncoder renderPassEncoder, char const *groupLabel)
 
typedef void(* WGPUProcRenderPassEncoderSetBindGroup) (WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
 
typedef void(* WGPUProcRenderPassEncoderSetBlendConstant) (WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color)
 
typedef void(* WGPUProcRenderPassEncoderSetIndexBuffer) (WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
 
typedef void(* WGPUProcRenderPassEncoderSetLabel) (WGPURenderPassEncoder renderPassEncoder, char const *label)
 
typedef void(* WGPUProcRenderPassEncoderSetPipeline) (WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
 
typedef void(* WGPUProcRenderPassEncoderSetScissorRect) (WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
 
typedef void(* WGPUProcRenderPassEncoderSetStencilReference) (WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
 
typedef void(* WGPUProcRenderPassEncoderSetVertexBuffer) (WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
 
typedef void(* WGPUProcRenderPassEncoderSetViewport) (WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
 
typedef void(* WGPUProcRenderPassEncoderReference) (WGPURenderPassEncoder renderPassEncoder)
 
typedef void(* WGPUProcRenderPassEncoderRelease) (WGPURenderPassEncoder renderPassEncoder)
 
typedef WGPUBindGroupLayout(* WGPUProcRenderPipelineGetBindGroupLayout) (WGPURenderPipeline renderPipeline, uint32_t groupIndex)
 
typedef void(* WGPUProcRenderPipelineSetLabel) (WGPURenderPipeline renderPipeline, char const *label)
 
typedef void(* WGPUProcRenderPipelineReference) (WGPURenderPipeline renderPipeline)
 
typedef void(* WGPUProcRenderPipelineRelease) (WGPURenderPipeline renderPipeline)
 
typedef void(* WGPUProcSamplerSetLabel) (WGPUSampler sampler, char const *label)
 
typedef void(* WGPUProcSamplerReference) (WGPUSampler sampler)
 
typedef void(* WGPUProcSamplerRelease) (WGPUSampler sampler)
 
typedef void(* WGPUProcShaderModuleGetCompilationInfo) (WGPUShaderModule shaderModule, WGPUShaderModuleGetCompilationInfoCallback callback, void *userdata)
 
typedef void(* WGPUProcShaderModuleSetLabel) (WGPUShaderModule shaderModule, char const *label)
 
typedef void(* WGPUProcShaderModuleReference) (WGPUShaderModule shaderModule)
 
typedef void(* WGPUProcShaderModuleRelease) (WGPUShaderModule shaderModule)
 
typedef void(* WGPUProcSurfaceConfigure) (WGPUSurface surface, WGPUSurfaceConfiguration const *config)
 
typedef void(* WGPUProcSurfaceGetCapabilities) (WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
 
typedef void(* WGPUProcSurfaceGetCurrentTexture) (WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
 
typedef WGPUTextureFormat(* WGPUProcSurfaceGetPreferredFormat) (WGPUSurface surface, WGPUAdapter adapter)
 
typedef void(* WGPUProcSurfacePresent) (WGPUSurface surface)
 
typedef void(* WGPUProcSurfaceSetLabel) (WGPUSurface surface, char const *label)
 
typedef void(* WGPUProcSurfaceUnconfigure) (WGPUSurface surface)
 
typedef void(* WGPUProcSurfaceReference) (WGPUSurface surface)
 
typedef void(* WGPUProcSurfaceRelease) (WGPUSurface surface)
 
typedef void(* WGPUProcSurfaceCapabilitiesFreeMembers) (WGPUSurfaceCapabilities surfaceCapabilities)
 
typedef WGPUTextureView(* WGPUProcTextureCreateView) (WGPUTexture texture, WGPUTextureViewDescriptor const *descriptor)
 
typedef void(* WGPUProcTextureDestroy) (WGPUTexture texture)
 
typedef uint32_t(* WGPUProcTextureGetDepthOrArrayLayers) (WGPUTexture texture)
 
typedef WGPUTextureDimension(* WGPUProcTextureGetDimension) (WGPUTexture texture)
 
typedef WGPUTextureFormat(* WGPUProcTextureGetFormat) (WGPUTexture texture)
 
typedef uint32_t(* WGPUProcTextureGetHeight) (WGPUTexture texture)
 
typedef uint32_t(* WGPUProcTextureGetMipLevelCount) (WGPUTexture texture)
 
typedef uint32_t(* WGPUProcTextureGetSampleCount) (WGPUTexture texture)
 
typedef WGPUTextureUsageFlags(* WGPUProcTextureGetUsage) (WGPUTexture texture)
 
typedef uint32_t(* WGPUProcTextureGetWidth) (WGPUTexture texture)
 
typedef void(* WGPUProcTextureSetLabel) (WGPUTexture texture, char const *label)
 
typedef void(* WGPUProcTextureReference) (WGPUTexture texture)
 
typedef void(* WGPUProcTextureRelease) (WGPUTexture texture)
 
typedef void(* WGPUProcTextureViewSetLabel) (WGPUTextureView textureView, char const *label)
 
typedef void(* WGPUProcTextureViewReference) (WGPUTextureView textureView)
 
typedef void(* WGPUProcTextureViewRelease) (WGPUTextureView textureView)
 

Enumerations

enum  WGPUAdapterType {
  WGPUAdapterType_DiscreteGPU = 0x00000000 ,
  WGPUAdapterType_IntegratedGPU = 0x00000001 ,
  WGPUAdapterType_CPU = 0x00000002 ,
  WGPUAdapterType_Unknown = 0x00000003 ,
  WGPUAdapterType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUAddressMode {
  WGPUAddressMode_Repeat = 0x00000000 ,
  WGPUAddressMode_MirrorRepeat = 0x00000001 ,
  WGPUAddressMode_ClampToEdge = 0x00000002 ,
  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_Zero = 0x00000000 ,
  WGPUBlendFactor_One = 0x00000001 ,
  WGPUBlendFactor_Src = 0x00000002 ,
  WGPUBlendFactor_OneMinusSrc = 0x00000003 ,
  WGPUBlendFactor_SrcAlpha = 0x00000004 ,
  WGPUBlendFactor_OneMinusSrcAlpha = 0x00000005 ,
  WGPUBlendFactor_Dst = 0x00000006 ,
  WGPUBlendFactor_OneMinusDst = 0x00000007 ,
  WGPUBlendFactor_DstAlpha = 0x00000008 ,
  WGPUBlendFactor_OneMinusDstAlpha = 0x00000009 ,
  WGPUBlendFactor_SrcAlphaSaturated = 0x0000000A ,
  WGPUBlendFactor_Constant = 0x0000000B ,
  WGPUBlendFactor_OneMinusConstant = 0x0000000C ,
  WGPUBlendFactor_Force32 = 0x7FFFFFFF
}
 
enum  WGPUBlendOperation {
  WGPUBlendOperation_Add = 0x00000000 ,
  WGPUBlendOperation_Subtract = 0x00000001 ,
  WGPUBlendOperation_ReverseSubtract = 0x00000002 ,
  WGPUBlendOperation_Min = 0x00000003 ,
  WGPUBlendOperation_Max = 0x00000004 ,
  WGPUBlendOperation_Force32 = 0x7FFFFFFF
}
 
enum  WGPUBufferBindingType {
  WGPUBufferBindingType_Undefined = 0x00000000 ,
  WGPUBufferBindingType_Uniform = 0x00000001 ,
  WGPUBufferBindingType_Storage = 0x00000002 ,
  WGPUBufferBindingType_ReadOnlyStorage = 0x00000003 ,
  WGPUBufferBindingType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUBufferMapAsyncStatus {
  WGPUBufferMapAsyncStatus_Success = 0x00000000 ,
  WGPUBufferMapAsyncStatus_ValidationError = 0x00000001 ,
  WGPUBufferMapAsyncStatus_Unknown = 0x00000002 ,
  WGPUBufferMapAsyncStatus_DeviceLost = 0x00000003 ,
  WGPUBufferMapAsyncStatus_DestroyedBeforeCallback = 0x00000004 ,
  WGPUBufferMapAsyncStatus_UnmappedBeforeCallback = 0x00000005 ,
  WGPUBufferMapAsyncStatus_MappingAlreadyPending = 0x00000006 ,
  WGPUBufferMapAsyncStatus_OffsetOutOfRange = 0x00000007 ,
  WGPUBufferMapAsyncStatus_SizeOutOfRange = 0x00000008 ,
  WGPUBufferMapAsyncStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUBufferMapState {
  WGPUBufferMapState_Unmapped = 0x00000000 ,
  WGPUBufferMapState_Pending = 0x00000001 ,
  WGPUBufferMapState_Mapped = 0x00000002 ,
  WGPUBufferMapState_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCompareFunction {
  WGPUCompareFunction_Undefined = 0x00000000 ,
  WGPUCompareFunction_Never = 0x00000001 ,
  WGPUCompareFunction_Less = 0x00000002 ,
  WGPUCompareFunction_LessEqual = 0x00000003 ,
  WGPUCompareFunction_Greater = 0x00000004 ,
  WGPUCompareFunction_GreaterEqual = 0x00000005 ,
  WGPUCompareFunction_Equal = 0x00000006 ,
  WGPUCompareFunction_NotEqual = 0x00000007 ,
  WGPUCompareFunction_Always = 0x00000008 ,
  WGPUCompareFunction_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCompilationInfoRequestStatus {
  WGPUCompilationInfoRequestStatus_Success = 0x00000000 ,
  WGPUCompilationInfoRequestStatus_Error = 0x00000001 ,
  WGPUCompilationInfoRequestStatus_DeviceLost = 0x00000002 ,
  WGPUCompilationInfoRequestStatus_Unknown = 0x00000003 ,
  WGPUCompilationInfoRequestStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCompilationMessageType {
  WGPUCompilationMessageType_Error = 0x00000000 ,
  WGPUCompilationMessageType_Warning = 0x00000001 ,
  WGPUCompilationMessageType_Info = 0x00000002 ,
  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 = 0x00000000 ,
  WGPUCreatePipelineAsyncStatus_ValidationError = 0x00000001 ,
  WGPUCreatePipelineAsyncStatus_InternalError = 0x00000002 ,
  WGPUCreatePipelineAsyncStatus_DeviceLost = 0x00000003 ,
  WGPUCreatePipelineAsyncStatus_DeviceDestroyed = 0x00000004 ,
  WGPUCreatePipelineAsyncStatus_Unknown = 0x00000005 ,
  WGPUCreatePipelineAsyncStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUCullMode {
  WGPUCullMode_None = 0x00000000 ,
  WGPUCullMode_Front = 0x00000001 ,
  WGPUCullMode_Back = 0x00000002 ,
  WGPUCullMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUDeviceLostReason {
  WGPUDeviceLostReason_Undefined = 0x00000000 ,
  WGPUDeviceLostReason_Destroyed = 0x00000001 ,
  WGPUDeviceLostReason_Force32 = 0x7FFFFFFF
}
 
enum  WGPUErrorFilter {
  WGPUErrorFilter_Validation = 0x00000000 ,
  WGPUErrorFilter_OutOfMemory = 0x00000001 ,
  WGPUErrorFilter_Internal = 0x00000002 ,
  WGPUErrorFilter_Force32 = 0x7FFFFFFF
}
 
enum  WGPUErrorType {
  WGPUErrorType_NoError = 0x00000000 ,
  WGPUErrorType_Validation = 0x00000001 ,
  WGPUErrorType_OutOfMemory = 0x00000002 ,
  WGPUErrorType_Internal = 0x00000003 ,
  WGPUErrorType_Unknown = 0x00000004 ,
  WGPUErrorType_DeviceLost = 0x00000005 ,
  WGPUErrorType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUFeatureName {
  WGPUFeatureName_Undefined = 0x00000000 ,
  WGPUFeatureName_DepthClipControl = 0x00000001 ,
  WGPUFeatureName_Depth32FloatStencil8 = 0x00000002 ,
  WGPUFeatureName_TimestampQuery = 0x00000003 ,
  WGPUFeatureName_TextureCompressionBC = 0x00000004 ,
  WGPUFeatureName_TextureCompressionETC2 = 0x00000005 ,
  WGPUFeatureName_TextureCompressionASTC = 0x00000006 ,
  WGPUFeatureName_IndirectFirstInstance = 0x00000007 ,
  WGPUFeatureName_ShaderF16 = 0x00000008 ,
  WGPUFeatureName_RG11B10UfloatRenderable = 0x00000009 ,
  WGPUFeatureName_BGRA8UnormStorage = 0x0000000A ,
  WGPUFeatureName_Float32Filterable = 0x0000000B ,
  WGPUFeatureName_Force32 = 0x7FFFFFFF
}
 
enum  WGPUFilterMode {
  WGPUFilterMode_Nearest = 0x00000000 ,
  WGPUFilterMode_Linear = 0x00000001 ,
  WGPUFilterMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUFrontFace {
  WGPUFrontFace_CCW = 0x00000000 ,
  WGPUFrontFace_CW = 0x00000001 ,
  WGPUFrontFace_Force32 = 0x7FFFFFFF
}
 
enum  WGPUIndexFormat {
  WGPUIndexFormat_Undefined = 0x00000000 ,
  WGPUIndexFormat_Uint16 = 0x00000001 ,
  WGPUIndexFormat_Uint32 = 0x00000002 ,
  WGPUIndexFormat_Force32 = 0x7FFFFFFF
}
 
enum  WGPULoadOp {
  WGPULoadOp_Undefined = 0x00000000 ,
  WGPULoadOp_Clear = 0x00000001 ,
  WGPULoadOp_Load = 0x00000002 ,
  WGPULoadOp_Force32 = 0x7FFFFFFF
}
 
enum  WGPUMipmapFilterMode {
  WGPUMipmapFilterMode_Nearest = 0x00000000 ,
  WGPUMipmapFilterMode_Linear = 0x00000001 ,
  WGPUMipmapFilterMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUPowerPreference {
  WGPUPowerPreference_Undefined = 0x00000000 ,
  WGPUPowerPreference_LowPower = 0x00000001 ,
  WGPUPowerPreference_HighPerformance = 0x00000002 ,
  WGPUPowerPreference_Force32 = 0x7FFFFFFF
}
 
enum  WGPUPresentMode {
  WGPUPresentMode_Fifo = 0x00000000 ,
  WGPUPresentMode_FifoRelaxed = 0x00000001 ,
  WGPUPresentMode_Immediate = 0x00000002 ,
  WGPUPresentMode_Mailbox = 0x00000003 ,
  WGPUPresentMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUPrimitiveTopology {
  WGPUPrimitiveTopology_PointList = 0x00000000 ,
  WGPUPrimitiveTopology_LineList = 0x00000001 ,
  WGPUPrimitiveTopology_LineStrip = 0x00000002 ,
  WGPUPrimitiveTopology_TriangleList = 0x00000003 ,
  WGPUPrimitiveTopology_TriangleStrip = 0x00000004 ,
  WGPUPrimitiveTopology_Force32 = 0x7FFFFFFF
}
 
enum  WGPUQueryType {
  WGPUQueryType_Occlusion = 0x00000000 ,
  WGPUQueryType_Timestamp = 0x00000001 ,
  WGPUQueryType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUQueueWorkDoneStatus {
  WGPUQueueWorkDoneStatus_Success = 0x00000000 ,
  WGPUQueueWorkDoneStatus_Error = 0x00000001 ,
  WGPUQueueWorkDoneStatus_Unknown = 0x00000002 ,
  WGPUQueueWorkDoneStatus_DeviceLost = 0x00000003 ,
  WGPUQueueWorkDoneStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPURequestAdapterStatus {
  WGPURequestAdapterStatus_Success = 0x00000000 ,
  WGPURequestAdapterStatus_Unavailable = 0x00000001 ,
  WGPURequestAdapterStatus_Error = 0x00000002 ,
  WGPURequestAdapterStatus_Unknown = 0x00000003 ,
  WGPURequestAdapterStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPURequestDeviceStatus {
  WGPURequestDeviceStatus_Success = 0x00000000 ,
  WGPURequestDeviceStatus_Error = 0x00000001 ,
  WGPURequestDeviceStatus_Unknown = 0x00000002 ,
  WGPURequestDeviceStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUSType {
  WGPUSType_Invalid = 0x00000000 ,
  WGPUSType_SurfaceDescriptorFromMetalLayer = 0x00000001 ,
  WGPUSType_SurfaceDescriptorFromWindowsHWND = 0x00000002 ,
  WGPUSType_SurfaceDescriptorFromXlibWindow = 0x00000003 ,
  WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector = 0x00000004 ,
  WGPUSType_ShaderModuleSPIRVDescriptor = 0x00000005 ,
  WGPUSType_ShaderModuleWGSLDescriptor = 0x00000006 ,
  WGPUSType_PrimitiveDepthClipControl = 0x00000007 ,
  WGPUSType_SurfaceDescriptorFromWaylandSurface = 0x00000008 ,
  WGPUSType_SurfaceDescriptorFromAndroidNativeWindow = 0x00000009 ,
  WGPUSType_SurfaceDescriptorFromXcbWindow = 0x0000000A ,
  WGPUSType_RenderPassDescriptorMaxDrawCount = 0x0000000F ,
  WGPUSType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUSamplerBindingType {
  WGPUSamplerBindingType_Undefined = 0x00000000 ,
  WGPUSamplerBindingType_Filtering = 0x00000001 ,
  WGPUSamplerBindingType_NonFiltering = 0x00000002 ,
  WGPUSamplerBindingType_Comparison = 0x00000003 ,
  WGPUSamplerBindingType_Force32 = 0x7FFFFFFF
}
 
enum  WGPUStencilOperation {
  WGPUStencilOperation_Keep = 0x00000000 ,
  WGPUStencilOperation_Zero = 0x00000001 ,
  WGPUStencilOperation_Replace = 0x00000002 ,
  WGPUStencilOperation_Invert = 0x00000003 ,
  WGPUStencilOperation_IncrementClamp = 0x00000004 ,
  WGPUStencilOperation_DecrementClamp = 0x00000005 ,
  WGPUStencilOperation_IncrementWrap = 0x00000006 ,
  WGPUStencilOperation_DecrementWrap = 0x00000007 ,
  WGPUStencilOperation_Force32 = 0x7FFFFFFF
}
 
enum  WGPUStorageTextureAccess {
  WGPUStorageTextureAccess_Undefined = 0x00000000 ,
  WGPUStorageTextureAccess_WriteOnly = 0x00000001 ,
  WGPUStorageTextureAccess_ReadOnly = 0x00000002 ,
  WGPUStorageTextureAccess_ReadWrite = 0x00000003 ,
  WGPUStorageTextureAccess_Force32 = 0x7FFFFFFF
}
 
enum  WGPUStoreOp {
  WGPUStoreOp_Undefined = 0x00000000 ,
  WGPUStoreOp_Store = 0x00000001 ,
  WGPUStoreOp_Discard = 0x00000002 ,
  WGPUStoreOp_Force32 = 0x7FFFFFFF
}
 
enum  WGPUSurfaceGetCurrentTextureStatus {
  WGPUSurfaceGetCurrentTextureStatus_Success = 0x00000000 ,
  WGPUSurfaceGetCurrentTextureStatus_Timeout = 0x00000001 ,
  WGPUSurfaceGetCurrentTextureStatus_Outdated = 0x00000002 ,
  WGPUSurfaceGetCurrentTextureStatus_Lost = 0x00000003 ,
  WGPUSurfaceGetCurrentTextureStatus_OutOfMemory = 0x00000004 ,
  WGPUSurfaceGetCurrentTextureStatus_DeviceLost = 0x00000005 ,
  WGPUSurfaceGetCurrentTextureStatus_Force32 = 0x7FFFFFFF
}
 
enum  WGPUTextureAspect {
  WGPUTextureAspect_All = 0x00000000 ,
  WGPUTextureAspect_StencilOnly = 0x00000001 ,
  WGPUTextureAspect_DepthOnly = 0x00000002 ,
  WGPUTextureAspect_Force32 = 0x7FFFFFFF
}
 
enum  WGPUTextureDimension {
  WGPUTextureDimension_1D = 0x00000000 ,
  WGPUTextureDimension_2D = 0x00000001 ,
  WGPUTextureDimension_3D = 0x00000002 ,
  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_Undefined = 0x00000000 ,
  WGPUTextureSampleType_Float = 0x00000001 ,
  WGPUTextureSampleType_UnfilterableFloat = 0x00000002 ,
  WGPUTextureSampleType_Depth = 0x00000003 ,
  WGPUTextureSampleType_Sint = 0x00000004 ,
  WGPUTextureSampleType_Uint = 0x00000005 ,
  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  WGPUVertexFormat {
  WGPUVertexFormat_Undefined = 0x00000000 ,
  WGPUVertexFormat_Uint8x2 = 0x00000001 ,
  WGPUVertexFormat_Uint8x4 = 0x00000002 ,
  WGPUVertexFormat_Sint8x2 = 0x00000003 ,
  WGPUVertexFormat_Sint8x4 = 0x00000004 ,
  WGPUVertexFormat_Unorm8x2 = 0x00000005 ,
  WGPUVertexFormat_Unorm8x4 = 0x00000006 ,
  WGPUVertexFormat_Snorm8x2 = 0x00000007 ,
  WGPUVertexFormat_Snorm8x4 = 0x00000008 ,
  WGPUVertexFormat_Uint16x2 = 0x00000009 ,
  WGPUVertexFormat_Uint16x4 = 0x0000000A ,
  WGPUVertexFormat_Sint16x2 = 0x0000000B ,
  WGPUVertexFormat_Sint16x4 = 0x0000000C ,
  WGPUVertexFormat_Unorm16x2 = 0x0000000D ,
  WGPUVertexFormat_Unorm16x4 = 0x0000000E ,
  WGPUVertexFormat_Snorm16x2 = 0x0000000F ,
  WGPUVertexFormat_Snorm16x4 = 0x00000010 ,
  WGPUVertexFormat_Float16x2 = 0x00000011 ,
  WGPUVertexFormat_Float16x4 = 0x00000012 ,
  WGPUVertexFormat_Float32 = 0x00000013 ,
  WGPUVertexFormat_Float32x2 = 0x00000014 ,
  WGPUVertexFormat_Float32x3 = 0x00000015 ,
  WGPUVertexFormat_Float32x4 = 0x00000016 ,
  WGPUVertexFormat_Uint32 = 0x00000017 ,
  WGPUVertexFormat_Uint32x2 = 0x00000018 ,
  WGPUVertexFormat_Uint32x3 = 0x00000019 ,
  WGPUVertexFormat_Uint32x4 = 0x0000001A ,
  WGPUVertexFormat_Sint32 = 0x0000001B ,
  WGPUVertexFormat_Sint32x2 = 0x0000001C ,
  WGPUVertexFormat_Sint32x3 = 0x0000001D ,
  WGPUVertexFormat_Sint32x4 = 0x0000001E ,
  WGPUVertexFormat_Force32 = 0x7FFFFFFF
}
 
enum  WGPUVertexStepMode {
  WGPUVertexStepMode_Vertex = 0x00000000 ,
  WGPUVertexStepMode_Instance = 0x00000001 ,
  WGPUVertexStepMode_VertexBufferNotUsed = 0x00000002 ,
  WGPUVertexStepMode_Force32 = 0x7FFFFFFF
}
 
enum  WGPUWGSLFeatureName {
  WGPUWGSLFeatureName_Undefined = 0x00000000 ,
  WGPUWGSLFeatureName_ReadonlyAndReadwriteStorageTextures = 0x00000001 ,
  WGPUWGSLFeatureName_Packed4x8IntegerDotProduct = 0x00000002 ,
  WGPUWGSLFeatureName_UnrestrictedPointerParameters = 0x00000003 ,
  WGPUWGSLFeatureName_PointerCompositeAccess = 0x00000004 ,
  WGPUWGSLFeatureName_Force32 = 0x7FFFFFFF
}
 
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
}
 

Functions

WGPUInstance wgpuCreateInstance (WGPUInstanceDescriptor const *descriptor)
 
WGPUProc wgpuGetProcAddress (WGPUDevice device, char const *procName)
 
size_t wgpuAdapterEnumerateFeatures (WGPUAdapter adapter, WGPUFeatureName *features)
 
WGPUBool wgpuAdapterGetLimits (WGPUAdapter adapter, WGPUSupportedLimits *limits)
 
void wgpuAdapterGetProperties (WGPUAdapter adapter, WGPUAdapterProperties *properties)
 
WGPUBool wgpuAdapterHasFeature (WGPUAdapter adapter, WGPUFeatureName feature)
 
void wgpuAdapterRequestAdapterInfo (WGPUAdapter adapter, WGPUAdapterRequestAdapterInfoCallback callback, void *userdata)
 
void wgpuAdapterRequestDevice (WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPUAdapterRequestDeviceCallback callback, void *userdata)
 
void wgpuAdapterReference (WGPUAdapter adapter)
 
void wgpuAdapterRelease (WGPUAdapter adapter)
 
void wgpuBindGroupSetLabel (WGPUBindGroup bindGroup, char const *label)
 
void wgpuBindGroupReference (WGPUBindGroup bindGroup)
 
void wgpuBindGroupRelease (WGPUBindGroup bindGroup)
 
void wgpuBindGroupLayoutSetLabel (WGPUBindGroupLayout bindGroupLayout, char const *label)
 
void wgpuBindGroupLayoutReference (WGPUBindGroupLayout bindGroupLayout)
 
void wgpuBindGroupLayoutRelease (WGPUBindGroupLayout bindGroupLayout)
 
void wgpuBufferDestroy (WGPUBuffer buffer)
 
void const * wgpuBufferGetConstMappedRange (WGPUBuffer buffer, size_t offset, size_t size)
 
WGPUBufferMapState wgpuBufferGetMapState (WGPUBuffer buffer)
 
void * wgpuBufferGetMappedRange (WGPUBuffer buffer, size_t offset, size_t size)
 
uint64_t wgpuBufferGetSize (WGPUBuffer buffer)
 
WGPUBufferUsageFlags wgpuBufferGetUsage (WGPUBuffer buffer)
 
void wgpuBufferMapAsync (WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapAsyncCallback callback, void *userdata)
 
void wgpuBufferSetLabel (WGPUBuffer buffer, char const *label)
 
void wgpuBufferUnmap (WGPUBuffer buffer)
 
void wgpuBufferReference (WGPUBuffer buffer)
 
void wgpuBufferRelease (WGPUBuffer buffer)
 
void wgpuCommandBufferSetLabel (WGPUCommandBuffer commandBuffer, char const *label)
 
void wgpuCommandBufferReference (WGPUCommandBuffer commandBuffer)
 
void wgpuCommandBufferRelease (WGPUCommandBuffer commandBuffer)
 
WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass (WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const *descriptor)
 
WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass (WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor)
 
void wgpuCommandEncoderClearBuffer (WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
 
void wgpuCommandEncoderCopyBufferToBuffer (WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
 
void wgpuCommandEncoderCopyBufferToTexture (WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize)
 
void wgpuCommandEncoderCopyTextureToBuffer (WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyBuffer const *destination, WGPUExtent3D const *copySize)
 
void wgpuCommandEncoderCopyTextureToTexture (WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize)
 
WGPUCommandBuffer wgpuCommandEncoderFinish (WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const *descriptor)
 
void wgpuCommandEncoderInsertDebugMarker (WGPUCommandEncoder commandEncoder, char const *markerLabel)
 
void wgpuCommandEncoderPopDebugGroup (WGPUCommandEncoder commandEncoder)
 
void wgpuCommandEncoderPushDebugGroup (WGPUCommandEncoder commandEncoder, char const *groupLabel)
 
void wgpuCommandEncoderResolveQuerySet (WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
 
void wgpuCommandEncoderSetLabel (WGPUCommandEncoder commandEncoder, char const *label)
 
void wgpuCommandEncoderWriteTimestamp (WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
 
void wgpuCommandEncoderReference (WGPUCommandEncoder commandEncoder)
 
void wgpuCommandEncoderRelease (WGPUCommandEncoder commandEncoder)
 
void wgpuComputePassEncoderDispatchWorkgroups (WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
 
void wgpuComputePassEncoderDispatchWorkgroupsIndirect (WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
void wgpuComputePassEncoderEnd (WGPUComputePassEncoder computePassEncoder)
 
void wgpuComputePassEncoderInsertDebugMarker (WGPUComputePassEncoder computePassEncoder, char const *markerLabel)
 
void wgpuComputePassEncoderPopDebugGroup (WGPUComputePassEncoder computePassEncoder)
 
void wgpuComputePassEncoderPushDebugGroup (WGPUComputePassEncoder computePassEncoder, char const *groupLabel)
 
void wgpuComputePassEncoderSetBindGroup (WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
 
void wgpuComputePassEncoderSetLabel (WGPUComputePassEncoder computePassEncoder, char const *label)
 
void wgpuComputePassEncoderSetPipeline (WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
 
void wgpuComputePassEncoderReference (WGPUComputePassEncoder computePassEncoder)
 
void wgpuComputePassEncoderRelease (WGPUComputePassEncoder computePassEncoder)
 
WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout (WGPUComputePipeline computePipeline, uint32_t groupIndex)
 
void wgpuComputePipelineSetLabel (WGPUComputePipeline computePipeline, char const *label)
 
void wgpuComputePipelineReference (WGPUComputePipeline computePipeline)
 
void wgpuComputePipelineRelease (WGPUComputePipeline computePipeline)
 
WGPUBindGroup wgpuDeviceCreateBindGroup (WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)
 
WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout (WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)
 
WGPUBuffer wgpuDeviceCreateBuffer (WGPUDevice device, WGPUBufferDescriptor const *descriptor)
 
WGPUCommandEncoder wgpuDeviceCreateCommandEncoder (WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)
 
WGPUComputePipeline wgpuDeviceCreateComputePipeline (WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)
 
void wgpuDeviceCreateComputePipelineAsync (WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUDeviceCreateComputePipelineAsyncCallback callback, void *userdata)
 
WGPUPipelineLayout wgpuDeviceCreatePipelineLayout (WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)
 
WGPUQuerySet wgpuDeviceCreateQuerySet (WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)
 
WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder (WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)
 
WGPURenderPipeline wgpuDeviceCreateRenderPipeline (WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)
 
void wgpuDeviceCreateRenderPipelineAsync (WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUDeviceCreateRenderPipelineAsyncCallback callback, void *userdata)
 
WGPUSampler wgpuDeviceCreateSampler (WGPUDevice device, WGPUSamplerDescriptor const *descriptor)
 
WGPUShaderModule wgpuDeviceCreateShaderModule (WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)
 
WGPUTexture wgpuDeviceCreateTexture (WGPUDevice device, WGPUTextureDescriptor const *descriptor)
 
void wgpuDeviceDestroy (WGPUDevice device)
 
size_t wgpuDeviceEnumerateFeatures (WGPUDevice device, WGPUFeatureName *features)
 
WGPUBool wgpuDeviceGetLimits (WGPUDevice device, WGPUSupportedLimits *limits)
 
WGPUQueue wgpuDeviceGetQueue (WGPUDevice device)
 
WGPUBool wgpuDeviceHasFeature (WGPUDevice device, WGPUFeatureName feature)
 
void wgpuDevicePopErrorScope (WGPUDevice device, WGPUErrorCallback callback, void *userdata)
 
void wgpuDevicePushErrorScope (WGPUDevice device, WGPUErrorFilter filter)
 
void wgpuDeviceSetLabel (WGPUDevice device, char const *label)
 
void wgpuDeviceSetUncapturedErrorCallback (WGPUDevice device, WGPUErrorCallback callback, void *userdata)
 
void wgpuDeviceReference (WGPUDevice device)
 
void wgpuDeviceRelease (WGPUDevice device)
 
WGPUSurface wgpuInstanceCreateSurface (WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor)
 
WGPUBool wgpuInstanceHasWGSLLanguageFeature (WGPUInstance instance, WGPUWGSLFeatureName feature)
 
void wgpuInstanceProcessEvents (WGPUInstance instance)
 
void wgpuInstanceRequestAdapter (WGPUInstance instance, WGPURequestAdapterOptions const *options, WGPUInstanceRequestAdapterCallback callback, void *userdata)
 
void wgpuInstanceReference (WGPUInstance instance)
 
void wgpuInstanceRelease (WGPUInstance instance)
 
void wgpuPipelineLayoutSetLabel (WGPUPipelineLayout pipelineLayout, char const *label)
 
void wgpuPipelineLayoutReference (WGPUPipelineLayout pipelineLayout)
 
void wgpuPipelineLayoutRelease (WGPUPipelineLayout pipelineLayout)
 
void wgpuQuerySetDestroy (WGPUQuerySet querySet)
 
uint32_t wgpuQuerySetGetCount (WGPUQuerySet querySet)
 
WGPUQueryType wgpuQuerySetGetType (WGPUQuerySet querySet)
 
void wgpuQuerySetSetLabel (WGPUQuerySet querySet, char const *label)
 
void wgpuQuerySetReference (WGPUQuerySet querySet)
 
void wgpuQuerySetRelease (WGPUQuerySet querySet)
 
void wgpuQueueOnSubmittedWorkDone (WGPUQueue queue, WGPUQueueOnSubmittedWorkDoneCallback callback, void *userdata)
 
void wgpuQueueSetLabel (WGPUQueue queue, char const *label)
 
void wgpuQueueSubmit (WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands)
 
void wgpuQueueWriteBuffer (WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size)
 
void wgpuQueueWriteTexture (WGPUQueue queue, WGPUImageCopyTexture const *destination, void const *data, size_t dataSize, WGPUTextureDataLayout const *dataLayout, WGPUExtent3D const *writeSize)
 
void wgpuQueueReference (WGPUQueue queue)
 
void wgpuQueueRelease (WGPUQueue queue)
 
void wgpuRenderBundleSetLabel (WGPURenderBundle renderBundle, char const *label)
 
void wgpuRenderBundleReference (WGPURenderBundle renderBundle)
 
void wgpuRenderBundleRelease (WGPURenderBundle renderBundle)
 
void wgpuRenderBundleEncoderDraw (WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
 
void wgpuRenderBundleEncoderDrawIndexed (WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
 
void wgpuRenderBundleEncoderDrawIndexedIndirect (WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
void wgpuRenderBundleEncoderDrawIndirect (WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
WGPURenderBundle wgpuRenderBundleEncoderFinish (WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const *descriptor)
 
void wgpuRenderBundleEncoderInsertDebugMarker (WGPURenderBundleEncoder renderBundleEncoder, char const *markerLabel)
 
void wgpuRenderBundleEncoderPopDebugGroup (WGPURenderBundleEncoder renderBundleEncoder)
 
void wgpuRenderBundleEncoderPushDebugGroup (WGPURenderBundleEncoder renderBundleEncoder, char const *groupLabel)
 
void wgpuRenderBundleEncoderSetBindGroup (WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
 
void wgpuRenderBundleEncoderSetIndexBuffer (WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
 
void wgpuRenderBundleEncoderSetLabel (WGPURenderBundleEncoder renderBundleEncoder, char const *label)
 
void wgpuRenderBundleEncoderSetPipeline (WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
 
void wgpuRenderBundleEncoderSetVertexBuffer (WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
 
void wgpuRenderBundleEncoderReference (WGPURenderBundleEncoder renderBundleEncoder)
 
void wgpuRenderBundleEncoderRelease (WGPURenderBundleEncoder renderBundleEncoder)
 
void wgpuRenderPassEncoderBeginOcclusionQuery (WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
 
void wgpuRenderPassEncoderDraw (WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
 
void wgpuRenderPassEncoderDrawIndexed (WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
 
void wgpuRenderPassEncoderDrawIndexedIndirect (WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
void wgpuRenderPassEncoderDrawIndirect (WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
 
void wgpuRenderPassEncoderEnd (WGPURenderPassEncoder renderPassEncoder)
 
void wgpuRenderPassEncoderEndOcclusionQuery (WGPURenderPassEncoder renderPassEncoder)
 
void wgpuRenderPassEncoderExecuteBundles (WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles)
 
void wgpuRenderPassEncoderInsertDebugMarker (WGPURenderPassEncoder renderPassEncoder, char const *markerLabel)
 
void wgpuRenderPassEncoderPopDebugGroup (WGPURenderPassEncoder renderPassEncoder)
 
void wgpuRenderPassEncoderPushDebugGroup (WGPURenderPassEncoder renderPassEncoder, char const *groupLabel)
 
void wgpuRenderPassEncoderSetBindGroup (WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
 
void wgpuRenderPassEncoderSetBlendConstant (WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color)
 
void wgpuRenderPassEncoderSetIndexBuffer (WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
 
void wgpuRenderPassEncoderSetLabel (WGPURenderPassEncoder renderPassEncoder, char const *label)
 
void wgpuRenderPassEncoderSetPipeline (WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
 
void wgpuRenderPassEncoderSetScissorRect (WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
 
void wgpuRenderPassEncoderSetStencilReference (WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
 
void wgpuRenderPassEncoderSetVertexBuffer (WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
 
void wgpuRenderPassEncoderSetViewport (WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
 
void wgpuRenderPassEncoderReference (WGPURenderPassEncoder renderPassEncoder)
 
void wgpuRenderPassEncoderRelease (WGPURenderPassEncoder renderPassEncoder)
 
WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout (WGPURenderPipeline renderPipeline, uint32_t groupIndex)
 
void wgpuRenderPipelineSetLabel (WGPURenderPipeline renderPipeline, char const *label)
 
void wgpuRenderPipelineReference (WGPURenderPipeline renderPipeline)
 
void wgpuRenderPipelineRelease (WGPURenderPipeline renderPipeline)
 
void wgpuSamplerSetLabel (WGPUSampler sampler, char const *label)
 
void wgpuSamplerReference (WGPUSampler sampler)
 
void wgpuSamplerRelease (WGPUSampler sampler)
 
void wgpuShaderModuleGetCompilationInfo (WGPUShaderModule shaderModule, WGPUShaderModuleGetCompilationInfoCallback callback, void *userdata)
 
void wgpuShaderModuleSetLabel (WGPUShaderModule shaderModule, char const *label)
 
void wgpuShaderModuleReference (WGPUShaderModule shaderModule)
 
void wgpuShaderModuleRelease (WGPUShaderModule shaderModule)
 
void wgpuSurfaceConfigure (WGPUSurface surface, WGPUSurfaceConfiguration const *config)
 
void wgpuSurfaceGetCapabilities (WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
 
void wgpuSurfaceGetCurrentTexture (WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
 
WGPUTextureFormat wgpuSurfaceGetPreferredFormat (WGPUSurface surface, WGPUAdapter adapter)
 
void wgpuSurfacePresent (WGPUSurface surface)
 
void wgpuSurfaceSetLabel (WGPUSurface surface, char const *label)
 
void wgpuSurfaceUnconfigure (WGPUSurface surface)
 
void wgpuSurfaceReference (WGPUSurface surface)
 
void wgpuSurfaceRelease (WGPUSurface surface)
 
void wgpuSurfaceCapabilitiesFreeMembers (WGPUSurfaceCapabilities surfaceCapabilities)
 
WGPUTextureView wgpuTextureCreateView (WGPUTexture texture, WGPUTextureViewDescriptor const *descriptor)
 
void wgpuTextureDestroy (WGPUTexture texture)
 
uint32_t wgpuTextureGetDepthOrArrayLayers (WGPUTexture texture)
 
WGPUTextureDimension wgpuTextureGetDimension (WGPUTexture texture)
 
WGPUTextureFormat wgpuTextureGetFormat (WGPUTexture texture)
 
uint32_t wgpuTextureGetHeight (WGPUTexture texture)
 
uint32_t wgpuTextureGetMipLevelCount (WGPUTexture texture)
 
uint32_t wgpuTextureGetSampleCount (WGPUTexture texture)
 
WGPUTextureUsageFlags wgpuTextureGetUsage (WGPUTexture texture)
 
uint32_t wgpuTextureGetWidth (WGPUTexture texture)
 
void wgpuTextureSetLabel (WGPUTexture texture, char const *label)
 
void wgpuTextureReference (WGPUTexture texture)
 
void wgpuTextureRelease (WGPUTexture texture)
 
void wgpuTextureViewSetLabel (WGPUTextureView textureView, char const *label)
 
void wgpuTextureViewReference (WGPUTextureView textureView)
 
void wgpuTextureViewRelease (WGPUTextureView textureView)
 

Detailed Description

Copyright 2019-2023 WebGPU-Native developers

SPDX-License-Identifier: BSD-3-Clause

Definition in file webgpu.h.

Macro Definition Documentation

◆ WGPU_ENUM_ATTRIBUTE

#define WGPU_ENUM_ATTRIBUTE

Definition at line 43 of file webgpu.h.

◆ WGPU_EXPORT

#define WGPU_EXPORT

Definition at line 36 of file webgpu.h.

◆ WGPU_FUNCTION_ATTRIBUTE

#define WGPU_FUNCTION_ATTRIBUTE

Definition at line 49 of file webgpu.h.

◆ WGPU_NULLABLE

#define WGPU_NULLABLE

Definition at line 52 of file webgpu.h.

◆ WGPU_OBJECT_ATTRIBUTE

#define WGPU_OBJECT_ATTRIBUTE

Definition at line 40 of file webgpu.h.

◆ WGPU_STRUCTURE_ATTRIBUTE

#define WGPU_STRUCTURE_ATTRIBUTE

Definition at line 46 of file webgpu.h.

Typedef Documentation

◆ WGPUDeviceLostCallback

typedef void(* WGPUDeviceLostCallback) (WGPUDeviceLostReason reason, char const *message, void *userdata)

Definition at line 778 of file webgpu.h.

◆ WGPUErrorCallback

typedef void(* WGPUErrorCallback) (WGPUErrorType type, char const *message, void *userdata)

Definition at line 779 of file webgpu.h.

◆ WGPUProc

typedef void(* WGPUProc) (void)

Definition at line 776 of file webgpu.h.

◆ WGPUProcAdapterEnumerateFeatures

typedef size_t(* WGPUProcAdapterEnumerateFeatures) (WGPUAdapter adapter, WGPUFeatureName *features)

Definition at line 1413 of file webgpu.h.

◆ WGPUProcAdapterGetLimits

typedef WGPUBool(* WGPUProcAdapterGetLimits) (WGPUAdapter adapter, WGPUSupportedLimits *limits)

Definition at line 1414 of file webgpu.h.

◆ WGPUProcAdapterGetProperties

typedef void(* WGPUProcAdapterGetProperties) (WGPUAdapter adapter, WGPUAdapterProperties *properties)

Definition at line 1415 of file webgpu.h.

◆ WGPUProcAdapterHasFeature

typedef WGPUBool(* WGPUProcAdapterHasFeature) (WGPUAdapter adapter, WGPUFeatureName feature)

Definition at line 1416 of file webgpu.h.

◆ WGPUProcAdapterReference

typedef void(* WGPUProcAdapterReference) (WGPUAdapter adapter)

Definition at line 1419 of file webgpu.h.

◆ WGPUProcAdapterRelease

typedef void(* WGPUProcAdapterRelease) (WGPUAdapter adapter)

Definition at line 1420 of file webgpu.h.

◆ WGPUProcAdapterRequestAdapterInfo

typedef void(* WGPUProcAdapterRequestAdapterInfo) (WGPUAdapter adapter, WGPUAdapterRequestAdapterInfoCallback callback, void *userdata)

Definition at line 1417 of file webgpu.h.

◆ WGPUProcAdapterRequestDevice

typedef void(* WGPUProcAdapterRequestDevice) (WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPUAdapterRequestDeviceCallback callback, void *userdata)

Definition at line 1418 of file webgpu.h.

◆ WGPUProcBindGroupLayoutReference

typedef void(* WGPUProcBindGroupLayoutReference) (WGPUBindGroupLayout bindGroupLayout)

Definition at line 1429 of file webgpu.h.

◆ WGPUProcBindGroupLayoutRelease

typedef void(* WGPUProcBindGroupLayoutRelease) (WGPUBindGroupLayout bindGroupLayout)

Definition at line 1430 of file webgpu.h.

◆ WGPUProcBindGroupLayoutSetLabel

typedef void(* WGPUProcBindGroupLayoutSetLabel) (WGPUBindGroupLayout bindGroupLayout, char const *label)

Definition at line 1428 of file webgpu.h.

◆ WGPUProcBindGroupReference

typedef void(* WGPUProcBindGroupReference) (WGPUBindGroup bindGroup)

Definition at line 1424 of file webgpu.h.

◆ WGPUProcBindGroupRelease

typedef void(* WGPUProcBindGroupRelease) (WGPUBindGroup bindGroup)

Definition at line 1425 of file webgpu.h.

◆ WGPUProcBindGroupSetLabel

typedef void(* WGPUProcBindGroupSetLabel) (WGPUBindGroup bindGroup, char const *label)

Definition at line 1423 of file webgpu.h.

◆ WGPUProcBufferDestroy

typedef void(* WGPUProcBufferDestroy) (WGPUBuffer buffer)

Definition at line 1433 of file webgpu.h.

◆ WGPUProcBufferGetConstMappedRange

typedef void const *(* WGPUProcBufferGetConstMappedRange) (WGPUBuffer buffer, size_t offset, size_t size)

Definition at line 1434 of file webgpu.h.

◆ WGPUProcBufferGetMappedRange

typedef void *(* WGPUProcBufferGetMappedRange) (WGPUBuffer buffer, size_t offset, size_t size)

Definition at line 1436 of file webgpu.h.

◆ WGPUProcBufferGetMapState

typedef WGPUBufferMapState(* WGPUProcBufferGetMapState) (WGPUBuffer buffer)

Definition at line 1435 of file webgpu.h.

◆ WGPUProcBufferGetSize

typedef uint64_t(* WGPUProcBufferGetSize) (WGPUBuffer buffer)

Definition at line 1437 of file webgpu.h.

◆ WGPUProcBufferGetUsage

typedef WGPUBufferUsageFlags(* WGPUProcBufferGetUsage) (WGPUBuffer buffer)

Definition at line 1438 of file webgpu.h.

◆ WGPUProcBufferMapAsync

typedef void(* WGPUProcBufferMapAsync) (WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapAsyncCallback callback, void *userdata)

Definition at line 1439 of file webgpu.h.

◆ WGPUProcBufferReference

typedef void(* WGPUProcBufferReference) (WGPUBuffer buffer)

Definition at line 1442 of file webgpu.h.

◆ WGPUProcBufferRelease

typedef void(* WGPUProcBufferRelease) (WGPUBuffer buffer)

Definition at line 1443 of file webgpu.h.

◆ WGPUProcBufferSetLabel

typedef void(* WGPUProcBufferSetLabel) (WGPUBuffer buffer, char const *label)

Definition at line 1440 of file webgpu.h.

◆ WGPUProcBufferUnmap

typedef void(* WGPUProcBufferUnmap) (WGPUBuffer buffer)

Definition at line 1441 of file webgpu.h.

◆ WGPUProcCommandBufferReference

typedef void(* WGPUProcCommandBufferReference) (WGPUCommandBuffer commandBuffer)

Definition at line 1447 of file webgpu.h.

◆ WGPUProcCommandBufferRelease

typedef void(* WGPUProcCommandBufferRelease) (WGPUCommandBuffer commandBuffer)

Definition at line 1448 of file webgpu.h.

◆ WGPUProcCommandBufferSetLabel

typedef void(* WGPUProcCommandBufferSetLabel) (WGPUCommandBuffer commandBuffer, char const *label)

Definition at line 1446 of file webgpu.h.

◆ WGPUProcCommandEncoderBeginComputePass

typedef WGPUComputePassEncoder(* WGPUProcCommandEncoderBeginComputePass) (WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const *descriptor)

Definition at line 1451 of file webgpu.h.

◆ WGPUProcCommandEncoderBeginRenderPass

typedef WGPURenderPassEncoder(* WGPUProcCommandEncoderBeginRenderPass) (WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor)

Definition at line 1452 of file webgpu.h.

◆ WGPUProcCommandEncoderClearBuffer

typedef void(* WGPUProcCommandEncoderClearBuffer) (WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)

Definition at line 1453 of file webgpu.h.

◆ WGPUProcCommandEncoderCopyBufferToBuffer

typedef void(* WGPUProcCommandEncoderCopyBufferToBuffer) (WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)

Definition at line 1454 of file webgpu.h.

◆ WGPUProcCommandEncoderCopyBufferToTexture

typedef void(* WGPUProcCommandEncoderCopyBufferToTexture) (WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize)

Definition at line 1455 of file webgpu.h.

◆ WGPUProcCommandEncoderCopyTextureToBuffer

typedef void(* WGPUProcCommandEncoderCopyTextureToBuffer) (WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyBuffer const *destination, WGPUExtent3D const *copySize)

Definition at line 1456 of file webgpu.h.

◆ WGPUProcCommandEncoderCopyTextureToTexture

typedef void(* WGPUProcCommandEncoderCopyTextureToTexture) (WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize)

Definition at line 1457 of file webgpu.h.

◆ WGPUProcCommandEncoderFinish

typedef WGPUCommandBuffer(* WGPUProcCommandEncoderFinish) (WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const *descriptor)

Definition at line 1458 of file webgpu.h.

◆ WGPUProcCommandEncoderInsertDebugMarker

typedef void(* WGPUProcCommandEncoderInsertDebugMarker) (WGPUCommandEncoder commandEncoder, char const *markerLabel)

Definition at line 1459 of file webgpu.h.

◆ WGPUProcCommandEncoderPopDebugGroup

typedef void(* WGPUProcCommandEncoderPopDebugGroup) (WGPUCommandEncoder commandEncoder)

Definition at line 1460 of file webgpu.h.

◆ WGPUProcCommandEncoderPushDebugGroup

typedef void(* WGPUProcCommandEncoderPushDebugGroup) (WGPUCommandEncoder commandEncoder, char const *groupLabel)

Definition at line 1461 of file webgpu.h.

◆ WGPUProcCommandEncoderReference

typedef void(* WGPUProcCommandEncoderReference) (WGPUCommandEncoder commandEncoder)

Definition at line 1465 of file webgpu.h.

◆ WGPUProcCommandEncoderRelease

typedef void(* WGPUProcCommandEncoderRelease) (WGPUCommandEncoder commandEncoder)

Definition at line 1466 of file webgpu.h.

◆ WGPUProcCommandEncoderResolveQuerySet

typedef void(* WGPUProcCommandEncoderResolveQuerySet) (WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)

Definition at line 1462 of file webgpu.h.

◆ WGPUProcCommandEncoderSetLabel

typedef void(* WGPUProcCommandEncoderSetLabel) (WGPUCommandEncoder commandEncoder, char const *label)

Definition at line 1463 of file webgpu.h.

◆ WGPUProcCommandEncoderWriteTimestamp

typedef void(* WGPUProcCommandEncoderWriteTimestamp) (WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)

Definition at line 1464 of file webgpu.h.

◆ WGPUProcComputePassEncoderDispatchWorkgroups

typedef void(* WGPUProcComputePassEncoderDispatchWorkgroups) (WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)

Definition at line 1469 of file webgpu.h.

◆ WGPUProcComputePassEncoderDispatchWorkgroupsIndirect

typedef void(* WGPUProcComputePassEncoderDispatchWorkgroupsIndirect) (WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)

Definition at line 1470 of file webgpu.h.

◆ WGPUProcComputePassEncoderEnd

typedef void(* WGPUProcComputePassEncoderEnd) (WGPUComputePassEncoder computePassEncoder)

Definition at line 1471 of file webgpu.h.

◆ WGPUProcComputePassEncoderInsertDebugMarker

typedef void(* WGPUProcComputePassEncoderInsertDebugMarker) (WGPUComputePassEncoder computePassEncoder, char const *markerLabel)

Definition at line 1472 of file webgpu.h.

◆ WGPUProcComputePassEncoderPopDebugGroup

typedef void(* WGPUProcComputePassEncoderPopDebugGroup) (WGPUComputePassEncoder computePassEncoder)

Definition at line 1473 of file webgpu.h.

◆ WGPUProcComputePassEncoderPushDebugGroup

typedef void(* WGPUProcComputePassEncoderPushDebugGroup) (WGPUComputePassEncoder computePassEncoder, char const *groupLabel)

Definition at line 1474 of file webgpu.h.

◆ WGPUProcComputePassEncoderReference

typedef void(* WGPUProcComputePassEncoderReference) (WGPUComputePassEncoder computePassEncoder)

Definition at line 1478 of file webgpu.h.

◆ WGPUProcComputePassEncoderRelease

typedef void(* WGPUProcComputePassEncoderRelease) (WGPUComputePassEncoder computePassEncoder)

Definition at line 1479 of file webgpu.h.

◆ WGPUProcComputePassEncoderSetBindGroup

typedef void(* WGPUProcComputePassEncoderSetBindGroup) (WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)

Definition at line 1475 of file webgpu.h.

◆ WGPUProcComputePassEncoderSetLabel

typedef void(* WGPUProcComputePassEncoderSetLabel) (WGPUComputePassEncoder computePassEncoder, char const *label)

Definition at line 1476 of file webgpu.h.

◆ WGPUProcComputePassEncoderSetPipeline

typedef void(* WGPUProcComputePassEncoderSetPipeline) (WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)

Definition at line 1477 of file webgpu.h.

◆ WGPUProcComputePipelineGetBindGroupLayout

typedef WGPUBindGroupLayout(* WGPUProcComputePipelineGetBindGroupLayout) (WGPUComputePipeline computePipeline, uint32_t groupIndex)

Definition at line 1482 of file webgpu.h.

◆ WGPUProcComputePipelineReference

typedef void(* WGPUProcComputePipelineReference) (WGPUComputePipeline computePipeline)

Definition at line 1484 of file webgpu.h.

◆ WGPUProcComputePipelineRelease

typedef void(* WGPUProcComputePipelineRelease) (WGPUComputePipeline computePipeline)

Definition at line 1485 of file webgpu.h.

◆ WGPUProcComputePipelineSetLabel

typedef void(* WGPUProcComputePipelineSetLabel) (WGPUComputePipeline computePipeline, char const *label)

Definition at line 1483 of file webgpu.h.

◆ WGPUProcCreateInstance

typedef WGPUInstance(* WGPUProcCreateInstance) (WGPUInstanceDescriptor const *descriptor)

Definition at line 1409 of file webgpu.h.

◆ WGPUProcDeviceCreateBindGroup

typedef WGPUBindGroup(* WGPUProcDeviceCreateBindGroup) (WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)

Definition at line 1488 of file webgpu.h.

◆ WGPUProcDeviceCreateBindGroupLayout

typedef WGPUBindGroupLayout(* WGPUProcDeviceCreateBindGroupLayout) (WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)

Definition at line 1489 of file webgpu.h.

◆ WGPUProcDeviceCreateBuffer

typedef WGPUBuffer(* WGPUProcDeviceCreateBuffer) (WGPUDevice device, WGPUBufferDescriptor const *descriptor)

Definition at line 1490 of file webgpu.h.

◆ WGPUProcDeviceCreateCommandEncoder

typedef WGPUCommandEncoder(* WGPUProcDeviceCreateCommandEncoder) (WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)

Definition at line 1491 of file webgpu.h.

◆ WGPUProcDeviceCreateComputePipeline

typedef WGPUComputePipeline(* WGPUProcDeviceCreateComputePipeline) (WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)

Definition at line 1492 of file webgpu.h.

◆ WGPUProcDeviceCreateComputePipelineAsync

typedef void(* WGPUProcDeviceCreateComputePipelineAsync) (WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUDeviceCreateComputePipelineAsyncCallback callback, void *userdata)

Definition at line 1493 of file webgpu.h.

◆ WGPUProcDeviceCreatePipelineLayout

typedef WGPUPipelineLayout(* WGPUProcDeviceCreatePipelineLayout) (WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)

Definition at line 1494 of file webgpu.h.

◆ WGPUProcDeviceCreateQuerySet

typedef WGPUQuerySet(* WGPUProcDeviceCreateQuerySet) (WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)

Definition at line 1495 of file webgpu.h.

◆ WGPUProcDeviceCreateRenderBundleEncoder

typedef WGPURenderBundleEncoder(* WGPUProcDeviceCreateRenderBundleEncoder) (WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)

Definition at line 1496 of file webgpu.h.

◆ WGPUProcDeviceCreateRenderPipeline

typedef WGPURenderPipeline(* WGPUProcDeviceCreateRenderPipeline) (WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)

Definition at line 1497 of file webgpu.h.

◆ WGPUProcDeviceCreateRenderPipelineAsync

typedef void(* WGPUProcDeviceCreateRenderPipelineAsync) (WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUDeviceCreateRenderPipelineAsyncCallback callback, void *userdata)

Definition at line 1498 of file webgpu.h.

◆ WGPUProcDeviceCreateSampler

typedef WGPUSampler(* WGPUProcDeviceCreateSampler) (WGPUDevice device, WGPUSamplerDescriptor const *descriptor)

Definition at line 1499 of file webgpu.h.

◆ WGPUProcDeviceCreateShaderModule

typedef WGPUShaderModule(* WGPUProcDeviceCreateShaderModule) (WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)

Definition at line 1500 of file webgpu.h.

◆ WGPUProcDeviceCreateTexture

typedef WGPUTexture(* WGPUProcDeviceCreateTexture) (WGPUDevice device, WGPUTextureDescriptor const *descriptor)

Definition at line 1501 of file webgpu.h.

◆ WGPUProcDeviceDestroy

typedef void(* WGPUProcDeviceDestroy) (WGPUDevice device)

Definition at line 1502 of file webgpu.h.

◆ WGPUProcDeviceEnumerateFeatures

typedef size_t(* WGPUProcDeviceEnumerateFeatures) (WGPUDevice device, WGPUFeatureName *features)

Definition at line 1503 of file webgpu.h.

◆ WGPUProcDeviceGetLimits

typedef WGPUBool(* WGPUProcDeviceGetLimits) (WGPUDevice device, WGPUSupportedLimits *limits)

Definition at line 1504 of file webgpu.h.

◆ WGPUProcDeviceGetQueue

typedef WGPUQueue(* WGPUProcDeviceGetQueue) (WGPUDevice device)

Definition at line 1505 of file webgpu.h.

◆ WGPUProcDeviceHasFeature

typedef WGPUBool(* WGPUProcDeviceHasFeature) (WGPUDevice device, WGPUFeatureName feature)

Definition at line 1506 of file webgpu.h.

◆ WGPUProcDevicePopErrorScope

typedef void(* WGPUProcDevicePopErrorScope) (WGPUDevice device, WGPUErrorCallback callback, void *userdata)

Definition at line 1507 of file webgpu.h.

◆ WGPUProcDevicePushErrorScope

typedef void(* WGPUProcDevicePushErrorScope) (WGPUDevice device, WGPUErrorFilter filter)

Definition at line 1508 of file webgpu.h.

◆ WGPUProcDeviceReference

typedef void(* WGPUProcDeviceReference) (WGPUDevice device)

Definition at line 1511 of file webgpu.h.

◆ WGPUProcDeviceRelease

typedef void(* WGPUProcDeviceRelease) (WGPUDevice device)

Definition at line 1512 of file webgpu.h.

◆ WGPUProcDeviceSetLabel

typedef void(* WGPUProcDeviceSetLabel) (WGPUDevice device, char const *label)

Definition at line 1509 of file webgpu.h.

◆ WGPUProcDeviceSetUncapturedErrorCallback

typedef void(* WGPUProcDeviceSetUncapturedErrorCallback) (WGPUDevice device, WGPUErrorCallback callback, void *userdata)

Definition at line 1510 of file webgpu.h.

◆ WGPUProcGetProcAddress

typedef WGPUProc(* WGPUProcGetProcAddress) (WGPUDevice device, char const *procName)

Definition at line 1410 of file webgpu.h.

◆ WGPUProcInstanceCreateSurface

typedef WGPUSurface(* WGPUProcInstanceCreateSurface) (WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor)

Definition at line 1515 of file webgpu.h.

◆ WGPUProcInstanceHasWGSLLanguageFeature

typedef WGPUBool(* WGPUProcInstanceHasWGSLLanguageFeature) (WGPUInstance instance, WGPUWGSLFeatureName feature)

Definition at line 1516 of file webgpu.h.

◆ WGPUProcInstanceProcessEvents

typedef void(* WGPUProcInstanceProcessEvents) (WGPUInstance instance)

Definition at line 1517 of file webgpu.h.

◆ WGPUProcInstanceReference

typedef void(* WGPUProcInstanceReference) (WGPUInstance instance)

Definition at line 1519 of file webgpu.h.

◆ WGPUProcInstanceRelease

typedef void(* WGPUProcInstanceRelease) (WGPUInstance instance)

Definition at line 1520 of file webgpu.h.

◆ WGPUProcInstanceRequestAdapter

typedef void(* WGPUProcInstanceRequestAdapter) (WGPUInstance instance, WGPURequestAdapterOptions const *options, WGPUInstanceRequestAdapterCallback callback, void *userdata)

Definition at line 1518 of file webgpu.h.

◆ WGPUProcPipelineLayoutReference

typedef void(* WGPUProcPipelineLayoutReference) (WGPUPipelineLayout pipelineLayout)

Definition at line 1524 of file webgpu.h.

◆ WGPUProcPipelineLayoutRelease

typedef void(* WGPUProcPipelineLayoutRelease) (WGPUPipelineLayout pipelineLayout)

Definition at line 1525 of file webgpu.h.

◆ WGPUProcPipelineLayoutSetLabel

typedef void(* WGPUProcPipelineLayoutSetLabel) (WGPUPipelineLayout pipelineLayout, char const *label)

Definition at line 1523 of file webgpu.h.

◆ WGPUProcQuerySetDestroy

typedef void(* WGPUProcQuerySetDestroy) (WGPUQuerySet querySet)

Definition at line 1528 of file webgpu.h.

◆ WGPUProcQuerySetGetCount

typedef uint32_t(* WGPUProcQuerySetGetCount) (WGPUQuerySet querySet)

Definition at line 1529 of file webgpu.h.

◆ WGPUProcQuerySetGetType

typedef WGPUQueryType(* WGPUProcQuerySetGetType) (WGPUQuerySet querySet)

Definition at line 1530 of file webgpu.h.

◆ WGPUProcQuerySetReference

typedef void(* WGPUProcQuerySetReference) (WGPUQuerySet querySet)

Definition at line 1532 of file webgpu.h.

◆ WGPUProcQuerySetRelease

typedef void(* WGPUProcQuerySetRelease) (WGPUQuerySet querySet)

Definition at line 1533 of file webgpu.h.

◆ WGPUProcQuerySetSetLabel

typedef void(* WGPUProcQuerySetSetLabel) (WGPUQuerySet querySet, char const *label)

Definition at line 1531 of file webgpu.h.

◆ WGPUProcQueueOnSubmittedWorkDone

typedef void(* WGPUProcQueueOnSubmittedWorkDone) (WGPUQueue queue, WGPUQueueOnSubmittedWorkDoneCallback callback, void *userdata)

Definition at line 1536 of file webgpu.h.

◆ WGPUProcQueueReference

typedef void(* WGPUProcQueueReference) (WGPUQueue queue)

Definition at line 1541 of file webgpu.h.

◆ WGPUProcQueueRelease

typedef void(* WGPUProcQueueRelease) (WGPUQueue queue)

Definition at line 1542 of file webgpu.h.

◆ WGPUProcQueueSetLabel

typedef void(* WGPUProcQueueSetLabel) (WGPUQueue queue, char const *label)

Definition at line 1537 of file webgpu.h.

◆ WGPUProcQueueSubmit

typedef void(* WGPUProcQueueSubmit) (WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands)

Definition at line 1538 of file webgpu.h.

◆ WGPUProcQueueWriteBuffer

typedef void(* WGPUProcQueueWriteBuffer) (WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size)

Definition at line 1539 of file webgpu.h.

◆ WGPUProcQueueWriteTexture

typedef void(* WGPUProcQueueWriteTexture) (WGPUQueue queue, WGPUImageCopyTexture const *destination, void const *data, size_t dataSize, WGPUTextureDataLayout const *dataLayout, WGPUExtent3D const *writeSize)

Definition at line 1540 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderDraw

typedef void(* WGPUProcRenderBundleEncoderDraw) (WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)

Definition at line 1550 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderDrawIndexed

typedef void(* WGPUProcRenderBundleEncoderDrawIndexed) (WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)

Definition at line 1551 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderDrawIndexedIndirect

typedef void(* WGPUProcRenderBundleEncoderDrawIndexedIndirect) (WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)

Definition at line 1552 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderDrawIndirect

typedef void(* WGPUProcRenderBundleEncoderDrawIndirect) (WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)

Definition at line 1553 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderFinish

typedef WGPURenderBundle(* WGPUProcRenderBundleEncoderFinish) (WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const *descriptor)

Definition at line 1554 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderInsertDebugMarker

typedef void(* WGPUProcRenderBundleEncoderInsertDebugMarker) (WGPURenderBundleEncoder renderBundleEncoder, char const *markerLabel)

Definition at line 1555 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderPopDebugGroup

typedef void(* WGPUProcRenderBundleEncoderPopDebugGroup) (WGPURenderBundleEncoder renderBundleEncoder)

Definition at line 1556 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderPushDebugGroup

typedef void(* WGPUProcRenderBundleEncoderPushDebugGroup) (WGPURenderBundleEncoder renderBundleEncoder, char const *groupLabel)

Definition at line 1557 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderReference

typedef void(* WGPUProcRenderBundleEncoderReference) (WGPURenderBundleEncoder renderBundleEncoder)

Definition at line 1563 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderRelease

typedef void(* WGPUProcRenderBundleEncoderRelease) (WGPURenderBundleEncoder renderBundleEncoder)

Definition at line 1564 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderSetBindGroup

typedef void(* WGPUProcRenderBundleEncoderSetBindGroup) (WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)

Definition at line 1558 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderSetIndexBuffer

typedef void(* WGPUProcRenderBundleEncoderSetIndexBuffer) (WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)

Definition at line 1559 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderSetLabel

typedef void(* WGPUProcRenderBundleEncoderSetLabel) (WGPURenderBundleEncoder renderBundleEncoder, char const *label)

Definition at line 1560 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderSetPipeline

typedef void(* WGPUProcRenderBundleEncoderSetPipeline) (WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)

Definition at line 1561 of file webgpu.h.

◆ WGPUProcRenderBundleEncoderSetVertexBuffer

typedef void(* WGPUProcRenderBundleEncoderSetVertexBuffer) (WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)

Definition at line 1562 of file webgpu.h.

◆ WGPUProcRenderBundleReference

typedef void(* WGPUProcRenderBundleReference) (WGPURenderBundle renderBundle)

Definition at line 1546 of file webgpu.h.

◆ WGPUProcRenderBundleRelease

typedef void(* WGPUProcRenderBundleRelease) (WGPURenderBundle renderBundle)

Definition at line 1547 of file webgpu.h.

◆ WGPUProcRenderBundleSetLabel

typedef void(* WGPUProcRenderBundleSetLabel) (WGPURenderBundle renderBundle, char const *label)

Definition at line 1545 of file webgpu.h.

◆ WGPUProcRenderPassEncoderBeginOcclusionQuery

typedef void(* WGPUProcRenderPassEncoderBeginOcclusionQuery) (WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)

Definition at line 1567 of file webgpu.h.

◆ WGPUProcRenderPassEncoderDraw

typedef void(* WGPUProcRenderPassEncoderDraw) (WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)

Definition at line 1568 of file webgpu.h.

◆ WGPUProcRenderPassEncoderDrawIndexed

typedef void(* WGPUProcRenderPassEncoderDrawIndexed) (WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)

Definition at line 1569 of file webgpu.h.

◆ WGPUProcRenderPassEncoderDrawIndexedIndirect

typedef void(* WGPUProcRenderPassEncoderDrawIndexedIndirect) (WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)

Definition at line 1570 of file webgpu.h.

◆ WGPUProcRenderPassEncoderDrawIndirect

typedef void(* WGPUProcRenderPassEncoderDrawIndirect) (WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)

Definition at line 1571 of file webgpu.h.

◆ WGPUProcRenderPassEncoderEnd

typedef void(* WGPUProcRenderPassEncoderEnd) (WGPURenderPassEncoder renderPassEncoder)

Definition at line 1572 of file webgpu.h.

◆ WGPUProcRenderPassEncoderEndOcclusionQuery

typedef void(* WGPUProcRenderPassEncoderEndOcclusionQuery) (WGPURenderPassEncoder renderPassEncoder)

Definition at line 1573 of file webgpu.h.

◆ WGPUProcRenderPassEncoderExecuteBundles

typedef void(* WGPUProcRenderPassEncoderExecuteBundles) (WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles)

Definition at line 1574 of file webgpu.h.

◆ WGPUProcRenderPassEncoderInsertDebugMarker

typedef void(* WGPUProcRenderPassEncoderInsertDebugMarker) (WGPURenderPassEncoder renderPassEncoder, char const *markerLabel)

Definition at line 1575 of file webgpu.h.

◆ WGPUProcRenderPassEncoderPopDebugGroup

typedef void(* WGPUProcRenderPassEncoderPopDebugGroup) (WGPURenderPassEncoder renderPassEncoder)

Definition at line 1576 of file webgpu.h.

◆ WGPUProcRenderPassEncoderPushDebugGroup

typedef void(* WGPUProcRenderPassEncoderPushDebugGroup) (WGPURenderPassEncoder renderPassEncoder, char const *groupLabel)

Definition at line 1577 of file webgpu.h.

◆ WGPUProcRenderPassEncoderReference

typedef void(* WGPUProcRenderPassEncoderReference) (WGPURenderPassEncoder renderPassEncoder)

Definition at line 1587 of file webgpu.h.

◆ WGPUProcRenderPassEncoderRelease

typedef void(* WGPUProcRenderPassEncoderRelease) (WGPURenderPassEncoder renderPassEncoder)

Definition at line 1588 of file webgpu.h.

◆ WGPUProcRenderPassEncoderSetBindGroup

typedef void(* WGPUProcRenderPassEncoderSetBindGroup) (WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)

Definition at line 1578 of file webgpu.h.

◆ WGPUProcRenderPassEncoderSetBlendConstant

typedef void(* WGPUProcRenderPassEncoderSetBlendConstant) (WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color)

Definition at line 1579 of file webgpu.h.

◆ WGPUProcRenderPassEncoderSetIndexBuffer

typedef void(* WGPUProcRenderPassEncoderSetIndexBuffer) (WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)

Definition at line 1580 of file webgpu.h.

◆ WGPUProcRenderPassEncoderSetLabel

typedef void(* WGPUProcRenderPassEncoderSetLabel) (WGPURenderPassEncoder renderPassEncoder, char const *label)

Definition at line 1581 of file webgpu.h.

◆ WGPUProcRenderPassEncoderSetPipeline

typedef void(* WGPUProcRenderPassEncoderSetPipeline) (WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)

Definition at line 1582 of file webgpu.h.

◆ WGPUProcRenderPassEncoderSetScissorRect

typedef void(* WGPUProcRenderPassEncoderSetScissorRect) (WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)

Definition at line 1583 of file webgpu.h.

◆ WGPUProcRenderPassEncoderSetStencilReference

typedef void(* WGPUProcRenderPassEncoderSetStencilReference) (WGPURenderPassEncoder renderPassEncoder, uint32_t reference)

Definition at line 1584 of file webgpu.h.

◆ WGPUProcRenderPassEncoderSetVertexBuffer

typedef void(* WGPUProcRenderPassEncoderSetVertexBuffer) (WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)

Definition at line 1585 of file webgpu.h.

◆ WGPUProcRenderPassEncoderSetViewport

typedef void(* WGPUProcRenderPassEncoderSetViewport) (WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)

Definition at line 1586 of file webgpu.h.

◆ WGPUProcRenderPipelineGetBindGroupLayout

typedef WGPUBindGroupLayout(* WGPUProcRenderPipelineGetBindGroupLayout) (WGPURenderPipeline renderPipeline, uint32_t groupIndex)

Definition at line 1591 of file webgpu.h.

◆ WGPUProcRenderPipelineReference

typedef void(* WGPUProcRenderPipelineReference) (WGPURenderPipeline renderPipeline)

Definition at line 1593 of file webgpu.h.

◆ WGPUProcRenderPipelineRelease

typedef void(* WGPUProcRenderPipelineRelease) (WGPURenderPipeline renderPipeline)

Definition at line 1594 of file webgpu.h.

◆ WGPUProcRenderPipelineSetLabel

typedef void(* WGPUProcRenderPipelineSetLabel) (WGPURenderPipeline renderPipeline, char const *label)

Definition at line 1592 of file webgpu.h.

◆ WGPUProcSamplerReference

typedef void(* WGPUProcSamplerReference) (WGPUSampler sampler)

Definition at line 1598 of file webgpu.h.

◆ WGPUProcSamplerRelease

typedef void(* WGPUProcSamplerRelease) (WGPUSampler sampler)

Definition at line 1599 of file webgpu.h.

◆ WGPUProcSamplerSetLabel

typedef void(* WGPUProcSamplerSetLabel) (WGPUSampler sampler, char const *label)

Definition at line 1597 of file webgpu.h.

◆ WGPUProcShaderModuleGetCompilationInfo

typedef void(* WGPUProcShaderModuleGetCompilationInfo) (WGPUShaderModule shaderModule, WGPUShaderModuleGetCompilationInfoCallback callback, void *userdata)

Definition at line 1602 of file webgpu.h.

◆ WGPUProcShaderModuleReference

typedef void(* WGPUProcShaderModuleReference) (WGPUShaderModule shaderModule)

Definition at line 1604 of file webgpu.h.

◆ WGPUProcShaderModuleRelease

typedef void(* WGPUProcShaderModuleRelease) (WGPUShaderModule shaderModule)

Definition at line 1605 of file webgpu.h.

◆ WGPUProcShaderModuleSetLabel

typedef void(* WGPUProcShaderModuleSetLabel) (WGPUShaderModule shaderModule, char const *label)

Definition at line 1603 of file webgpu.h.

◆ WGPUProcSurfaceCapabilitiesFreeMembers

typedef void(* WGPUProcSurfaceCapabilitiesFreeMembers) (WGPUSurfaceCapabilities surfaceCapabilities)

Definition at line 1619 of file webgpu.h.

◆ WGPUProcSurfaceConfigure

typedef void(* WGPUProcSurfaceConfigure) (WGPUSurface surface, WGPUSurfaceConfiguration const *config)

Definition at line 1608 of file webgpu.h.

◆ WGPUProcSurfaceGetCapabilities

typedef void(* WGPUProcSurfaceGetCapabilities) (WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)

Definition at line 1609 of file webgpu.h.

◆ WGPUProcSurfaceGetCurrentTexture

typedef void(* WGPUProcSurfaceGetCurrentTexture) (WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)

Definition at line 1610 of file webgpu.h.

◆ WGPUProcSurfaceGetPreferredFormat

typedef WGPUTextureFormat(* WGPUProcSurfaceGetPreferredFormat) (WGPUSurface surface, WGPUAdapter adapter)

Definition at line 1611 of file webgpu.h.

◆ WGPUProcSurfacePresent

typedef void(* WGPUProcSurfacePresent) (WGPUSurface surface)

Definition at line 1612 of file webgpu.h.

◆ WGPUProcSurfaceReference

typedef void(* WGPUProcSurfaceReference) (WGPUSurface surface)

Definition at line 1615 of file webgpu.h.

◆ WGPUProcSurfaceRelease

typedef void(* WGPUProcSurfaceRelease) (WGPUSurface surface)

Definition at line 1616 of file webgpu.h.

◆ WGPUProcSurfaceSetLabel

typedef void(* WGPUProcSurfaceSetLabel) (WGPUSurface surface, char const *label)

Definition at line 1613 of file webgpu.h.

◆ WGPUProcSurfaceUnconfigure

typedef void(* WGPUProcSurfaceUnconfigure) (WGPUSurface surface)

Definition at line 1614 of file webgpu.h.

◆ WGPUProcTextureCreateView

typedef WGPUTextureView(* WGPUProcTextureCreateView) (WGPUTexture texture, WGPUTextureViewDescriptor const *descriptor)

Definition at line 1622 of file webgpu.h.

◆ WGPUProcTextureDestroy

typedef void(* WGPUProcTextureDestroy) (WGPUTexture texture)

Definition at line 1623 of file webgpu.h.

◆ WGPUProcTextureGetDepthOrArrayLayers

typedef uint32_t(* WGPUProcTextureGetDepthOrArrayLayers) (WGPUTexture texture)

Definition at line 1624 of file webgpu.h.

◆ WGPUProcTextureGetDimension

typedef WGPUTextureDimension(* WGPUProcTextureGetDimension) (WGPUTexture texture)

Definition at line 1625 of file webgpu.h.

◆ WGPUProcTextureGetFormat

typedef WGPUTextureFormat(* WGPUProcTextureGetFormat) (WGPUTexture texture)

Definition at line 1626 of file webgpu.h.

◆ WGPUProcTextureGetHeight

typedef uint32_t(* WGPUProcTextureGetHeight) (WGPUTexture texture)

Definition at line 1627 of file webgpu.h.

◆ WGPUProcTextureGetMipLevelCount

typedef uint32_t(* WGPUProcTextureGetMipLevelCount) (WGPUTexture texture)

Definition at line 1628 of file webgpu.h.

◆ WGPUProcTextureGetSampleCount

typedef uint32_t(* WGPUProcTextureGetSampleCount) (WGPUTexture texture)

Definition at line 1629 of file webgpu.h.

◆ WGPUProcTextureGetUsage

typedef WGPUTextureUsageFlags(* WGPUProcTextureGetUsage) (WGPUTexture texture)

Definition at line 1630 of file webgpu.h.

◆ WGPUProcTextureGetWidth

typedef uint32_t(* WGPUProcTextureGetWidth) (WGPUTexture texture)

Definition at line 1631 of file webgpu.h.

◆ WGPUProcTextureReference

typedef void(* WGPUProcTextureReference) (WGPUTexture texture)

Definition at line 1633 of file webgpu.h.

◆ WGPUProcTextureRelease

typedef void(* WGPUProcTextureRelease) (WGPUTexture texture)

Definition at line 1634 of file webgpu.h.

◆ WGPUProcTextureSetLabel

typedef void(* WGPUProcTextureSetLabel) (WGPUTexture texture, char const *label)

Definition at line 1632 of file webgpu.h.

◆ WGPUProcTextureViewReference

typedef void(* WGPUProcTextureViewReference) (WGPUTextureView textureView)

Definition at line 1638 of file webgpu.h.

◆ WGPUProcTextureViewRelease

typedef void(* WGPUProcTextureViewRelease) (WGPUTextureView textureView)

Definition at line 1639 of file webgpu.h.

◆ WGPUProcTextureViewSetLabel

typedef void(* WGPUProcTextureViewSetLabel) (WGPUTextureView textureView, char const *label)

Definition at line 1637 of file webgpu.h.