30#if defined(WGPU_SHARED_LIBRARY)
32# if defined(WGPU_IMPLEMENTATION)
33# define WGPU_EXPORT __declspec(dllexport)
35# define WGPU_EXPORT __declspec(dllimport)
38# if defined(WGPU_IMPLEMENTATION)
39# define WGPU_EXPORT __attribute__((visibility("default")))
48#if !defined(WGPU_OBJECT_ATTRIBUTE)
49#define WGPU_OBJECT_ATTRIBUTE
51#if !defined(WGPU_ENUM_ATTRIBUTE)
52#define WGPU_ENUM_ATTRIBUTE
54#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
55#define WGPU_STRUCTURE_ATTRIBUTE
57#if !defined(WGPU_FUNCTION_ATTRIBUTE)
58#define WGPU_FUNCTION_ATTRIBUTE
60#if !defined(WGPU_NULLABLE)
69#if defined(__cplusplus)
70# define _wgpu_ENUM_ZERO_INIT(type) type(0)
71# define _wgpu_STRUCT_ZERO_INIT {}
72# if __cplusplus >= 201103L
73# define _wgpu_MAKE_INIT_STRUCT(type, value) (type value)
75# define _wgpu_MAKE_INIT_STRUCT(type, value) value
78# define _wgpu_ENUM_ZERO_INIT(type) (type)0
79# define _wgpu_STRUCT_ZERO_INIT {0}
80# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
81# define _wgpu_MAKE_INIT_STRUCT(type, value) ((type) value)
83# define _wgpu_MAKE_INIT_STRUCT(type, value) value
100#define WGPU_TRUE (UINT32_C(1))
107#define WGPU_FALSE (UINT32_C(0))
112#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
117#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
122#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
127#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
132#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
137#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
142#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
147#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
152#define WGPU_STRLEN (SIZE_MAX)
157#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
162#define WGPU_WHOLE_SIZE (UINT64_MAX)
194 WGPU_NULLABLE
char const *
data;
201#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
203 WGPU_STRLEN _wgpu_COMMA \
220typedef struct WGPUBufferImpl*
WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
231typedef struct WGPUDeviceImpl*
WGPUDevice WGPU_OBJECT_ATTRIBUTE;
239typedef struct WGPUQueueImpl*
WGPUQueue WGPU_OBJECT_ATTRIBUTE;
1383typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1557#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1559 _wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1581#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1583 _wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1605#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1607 _wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1629#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1631 _wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1653#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1655 _wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1677#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1679 _wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1701#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1703 _wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1725#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1727 _wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1749#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1751 _wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1767#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1834#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1836 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1837 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1838 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1839 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1840 WGPUBackendType_Undefined _wgpu_COMMA \
1841 _wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1878#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1879 WGPUBlendOperation_Undefined _wgpu_COMMA \
1880 WGPUBlendFactor_Undefined _wgpu_COMMA \
1881 WGPUBlendFactor_Undefined _wgpu_COMMA \
1909#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1911 WGPUBufferBindingType_Undefined _wgpu_COMMA \
1912 WGPU_FALSE _wgpu_COMMA \
1948#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1950 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1951 WGPUBufferUsage_None _wgpu_COMMA \
1953 WGPU_FALSE _wgpu_COMMA \
1985#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
2008#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
2010 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2029#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2031 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2064#define WGPU_COMPATIBILITY_MODE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompatibilityModeLimits, { \
2065 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2067 WGPUSType_CompatibilityModeLimits _wgpu_COMMA \
2069 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2070 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2071 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2072 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2126#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2128 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2129 _wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2160#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2162 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2187#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2209#define WGPU_EXTERNAL_TEXTURE_BINDING_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingEntry, { \
2210 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2212 WGPUSType_ExternalTextureBindingEntry _wgpu_COMMA \
2229#define WGPU_EXTERNAL_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingLayout, { \
2230 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2232 WGPUSType_ExternalTextureBindingLayout _wgpu_COMMA \
2253#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2273#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2300#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2303 0xFFFFFFFF _wgpu_COMMA \
2304 WGPU_FALSE _wgpu_COMMA \
2328#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2358#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2361 WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2362 WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2393#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2395 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2440#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2442 WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2443 WGPUIndexFormat_Undefined _wgpu_COMMA \
2444 WGPUFrontFace_Undefined _wgpu_COMMA \
2445 WGPUCullMode_Undefined _wgpu_COMMA \
2446 WGPU_FALSE _wgpu_COMMA \
2473#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2475 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2476 _wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2496#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2498 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2517#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2519 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2562#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2564 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2567 WGPUTextureFormat_Undefined _wgpu_COMMA \
2569 WGPU_FALSE _wgpu_COMMA \
2570 WGPU_FALSE _wgpu_COMMA \
2626#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2629 WGPULoadOp_Undefined _wgpu_COMMA \
2630 WGPUStoreOp_Undefined _wgpu_COMMA \
2631 WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2632 WGPU_FALSE _wgpu_COMMA \
2633 WGPULoadOp_Undefined _wgpu_COMMA \
2634 WGPUStoreOp_Undefined _wgpu_COMMA \
2636 WGPU_FALSE _wgpu_COMMA \
2653#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2654 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2656 WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2658 50000000 _wgpu_COMMA \
2679#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2680 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2682 WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2684 WGPU_FALSE _wgpu_COMMA \
2704#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2706 WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2791#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2793 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2794 WGPUAddressMode_Undefined _wgpu_COMMA \
2795 WGPUAddressMode_Undefined _wgpu_COMMA \
2796 WGPUAddressMode_Undefined _wgpu_COMMA \
2797 WGPUFilterMode_Undefined _wgpu_COMMA \
2798 WGPUFilterMode_Undefined _wgpu_COMMA \
2799 WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2802 WGPUCompareFunction_Undefined _wgpu_COMMA \
2824#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2825 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2827 WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2849#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2850 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2852 WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2854 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2894#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2895 WGPUCompareFunction_Undefined _wgpu_COMMA \
2896 WGPUStencilOperation_Undefined _wgpu_COMMA \
2897 WGPUStencilOperation_Undefined _wgpu_COMMA \
2898 WGPUStencilOperation_Undefined _wgpu_COMMA \
2929#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
2931 WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
2932 WGPUTextureFormat_Undefined _wgpu_COMMA \
2933 WGPUTextureViewDimension_Undefined _wgpu_COMMA \
2953#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
2975#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
2997#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3053#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3055 WGPUTextureUsage_None _wgpu_COMMA \
3084#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3085 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3087 WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3089 _wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3090 _wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3165#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3168 WGPUTextureFormat_Undefined _wgpu_COMMA \
3169 WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3174 WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3175 WGPUPresentMode_Undefined _wgpu_COMMA \
3196#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3197 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3199 WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3222#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3223 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3225 WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3254#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3255 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3257 WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3288#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3289 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3291 WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3321#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3322 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3324 WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3354#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3355 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3357 WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3389#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3392 _wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3416#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3418 WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3419 WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3450#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3452 WGPUTextureSampleType_Undefined _wgpu_COMMA \
3453 WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3454 WGPU_FALSE _wgpu_COMMA \
3475#define WGPU_TEXTURE_BINDING_VIEW_DIMENSION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingViewDimension, { \
3476 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3478 WGPUSType_TextureBindingViewDimension _wgpu_COMMA \
3480 WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3533#define WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzle, { \
3534 WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3535 WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3536 WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3537 WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3562#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3564 _wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3621#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
3626 WGPU_WHOLE_SIZE _wgpu_COMMA \
3671#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3674 WGPUShaderStage_None _wgpu_COMMA \
3676 _wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3677 _wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3678 _wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3679 _wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3699#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3700 WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3701 WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3725#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3751#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3753 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3785#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3788 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3851#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3853 WGPUTextureFormat_Undefined _wgpu_COMMA \
3854 WGPUOptionalBool_Undefined _wgpu_COMMA \
3855 WGPUCompareFunction_Undefined _wgpu_COMMA \
3856 WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3857 WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3858 0xFFFFFFFF _wgpu_COMMA \
3859 0xFFFFFFFF _wgpu_COMMA \
3888#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3889 WGPU_FUTURE_INIT _wgpu_COMMA \
3890 WGPU_FALSE _wgpu_COMMA \
3915#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4060#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
4062 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4063 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4064 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4065 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4066 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4067 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4068 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4069 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4070 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4071 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4072 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4073 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4074 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4075 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4076 WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4077 WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4078 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4079 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4080 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4081 WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4082 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4083 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4084 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4085 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4086 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4087 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4088 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4089 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4090 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4091 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4092 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4093 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4133#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4136 WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4138 WGPULoadOp_Undefined _wgpu_COMMA \
4139 WGPUStoreOp_Undefined _wgpu_COMMA \
4140 WGPU_COLOR_INIT _wgpu_COMMA \
4189#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4191 WGPUFeatureLevel_Undefined _wgpu_COMMA \
4192 WGPUPowerPreference_Undefined _wgpu_COMMA \
4193 WGPU_FALSE _wgpu_COMMA \
4194 WGPUBackendType_Undefined _wgpu_COMMA \
4214#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4216 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4241#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4243 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4263#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4264 WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4296#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4299 WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4300 WGPUTextureAspect_Undefined _wgpu_COMMA \
4317#define WGPU_TEXTURE_COMPONENT_SWIZZLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzleDescriptor, { \
4318 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
4320 WGPUSType_TextureComponentSwizzleDescriptor _wgpu_COMMA \
4322 WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_COMMA \
4376#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4378 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4379 WGPUTextureUsage_None _wgpu_COMMA \
4380 WGPUTextureDimension_Undefined _wgpu_COMMA \
4381 WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4382 WGPUTextureFormat_Undefined _wgpu_COMMA \
4428#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4430 WGPUVertexStepMode_Undefined _wgpu_COMMA \
4464#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
4466 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4496#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4498 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4529#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4531 WGPUTextureFormat_Undefined _wgpu_COMMA \
4533 WGPUColorWriteMask_All _wgpu_COMMA \
4560#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4562 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4564 WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4612#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4614 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4618 WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4619 WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4620 WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4659#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4661 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4720#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
4722 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4723 WGPUTextureFormat_Undefined _wgpu_COMMA \
4724 WGPUTextureViewDimension_Undefined _wgpu_COMMA \
4726 WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
4728 WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
4729 WGPUTextureAspect_Undefined _wgpu_COMMA \
4730 WGPUTextureUsage_None _wgpu_COMMA \
4769#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4772 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4815#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4818 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4865#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4867 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4869 WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4870 WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4872 WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4882#if !defined(WGPU_SKIP_PROCS)
4908typedef WGPUProc (*WGPUProcGetProcAddress)(
WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4941typedef void (*WGPUProcAdapterAddRef)(
WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4946typedef void (*WGPUProcAdapterRelease)(
WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4953typedef void (*WGPUProcAdapterInfoFreeMembers)(
WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4965typedef void (*WGPUProcBindGroupAddRef)(
WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4970typedef void (*WGPUProcBindGroupRelease)(
WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4982typedef void (*WGPUProcBindGroupLayoutAddRef)(
WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4987typedef void (*WGPUProcBindGroupLayoutRelease)(
WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4994typedef void (*WGPUProcBufferDestroy)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4999typedef void const * (*WGPUProcBufferGetConstMappedRange)(
WGPUBuffer buffer,
size_t offset,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
5004typedef void * (*WGPUProcBufferGetMappedRange)(
WGPUBuffer buffer,
size_t offset,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
5014typedef uint64_t (*WGPUProcBufferGetSize)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5029typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(
WGPUBuffer buffer,
size_t offset,
void * data,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
5039typedef void (*WGPUProcBufferUnmap)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5044typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(
WGPUBuffer buffer,
size_t offset,
void const * data,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
5049typedef void (*WGPUProcBufferAddRef)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5054typedef void (*WGPUProcBufferRelease)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5066typedef void (*WGPUProcCommandBufferAddRef)(
WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5071typedef void (*WGPUProcCommandBufferRelease)(
WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5088typedef void (*WGPUProcCommandEncoderClearBuffer)(
WGPUCommandEncoder commandEncoder,
WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5093typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(
WGPUCommandEncoder commandEncoder,
WGPUBuffer source, uint64_t sourceOffset,
WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5123typedef void (*WGPUProcCommandEncoderPopDebugGroup)(
WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5133typedef void (*WGPUProcCommandEncoderResolveQuerySet)(
WGPUCommandEncoder commandEncoder,
WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount,
WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5143typedef void (*WGPUProcCommandEncoderWriteTimestamp)(
WGPUCommandEncoder commandEncoder,
WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5148typedef void (*WGPUProcCommandEncoderAddRef)(
WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5153typedef void (*WGPUProcCommandEncoderRelease)(
WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5160typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(
WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5165typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(
WGPUComputePassEncoder computePassEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5170typedef void (*WGPUProcComputePassEncoderEnd)(
WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5180typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(
WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5190typedef void (*WGPUProcComputePassEncoderSetBindGroup)(
WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE
WGPUBindGroup group,
size_t dynamicOffsetCount, uint32_t
const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5195typedef void (*WGPUProcComputePassEncoderSetImmediates)(
WGPUComputePassEncoder computePassEncoder, uint32_t offset,
void const * data,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
5210typedef void (*WGPUProcComputePassEncoderAddRef)(
WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5215typedef void (*WGPUProcComputePassEncoderRelease)(
WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5232typedef void (*WGPUProcComputePipelineAddRef)(
WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5237typedef void (*WGPUProcComputePipelineRelease)(
WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5314typedef void (*WGPUProcDeviceDestroy)(
WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5364typedef void (*WGPUProcDeviceAddRef)(
WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5369typedef void (*WGPUProcDeviceRelease)(
WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5381typedef void (*WGPUProcExternalTextureAddRef)(
WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5386typedef void (*WGPUProcExternalTextureRelease)(
WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5408typedef void (*WGPUProcInstanceProcessEvents)(
WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5423typedef void (*WGPUProcInstanceAddRef)(
WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5428typedef void (*WGPUProcInstanceRelease)(
WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5440typedef void (*WGPUProcPipelineLayoutAddRef)(
WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5445typedef void (*WGPUProcPipelineLayoutRelease)(
WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5452typedef void (*WGPUProcQuerySetDestroy)(
WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5457typedef uint32_t (*WGPUProcQuerySetGetCount)(
WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5472typedef void (*WGPUProcQuerySetAddRef)(
WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5477typedef void (*WGPUProcQuerySetRelease)(
WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5494typedef void (*WGPUProcQueueSubmit)(
WGPUQueue queue,
size_t commandCount,
WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5499typedef void (*WGPUProcQueueWriteBuffer)(
WGPUQueue queue,
WGPUBuffer buffer, uint64_t bufferOffset,
void const * data,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
5509typedef void (*WGPUProcQueueAddRef)(
WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5514typedef void (*WGPUProcQueueRelease)(
WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5526typedef void (*WGPUProcRenderBundleAddRef)(
WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5531typedef void (*WGPUProcRenderBundleRelease)(
WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5538typedef void (*WGPUProcRenderBundleEncoderDraw)(
WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5543typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(
WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5548typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(
WGPURenderBundleEncoder renderBundleEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5553typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(
WGPURenderBundleEncoder renderBundleEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5568typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(
WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5578typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(
WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE
WGPUBindGroup group,
size_t dynamicOffsetCount, uint32_t
const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5583typedef void (*WGPUProcRenderBundleEncoderSetImmediates)(
WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset,
void const * data,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
5603typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(
WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE
WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5608typedef void (*WGPUProcRenderBundleEncoderAddRef)(
WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5613typedef void (*WGPUProcRenderBundleEncoderRelease)(
WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5620typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(
WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5625typedef void (*WGPUProcRenderPassEncoderDraw)(
WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5630typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(
WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5635typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(
WGPURenderPassEncoder renderPassEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5640typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(
WGPURenderPassEncoder renderPassEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5645typedef void (*WGPUProcRenderPassEncoderEnd)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5650typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5665typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5675typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(
WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE
WGPUBindGroup group,
size_t dynamicOffsetCount, uint32_t
const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5680typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(
WGPURenderPassEncoder renderPassEncoder,
WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5685typedef void (*WGPUProcRenderPassEncoderSetImmediates)(
WGPURenderPassEncoder renderPassEncoder, uint32_t offset,
void const * data,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
5705typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(
WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5710typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(
WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5715typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(
WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE
WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5720typedef void (*WGPUProcRenderPassEncoderSetViewport)(
WGPURenderPassEncoder renderPassEncoder,
float x,
float y,
float width,
float height,
float minDepth,
float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5725typedef void (*WGPUProcRenderPassEncoderAddRef)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5730typedef void (*WGPUProcRenderPassEncoderRelease)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5747typedef void (*WGPUProcRenderPipelineAddRef)(
WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5752typedef void (*WGPUProcRenderPipelineRelease)(
WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5764typedef void (*WGPUProcSamplerAddRef)(
WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5769typedef void (*WGPUProcSamplerRelease)(
WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5786typedef void (*WGPUProcShaderModuleAddRef)(
WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5791typedef void (*WGPUProcShaderModuleRelease)(
WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5798typedef void (*WGPUProcSupportedFeaturesFreeMembers)(
WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5805typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(
WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5844typedef void (*WGPUProcSurfaceUnconfigure)(
WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5849typedef void (*WGPUProcSurfaceAddRef)(
WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5854typedef void (*WGPUProcSurfaceRelease)(
WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5861typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(
WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5873typedef void (*WGPUProcTextureDestroy)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5878typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5893typedef uint32_t (*WGPUProcTextureGetHeight)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5898typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5903typedef uint32_t (*WGPUProcTextureGetSampleCount)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5918typedef uint32_t (*WGPUProcTextureGetWidth)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5928typedef void (*WGPUProcTextureAddRef)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5933typedef void (*WGPUProcTextureRelease)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5945typedef void (*WGPUProcTextureViewAddRef)(
WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5950typedef void (*WGPUProcTextureViewRelease)(
WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5954#if !defined(WGPU_SKIP_DECLARATIONS)
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
static const WGPUBufferUsage WGPUBufferUsage_Indirect
WGPUFlags WGPUColorWriteMask
static const WGPUBufferUsage WGPUBufferUsage_Storage
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
static const WGPUTextureUsage WGPUTextureUsage_TransientAttachment
static const WGPUBufferUsage WGPUBufferUsage_MapRead
static const WGPUBufferUsage WGPUBufferUsage_Index
static const WGPUBufferUsage WGPUBufferUsage_None
static const WGPUMapMode WGPUMapMode_None
static const WGPUTextureUsage WGPUTextureUsage_None
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
static const WGPUColorWriteMask WGPUColorWriteMask_All
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
WGPUFlags WGPUShaderStage
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
static const WGPUShaderStage WGPUShaderStage_Fragment
static const WGPUShaderStage WGPUShaderStage_Compute
static const WGPUMapMode WGPUMapMode_Write
static const WGPUShaderStage WGPUShaderStage_None
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
WGPUFlags WGPUTextureUsage
static const WGPUBufferUsage WGPUBufferUsage_Uniform
static const WGPUMapMode WGPUMapMode_Read
static const WGPUColorWriteMask WGPUColorWriteMask_Green
static const WGPUBufferUsage WGPUBufferUsage_Vertex
static const WGPUShaderStage WGPUShaderStage_Vertex
static const WGPUColorWriteMask WGPUColorWriteMask_None
static const WGPUColorWriteMask WGPUColorWriteMask_Red
WGPUFlags WGPUBufferUsage
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
WGPUCompilationMessageType
WGPUCreatePipelineAsyncStatus
WGPUWGSLLanguageFeatureName
WGPUCompilationInfoRequestStatus
WGPUSurfaceGetCurrentTextureStatus
@ WGPUIndexFormat_Force32
@ WGPUIndexFormat_Undefined
@ WGPURequestAdapterStatus_Unavailable
@ WGPURequestAdapterStatus_Success
@ WGPURequestAdapterStatus_Error
@ WGPURequestAdapterStatus_CallbackCancelled
@ WGPURequestAdapterStatus_Force32
@ WGPUFeatureName_TextureCompressionASTC
@ WGPUFeatureName_AtomicVec2uMinMax
@ WGPUFeatureName_Subgroups
@ WGPUFeatureName_Force32
@ WGPUFeatureName_ClipDistances
@ WGPUFeatureName_PrimitiveIndex
@ WGPUFeatureName_Depth32FloatStencil8
@ WGPUFeatureName_RG11B10UfloatRenderable
@ WGPUFeatureName_TextureFormatsTier1
@ WGPUFeatureName_TextureCompressionUnaligned
@ WGPUFeatureName_BGRA8UnormStorage
@ WGPUFeatureName_Float32Blendable
@ WGPUFeatureName_DualSourceBlending
@ WGPUFeatureName_TextureComponentSwizzle
@ WGPUFeatureName_TextureCompressionASTCSliced3D
@ WGPUFeatureName_TextureCompressionBCSliced3D
@ WGPUFeatureName_CoreFeaturesAndLimits
@ WGPUFeatureName_ShaderF16
@ WGPUFeatureName_Float32Filterable
@ WGPUFeatureName_TimestampQuery
@ WGPUFeatureName_SubgroupSizeControl
@ WGPUFeatureName_TextureFormatsTier2
@ WGPUFeatureName_TextureCompressionBC
@ WGPUFeatureName_TextureCompressionETC2
@ WGPUFeatureName_IndirectFirstInstance
@ WGPUFeatureName_DepthClipControl
@ WGPUVertexFormat_Sint32x4
@ WGPUVertexFormat_Float32x2
@ WGPUVertexFormat_Sint32x2
@ WGPUVertexFormat_Float32
@ WGPUVertexFormat_Float16x4
@ WGPUVertexFormat_Uint16x4
@ WGPUVertexFormat_Snorm8x2
@ WGPUVertexFormat_Uint8x4
@ WGPUVertexFormat_Snorm10_10_10_2
@ WGPUVertexFormat_Sint8x2
@ WGPUVertexFormat_Unorm8
@ WGPUVertexFormat_Unorm8x4
@ WGPUVertexFormat_Force32
@ WGPUVertexFormat_Uint8x2
@ WGPUVertexFormat_Float32x4
@ WGPUVertexFormat_Float16x2
@ WGPUVertexFormat_Uint32
@ WGPUVertexFormat_Snorm8
@ WGPUVertexFormat_Uint32x4
@ WGPUVertexFormat_Unorm8x4BGRA
@ WGPUVertexFormat_Sint32
@ WGPUVertexFormat_Uint16
@ WGPUVertexFormat_Uint32x2
@ WGPUVertexFormat_Uint32x3
@ WGPUVertexFormat_Snorm16
@ WGPUVertexFormat_Sint16x4
@ WGPUVertexFormat_Unorm10_10_10_2
@ WGPUVertexFormat_Unorm16x2
@ WGPUVertexFormat_Float16
@ WGPUVertexFormat_Unorm8x2
@ WGPUVertexFormat_Sint32x3
@ WGPUVertexFormat_Sint16x2
@ WGPUVertexFormat_Snorm8x4
@ WGPUVertexFormat_Sint8x4
@ WGPUVertexFormat_Unorm16
@ WGPUVertexFormat_Sint16
@ WGPUVertexFormat_Uint16x2
@ WGPUVertexFormat_Snorm16x2
@ WGPUVertexFormat_Unorm16x4
@ WGPUVertexFormat_Float32x3
@ WGPUVertexFormat_Snorm16x4
@ WGPUSType_SurfaceSourceWaylandSurface
@ WGPUSType_TextureComponentSwizzleDescriptor
@ WGPUSType_ShaderSourceSPIRV
@ WGPUSType_SurfaceColorManagement
@ WGPUSType_TextureBindingViewDimension
@ WGPUSType_ExternalTextureBindingEntry
@ WGPUSType_SurfaceSourceAndroidNativeWindow
@ WGPUSType_SurfaceSourceXCBWindow
@ WGPUSType_SurfaceSourceWindowsHWND
@ WGPUSType_RenderPassMaxDrawCount
@ WGPUSType_SurfaceSourceMetalLayer
@ WGPUSType_RequestAdapterWebXROptions
@ WGPUSType_ShaderSourceWGSL
@ WGPUSType_CompatibilityModeLimits
@ WGPUSType_SurfaceSourceXlibWindow
@ WGPUSType_ExternalTextureBindingLayout
@ WGPUBufferBindingType_BindingNotUsed
@ WGPUBufferBindingType_Storage
@ WGPUBufferBindingType_Undefined
@ WGPUBufferBindingType_Force32
@ WGPUBufferBindingType_ReadOnlyStorage
@ WGPUBufferBindingType_Uniform
@ WGPUDeviceLostReason_FailedCreation
@ WGPUDeviceLostReason_Destroyed
@ WGPUDeviceLostReason_CallbackCancelled
@ WGPUDeviceLostReason_Force32
@ WGPUDeviceLostReason_Unknown
@ WGPUCompareFunction_Force32
@ WGPUCompareFunction_Always
@ WGPUCompareFunction_Never
@ WGPUCompareFunction_NotEqual
@ WGPUCompareFunction_Less
@ WGPUCompareFunction_Undefined
@ WGPUCompareFunction_GreaterEqual
@ WGPUCompareFunction_Equal
@ WGPUCompareFunction_LessEqual
@ WGPUCompareFunction_Greater
@ WGPUTextureDimension_Undefined
@ WGPUTextureDimension_2D
@ WGPUTextureDimension_Force32
@ WGPUTextureDimension_3D
@ WGPUTextureDimension_1D
@ WGPURequestDeviceStatus_CallbackCancelled
@ WGPURequestDeviceStatus_Success
@ WGPURequestDeviceStatus_Error
@ WGPURequestDeviceStatus_Force32
@ WGPUCompilationMessageType_Force32
@ WGPUCompilationMessageType_Info
@ WGPUCompilationMessageType_Warning
@ WGPUCompilationMessageType_Error
@ WGPUCreatePipelineAsyncStatus_Force32
@ WGPUCreatePipelineAsyncStatus_ValidationError
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
@ WGPUCreatePipelineAsyncStatus_Success
@ WGPUCreatePipelineAsyncStatus_InternalError
@ WGPUTextureViewDimension_Cube
@ WGPUTextureViewDimension_2DArray
@ WGPUTextureViewDimension_2D
@ WGPUTextureViewDimension_3D
@ WGPUTextureViewDimension_1D
@ WGPUTextureViewDimension_CubeArray
@ WGPUTextureViewDimension_Undefined
@ WGPUTextureViewDimension_Force32
@ WGPUPrimitiveTopology_LineList
@ WGPUPrimitiveTopology_LineStrip
@ WGPUPrimitiveTopology_Undefined
@ WGPUPrimitiveTopology_TriangleList
@ WGPUPrimitiveTopology_PointList
@ WGPUPrimitiveTopology_TriangleStrip
@ WGPUPrimitiveTopology_Force32
@ WGPUTextureFormat_ASTC12x10Unorm
@ WGPUTextureFormat_BC5RGSnorm
@ WGPUTextureFormat_BC7RGBAUnorm
@ WGPUTextureFormat_RGBA8Unorm
@ WGPUTextureFormat_RG8Unorm
@ WGPUTextureFormat_ETC2RGB8Unorm
@ WGPUTextureFormat_ASTC4x4Unorm
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
@ WGPUTextureFormat_EACR11Snorm
@ WGPUTextureFormat_BC4RSnorm
@ WGPUTextureFormat_RGBA8Snorm
@ WGPUTextureFormat_ASTC10x6Unorm
@ WGPUTextureFormat_BGRA8UnormSrgb
@ WGPUTextureFormat_ASTC6x6Unorm
@ WGPUTextureFormat_ETC2RGB8A1Unorm
@ WGPUTextureFormat_ASTC10x8Unorm
@ WGPUTextureFormat_RG16Unorm
@ WGPUTextureFormat_ASTC8x8Unorm
@ WGPUTextureFormat_RGBA32Float
@ WGPUTextureFormat_BC6HRGBUfloat
@ WGPUTextureFormat_RG32Sint
@ WGPUTextureFormat_RGBA16Float
@ WGPUTextureFormat_ASTC10x10Unorm
@ WGPUTextureFormat_Depth32FloatStencil8
@ WGPUTextureFormat_RG8Snorm
@ WGPUTextureFormat_ASTC12x10UnormSrgb
@ WGPUTextureFormat_Depth24Plus
@ WGPUTextureFormat_RG16Sint
@ WGPUTextureFormat_EACRG11Unorm
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
@ WGPUTextureFormat_BC6HRGBFloat
@ WGPUTextureFormat_R32Float
@ WGPUTextureFormat_BC7RGBAUnormSrgb
@ WGPUTextureFormat_R16Sint
@ WGPUTextureFormat_R8Sint
@ WGPUTextureFormat_RGBA8UnormSrgb
@ WGPUTextureFormat_BC3RGBAUnormSrgb
@ WGPUTextureFormat_RGBA16Unorm
@ WGPUTextureFormat_RGBA8Uint
@ WGPUTextureFormat_EACRG11Snorm
@ WGPUTextureFormat_RGBA16Uint
@ WGPUTextureFormat_ASTC10x10UnormSrgb
@ WGPUTextureFormat_RGB10A2Unorm
@ WGPUTextureFormat_ASTC10x5UnormSrgb
@ WGPUTextureFormat_ASTC5x5Unorm
@ WGPUTextureFormat_R32Uint
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
@ WGPUTextureFormat_RG16Snorm
@ WGPUTextureFormat_ASTC5x4Unorm
@ WGPUTextureFormat_BC3RGBAUnorm
@ WGPUTextureFormat_R16Unorm
@ WGPUTextureFormat_BGRA8Unorm
@ WGPUTextureFormat_BC4RUnorm
@ WGPUTextureFormat_BC5RGUnorm
@ WGPUTextureFormat_Force32
@ WGPUTextureFormat_BC1RGBAUnorm
@ WGPUTextureFormat_ASTC5x5UnormSrgb
@ WGPUTextureFormat_ASTC8x6UnormSrgb
@ WGPUTextureFormat_R32Sint
@ WGPUTextureFormat_BC2RGBAUnormSrgb
@ WGPUTextureFormat_RGBA32Uint
@ WGPUTextureFormat_Stencil8
@ WGPUTextureFormat_EACR11Unorm
@ WGPUTextureFormat_ASTC6x6UnormSrgb
@ WGPUTextureFormat_RG16Uint
@ WGPUTextureFormat_ASTC10x8UnormSrgb
@ WGPUTextureFormat_RGB9E5Ufloat
@ WGPUTextureFormat_Depth16Unorm
@ WGPUTextureFormat_RG8Sint
@ WGPUTextureFormat_ASTC8x8UnormSrgb
@ WGPUTextureFormat_R16Uint
@ WGPUTextureFormat_Undefined
@ WGPUTextureFormat_ASTC10x6UnormSrgb
@ WGPUTextureFormat_R16Float
@ WGPUTextureFormat_ASTC5x4UnormSrgb
@ WGPUTextureFormat_RG32Float
@ WGPUTextureFormat_RGBA16Snorm
@ WGPUTextureFormat_RG11B10Ufloat
@ WGPUTextureFormat_ASTC12x12UnormSrgb
@ WGPUTextureFormat_RGBA32Sint
@ WGPUTextureFormat_BC1RGBAUnormSrgb
@ WGPUTextureFormat_RG16Float
@ WGPUTextureFormat_ASTC6x5Unorm
@ WGPUTextureFormat_Depth24PlusStencil8
@ WGPUTextureFormat_ASTC10x5Unorm
@ WGPUTextureFormat_RGBA16Sint
@ WGPUTextureFormat_R8Unorm
@ WGPUTextureFormat_Depth32Float
@ WGPUTextureFormat_BC2RGBAUnorm
@ WGPUTextureFormat_R16Snorm
@ WGPUTextureFormat_ASTC8x6Unorm
@ WGPUTextureFormat_RG8Uint
@ WGPUTextureFormat_R8Uint
@ WGPUTextureFormat_ASTC8x5Unorm
@ WGPUTextureFormat_ASTC12x12Unorm
@ WGPUTextureFormat_RGB10A2Uint
@ WGPUTextureFormat_ASTC4x4UnormSrgb
@ WGPUTextureFormat_ETC2RGBA8Unorm
@ WGPUTextureFormat_RG32Uint
@ WGPUTextureFormat_ASTC8x5UnormSrgb
@ WGPUTextureFormat_RGBA8Sint
@ WGPUTextureFormat_R8Snorm
@ WGPUTextureFormat_ASTC6x5UnormSrgb
@ WGPUWGSLLanguageFeatureName_BufferView
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
@ WGPUWGSLLanguageFeatureName_LinearIndexing
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
@ WGPUWGSLLanguageFeatureName_ImmediateAddressSpace
@ WGPUWGSLLanguageFeatureName_FragmentDepth
@ WGPUWGSLLanguageFeatureName_TextureAndSamplerLet
@ WGPUWGSLLanguageFeatureName_TextureFormatsTier1
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
@ WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout
@ WGPUWGSLLanguageFeatureName_SubgroupId
@ WGPUWGSLLanguageFeatureName_SwizzleAssignment
@ WGPUWGSLLanguageFeatureName_Force32
@ WGPUWGSLLanguageFeatureName_SubgroupUniformity
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
@ WGPUStencilOperation_DecrementClamp
@ WGPUStencilOperation_Undefined
@ WGPUStencilOperation_Replace
@ WGPUStencilOperation_Keep
@ WGPUStencilOperation_DecrementWrap
@ WGPUStencilOperation_IncrementWrap
@ WGPUStencilOperation_IncrementClamp
@ WGPUStencilOperation_Invert
@ WGPUStencilOperation_Force32
@ WGPUStencilOperation_Zero
@ WGPUAddressMode_MirrorRepeat
@ WGPUAddressMode_Undefined
@ WGPUAddressMode_ClampToEdge
@ WGPUAddressMode_Force32
@ WGPUToneMappingMode_Force32
@ WGPUToneMappingMode_Standard
@ WGPUToneMappingMode_Extended
@ WGPUTextureAspect_DepthOnly
@ WGPUTextureAspect_Force32
@ WGPUTextureAspect_Undefined
@ WGPUTextureAspect_StencilOnly
@ WGPUBufferMapState_Pending
@ WGPUBufferMapState_Mapped
@ WGPUBufferMapState_Unmapped
@ WGPUBufferMapState_Force32
@ WGPUFilterMode_Undefined
@ WGPUBackendType_Force32
@ WGPUBackendType_OpenGLES
@ WGPUBackendType_Undefined
@ WGPUBlendFactor_DstAlpha
@ WGPUBlendFactor_Src1Alpha
@ WGPUBlendFactor_Undefined
@ WGPUBlendFactor_OneMinusDst
@ WGPUBlendFactor_Force32
@ WGPUBlendFactor_OneMinusSrc1
@ WGPUBlendFactor_Constant
@ WGPUBlendFactor_OneMinusSrc
@ WGPUBlendFactor_SrcAlphaSaturated
@ WGPUBlendFactor_OneMinusSrcAlpha
@ WGPUBlendFactor_SrcAlpha
@ WGPUBlendFactor_OneMinusConstant
@ WGPUBlendFactor_OneMinusDstAlpha
@ WGPUBlendFactor_OneMinusSrc1Alpha
@ WGPUSamplerBindingType_BindingNotUsed
@ WGPUSamplerBindingType_NonFiltering
@ WGPUSamplerBindingType_Force32
@ WGPUSamplerBindingType_Filtering
@ WGPUSamplerBindingType_Undefined
@ WGPUSamplerBindingType_Comparison
@ WGPUPopErrorScopeStatus_Force32
@ WGPUPopErrorScopeStatus_Success
@ WGPUPopErrorScopeStatus_CallbackCancelled
@ WGPUPopErrorScopeStatus_Error
@ WGPUWaitStatus_TimedOut
@ WGPUStorageTextureAccess_Undefined
@ WGPUStorageTextureAccess_BindingNotUsed
@ WGPUStorageTextureAccess_ReadOnly
@ WGPUStorageTextureAccess_WriteOnly
@ WGPUStorageTextureAccess_Force32
@ WGPUStorageTextureAccess_ReadWrite
@ WGPUPowerPreference_Force32
@ WGPUPowerPreference_HighPerformance
@ WGPUPowerPreference_LowPower
@ WGPUPowerPreference_Undefined
@ WGPUPresentMode_Force32
@ WGPUPresentMode_Immediate
@ WGPUPresentMode_FifoRelaxed
@ WGPUPresentMode_Mailbox
@ WGPUPresentMode_Undefined
@ WGPUMapAsyncStatus_Aborted
@ WGPUMapAsyncStatus_CallbackCancelled
@ WGPUMapAsyncStatus_Error
@ WGPUMapAsyncStatus_Force32
@ WGPUMapAsyncStatus_Success
@ WGPUBlendOperation_Undefined
@ WGPUBlendOperation_Subtract
@ WGPUBlendOperation_Force32
@ WGPUBlendOperation_ReverseSubtract
@ WGPUCompositeAlphaMode_Auto
@ WGPUCompositeAlphaMode_Force32
@ WGPUCompositeAlphaMode_Opaque
@ WGPUCompositeAlphaMode_Unpremultiplied
@ WGPUCompositeAlphaMode_Inherit
@ WGPUCompositeAlphaMode_Premultiplied
@ WGPUPredefinedColorSpace_DisplayP3
@ WGPUPredefinedColorSpace_SRGB
@ WGPUPredefinedColorSpace_Force32
@ WGPUQueueWorkDoneStatus_Error
@ WGPUQueueWorkDoneStatus_CallbackCancelled
@ WGPUQueueWorkDoneStatus_Success
@ WGPUQueueWorkDoneStatus_Force32
@ WGPUComponentSwizzle_Force32
@ WGPUComponentSwizzle_Zero
@ WGPUComponentSwizzle_One
@ WGPUComponentSwizzle_Undefined
@ WGPUVertexStepMode_Undefined
@ WGPUVertexStepMode_Instance
@ WGPUVertexStepMode_Vertex
@ WGPUVertexStepMode_Force32
@ WGPUQueryType_Occlusion
@ WGPUQueryType_Timestamp
@ WGPUFeatureLevel_Undefined
@ WGPUFeatureLevel_Force32
@ WGPUFeatureLevel_Compatibility
@ WGPUAdapterType_DiscreteGPU
@ WGPUAdapterType_IntegratedGPU
@ WGPUAdapterType_Unknown
@ WGPUAdapterType_Force32
@ WGPUInstanceFeatureName_ShaderSourceSPIRV
@ WGPUInstanceFeatureName_Force32
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
@ WGPUInstanceFeatureName_TimedWaitAny
@ WGPUCompilationInfoRequestStatus_Force32
@ WGPUCompilationInfoRequestStatus_Success
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
@ WGPUMipmapFilterMode_Undefined
@ WGPUMipmapFilterMode_Linear
@ WGPUMipmapFilterMode_Force32
@ WGPUMipmapFilterMode_Nearest
@ WGPUSurfaceGetCurrentTextureStatus_Lost
@ WGPUSurfaceGetCurrentTextureStatus_Error
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
@ WGPUSurfaceGetCurrentTextureStatus_Force32
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
@ WGPUFrontFace_Undefined
@ WGPUErrorFilter_Internal
@ WGPUErrorFilter_Force32
@ WGPUErrorFilter_OutOfMemory
@ WGPUErrorFilter_Validation
@ WGPUOptionalBool_Force32
@ WGPUOptionalBool_Undefined
@ WGPUCallbackMode_AllowProcessEvents
@ WGPUCallbackMode_AllowSpontaneous
@ WGPUCallbackMode_WaitAnyOnly
@ WGPUCallbackMode_Force32
@ WGPUTextureSampleType_Float
@ WGPUTextureSampleType_Sint
@ WGPUTextureSampleType_BindingNotUsed
@ WGPUTextureSampleType_Undefined
@ WGPUTextureSampleType_Force32
@ WGPUTextureSampleType_Uint
@ WGPUTextureSampleType_Depth
@ WGPUTextureSampleType_UnfilterableFloat
@ WGPUErrorType_OutOfMemory
@ WGPUErrorType_Validation
WGPUInstance wgpuCreateInstance(WGPUInstanceDescriptor const *descriptor)
WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits *limits)
WGPUProc wgpuGetProcAddress(WGPUStringView procName)
void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures *features)
WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature)
struct WGPUPipelineLayoutImpl * WGPUPipelineLayout
struct WGPUSamplerImpl * WGPUSampler
struct WGPUExternalTextureImpl * WGPUExternalTexture
struct WGPUQueueImpl * WGPUQueue
struct WGPUSurfaceImpl * WGPUSurface
struct WGPURenderBundleImpl * WGPURenderBundle
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
struct WGPUBindGroupImpl * WGPUBindGroup
struct WGPUInstanceImpl * WGPUInstance
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
struct WGPUTextureViewImpl * WGPUTextureView
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
struct WGPUShaderModuleImpl * WGPUShaderModule
struct WGPUQuerySetImpl * WGPUQuerySet
struct WGPUCommandBufferImpl * WGPUCommandBuffer
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
struct WGPUDeviceImpl * WGPUDevice
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
struct WGPUTextureImpl * WGPUTexture
struct WGPUComputePipelineImpl * WGPUComputePipeline
struct WGPURenderPipelineImpl * WGPURenderPipeline
struct WGPUAdapterImpl * WGPUAdapter
struct WGPUBufferImpl * WGPUBuffer
struct WGPUFuture WGPUFuture
void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo)
WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits *limits)
void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures *features)
WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallbackInfo callbackInfo)
void wgpuAdapterAddRef(WGPUAdapter adapter)
WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
void wgpuAdapterRelease(WGPUAdapter adapter)
WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo *info)
void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label)
void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupAddRef(WGPUBindGroup bindGroup)
void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label)
WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer)
WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo)
void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
void wgpuBufferAddRef(WGPUBuffer buffer)
WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void *data, size_t size)
void wgpuBufferRelease(WGPUBuffer buffer)
void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
void wgpuBufferUnmap(WGPUBuffer buffer)
WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const *data, size_t size)
void wgpuBufferDestroy(WGPUBuffer buffer)
void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label)
void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label)
void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer)
WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor)
WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const *descriptor)
void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const *descriptor)
void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label)
void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel)
void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel)
void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
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 wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyBufferInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label)
void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel)
void wgpuComputePassEncoderSetImmediates(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const *data, size_t size)
void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel)
WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline)
void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label)
void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)
WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPUSamplerDescriptor const *descriptor)
WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor)
WGPUFuture wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo)
WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)
WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)
void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures *features)
WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo *adapterInfo)
WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)
void wgpuDeviceRelease(WGPUDevice device)
WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo)
WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits *limits)
WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)
WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor)
WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)
WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)
void wgpuDeviceDestroy(WGPUDevice device)
void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label)
WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)
WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)
void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
void wgpuDeviceAddRef(WGPUDevice device)
WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device)
WGPUFuture wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo)
void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture)
void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, WGPUStringView label)
void wgpuExternalTextureAddRef(WGPUExternalTexture externalTexture)
WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature)
void wgpuInstanceProcessEvents(WGPUInstance instance)
void wgpuInstanceRelease(WGPUInstance instance)
WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo)
WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS)
void wgpuInstanceAddRef(WGPUInstance instance)
void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures *features)
WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor)
void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout)
void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label)
void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout)
void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label)
void wgpuQuerySetDestroy(WGPUQuerySet querySet)
void wgpuQuerySetRelease(WGPUQuerySet querySet)
void wgpuQuerySetAddRef(WGPUQuerySet querySet)
uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet)
WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet)
void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const *destination, void const *data, size_t dataSize, WGPUTexelCopyBufferLayout const *dataLayout, WGPUExtent3D const *writeSize)
void wgpuQueueAddRef(WGPUQueue queue)
void wgpuQueueRelease(WGPUQueue queue)
void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label)
void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size)
WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo)
void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands)
void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderBundleEncoderSetImmediates(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const *data, size_t size)
void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel)
WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const *descriptor)
void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel)
void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label)
void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle)
void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label)
void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel)
void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles)
void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel)
void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label)
void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderSetImmediates(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const *data, size_t size)
void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color)
void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label)
void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline)
void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
void wgpuSamplerAddRef(WGPUSampler sampler)
void wgpuSamplerRelease(WGPUSampler sampler)
void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label)
void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule)
WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo)
void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label)
void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures)
void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures)
void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures)
void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities)
void wgpuSurfaceAddRef(WGPUSurface surface)
WGPUStatus wgpuSurfacePresent(WGPUSurface surface)
void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label)
void wgpuSurfaceUnconfigure(WGPUSurface surface)
void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const *config)
WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
void wgpuSurfaceRelease(WGPUSurface surface)
uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
void wgpuTextureDestroy(WGPUTexture texture)
uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
void wgpuTextureRelease(WGPUTexture texture)
WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
uint32_t wgpuTextureGetHeight(WGPUTexture texture)
uint32_t wgpuTextureGetWidth(WGPUTexture texture)
void wgpuTextureAddRef(WGPUTexture texture)
WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPUTextureViewDescriptor const *descriptor)
WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture)
WGPUTextureViewDimension wgpuTextureGetTextureBindingViewDimension(WGPUTexture texture)
void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label)
uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture)
void wgpuTextureViewRelease(WGPUTextureView textureView)
void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label)
void wgpuTextureViewAddRef(WGPUTextureView textureView)
WGPUBackendType backendType
WGPUChainedStruct * nextInChain
WGPUStringView description
WGPUAdapterType adapterType
WGPUStringView architecture
WGPUChainedStruct * nextInChain
WGPUBindGroupLayout layout
WGPUBindGroupEntry const * entries
WGPUTextureView textureView
WGPUChainedStruct * nextInChain
WGPUBindGroupLayoutEntry const * entries
WGPUChainedStruct * nextInChain
WGPUTextureBindingLayout texture
WGPUShaderStage visibility
WGPUBufferBindingLayout buffer
uint32_t bindingArraySize
WGPUChainedStruct * nextInChain
WGPUStorageTextureBindingLayout storageTexture
WGPUSamplerBindingLayout sampler
WGPUBlendFactor dstFactor
WGPUBlendFactor srcFactor
WGPUBlendOperation operation
WGPUBufferBindingType type
WGPUBool hasDynamicOffset
WGPUChainedStruct * nextInChain
WGPUBool mappedAtCreation
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUBufferMapCallback callback
struct WGPUChainedStruct * next
WGPUBlendState const * blend
WGPUColorWriteMask writeMask
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
uint32_t maxStorageBuffersInVertexStage
uint32_t maxStorageBuffersInFragmentStage
uint32_t maxStorageTexturesInFragmentStage
uint32_t maxStorageTexturesInVertexStage
WGPUCompilationInfoCallback callback
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUCompilationMessage const * messages
WGPUChainedStruct * nextInChain
WGPUCompilationMessageType type
WGPUPassTimestampWrites const * timestampWrites
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUPipelineLayout layout
WGPUChainedStruct * nextInChain
WGPUConstantEntry const * constants
WGPUShaderModule WGPUStringView entryPoint
WGPUChainedStruct * nextInChain
WGPUCreateComputePipelineAsyncCallback callback
WGPUChainedStruct * nextInChain
WGPUCreateRenderPipelineAsyncCallback callback
WGPUChainedStruct * nextInChain
WGPUStencilFaceState stencilFront
uint32_t stencilWriteMask
WGPUStencilFaceState stencilBack
WGPUChainedStruct * nextInChain
WGPUOptionalBool depthWriteEnabled
WGPUCompareFunction depthCompare
float depthBiasSlopeScale
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
size_t requiredFeatureCount
WGPUFeatureName const * requiredFeatures
WGPUQueueDescriptor defaultQueue
WGPUChainedStruct * nextInChain
WGPULimits const * requiredLimits
WGPUChainedStruct * nextInChain
WGPUDeviceLostCallback callback
uint32_t depthOrArrayLayers
WGPUExternalTexture externalTexture
WGPUShaderModule WGPUStringView entryPoint
WGPUChainedStruct * nextInChain
WGPUConstantEntry const * constants
WGPUColorTargetState const * targets
WGPUInstanceFeatureName const * requiredFeatures
WGPUChainedStruct * nextInChain
size_t requiredFeatureCount
WGPUInstanceLimits const * requiredLimits
size_t timedWaitAnyMaxCount
WGPUChainedStruct * nextInChain
uint32_t maxBindGroupsPlusVertexBuffers
uint32_t maxColorAttachmentBytesPerSample
uint32_t maxTextureDimension2D
uint32_t maxSampledTexturesPerShaderStage
uint32_t maxTextureDimension3D
uint32_t maxSamplersPerShaderStage
WGPUChainedStruct * nextInChain
uint32_t maxBindingsPerBindGroup
uint32_t maxComputeWorkgroupsPerDimension
uint32_t maxDynamicStorageBuffersPerPipelineLayout
uint32_t maxComputeWorkgroupStorageSize
uint32_t minStorageBufferOffsetAlignment
uint32_t maxComputeWorkgroupSizeY
uint64_t maxStorageBufferBindingSize
uint32_t maxComputeInvocationsPerWorkgroup
uint32_t maxVertexBufferArrayStride
uint32_t minUniformBufferOffsetAlignment
uint32_t maxVertexAttributes
uint32_t maxColorAttachments
uint32_t maxInterStageShaderVariables
uint32_t maxComputeWorkgroupSizeZ
uint32_t maxTextureDimension1D
uint32_t maxDynamicUniformBuffersPerPipelineLayout
uint64_t maxUniformBufferBindingSize
uint32_t maxUniformBuffersPerShaderStage
uint32_t maxComputeWorkgroupSizeX
uint32_t maxVertexBuffers
uint32_t maxTextureArrayLayers
uint32_t maxStorageTexturesPerShaderStage
uint32_t maxStorageBuffersPerShaderStage
uint32_t maxImmediateSize
WGPUBool alphaToCoverageEnabled
WGPUChainedStruct * nextInChain
uint32_t endOfPassWriteIndex
WGPUChainedStruct * nextInChain
uint32_t beginningOfPassWriteIndex
WGPUChainedStruct * nextInChain
WGPUBindGroupLayout const * bindGroupLayouts
size_t bindGroupLayoutCount
WGPUChainedStruct * nextInChain
WGPUPopErrorScopeCallback callback
WGPUChainedStruct * nextInChain
WGPUIndexFormat stripIndexFormat
WGPUPrimitiveTopology topology
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUQueueWorkDoneCallback callback
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUTextureFormat const * colorFormats
WGPUTextureFormat depthStencilFormat
WGPUTextureView resolveTarget
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUStoreOp stencilStoreOp
uint32_t stencilClearValue
WGPUChainedStruct * nextInChain
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
WGPURenderPassColorAttachment const * colorAttachments
WGPUQuerySet occlusionQuerySet
size_t colorAttachmentCount
WGPUPassTimestampWrites const * timestampWrites
WGPUDepthStencilState const * depthStencil
WGPUChainedStruct * nextInChain
WGPUMultisampleState multisample
WGPUFragmentState const * fragment
WGPUPrimitiveState primitive
WGPUPipelineLayout layout
WGPURequestAdapterCallback callback
WGPUChainedStruct * nextInChain
WGPUFeatureLevel featureLevel
WGPUBool forceFallbackAdapter
WGPUSurface compatibleSurface
WGPUBackendType backendType
WGPUChainedStruct * nextInChain
WGPUPowerPreference powerPreference
WGPUChainedStruct * nextInChain
WGPURequestDeviceCallback callback
WGPUChainedStruct * nextInChain
WGPUSamplerBindingType type
WGPUAddressMode addressModeU
WGPUCompareFunction compare
WGPUAddressMode addressModeW
WGPUAddressMode addressModeV
WGPUChainedStruct * nextInChain
WGPUMipmapFilterMode mipmapFilter
WGPUChainedStruct * nextInChain
WGPUCompareFunction compare
WGPUStencilOperation depthFailOp
WGPUStencilOperation passOp
WGPUStencilOperation failOp
WGPUChainedStruct * nextInChain
WGPUTextureViewDimension viewDimension
WGPUStorageTextureAccess access
WGPUFeatureName const * features
WGPUInstanceFeatureName const * features
WGPUWGSLLanguageFeatureName const * features
WGPUTextureFormat const * formats
WGPUChainedStruct * nextInChain
WGPUPresentMode const * presentModes
WGPUCompositeAlphaMode const * alphaModes
WGPUToneMappingMode toneMappingMode
WGPUPredefinedColorSpace colorSpace
WGPUTextureFormat const * viewFormats
WGPUCompositeAlphaMode alphaMode
WGPUChainedStruct * nextInChain
WGPUPresentMode presentMode
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUSurfaceGetCurrentTextureStatus status
WGPUTexelCopyBufferLayout layout
WGPUTextureViewDimension viewDimension
WGPUTextureSampleType sampleType
WGPUChainedStruct * nextInChain
WGPUTextureViewDimension textureBindingViewDimension
WGPUTextureComponentSwizzle swizzle
WGPUTextureFormat const * viewFormats
WGPUTextureDimension dimension
WGPUChainedStruct * nextInChain
WGPUChainedStruct * nextInChain
WGPUTextureViewDimension dimension
WGPUChainedStruct * nextInChain
WGPUUncapturedErrorCallback callback
WGPUChainedStruct * nextInChain
WGPUVertexAttribute const * attributes
WGPUVertexStepMode stepMode
WGPUChainedStruct * nextInChain
WGPUShaderModule WGPUStringView entryPoint
WGPUVertexBufferLayout const * buffers
WGPUConstantEntry const * constants
WGPUChainedStruct * nextInChain