27#if defined(WGPU_SHARED_LIBRARY)
29# if defined(WGPU_IMPLEMENTATION)
30# define WGPU_EXPORT __declspec(dllexport)
32# define WGPU_EXPORT __declspec(dllimport)
35# if defined(WGPU_IMPLEMENTATION)
36# define WGPU_EXPORT __attribute__((visibility("default")))
45#if !defined(WGPU_OBJECT_ATTRIBUTE)
46#define WGPU_OBJECT_ATTRIBUTE
48#if !defined(WGPU_ENUM_ATTRIBUTE)
49#define WGPU_ENUM_ATTRIBUTE
51#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
52#define WGPU_STRUCTURE_ATTRIBUTE
54#if !defined(WGPU_FUNCTION_ATTRIBUTE)
55#define WGPU_FUNCTION_ATTRIBUTE
57#if !defined(WGPU_NULLABLE)
66#if defined(__cplusplus)
67# define _wgpu_ENUM_ZERO_INIT(type) type(0)
68# if __cplusplus >= 201103L
69# define _wgpu_MAKE_INIT_STRUCT(type, value) (type value)
71# define _wgpu_MAKE_INIT_STRUCT(type, value) value
74# define _wgpu_ENUM_ZERO_INIT(type) (type)0
75# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
76# define _wgpu_MAKE_INIT_STRUCT(type, value) ((type) value)
78# define _wgpu_MAKE_INIT_STRUCT(type, value) value
89#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
90#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
95#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
96#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
97#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
98#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
99#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
100#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
101#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
102#define WGPU_WHOLE_SIZE (UINT64_MAX)
137 char const * WGPU_NULLABLE
data;
145#define WGPU_STRLEN SIZE_MAX
150#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
152 WGPU_STRLEN _wgpu_COMMA \
167typedef struct WGPUBufferImpl*
WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
172typedef struct WGPUDeviceImpl*
WGPUDevice WGPU_OBJECT_ATTRIBUTE;
176typedef struct WGPUQueueImpl*
WGPUQueue WGPU_OBJECT_ATTRIBUTE;
1188typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1334#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1336 WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1353#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1355 WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1372#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1374 WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1391#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1393 WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1410#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1412 WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1429#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1431 WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1448#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1450 WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1467#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1469 WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1486#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1488 WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1504#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1563#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1565 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1566 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1567 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1568 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1569 WGPUBackendType_Undefined _wgpu_COMMA \
1570 _wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1627#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1632 WGPU_WHOLE_SIZE _wgpu_COMMA \
1667#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1668 WGPUBlendOperation_Undefined _wgpu_COMMA \
1669 WGPUBlendFactor_Undefined _wgpu_COMMA \
1670 WGPUBlendFactor_Undefined _wgpu_COMMA \
1698#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1700 WGPUBufferBindingType_BindingNotUsed _wgpu_COMMA \
1733#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1735 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1736 WGPUBufferUsage_None _wgpu_COMMA \
1766#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1789#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1791 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1810#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
1812 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1863#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
1865 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1866 _wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
1893#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
1895 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1920#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
1943#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
1972#define WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceCapabilities, { \
2113#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2115 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2116 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2117 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2118 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2119 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2120 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2121 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2122 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2123 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2124 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2125 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2126 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2127 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2128 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2129 WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2130 WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2131 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2132 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2133 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2134 WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2135 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2136 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2137 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2138 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2139 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2140 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2141 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2142 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2143 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2144 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2145 WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2170#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2173 0xFFFFFFFF _wgpu_COMMA \
2198#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2228#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2231 WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2232 WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2259#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2261 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2305#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2307 WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2308 _wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
2309 WGPUFrontFace_Undefined _wgpu_COMMA \
2310 WGPUCullMode_Undefined _wgpu_COMMA \
2338#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2340 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2341 _wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2361#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2363 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2382#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2384 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2427#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2429 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2432 WGPUTextureFormat_Undefined _wgpu_COMMA \
2484#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2487 WGPULoadOp_Undefined _wgpu_COMMA \
2488 WGPUStoreOp_Undefined _wgpu_COMMA \
2489 WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2491 WGPULoadOp_Undefined _wgpu_COMMA \
2492 WGPUStoreOp_Undefined _wgpu_COMMA \
2511#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2512 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2514 WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2516 50000000 _wgpu_COMMA \
2565#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
2567 WGPUFeatureLevel_Undefined _wgpu_COMMA \
2568 WGPUPowerPreference_Undefined _wgpu_COMMA \
2570 WGPUBackendType_Undefined _wgpu_COMMA \
2591#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2593 WGPUSamplerBindingType_BindingNotUsed _wgpu_COMMA \
2670#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2672 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2673 WGPUAddressMode_Undefined _wgpu_COMMA \
2674 WGPUAddressMode_Undefined _wgpu_COMMA \
2675 WGPUAddressMode_Undefined _wgpu_COMMA \
2676 WGPUFilterMode_Undefined _wgpu_COMMA \
2677 WGPUFilterMode_Undefined _wgpu_COMMA \
2678 WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2681 WGPUCompareFunction_Undefined _wgpu_COMMA \
2701#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
2703 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2724#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2725 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2727 WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2749#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2750 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2752 WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2754 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2794#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2795 WGPUCompareFunction_Undefined _wgpu_COMMA \
2796 WGPUStencilOperation_Undefined _wgpu_COMMA \
2797 WGPUStencilOperation_Undefined _wgpu_COMMA \
2798 WGPUStencilOperation_Undefined _wgpu_COMMA \
2829#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
2831 WGPUStorageTextureAccess_BindingNotUsed _wgpu_COMMA \
2832 WGPUTextureFormat_Undefined _wgpu_COMMA \
2833 WGPUTextureViewDimension_Undefined _wgpu_COMMA \
2853#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
2875#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
2931#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
2933 WGPUTextureUsage_None _wgpu_COMMA \
3014#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3017 WGPUTextureFormat_Undefined _wgpu_COMMA \
3018 WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3023 WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3024 WGPUPresentMode_Undefined _wgpu_COMMA \
3049#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
3051 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3072#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3073 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3075 WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3098#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3099 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3101 WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3130#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3131 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3133 WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3164#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3165 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3167 WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3197#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3198 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3200 WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3230#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3231 _wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3233 WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3265#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3268 _wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3292#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3294 WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3295 WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3326#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3328 WGPUTextureSampleType_BindingNotUsed _wgpu_COMMA \
3329 WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3384#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3386 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3387 WGPUTextureFormat_Undefined _wgpu_COMMA \
3388 WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3390 WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3392 WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3393 WGPUTextureAspect_Undefined _wgpu_COMMA \
3394 WGPUTextureUsage_None _wgpu_COMMA \
3419#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3421 _wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3454#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3456 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3496#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3499 WGPUShaderStage_None _wgpu_COMMA \
3500 WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_COMMA \
3501 WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_COMMA \
3502 WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_COMMA \
3503 WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_COMMA \
3523#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3524 WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3525 WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3546#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3572#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3574 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3606#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3609 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3664#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3666 WGPUTextureFormat_Undefined _wgpu_COMMA \
3667 WGPUOptionalBool_Undefined _wgpu_COMMA \
3668 _wgpu_ENUM_ZERO_INIT(WGPUCompareFunction) _wgpu_COMMA \
3669 WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3670 WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3671 0xFFFFFFFF _wgpu_COMMA \
3672 0xFFFFFFFF _wgpu_COMMA \
3718#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
3720 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3724 WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
3725 WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
3726 WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
3752#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3753 WGPU_FUTURE_INIT _wgpu_COMMA \
3773#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
3775 WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_COMMA \
3815#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
3818 WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
3820 _wgpu_ENUM_ZERO_INIT(WGPULoadOp) _wgpu_COMMA \
3821 _wgpu_ENUM_ZERO_INIT(WGPUStoreOp) _wgpu_COMMA \
3822 WGPU_COLOR_INIT _wgpu_COMMA \
3842#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
3843 WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
3875#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
3878 WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
3879 WGPUTextureAspect_Undefined _wgpu_COMMA \
3933#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
3935 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3936 WGPUTextureUsage_None _wgpu_COMMA \
3937 WGPUTextureDimension_Undefined _wgpu_COMMA \
3938 WGPU_EXTENT_3D_INIT _wgpu_COMMA \
3939 WGPUTextureFormat_Undefined _wgpu_COMMA \
3985#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
3987 WGPUVertexStepMode_Undefined _wgpu_COMMA \
4017#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4019 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4050#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4052 WGPUTextureFormat_Undefined _wgpu_COMMA \
4054 WGPUColorWriteMask_All _wgpu_COMMA \
4081#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4083 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4085 WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4124#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4126 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4170#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4173 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4216#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4219 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4266#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4268 WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4270 WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4271 WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4273 WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4283#if !defined(WGPU_SKIP_PROCS)
4299typedef WGPUProc (*WGPUProcGetProcAddress)(
WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4331typedef void (*WGPUProcAdapterAddRef)(
WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4336typedef void (*WGPUProcAdapterRelease)(
WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4343typedef void (*WGPUProcAdapterInfoFreeMembers)(
WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4355typedef void (*WGPUProcBindGroupAddRef)(
WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4360typedef void (*WGPUProcBindGroupRelease)(
WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4372typedef void (*WGPUProcBindGroupLayoutAddRef)(
WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4377typedef void (*WGPUProcBindGroupLayoutRelease)(
WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4384typedef void (*WGPUProcBufferDestroy)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4389typedef void const * (*WGPUProcBufferGetConstMappedRange)(
WGPUBuffer buffer,
size_t offset,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
4399typedef void * (*WGPUProcBufferGetMappedRange)(
WGPUBuffer buffer,
size_t offset,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
4404typedef uint64_t (*WGPUProcBufferGetSize)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4424typedef void (*WGPUProcBufferUnmap)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4429typedef void (*WGPUProcBufferAddRef)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4434typedef void (*WGPUProcBufferRelease)(
WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4446typedef void (*WGPUProcCommandBufferAddRef)(
WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4451typedef void (*WGPUProcCommandBufferRelease)(
WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4468typedef void (*WGPUProcCommandEncoderClearBuffer)(
WGPUCommandEncoder commandEncoder,
WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4473typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(
WGPUCommandEncoder commandEncoder,
WGPUBuffer source, uint64_t sourceOffset,
WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4503typedef void (*WGPUProcCommandEncoderPopDebugGroup)(
WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4513typedef void (*WGPUProcCommandEncoderResolveQuerySet)(
WGPUCommandEncoder commandEncoder,
WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount,
WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4523typedef void (*WGPUProcCommandEncoderWriteTimestamp)(
WGPUCommandEncoder commandEncoder,
WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4528typedef void (*WGPUProcCommandEncoderAddRef)(
WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4533typedef void (*WGPUProcCommandEncoderRelease)(
WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4540typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(
WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4545typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(
WGPUComputePassEncoder computePassEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4550typedef void (*WGPUProcComputePassEncoderEnd)(
WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4560typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(
WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4570typedef void (*WGPUProcComputePassEncoderSetBindGroup)(
WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE
WGPUBindGroup group,
size_t dynamicOffsetCount, uint32_t
const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4585typedef void (*WGPUProcComputePassEncoderAddRef)(
WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4590typedef void (*WGPUProcComputePassEncoderRelease)(
WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4607typedef void (*WGPUProcComputePipelineAddRef)(
WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4612typedef void (*WGPUProcComputePipelineRelease)(
WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4689typedef void (*WGPUProcDeviceDestroy)(
WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4739typedef void (*WGPUProcDeviceAddRef)(
WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4744typedef void (*WGPUProcDeviceRelease)(
WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4766typedef void (*WGPUProcInstanceProcessEvents)(
WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4781typedef void (*WGPUProcInstanceAddRef)(
WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4786typedef void (*WGPUProcInstanceRelease)(
WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4798typedef void (*WGPUProcPipelineLayoutAddRef)(
WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4803typedef void (*WGPUProcPipelineLayoutRelease)(
WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4810typedef void (*WGPUProcQuerySetDestroy)(
WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4815typedef uint32_t (*WGPUProcQuerySetGetCount)(
WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4830typedef void (*WGPUProcQuerySetAddRef)(
WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4835typedef void (*WGPUProcQuerySetRelease)(
WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4852typedef void (*WGPUProcQueueSubmit)(
WGPUQueue queue,
size_t commandCount,
WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
4857typedef void (*WGPUProcQueueWriteBuffer)(
WGPUQueue queue,
WGPUBuffer buffer, uint64_t bufferOffset,
void const * data,
size_t size) WGPU_FUNCTION_ATTRIBUTE;
4867typedef void (*WGPUProcQueueAddRef)(
WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
4872typedef void (*WGPUProcQueueRelease)(
WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
4884typedef void (*WGPUProcRenderBundleAddRef)(
WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
4889typedef void (*WGPUProcRenderBundleRelease)(
WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
4896typedef void (*WGPUProcRenderBundleEncoderDraw)(
WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
4901typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(
WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
4906typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(
WGPURenderBundleEncoder renderBundleEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4911typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(
WGPURenderBundleEncoder renderBundleEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4926typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(
WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
4936typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(
WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE
WGPUBindGroup group,
size_t dynamicOffsetCount, uint32_t
const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4956typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(
WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE
WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4961typedef void (*WGPUProcRenderBundleEncoderAddRef)(
WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
4966typedef void (*WGPUProcRenderBundleEncoderRelease)(
WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
4973typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(
WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4978typedef void (*WGPUProcRenderPassEncoderDraw)(
WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
4983typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(
WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
4988typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(
WGPURenderPassEncoder renderPassEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4993typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(
WGPURenderPassEncoder renderPassEncoder,
WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4998typedef void (*WGPUProcRenderPassEncoderEnd)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5003typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5018typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5028typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(
WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE
WGPUBindGroup group,
size_t dynamicOffsetCount, uint32_t
const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5033typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(
WGPURenderPassEncoder renderPassEncoder,
WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5053typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(
WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5058typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(
WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5063typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(
WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE
WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5068typedef void (*WGPUProcRenderPassEncoderSetViewport)(
WGPURenderPassEncoder renderPassEncoder,
float x,
float y,
float width,
float height,
float minDepth,
float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5073typedef void (*WGPUProcRenderPassEncoderAddRef)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5078typedef void (*WGPUProcRenderPassEncoderRelease)(
WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5095typedef void (*WGPUProcRenderPipelineAddRef)(
WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5100typedef void (*WGPUProcRenderPipelineRelease)(
WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5112typedef void (*WGPUProcSamplerAddRef)(
WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5117typedef void (*WGPUProcSamplerRelease)(
WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5134typedef void (*WGPUProcShaderModuleAddRef)(
WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5139typedef void (*WGPUProcShaderModuleRelease)(
WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5146typedef void (*WGPUProcSupportedFeaturesFreeMembers)(
WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5185typedef void (*WGPUProcSurfaceUnconfigure)(
WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5190typedef void (*WGPUProcSurfaceAddRef)(
WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5195typedef void (*WGPUProcSurfaceRelease)(
WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5202typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(
WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5214typedef void (*WGPUProcTextureDestroy)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5219typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5234typedef uint32_t (*WGPUProcTextureGetHeight)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5239typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5244typedef uint32_t (*WGPUProcTextureGetSampleCount)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5254typedef uint32_t (*WGPUProcTextureGetWidth)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5264typedef void (*WGPUProcTextureAddRef)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5269typedef void (*WGPUProcTextureRelease)(
WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5281typedef void (*WGPUProcTextureViewAddRef)(
WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5286typedef void (*WGPUProcTextureViewRelease)(
WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5290#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 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(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, void *userdata1, void *userdata2)
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus 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_InstanceDropped
@ WGPURequestAdapterStatus_Unavailable
@ WGPURequestAdapterStatus_Success
@ WGPURequestAdapterStatus_Error
@ WGPURequestAdapterStatus_Force32
@ WGPUFeatureName_TextureCompressionASTC
@ WGPUFeatureName_Force32
@ WGPUFeatureName_ClipDistances
@ WGPUFeatureName_Depth32FloatStencil8
@ WGPUFeatureName_RG11B10UfloatRenderable
@ WGPUFeatureName_BGRA8UnormStorage
@ WGPUFeatureName_Float32Blendable
@ WGPUFeatureName_DualSourceBlending
@ WGPUFeatureName_TextureCompressionASTCSliced3D
@ WGPUFeatureName_TextureCompressionBCSliced3D
@ WGPUFeatureName_ShaderF16
@ WGPUFeatureName_Float32Filterable
@ WGPUFeatureName_TimestampQuery
@ WGPUFeatureName_TextureCompressionBC
@ WGPUFeatureName_TextureCompressionETC2
@ WGPUFeatureName_IndirectFirstInstance
@ WGPUFeatureName_DepthClipControl
@ WGPUFeatureName_Undefined
@ WGPUVertexFormat_Sint32x4
@ WGPUVertexFormat_Float32x2
@ WGPUVertexFormat_Sint32x2
@ WGPUVertexFormat_Float32
@ WGPUVertexFormat_Float16x4
@ WGPUVertexFormat_Uint16x4
@ WGPUVertexFormat_Snorm8x2
@ WGPUVertexFormat_Uint8x4
@ 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_ShaderSourceSPIRV
@ WGPUSType_SurfaceSourceAndroidNativeWindow
@ WGPUSType_SurfaceSourceXCBWindow
@ WGPUSType_SurfaceSourceWindowsHWND
@ WGPUSType_RenderPassMaxDrawCount
@ WGPUSType_SurfaceSourceMetalLayer
@ WGPUSType_ShaderSourceWGSL
@ WGPUSType_SurfaceSourceXlibWindow
@ WGPUBufferBindingType_BindingNotUsed
@ WGPUBufferBindingType_Storage
@ WGPUBufferBindingType_Undefined
@ WGPUBufferBindingType_Force32
@ WGPUBufferBindingType_ReadOnlyStorage
@ WGPUBufferBindingType_Uniform
@ WGPUDeviceLostReason_FailedCreation
@ WGPUDeviceLostReason_Destroyed
@ WGPUDeviceLostReason_Force32
@ WGPUDeviceLostReason_Unknown
@ WGPUDeviceLostReason_InstanceDropped
@ 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_Success
@ WGPURequestDeviceStatus_InstanceDropped
@ WGPURequestDeviceStatus_Error
@ WGPURequestDeviceStatus_Force32
@ WGPUCompilationMessageType_Force32
@ WGPUCompilationMessageType_Info
@ WGPUCompilationMessageType_Warning
@ WGPUCompilationMessageType_Error
@ WGPUCreatePipelineAsyncStatus_Force32
@ WGPUCreatePipelineAsyncStatus_ValidationError
@ WGPUCreatePipelineAsyncStatus_InstanceDropped
@ 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_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_RGBA8Uint
@ WGPUTextureFormat_EACRG11Snorm
@ WGPUTextureFormat_RGBA16Uint
@ WGPUTextureFormat_ASTC10x10UnormSrgb
@ WGPUTextureFormat_RGB10A2Unorm
@ WGPUTextureFormat_ASTC10x5UnormSrgb
@ WGPUTextureFormat_ASTC5x5Unorm
@ WGPUTextureFormat_R32Uint
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
@ WGPUTextureFormat_ASTC5x4Unorm
@ WGPUTextureFormat_BC3RGBAUnorm
@ 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_RG11B10Ufloat
@ WGPUTextureFormat_ASTC12x12UnormSrgb
@ WGPUTextureFormat_RGBA32Sint
@ WGPUTextureFormat_BC1RGBAUnormSrgb
@ WGPUTextureFormat_RG16Float
@ WGPUTextureFormat_ASTC6x5Unorm
@ WGPUTextureFormat_Depth24PlusStencil8
@ WGPUTextureFormat_ASTC10x5Unorm
@ WGPUTextureFormat_RGBA16Sint
@ WGPUTextureFormat_R8Unorm
@ WGPUTextureFormat_Depth32Float
@ WGPUTextureFormat_BC2RGBAUnorm
@ 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_ReadonlyAndReadwriteStorageTextures
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
@ WGPUWGSLLanguageFeatureName_Force32
@ 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
@ 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_InstanceDropped
@ WGPUPopErrorScopeStatus_Success
@ WGPUPopErrorScopeStatus_Error
@ WGPUWaitStatus_UnsupportedCount
@ WGPUWaitStatus_UnsupportedTimeout
@ WGPUWaitStatus_TimedOut
@ WGPUWaitStatus_UnsupportedMixedSources
@ 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_Error
@ WGPUMapAsyncStatus_Force32
@ WGPUMapAsyncStatus_Success
@ WGPUMapAsyncStatus_InstanceDropped
@ WGPUBlendOperation_Undefined
@ WGPUBlendOperation_Subtract
@ WGPUBlendOperation_Force32
@ WGPUBlendOperation_ReverseSubtract
@ WGPUCompositeAlphaMode_Auto
@ WGPUCompositeAlphaMode_Force32
@ WGPUCompositeAlphaMode_Opaque
@ WGPUCompositeAlphaMode_Unpremultiplied
@ WGPUCompositeAlphaMode_Inherit
@ WGPUCompositeAlphaMode_Premultiplied
@ WGPUQueueWorkDoneStatus_Error
@ WGPUQueueWorkDoneStatus_Success
@ WGPUQueueWorkDoneStatus_Force32
@ WGPUQueueWorkDoneStatus_InstanceDropped
@ 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
@ WGPUCompilationInfoRequestStatus_Force32
@ WGPUCompilationInfoRequestStatus_Success