WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
webgpu.h
1
27#ifndef WEBGPU_H_
28#define WEBGPU_H_
29
30#if defined(WGPU_SHARED_LIBRARY)
31# if defined(_WIN32)
32# if defined(WGPU_IMPLEMENTATION)
33# define WGPU_EXPORT __declspec(dllexport)
34# else
35# define WGPU_EXPORT __declspec(dllimport)
36# endif
37# else // defined(_WIN32)
38# if defined(WGPU_IMPLEMENTATION)
39# define WGPU_EXPORT __attribute__((visibility("default")))
40# else
41# define WGPU_EXPORT
42# endif
43# endif // defined(_WIN32)
44#else // defined(WGPU_SHARED_LIBRARY)
45# define WGPU_EXPORT
46#endif // defined(WGPU_SHARED_LIBRARY)
47
48#if !defined(WGPU_OBJECT_ATTRIBUTE)
49#define WGPU_OBJECT_ATTRIBUTE
50#endif
51#if !defined(WGPU_ENUM_ATTRIBUTE)
52#define WGPU_ENUM_ATTRIBUTE
53#endif
54#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
55#define WGPU_STRUCTURE_ATTRIBUTE
56#endif
57#if !defined(WGPU_FUNCTION_ATTRIBUTE)
58#define WGPU_FUNCTION_ATTRIBUTE
59#endif
60#if !defined(WGPU_NULLABLE)
61#define WGPU_NULLABLE
62#endif
63
64#include <stdint.h>
65#include <stddef.h>
66#include <math.h>
67
68#define _wgpu_COMMA ,
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)
74# else
75# define _wgpu_MAKE_INIT_STRUCT(type, value) value
76# endif
77#else
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)
82# else
83# define _wgpu_MAKE_INIT_STRUCT(type, value) value
84# endif
85#endif
86
93#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
94#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
99#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
100#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
101#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
102#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
103#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
104#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
105#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
106#define WGPU_WHOLE_SIZE (UINT64_MAX)
107
137typedef struct WGPUStringView {
138 char const * WGPU_NULLABLE data;
139 size_t length;
141
146#define WGPU_STRLEN SIZE_MAX
147
151#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
152 /*.data=*/NULL _wgpu_COMMA \
153 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
154})
155
156typedef uint64_t WGPUFlags;
157typedef uint32_t WGPUBool;
158
167typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
168typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
169typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
170typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
171typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
172typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
173typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
174typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
175typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
176typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
177typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
178typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
179typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
180typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
181typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
182typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
183typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
184typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
185typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
189typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
190typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
191typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
192
195// Structure forward declarations
196struct WGPUAdapterInfo;
197struct WGPUBindGroupEntry;
198struct WGPUBlendComponent;
201struct WGPUColor;
205struct WGPUConstantEntry;
206struct WGPUExtent3D;
207struct WGPUFuture;
209struct WGPULimits;
211struct WGPUOrigin3D;
214struct WGPUPrimitiveState;
242struct WGPUSurfaceTexture;
249struct WGPUBlendState;
252struct WGPUComputeState;
255struct WGPUFutureWaitInfo;
266struct WGPUVertexState;
267struct WGPUFragmentState;
269
270// Callback info structure forward declarations
281
289typedef enum WGPUAdapterType {
294 WGPUAdapterType_Force32 = 0x7FFFFFFF
295} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
296
307
323
348
361
378
385
414
430
439
446
473
484
485typedef enum WGPUCullMode {
490 WGPUCullMode_None = 0x00000001,
491 WGPUCullMode_Front = 0x00000002,
492 WGPUCullMode_Back = 0x00000003,
493 WGPUCullMode_Force32 = 0x7FFFFFFF
494} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
495
506
507typedef enum WGPUErrorFilter {
511 WGPUErrorFilter_Force32 = 0x7FFFFFFF
512} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
513
514typedef enum WGPUErrorType {
520 WGPUErrorType_Force32 = 0x7FFFFFFF
521} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
522
526typedef enum WGPUFeatureLevel {
539 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
540} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
541
566
567typedef enum WGPUFilterMode {
574 WGPUFilterMode_Force32 = 0x7FFFFFFF
575} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
576
577typedef enum WGPUFrontFace {
582 WGPUFrontFace_CCW = 0x00000001,
583 WGPUFrontFace_CW = 0x00000002,
584 WGPUFrontFace_Force32 = 0x7FFFFFFF
585} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
586
587typedef enum WGPUIndexFormat {
594 WGPUIndexFormat_Force32 = 0x7FFFFFFF
595} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
596
597typedef enum WGPULoadOp {
602 WGPULoadOp_Load = 0x00000001,
603 WGPULoadOp_Clear = 0x00000002,
604 WGPULoadOp_Force32 = 0x7FFFFFFF
605} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
606
617
627
628typedef enum WGPUOptionalBool {
635 WGPUOptionalBool_Force32 = 0x7FFFFFFF
636} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
637
653
663
669
702
715
716typedef enum WGPUQueryType {
719 WGPUQueryType_Force32 = 0x7FFFFFFF
720} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
721
735
746
756
771
788
794typedef enum WGPUStatus {
795 WGPUStatus_Success = 0x00000001,
796 WGPUStatus_Error = 0x00000002,
797 WGPUStatus_Force32 = 0x7FFFFFFF
798} WGPUStatus WGPU_ENUM_ATTRIBUTE;
799
815
832
833typedef enum WGPUStoreOp {
838 WGPUStoreOp_Store = 0x00000001,
840 WGPUStoreOp_Force32 = 0x7FFFFFFF
841} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
842
873
884
895
896typedef enum WGPUTextureFormat {
996 WGPUTextureFormat_Force32 = 0x7FFFFFFF
997} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
998
1017
1031
1037
1038typedef enum WGPUVertexFormat {
1080 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1081} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1082
1092
1100
1104typedef enum WGPUWaitStatus {
1118 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1119} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1136static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1137static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1138static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1139static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1140static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1141static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1142static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1143static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1144static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1145static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1146static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1147
1155static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1156static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1157static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1158static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1159static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1163static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1164
1172static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1173static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1174static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1175
1183static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1184static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1185static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1186static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1187
1195static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1196static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1197static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1198static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1199static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1200static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1201
1204typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1205
1219typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1220
1229typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1230
1237typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1238
1245typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1246
1257typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1258
1276typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1277
1281typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1282
1292typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1293
1303typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1304
1314typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1315
1324typedef struct WGPUChainedStruct {
1327} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1328
1358
1362#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1363 /*.nextInChain=*/NULL _wgpu_COMMA \
1364 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1365 /*.callback=*/NULL _wgpu_COMMA \
1366 /*.userdata1=*/NULL _wgpu_COMMA \
1367 /*.userdata2=*/NULL _wgpu_COMMA \
1368})
1369
1382
1386#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1387 /*.nextInChain=*/NULL _wgpu_COMMA \
1388 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1389 /*.callback=*/NULL _wgpu_COMMA \
1390 /*.userdata1=*/NULL _wgpu_COMMA \
1391 /*.userdata2=*/NULL _wgpu_COMMA \
1392})
1393
1406
1410#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1411 /*.nextInChain=*/NULL _wgpu_COMMA \
1412 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1413 /*.callback=*/NULL _wgpu_COMMA \
1414 /*.userdata1=*/NULL _wgpu_COMMA \
1415 /*.userdata2=*/NULL _wgpu_COMMA \
1416})
1417
1430
1434#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1435 /*.nextInChain=*/NULL _wgpu_COMMA \
1436 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1437 /*.callback=*/NULL _wgpu_COMMA \
1438 /*.userdata1=*/NULL _wgpu_COMMA \
1439 /*.userdata2=*/NULL _wgpu_COMMA \
1440})
1441
1454
1458#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1459 /*.nextInChain=*/NULL _wgpu_COMMA \
1460 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1461 /*.callback=*/NULL _wgpu_COMMA \
1462 /*.userdata1=*/NULL _wgpu_COMMA \
1463 /*.userdata2=*/NULL _wgpu_COMMA \
1464})
1465
1478
1482#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1483 /*.nextInChain=*/NULL _wgpu_COMMA \
1484 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1485 /*.callback=*/NULL _wgpu_COMMA \
1486 /*.userdata1=*/NULL _wgpu_COMMA \
1487 /*.userdata2=*/NULL _wgpu_COMMA \
1488})
1489
1502
1506#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1507 /*.nextInChain=*/NULL _wgpu_COMMA \
1508 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1509 /*.callback=*/NULL _wgpu_COMMA \
1510 /*.userdata1=*/NULL _wgpu_COMMA \
1511 /*.userdata2=*/NULL _wgpu_COMMA \
1512})
1513
1526
1530#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1531 /*.nextInChain=*/NULL _wgpu_COMMA \
1532 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1533 /*.callback=*/NULL _wgpu_COMMA \
1534 /*.userdata1=*/NULL _wgpu_COMMA \
1535 /*.userdata2=*/NULL _wgpu_COMMA \
1536})
1537
1550
1554#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1555 /*.nextInChain=*/NULL _wgpu_COMMA \
1556 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1557 /*.callback=*/NULL _wgpu_COMMA \
1558 /*.userdata1=*/NULL _wgpu_COMMA \
1559 /*.userdata2=*/NULL _wgpu_COMMA \
1560})
1561
1568
1572#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1573 /*.nextInChain=*/NULL _wgpu_COMMA \
1574 /*.callback=*/NULL _wgpu_COMMA \
1575 /*.userdata1=*/NULL _wgpu_COMMA \
1576 /*.userdata2=*/NULL _wgpu_COMMA \
1577})
1578
1635
1639#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1640 /*.nextInChain=*/NULL _wgpu_COMMA \
1641 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1642 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1643 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1644 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1645 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1646 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1647 /*.vendorID=*/0 _wgpu_COMMA \
1648 /*.deviceID=*/0 _wgpu_COMMA \
1649 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1650 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1651})
1652
1656typedef struct WGPUBindGroupEntry {
1663 uint32_t binding;
1670 WGPU_NULLABLE WGPUBuffer buffer;
1677 uint64_t offset;
1685 uint64_t size;
1692 WGPU_NULLABLE WGPUSampler sampler;
1700} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1701
1705#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1706 /*.nextInChain=*/NULL _wgpu_COMMA \
1707 /*.binding=*/0 _wgpu_COMMA \
1708 /*.buffer=*/NULL _wgpu_COMMA \
1709 /*.offset=*/0 _wgpu_COMMA \
1710 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1711 /*.sampler=*/NULL _wgpu_COMMA \
1712 /*.textureView=*/NULL _wgpu_COMMA \
1713})
1714
1741
1745#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1746 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1747 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1748 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1749})
1750
1772
1776#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1777 /*.nextInChain=*/NULL _wgpu_COMMA \
1778 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1779 /*.hasDynamicOffset=*/0 _wgpu_COMMA \
1780 /*.minBindingSize=*/0 _wgpu_COMMA \
1781})
1782
1807
1811#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1812 /*.nextInChain=*/NULL _wgpu_COMMA \
1813 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1814 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1815 /*.size=*/0 _wgpu_COMMA \
1816 /*.mappedAtCreation=*/0 _wgpu_COMMA \
1817})
1818
1826typedef struct WGPUColor {
1830 double r;
1834 double g;
1838 double b;
1842 double a;
1843} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1844
1848#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1849 /*.r=*/0. _wgpu_COMMA \
1850 /*.g=*/0. _wgpu_COMMA \
1851 /*.b=*/0. _wgpu_COMMA \
1852 /*.a=*/0. _wgpu_COMMA \
1853})
1854
1867
1871#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1872 /*.nextInChain=*/NULL _wgpu_COMMA \
1873 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1874})
1875
1888
1892#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
1893 /*.nextInChain=*/NULL _wgpu_COMMA \
1894 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1895})
1896
1944
1948#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
1949 /*.nextInChain=*/NULL _wgpu_COMMA \
1950 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1951 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
1952 /*.lineNum=*/0 _wgpu_COMMA \
1953 /*.linePos=*/0 _wgpu_COMMA \
1954 /*.offset=*/0 _wgpu_COMMA \
1955 /*.length=*/0 _wgpu_COMMA \
1956})
1957
1978
1982#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
1983 /*.nextInChain=*/NULL _wgpu_COMMA \
1984 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1985 /*.value=*/0. _wgpu_COMMA \
1986})
1987
1991typedef struct WGPUExtent3D {
1995 uint32_t width;
1999 uint32_t height;
2004} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2005
2009#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2010 /*.width=*/0 _wgpu_COMMA \
2011 /*.height=*/1 _wgpu_COMMA \
2012 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2013})
2014
2020typedef struct WGPUFuture {
2026 uint64_t id;
2027} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2028
2032#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2033 /*.id=*/0 _wgpu_COMMA \
2034})
2035
2056
2060#define WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceCapabilities, { \
2061 /*.nextInChain=*/NULL _wgpu_COMMA \
2062 /*.timedWaitAnyEnable=*/0 _wgpu_COMMA \
2063 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2064})
2065
2196
2200#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2201 /*.nextInChain=*/NULL _wgpu_COMMA \
2202 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2203 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2204 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2205 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2206 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2207 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2208 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2209 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2210 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2211 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2212 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2213 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2214 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2215 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2216 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2217 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2218 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2219 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2220 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2221 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2222 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2223 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2224 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2225 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2226 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2227 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2228 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2229 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2230 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2231 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2232 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2233})
2234
2253
2257#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2258 /*.nextInChain=*/NULL _wgpu_COMMA \
2259 /*.count=*/1 _wgpu_COMMA \
2260 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2261 /*.alphaToCoverageEnabled=*/0 _wgpu_COMMA \
2262})
2263
2267typedef struct WGPUOrigin3D {
2271 uint32_t x;
2275 uint32_t y;
2279 uint32_t z;
2280} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2281
2285#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2286 /*.x=*/0 _wgpu_COMMA \
2287 /*.y=*/0 _wgpu_COMMA \
2288 /*.z=*/0 _wgpu_COMMA \
2289})
2290
2311
2315#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2316 /*.nextInChain=*/NULL _wgpu_COMMA \
2317 /*.querySet=*/NULL _wgpu_COMMA \
2318 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2319 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2320})
2321
2342
2346#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2347 /*.nextInChain=*/NULL _wgpu_COMMA \
2348 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2349 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2350 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2351})
2352
2388
2392#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2393 /*.nextInChain=*/NULL _wgpu_COMMA \
2394 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2395 /*.stripIndexFormat=*/_wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
2396 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2397 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2398 /*.unclippedDepth=*/0 _wgpu_COMMA \
2399})
2400
2421
2425#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2426 /*.nextInChain=*/NULL _wgpu_COMMA \
2427 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2428 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2429 /*.count=*/0 _wgpu_COMMA \
2430})
2431
2444
2448#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2449 /*.nextInChain=*/NULL _wgpu_COMMA \
2450 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2451})
2452
2465
2469#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2470 /*.nextInChain=*/NULL _wgpu_COMMA \
2471 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2472})
2473
2510
2514#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2515 /*.nextInChain=*/NULL _wgpu_COMMA \
2516 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2517 /*.colorFormatCount=*/0 _wgpu_COMMA \
2518 /*.colorFormats=*/NULL _wgpu_COMMA \
2519 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2520 /*.sampleCount=*/1 _wgpu_COMMA \
2521 /*.depthReadOnly=*/0 _wgpu_COMMA \
2522 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2523})
2524
2574
2578#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2579 /*.nextInChain=*/NULL _wgpu_COMMA \
2580 /*.view=*/NULL _wgpu_COMMA \
2581 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2582 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2583 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2584 /*.depthReadOnly=*/0 _wgpu_COMMA \
2585 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2586 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2587 /*.stencilClearValue=*/0 _wgpu_COMMA \
2588 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2589})
2590
2601
2605#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2606 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2607 /*.next=*/NULL _wgpu_COMMA \
2608 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2609 }) _wgpu_COMMA \
2610 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2611})
2612
2655
2659#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
2660 /*.nextInChain=*/NULL _wgpu_COMMA \
2661 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
2662 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
2663 /*.forceFallbackAdapter=*/0 _wgpu_COMMA \
2664 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
2665 /*.compatibleSurface=*/NULL _wgpu_COMMA \
2666})
2667
2682
2686#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2687 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2688 /*.next=*/NULL _wgpu_COMMA \
2689 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2690 }) _wgpu_COMMA \
2691 /*.xrCompatible=*/0 _wgpu_COMMA \
2692})
2693
2707
2711#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2712 /*.nextInChain=*/NULL _wgpu_COMMA \
2713 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2714})
2715
2794
2798#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2799 /*.nextInChain=*/NULL _wgpu_COMMA \
2800 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2801 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2802 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2803 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2804 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2805 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2806 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2807 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2808 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2809 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2810 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2811})
2812
2825
2829#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
2830 /*.nextInChain=*/NULL _wgpu_COMMA \
2831 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2832})
2833
2842 uint32_t codeSize;
2846 uint32_t const * code;
2847} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2848
2852#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2853 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2854 /*.next=*/NULL _wgpu_COMMA \
2855 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2856 }) _wgpu_COMMA \
2857 /*.codeSize=*/0 _wgpu_COMMA \
2858 /*.code=*/NULL _wgpu_COMMA \
2859})
2860
2873
2877#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2878 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2879 /*.next=*/NULL _wgpu_COMMA \
2880 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2881 }) _wgpu_COMMA \
2882 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2883})
2884
2918
2922#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2923 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2924 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2925 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2926 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2927})
2928
2953
2957#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
2958 /*.nextInChain=*/NULL _wgpu_COMMA \
2959 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
2960 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2961 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
2962})
2963
2976} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
2977
2981#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
2982 /*.featureCount=*/0 _wgpu_COMMA \
2983 /*.features=*/NULL _wgpu_COMMA \
2984})
2985
2999
3003#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3004 /*.featureCount=*/0 _wgpu_COMMA \
3005 /*.features=*/NULL _wgpu_COMMA \
3006})
3007
3055
3059#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3060 /*.nextInChain=*/NULL _wgpu_COMMA \
3061 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3062 /*.formatCount=*/0 _wgpu_COMMA \
3063 /*.formats=*/NULL _wgpu_COMMA \
3064 /*.presentModeCount=*/0 _wgpu_COMMA \
3065 /*.presentModes=*/NULL _wgpu_COMMA \
3066 /*.alphaModeCount=*/0 _wgpu_COMMA \
3067 /*.alphaModes=*/NULL _wgpu_COMMA \
3068})
3069
3086
3090#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3091 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3092 /*.next=*/NULL _wgpu_COMMA \
3093 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3094 }) _wgpu_COMMA \
3095 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3096 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3097})
3098
3167
3171#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3172 /*.nextInChain=*/NULL _wgpu_COMMA \
3173 /*.device=*/NULL _wgpu_COMMA \
3174 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3175 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3176 /*.width=*/0 _wgpu_COMMA \
3177 /*.height=*/0 _wgpu_COMMA \
3178 /*.viewFormatCount=*/0 _wgpu_COMMA \
3179 /*.viewFormats=*/NULL _wgpu_COMMA \
3180 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3181 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3182})
3183
3202
3206#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
3207 /*.nextInChain=*/NULL _wgpu_COMMA \
3208 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3209})
3210
3225
3229#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3230 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3231 /*.next=*/NULL _wgpu_COMMA \
3232 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3233 }) _wgpu_COMMA \
3234 /*.window=*/NULL _wgpu_COMMA \
3235})
3236
3251
3255#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3256 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3257 /*.next=*/NULL _wgpu_COMMA \
3258 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3259 }) _wgpu_COMMA \
3260 /*.layer=*/NULL _wgpu_COMMA \
3261})
3262
3283
3287#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3288 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3289 /*.next=*/NULL _wgpu_COMMA \
3290 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3291 }) _wgpu_COMMA \
3292 /*.display=*/NULL _wgpu_COMMA \
3293 /*.surface=*/NULL _wgpu_COMMA \
3294})
3295
3317
3321#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3322 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3323 /*.next=*/NULL _wgpu_COMMA \
3324 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3325 }) _wgpu_COMMA \
3326 /*.hinstance=*/NULL _wgpu_COMMA \
3327 /*.hwnd=*/NULL _wgpu_COMMA \
3328})
3329
3350
3354#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3355 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3356 /*.next=*/NULL _wgpu_COMMA \
3357 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3358 }) _wgpu_COMMA \
3359 /*.connection=*/NULL _wgpu_COMMA \
3360 /*.window=*/0 _wgpu_COMMA \
3361})
3362
3383
3387#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3388 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3389 /*.next=*/NULL _wgpu_COMMA \
3390 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3391 }) _wgpu_COMMA \
3392 /*.display=*/NULL _wgpu_COMMA \
3393 /*.window=*/0 _wgpu_COMMA \
3394})
3395
3418
3422#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3423 /*.nextInChain=*/NULL _wgpu_COMMA \
3424 /*.texture=*/NULL _wgpu_COMMA \
3425 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3426})
3427
3435 uint64_t offset;
3439 uint32_t bytesPerRow;
3444} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3445
3449#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3450 /*.offset=*/0 _wgpu_COMMA \
3451 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3452 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3453})
3454
3479
3483#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3484 /*.nextInChain=*/NULL _wgpu_COMMA \
3485 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3486 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3487 /*.multisampled=*/0 _wgpu_COMMA \
3488})
3489
3537
3541#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3542 /*.nextInChain=*/NULL _wgpu_COMMA \
3543 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3544 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3545 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3546 /*.baseMipLevel=*/0 _wgpu_COMMA \
3547 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3548 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3549 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3550 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3551 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3552})
3553
3572
3576#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3577 /*.nextInChain=*/NULL _wgpu_COMMA \
3578 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3579 /*.offset=*/0 _wgpu_COMMA \
3580 /*.shaderLocation=*/0 _wgpu_COMMA \
3581})
3582
3607
3611#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3612 /*.nextInChain=*/NULL _wgpu_COMMA \
3613 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3614 /*.layout=*/NULL _wgpu_COMMA \
3615 /*.entryCount=*/0 _wgpu_COMMA \
3616 /*.entries=*/NULL _wgpu_COMMA \
3617})
3618
3649
3653#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3654 /*.nextInChain=*/NULL _wgpu_COMMA \
3655 /*.binding=*/0 _wgpu_COMMA \
3656 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3657 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3658 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3659 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3660 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3661})
3662
3676
3680#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3681 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3682 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3683})
3684
3702
3706#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3707 /*.nextInChain=*/NULL _wgpu_COMMA \
3708 /*.messageCount=*/0 _wgpu_COMMA \
3709 /*.messages=*/NULL _wgpu_COMMA \
3710})
3711
3728
3732#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3733 /*.nextInChain=*/NULL _wgpu_COMMA \
3734 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3735 /*.timestampWrites=*/NULL _wgpu_COMMA \
3736})
3737
3762
3766#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3767 /*.nextInChain=*/NULL _wgpu_COMMA \
3768 /*.module=*/NULL _wgpu_COMMA \
3769 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3770 /*.constantCount=*/0 _wgpu_COMMA \
3771 /*.constants=*/NULL _wgpu_COMMA \
3772})
3773
3828
3832#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3833 /*.nextInChain=*/NULL _wgpu_COMMA \
3834 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3835 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3836 /*.depthCompare=*/_wgpu_ENUM_ZERO_INIT(WGPUCompareFunction) _wgpu_COMMA \
3837 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3838 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3839 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3840 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3841 /*.depthBias=*/0 _wgpu_COMMA \
3842 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3843 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3844})
3845
3887
3891#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
3892 /*.nextInChain=*/NULL _wgpu_COMMA \
3893 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3894 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3895 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3896 /*.requiredLimits=*/NULL _wgpu_COMMA \
3897 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
3898 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
3899 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
3900})
3901
3921
3925#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3926 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3927 /*.completed=*/0 _wgpu_COMMA \
3928})
3929
3942
3946#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
3947 /*.nextInChain=*/NULL _wgpu_COMMA \
3948 /*.capabilities=*/WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_COMMA \
3949})
3950
3984
3988#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
3989 /*.nextInChain=*/NULL _wgpu_COMMA \
3990 /*.view=*/NULL _wgpu_COMMA \
3991 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
3992 /*.resolveTarget=*/NULL _wgpu_COMMA \
3993 /*.loadOp=*/_wgpu_ENUM_ZERO_INIT(WGPULoadOp) _wgpu_COMMA \
3994 /*.storeOp=*/_wgpu_ENUM_ZERO_INIT(WGPUStoreOp) _wgpu_COMMA \
3995 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
3996})
3997
4011
4015#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4016 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4017 /*.buffer=*/NULL _wgpu_COMMA \
4018})
4019
4044
4048#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4049 /*.texture=*/NULL _wgpu_COMMA \
4050 /*.mipLevel=*/0 _wgpu_COMMA \
4051 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4052 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4053})
4054
4102
4106#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4107 /*.nextInChain=*/NULL _wgpu_COMMA \
4108 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4109 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4110 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4111 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4112 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4113 /*.mipLevelCount=*/1 _wgpu_COMMA \
4114 /*.sampleCount=*/1 _wgpu_COMMA \
4115 /*.viewFormatCount=*/0 _wgpu_COMMA \
4116 /*.viewFormats=*/NULL _wgpu_COMMA \
4117})
4118
4154
4158#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4159 /*.nextInChain=*/NULL _wgpu_COMMA \
4160 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4161 /*.arrayStride=*/0 _wgpu_COMMA \
4162 /*.attributeCount=*/0 _wgpu_COMMA \
4163 /*.attributes=*/NULL _wgpu_COMMA \
4164})
4165
4186
4190#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4191 /*.nextInChain=*/NULL _wgpu_COMMA \
4192 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4193 /*.entryCount=*/0 _wgpu_COMMA \
4194 /*.entries=*/NULL _wgpu_COMMA \
4195})
4196
4219
4223#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4224 /*.nextInChain=*/NULL _wgpu_COMMA \
4225 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4226 /*.blend=*/NULL _wgpu_COMMA \
4227 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4228})
4229
4250
4254#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4255 /*.nextInChain=*/NULL _wgpu_COMMA \
4256 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4257 /*.layout=*/NULL _wgpu_COMMA \
4258 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4259})
4260
4293
4297#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4298 /*.nextInChain=*/NULL _wgpu_COMMA \
4299 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4300 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4301 /*.colorAttachments=*/NULL _wgpu_COMMA \
4302 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4303 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4304 /*.timestampWrites=*/NULL _wgpu_COMMA \
4305})
4306
4339
4343#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4344 /*.nextInChain=*/NULL _wgpu_COMMA \
4345 /*.module=*/NULL _wgpu_COMMA \
4346 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4347 /*.constantCount=*/0 _wgpu_COMMA \
4348 /*.constants=*/NULL _wgpu_COMMA \
4349 /*.bufferCount=*/0 _wgpu_COMMA \
4350 /*.buffers=*/NULL _wgpu_COMMA \
4351})
4352
4385
4389#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4390 /*.nextInChain=*/NULL _wgpu_COMMA \
4391 /*.module=*/NULL _wgpu_COMMA \
4392 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4393 /*.constantCount=*/0 _wgpu_COMMA \
4394 /*.constants=*/NULL _wgpu_COMMA \
4395 /*.targetCount=*/0 _wgpu_COMMA \
4396 /*.targets=*/NULL _wgpu_COMMA \
4397})
4398
4435
4439#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4440 /*.nextInChain=*/NULL _wgpu_COMMA \
4441 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4442 /*.layout=*/NULL _wgpu_COMMA \
4443 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4444 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4445 /*.depthStencil=*/NULL _wgpu_COMMA \
4446 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4447 /*.fragment=*/NULL _wgpu_COMMA \
4448})
4449
4452#ifdef __cplusplus
4453extern "C" {
4454#endif
4455
4456#if !defined(WGPU_SKIP_PROCS)
4457// Global procs
4462typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4467typedef WGPUStatus (*WGPUProcGetInstanceCapabilities)(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
4472typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4473
4474
4475// Procs of Adapter
4480typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4485typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4490typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4495typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4500typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4505typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4510typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4511
4512// Procs of AdapterInfo
4517typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4518
4519// Procs of BindGroup
4524typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4529typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4534typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4535
4536// Procs of BindGroupLayout
4541typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4546typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4551typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4552
4553// Procs of Buffer
4558typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4563typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4568typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4573typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4578typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4583typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4588typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4593typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4598typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4603typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4608typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4613typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4618typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4619
4620// Procs of CommandBuffer
4625typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4630typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4635typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4636
4637// Procs of CommandEncoder
4642typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4647typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4652typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4657typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4662typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4667typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4672typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4677typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4682typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4687typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4692typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4697typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4702typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4707typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4712typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4717typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4718
4719// Procs of ComputePassEncoder
4724typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4729typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4734typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4739typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4744typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4749typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4754typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4759typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4764typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4769typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4774typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4775
4776// Procs of ComputePipeline
4781typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
4786typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4791typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4796typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4797
4798// Procs of Device
4803typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4808typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4813typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4818typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4823typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4828typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4833typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4838typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4843typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4848typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4853typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4858typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4863typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4868typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4873typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4878typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4883typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4888typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4893typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4898typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4903typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4908typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4913typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
4918typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4923typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4928typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4929
4930// Procs of Instance
4935typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4940typedef WGPUStatus (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4945typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4950typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4955typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4960typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
4965typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4970typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4971
4972// Procs of PipelineLayout
4977typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4982typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4987typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4988
4989// Procs of QuerySet
4994typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4999typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5004typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5009typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5014typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5019typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5020
5021// Procs of Queue
5026typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5031typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5036typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5041typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5046typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5051typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5056typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5057
5058// Procs of RenderBundle
5063typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5068typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5073typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5074
5075// Procs of RenderBundleEncoder
5080typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5085typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5090typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5095typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5100typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5105typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5110typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5115typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5120typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5125typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5130typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5135typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5140typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5145typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5150typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5151
5152// Procs of RenderPassEncoder
5157typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5162typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5167typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5172typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5177typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5182typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5187typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5192typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5197typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5202typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5207typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5212typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5217typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5222typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5227typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5232typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5237typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5242typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5247typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5252typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5257typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5262typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5263
5264// Procs of RenderPipeline
5269typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5274typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5279typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5284typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5285
5286// Procs of Sampler
5291typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5296typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5301typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5302
5303// Procs of ShaderModule
5308typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5313typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5318typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5323typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5324
5325// Procs of SupportedFeatures
5330typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5331
5332// Procs of SupportedWGSLLanguageFeatures
5337typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5338
5339// Procs of Surface
5344typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5349typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5354typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5359typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5364typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5369typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5374typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5379typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5380
5381// Procs of SurfaceCapabilities
5386typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5387
5388// Procs of Texture
5393typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5398typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5403typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5408typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5413typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5418typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5423typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5428typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5433typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5438typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5443typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5448typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5453typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5454
5455// Procs of TextureView
5460typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5465typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5470typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5471
5472#endif // !defined(WGPU_SKIP_PROCS)
5473
5474#if !defined(WGPU_SKIP_DECLARATIONS)
5487WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5497WGPU_EXPORT WGPUStatus wgpuGetInstanceCapabilities(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5502WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5503
5504
5526WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5534WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5539WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5540WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5541WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5542WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5543WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5555WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5564WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5565WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5566WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5575WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5576WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5577WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5586WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5604WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5605WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5622WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5623WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5624WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5633WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5654WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5655WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5656WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5677WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5678WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5679WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5688WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5689WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5690WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5703WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5708WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5709WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5710WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5711WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5712WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5713WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5718WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5719WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5720WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5721WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5722WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5723WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5724WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5725WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5726WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5735WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5736WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5737WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5738WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5739WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5740WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5741WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5742WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5743WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5744WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5745WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5758WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5759WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5760WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5761WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5774WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5779WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5789WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5794WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5799WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5805WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5810WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5820WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5826WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5831WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5836WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5837WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5845WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5852WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5857WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5862WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5867WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5868WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5873WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5878WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5879WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5880WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5881WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5900WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5905WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5911WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5912WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5918WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5919WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5920WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5929WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5930WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5931WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5940WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5941WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5942WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5943WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5944WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5945WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5954WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5955WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5956WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5961WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5962WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5963WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5964WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5973WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5974WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5975WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5984WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5985WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5986WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5987WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5992WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5993WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5994WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5995WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5996WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5997WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5998WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5999WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6000WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6001WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6002WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6011WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6012WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6013WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6014WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6015WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6016WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6017WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6018WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6019WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6020WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6021WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6022WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6027WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6028WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6029WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6030WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6031WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6032WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6033WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6039WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6040WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6041WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6054WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6055WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6056WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6057WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6066WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6067WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6068WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6077WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6078WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6079WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6080WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6092WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6104WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6122WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6138WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6148WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6156WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6163WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6168WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6169WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6170WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6182WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6195WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6196WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6197WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6198WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6199WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6200WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6201WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6202WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6203WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6204WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6205WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6206WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6207WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6216WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6217WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6218WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6223#endif // !defined(WGPU_SKIP_DECLARATIONS)
6224
6225#ifdef __cplusplus
6226} // extern "C"
6227#endif
6228
6229#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1158
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1145
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1151
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1144
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1159
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1137
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1141
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1136
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1172
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1195
WGPUFlags WGPUMapMode
Definition webgpu.h:1168
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1198
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1163
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1196
WGPUFlags WGPUShaderStage
Definition webgpu.h:1179
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1146
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1185
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1186
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1174
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1183
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1200
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1138
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1197
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1139
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1199
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1191
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1143
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1173
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1157
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1142
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1184
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1155
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1156
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1132
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1140
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1314
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1303
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1237
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1257
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1245
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1229
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1292
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, void *userdata1, void *userdata2)
Definition webgpu.h:1281
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1219
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1276
WGPUIndexFormat
Definition webgpu.h:587
WGPURequestAdapterStatus
Definition webgpu.h:736
WGPUFeatureName
Definition webgpu.h:542
WGPUVertexFormat
Definition webgpu.h:1038
WGPUSType
Definition webgpu.h:757
WGPUBufferBindingType
Definition webgpu.h:362
WGPUDeviceLostReason
Definition webgpu.h:496
WGPUCompareFunction
Definition webgpu.h:415
WGPUCullMode
Definition webgpu.h:485
WGPUTextureDimension
Definition webgpu.h:885
WGPURequestDeviceStatus
Definition webgpu.h:747
WGPUCompilationMessageType
Definition webgpu.h:440
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:474
WGPUTextureViewDimension
Definition webgpu.h:1018
WGPUPrimitiveTopology
Definition webgpu.h:703
WGPUTextureFormat
Definition webgpu.h:896
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1093
WGPUStencilOperation
Definition webgpu.h:800
WGPUAddressMode
Definition webgpu.h:297
WGPUToneMappingMode
Definition webgpu.h:1032
WGPUTextureAspect
Definition webgpu.h:874
WGPUBufferMapState
Definition webgpu.h:379
WGPUFilterMode
Definition webgpu.h:567
WGPUBackendType
Definition webgpu.h:308
WGPUBlendFactor
Definition webgpu.h:324
WGPUSamplerBindingType
Definition webgpu.h:772
WGPULoadOp
Definition webgpu.h:597
WGPUPopErrorScopeStatus
Definition webgpu.h:638
WGPUWaitStatus
Definition webgpu.h:1104
WGPUStorageTextureAccess
Definition webgpu.h:816
WGPUPowerPreference
Definition webgpu.h:654
WGPUPresentMode
Definition webgpu.h:673
WGPUMapAsyncStatus
Definition webgpu.h:607
WGPUBlendOperation
Definition webgpu.h:349
WGPUCompositeAlphaMode
Definition webgpu.h:450
WGPUPredefinedColorSpace
Definition webgpu.h:664
WGPUQueueWorkDoneStatus
Definition webgpu.h:722
WGPUVertexStepMode
Definition webgpu.h:1083
WGPUQueryType
Definition webgpu.h:716
WGPUFeatureLevel
Definition webgpu.h:526
WGPUAdapterType
Definition webgpu.h:289
WGPUStatus
Definition webgpu.h:794
WGPUCompilationInfoRequestStatus
Definition webgpu.h:431
WGPUMipmapFilterMode
Definition webgpu.h:618
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:846
WGPUFrontFace
Definition webgpu.h:577
WGPUStoreOp
Definition webgpu.h:833
WGPUErrorFilter
Definition webgpu.h:507
WGPUOptionalBool
Definition webgpu.h:628
WGPUCallbackMode
Definition webgpu.h:389
WGPUTextureSampleType
Definition webgpu.h:999
WGPUErrorType
Definition webgpu.h:514
@ WGPUIndexFormat_Force32
Definition webgpu.h:594
@ WGPUIndexFormat_Uint16
Definition webgpu.h:592
@ WGPUIndexFormat_Undefined
Definition webgpu.h:591
@ WGPUIndexFormat_Uint32
Definition webgpu.h:593
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:742
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:737
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:743
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:741
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:744
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:553
@ WGPUFeatureName_Subgroups
Definition webgpu.h:563
@ WGPUFeatureName_Force32
Definition webgpu.h:564
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:561
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:548
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:557
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:558
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:560
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:562
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:554
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:551
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:556
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:559
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:549
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:550
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:552
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:555
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:547
@ WGPUFeatureName_Undefined
Definition webgpu.h:546
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1077
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1067
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1075
@ WGPUVertexFormat_Float32
Definition webgpu.h:1066
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1065
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1053
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1049
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1041
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1043
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1045
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1047
@ WGPUVertexFormat_Force32
Definition webgpu.h:1080
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1040
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1069
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1064
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1070
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1048
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1042
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1073
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1079
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1074
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1051
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1071
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1072
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1060
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1056
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1078
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1058
@ WGPUVertexFormat_Float16
Definition webgpu.h:1063
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1046
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1076
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1055
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1050
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1039
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1044
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1057
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1054
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1052
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1061
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1059
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1068
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1062
@ WGPUSType_Force32
Definition webgpu.h:769
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:764
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:758
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:767
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:765
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:766
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:762
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:760
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:761
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:768
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:759
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:763
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:368
@ WGPUBufferBindingType_Storage
Definition webgpu.h:374
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:372
@ WGPUBufferBindingType_Force32
Definition webgpu.h:376
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:375
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:373
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:503
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:498
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:502
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:504
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:497
@ WGPUCompareFunction_Force32
Definition webgpu.h:428
@ WGPUCompareFunction_Always
Definition webgpu.h:427
@ WGPUCompareFunction_Never
Definition webgpu.h:420
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:425
@ WGPUCompareFunction_Less
Definition webgpu.h:421
@ WGPUCompareFunction_Undefined
Definition webgpu.h:419
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:426
@ WGPUCompareFunction_Equal
Definition webgpu.h:422
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:423
@ WGPUCompareFunction_Greater
Definition webgpu.h:424
@ WGPUCullMode_Force32
Definition webgpu.h:493
@ WGPUCullMode_Undefined
Definition webgpu.h:489
@ WGPUCullMode_Back
Definition webgpu.h:492
@ WGPUCullMode_Front
Definition webgpu.h:491
@ WGPUCullMode_None
Definition webgpu.h:490
@ WGPUTextureDimension_Undefined
Definition webgpu.h:889
@ WGPUTextureDimension_2D
Definition webgpu.h:891
@ WGPUTextureDimension_Force32
Definition webgpu.h:893
@ WGPUTextureDimension_3D
Definition webgpu.h:892
@ WGPUTextureDimension_1D
Definition webgpu.h:890
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:752
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:748
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:753
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:754
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:444
@ WGPUCompilationMessageType_Info
Definition webgpu.h:443
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:442
@ WGPUCompilationMessageType_Error
Definition webgpu.h:441
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:482
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:480
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:479
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:475
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:481
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1026
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1025
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1024
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1028
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1023
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1027
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1022
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1029
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:709
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:710
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:707
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:711
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:708
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:712
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:713
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:992
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:953
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:956
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:918
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:908
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:958
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:968
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:961
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:965
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:951
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:920
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:986
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:924
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:976
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:960
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:988
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:982
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:935
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:954
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:931
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:934
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:990
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:943
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:909
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:993
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:940
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:916
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:966
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:959
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:955
@ WGPUTextureFormat_R32Float
Definition webgpu.h:912
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:957
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:906
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:904
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:919
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:949
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:921
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:967
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:932
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:991
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:926
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:985
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:972
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:913
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:963
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:970
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:948
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:923
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:950
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:952
@ WGPUTextureFormat_Force32
Definition webgpu.h:996
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:944
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:973
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:981
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:914
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:947
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:936
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:938
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:964
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:977
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:915
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:989
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:928
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:939
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:911
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:983
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:905
@ WGPUTextureFormat_Undefined
Definition webgpu.h:900
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:987
@ WGPUTextureFormat_R16Float
Definition webgpu.h:907
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:971
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:929
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:927
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:995
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:937
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:945
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:917
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:974
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:941
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:984
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:933
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:901
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:942
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:946
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:980
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:910
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:903
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:978
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:994
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:925
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:969
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:962
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:930
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:979
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:922
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:902
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:975
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1094
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1096
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1097
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1098
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1095
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:810
@ WGPUStencilOperation_Undefined
Definition webgpu.h:804
@ WGPUStencilOperation_Replace
Definition webgpu.h:807
@ WGPUStencilOperation_Keep
Definition webgpu.h:805
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:812
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:811
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:809
@ WGPUStencilOperation_Invert
Definition webgpu.h:808
@ WGPUStencilOperation_Force32
Definition webgpu.h:813
@ WGPUStencilOperation_Zero
Definition webgpu.h:806
@ WGPUAddressMode_Repeat
Definition webgpu.h:303
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:304
@ WGPUAddressMode_Undefined
Definition webgpu.h:301
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:302
@ WGPUAddressMode_Force32
Definition webgpu.h:305
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1035
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1033
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1034
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:881
@ WGPUTextureAspect_Force32
Definition webgpu.h:882
@ WGPUTextureAspect_Undefined
Definition webgpu.h:878
@ WGPUTextureAspect_All
Definition webgpu.h:879
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:880
@ WGPUBufferMapState_Pending
Definition webgpu.h:381
@ WGPUBufferMapState_Mapped
Definition webgpu.h:382
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:380
@ WGPUBufferMapState_Force32
Definition webgpu.h:383
@ WGPUFilterMode_Undefined
Definition webgpu.h:571
@ WGPUFilterMode_Force32
Definition webgpu.h:574
@ WGPUFilterMode_Nearest
Definition webgpu.h:572
@ WGPUFilterMode_Linear
Definition webgpu.h:573
@ WGPUBackendType_Vulkan
Definition webgpu.h:318
@ WGPUBackendType_OpenGL
Definition webgpu.h:319
@ WGPUBackendType_Force32
Definition webgpu.h:321
@ WGPUBackendType_OpenGLES
Definition webgpu.h:320
@ WGPUBackendType_WebGPU
Definition webgpu.h:314
@ WGPUBackendType_D3D11
Definition webgpu.h:315
@ WGPUBackendType_D3D12
Definition webgpu.h:316
@ WGPUBackendType_Undefined
Definition webgpu.h:312
@ WGPUBackendType_Null
Definition webgpu.h:313
@ WGPUBackendType_Metal
Definition webgpu.h:317
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:337
@ WGPUBlendFactor_One
Definition webgpu.h:330
@ WGPUBlendFactor_Zero
Definition webgpu.h:329
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:344
@ WGPUBlendFactor_Undefined
Definition webgpu.h:328
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:336
@ WGPUBlendFactor_Force32
Definition webgpu.h:346
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:343
@ WGPUBlendFactor_Constant
Definition webgpu.h:340
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:332
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:339
@ WGPUBlendFactor_Src
Definition webgpu.h:331
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:334
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:333
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:341
@ WGPUBlendFactor_Src1
Definition webgpu.h:342
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:338
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:345
@ WGPUBlendFactor_Dst
Definition webgpu.h:335
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:778
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:784
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:786
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:783
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:782
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:785
@ WGPULoadOp_Load
Definition webgpu.h:602
@ WGPULoadOp_Force32
Definition webgpu.h:604
@ WGPULoadOp_Undefined
Definition webgpu.h:601
@ WGPULoadOp_Clear
Definition webgpu.h:603
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:651
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:642
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:646
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:650
@ WGPUWaitStatus_Error
Definition webgpu.h:1117
@ WGPUWaitStatus_Force32
Definition webgpu.h:1118
@ WGPUWaitStatus_Success
Definition webgpu.h:1108
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1112
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:826
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:822
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:828
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:827
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:830
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:829
@ WGPUPowerPreference_Force32
Definition webgpu.h:661
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:660
@ WGPUPowerPreference_LowPower
Definition webgpu.h:659
@ WGPUPowerPreference_Undefined
Definition webgpu.h:658
@ WGPUPresentMode_Fifo
Definition webgpu.h:683
@ WGPUPresentMode_Force32
Definition webgpu.h:700
@ WGPUPresentMode_Immediate
Definition webgpu.h:694
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:689
@ WGPUPresentMode_Mailbox
Definition webgpu.h:699
@ WGPUPresentMode_Undefined
Definition webgpu.h:677
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:614
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:612
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:613
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:615
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:608
@ WGPUBlendOperation_Undefined
Definition webgpu.h:353
@ WGPUBlendOperation_Max
Definition webgpu.h:358
@ WGPUBlendOperation_Subtract
Definition webgpu.h:355
@ WGPUBlendOperation_Min
Definition webgpu.h:357
@ WGPUBlendOperation_Add
Definition webgpu.h:354
@ WGPUBlendOperation_Force32
Definition webgpu.h:359
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:356
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:454
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:471
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:458
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:466
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:470
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:462
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:666
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:665
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:667
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:732
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:727
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:723
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:733
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1087
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1089
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1088
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1090
@ WGPUQueryType_Occlusion
Definition webgpu.h:717
@ WGPUQueryType_Timestamp
Definition webgpu.h:718
@ WGPUQueryType_Force32
Definition webgpu.h:719
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:530
@ WGPUFeatureLevel_Core
Definition webgpu.h:538
@ WGPUFeatureLevel_Force32
Definition webgpu.h:539
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:534
@ WGPUAdapterType_CPU
Definition webgpu.h:292
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:290
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:291
@ WGPUAdapterType_Unknown
Definition webgpu.h:293
@ WGPUAdapterType_Force32
Definition webgpu.h:294
@ WGPUStatus_Force32
Definition webgpu.h:797
@ WGPUStatus_Success
Definition webgpu.h:795
@ WGPUStatus_Error
Definition webgpu.h:796
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:437
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:432
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:436
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:622
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:624
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:625
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:623
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:866
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:870
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:862
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:858
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:850
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:871
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:854
@ WGPUFrontFace_CW
Definition webgpu.h:583
@ WGPUFrontFace_Undefined
Definition webgpu.h:581
@ WGPUFrontFace_CCW
Definition webgpu.h:582
@ WGPUFrontFace_Force32
Definition webgpu.h:584
@ WGPUStoreOp_Discard
Definition webgpu.h:839
@ WGPUStoreOp_Force32
Definition webgpu.h:840
@ WGPUStoreOp_Store
Definition webgpu.h:838
@ WGPUStoreOp_Undefined
Definition webgpu.h:837
@ WGPUErrorFilter_Internal
Definition webgpu.h:510
@ WGPUErrorFilter_Force32
Definition webgpu.h:511
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:509
@ WGPUErrorFilter_Validation
Definition webgpu.h:508
@ WGPUOptionalBool_True
Definition webgpu.h:633
@ WGPUOptionalBool_Force32
Definition webgpu.h:635
@ WGPUOptionalBool_Undefined
Definition webgpu.h:634
@ WGPUOptionalBool_False
Definition webgpu.h:632
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:401
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:411
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:395
@ WGPUCallbackMode_Force32
Definition webgpu.h:412
@ WGPUTextureSampleType_Float
Definition webgpu.h:1010
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1013
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1005
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1009
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1015
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1014
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1012
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1011
@ WGPUErrorType_NoError
Definition webgpu.h:515
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:517
@ WGPUErrorType_Unknown
Definition webgpu.h:519
@ WGPUErrorType_Validation
Definition webgpu.h:516
@ WGPUErrorType_Force32
Definition webgpu.h:520
@ WGPUErrorType_Internal
Definition webgpu.h:518
WGPUStatus wgpuGetInstanceCapabilities(WGPUInstanceCapabilities *capabilities)
WGPUInstance wgpuCreateInstance(WGPUInstanceDescriptor const *descriptor)
WGPUProc wgpuGetProcAddress(WGPUStringView procName)
struct WGPUPipelineLayoutImpl * WGPUPipelineLayout
Definition webgpu.h:177
struct WGPUSamplerImpl * WGPUSampler
Definition webgpu.h:184
struct WGPUQueueImpl * WGPUQueue
Definition webgpu.h:179
struct WGPUSurfaceImpl * WGPUSurface
Definition webgpu.h:189
struct WGPURenderBundleImpl * WGPURenderBundle
Definition webgpu.h:180
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
Definition webgpu.h:173
struct WGPUBindGroupImpl * WGPUBindGroup
Definition webgpu.h:168
struct WGPUInstanceImpl * WGPUInstance
Definition webgpu.h:176
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
Definition webgpu.h:169
struct WGPUTextureViewImpl * WGPUTextureView
Definition webgpu.h:191
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
Definition webgpu.h:182
struct WGPUShaderModuleImpl * WGPUShaderModule
Definition webgpu.h:185
struct WGPUQuerySetImpl * WGPUQuerySet
Definition webgpu.h:178
struct WGPUCommandBufferImpl * WGPUCommandBuffer
Definition webgpu.h:171
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
Definition webgpu.h:181
struct WGPUDeviceImpl * WGPUDevice
Definition webgpu.h:175
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
Definition webgpu.h:172
struct WGPUTextureImpl * WGPUTexture
Definition webgpu.h:190
struct WGPUComputePipelineImpl * WGPUComputePipeline
Definition webgpu.h:174
struct WGPURenderPipelineImpl * WGPURenderPipeline
Definition webgpu.h:183
struct WGPUAdapterImpl * WGPUAdapter
Definition webgpu.h:167
struct WGPUBufferImpl * WGPUBuffer
Definition webgpu.h:170
struct WGPUFuture WGPUFuture
uint32_t WGPUBool
Definition webgpu.h:157
uint64_t WGPUFlags
Definition webgpu.h:156
struct WGPUStringView WGPUStringView
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 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)
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)
WGPUStatus 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 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 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 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)
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)
WGPUStringView device
Definition webgpu.h:1603
WGPUBackendType backendType
Definition webgpu.h:1613
uint32_t deviceID
Definition webgpu.h:1625
WGPUChainedStruct * nextInChain
Definition webgpu.h:1585
uint32_t subgroupMinSize
Definition webgpu.h:1629
uint32_t vendorID
Definition webgpu.h:1621
WGPUStringView description
Definition webgpu.h:1609
WGPUAdapterType adapterType
Definition webgpu.h:1617
uint32_t subgroupMaxSize
Definition webgpu.h:1633
WGPUStringView architecture
Definition webgpu.h:1597
WGPUStringView vendor
Definition webgpu.h:1591
WGPUChainedStruct * nextInChain
Definition webgpu.h:3587
WGPUStringView label
Definition webgpu.h:3593
WGPUBindGroupLayout layout
Definition webgpu.h:3597
WGPUBindGroupEntry const * entries
Definition webgpu.h:3605
uint64_t offset
Definition webgpu.h:1677
WGPUBuffer buffer
Definition webgpu.h:1670
WGPUSampler sampler
Definition webgpu.h:1692
WGPUTextureView textureView
Definition webgpu.h:1699
WGPUChainedStruct * nextInChain
Definition webgpu.h:1657
uint32_t binding
Definition webgpu.h:1663
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4184
WGPUChainedStruct * nextInChain
Definition webgpu.h:4170
WGPUTextureBindingLayout texture
Definition webgpu.h:3643
WGPUShaderStage visibility
Definition webgpu.h:3631
WGPUBufferBindingLayout buffer
Definition webgpu.h:3635
WGPUChainedStruct * nextInChain
Definition webgpu.h:3623
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3647
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3639
WGPUBlendFactor dstFactor
Definition webgpu.h:1739
WGPUBlendFactor srcFactor
Definition webgpu.h:1732
WGPUBlendOperation operation
Definition webgpu.h:1725
WGPUBlendComponent alpha
Definition webgpu.h:3674
WGPUBlendComponent color
Definition webgpu.h:3670
WGPUBufferBindingType type
Definition webgpu.h:1762
WGPUBool hasDynamicOffset
Definition webgpu.h:1766
WGPUChainedStruct * nextInChain
Definition webgpu.h:1755
WGPUBool mappedAtCreation
Definition webgpu.h:1805
WGPUStringView label
Definition webgpu.h:1793
WGPUBufferUsage usage
Definition webgpu.h:1797
WGPUChainedStruct * nextInChain
Definition webgpu.h:1787
WGPUChainedStruct * nextInChain
Definition webgpu.h:1347
WGPUBufferMapCallback callback
Definition webgpu.h:1354
WGPUCallbackMode mode
Definition webgpu.h:1353
struct WGPUChainedStruct * next
Definition webgpu.h:1325
WGPUSType sType
Definition webgpu.h:1326
WGPUBlendState const * blend
Definition webgpu.h:4213
WGPUColorWriteMask writeMask
Definition webgpu.h:4217
WGPUChainedStruct * nextInChain
Definition webgpu.h:4201
WGPUTextureFormat format
Definition webgpu.h:4209
double a
Definition webgpu.h:1842
double b
Definition webgpu.h:1838
double r
Definition webgpu.h:1830
double g
Definition webgpu.h:1834
WGPUChainedStruct * nextInChain
Definition webgpu.h:1859
WGPUChainedStruct * nextInChain
Definition webgpu.h:1880
WGPUCompilationInfoCallback callback
Definition webgpu.h:1378
WGPUChainedStruct * nextInChain
Definition webgpu.h:1371
WGPUChainedStruct * nextInChain
Definition webgpu.h:3692
WGPUCompilationMessage const * messages
Definition webgpu.h:3700
WGPUChainedStruct * nextInChain
Definition webgpu.h:1904
WGPUCompilationMessageType type
Definition webgpu.h:1918
WGPUStringView message
Definition webgpu.h:1912
WGPUStringView label
Definition webgpu.h:3722
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3726
WGPUChainedStruct * nextInChain
Definition webgpu.h:3716
WGPUComputeState compute
Definition webgpu.h:4248
WGPUChainedStruct * nextInChain
Definition webgpu.h:4234
WGPUPipelineLayout layout
Definition webgpu.h:4244
WGPUChainedStruct * nextInChain
Definition webgpu.h:3742
WGPUConstantEntry const * constants
Definition webgpu.h:3760
size_t constantCount
Definition webgpu.h:3756
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3752
WGPUStringView key
Definition webgpu.h:1968
WGPUChainedStruct * nextInChain
Definition webgpu.h:1962
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1402
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1426
WGPUStencilFaceState stencilFront
Definition webgpu.h:3794
uint32_t stencilWriteMask
Definition webgpu.h:3806
WGPUStencilFaceState stencilBack
Definition webgpu.h:3798
WGPUChainedStruct * nextInChain
Definition webgpu.h:3778
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3786
WGPUCompareFunction depthCompare
Definition webgpu.h:3790
uint32_t stencilReadMask
Definition webgpu.h:3802
WGPUTextureFormat format
Definition webgpu.h:3782
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:3876
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:3885
size_t requiredFeatureCount
Definition webgpu.h:3860
WGPUStringView label
Definition webgpu.h:3856
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:3864
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:3872
WGPUChainedStruct * nextInChain
Definition webgpu.h:3850
WGPULimits const * requiredLimits
Definition webgpu.h:3868
WGPUChainedStruct * nextInChain
Definition webgpu.h:1443
WGPUDeviceLostCallback callback
Definition webgpu.h:1450
WGPUCallbackMode mode
Definition webgpu.h:1449
uint32_t width
Definition webgpu.h:1995
uint32_t depthOrArrayLayers
Definition webgpu.h:2003
uint32_t height
Definition webgpu.h:1999
size_t constantCount
Definition webgpu.h:4371
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4367
WGPUChainedStruct * nextInChain
Definition webgpu.h:4357
size_t targetCount
Definition webgpu.h:4379
WGPUConstantEntry const * constants
Definition webgpu.h:4375
WGPUColorTargetState const * targets
Definition webgpu.h:4383
WGPUFuture future
Definition webgpu.h:3913
WGPUBool completed
Definition webgpu.h:3919
uint64_t id
Definition webgpu.h:2026
WGPUChainedStruct * nextInChain
Definition webgpu.h:2042
WGPUBool timedWaitAnyEnable
Definition webgpu.h:2048
WGPUInstanceCapabilities capabilities
Definition webgpu.h:3940
WGPUChainedStruct * nextInChain
Definition webgpu.h:3934
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2094
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2170
uint32_t maxTextureDimension2D
Definition webgpu.h:2078
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2110
uint32_t maxTextureDimension3D
Definition webgpu.h:2082
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2114
WGPUChainedStruct * nextInChain
Definition webgpu.h:2070
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2098
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2194
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2106
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2174
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2142
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2186
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2134
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2178
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2158
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2138
uint32_t maxVertexAttributes
Definition webgpu.h:2154
uint32_t maxColorAttachments
Definition webgpu.h:2166
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2162
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2190
uint32_t maxTextureDimension1D
Definition webgpu.h:2074
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2102
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2130
uint64_t maxBufferSize
Definition webgpu.h:2150
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2126
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2182
uint32_t maxVertexBuffers
Definition webgpu.h:2146
uint32_t maxTextureArrayLayers
Definition webgpu.h:2086
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2122
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2118
uint32_t maxBindGroups
Definition webgpu.h:2090
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2251
WGPUChainedStruct * nextInChain
Definition webgpu.h:2239
uint32_t y
Definition webgpu.h:2275
uint32_t z
Definition webgpu.h:2279
uint32_t x
Definition webgpu.h:2271
WGPUQuerySet querySet
Definition webgpu.h:2301
uint32_t endOfPassWriteIndex
Definition webgpu.h:2309
WGPUChainedStruct * nextInChain
Definition webgpu.h:2295
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2305
WGPUChainedStruct * nextInChain
Definition webgpu.h:2326
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2340
WGPUChainedStruct * nextInChain
Definition webgpu.h:1467
WGPUCallbackMode mode
Definition webgpu.h:1473
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1474
WGPUFrontFace frontFace
Definition webgpu.h:2375
WGPUChainedStruct * nextInChain
Definition webgpu.h:2357
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2368
WGPUPrimitiveTopology topology
Definition webgpu.h:2364
WGPUCullMode cullMode
Definition webgpu.h:2382
WGPUBool unclippedDepth
Definition webgpu.h:2386
WGPUQueryType type
Definition webgpu.h:2415
WGPUChainedStruct * nextInChain
Definition webgpu.h:2405
WGPUStringView label
Definition webgpu.h:2411
WGPUChainedStruct * nextInChain
Definition webgpu.h:2436
WGPUStringView label
Definition webgpu.h:2442
WGPUCallbackMode mode
Definition webgpu.h:1497
WGPUChainedStruct * nextInChain
Definition webgpu.h:1491
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1498
WGPUChainedStruct * nextInChain
Definition webgpu.h:2457
WGPUStringView label
Definition webgpu.h:2463
WGPUChainedStruct * nextInChain
Definition webgpu.h:2478
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2492
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2496
WGPUTextureView resolveTarget
Definition webgpu.h:3970
WGPUChainedStruct * nextInChain
Definition webgpu.h:3955
WGPUChainedStruct * nextInChain
Definition webgpu.h:2529
WGPUChainedStruct * nextInChain
Definition webgpu.h:4265
WGPUStringView label
Definition webgpu.h:4271
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4283
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4279
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4287
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4291
WGPUChainedStruct chain
Definition webgpu.h:2595
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4425
WGPUChainedStruct * nextInChain
Definition webgpu.h:4403
WGPUMultisampleState multisample
Definition webgpu.h:4429
WGPUFragmentState const * fragment
Definition webgpu.h:4433
WGPUPrimitiveState primitive
Definition webgpu.h:4421
WGPUPipelineLayout layout
Definition webgpu.h:4413
WGPUVertexState vertex
Definition webgpu.h:4417
WGPURequestAdapterCallback callback
Definition webgpu.h:1522
WGPUChainedStruct * nextInChain
Definition webgpu.h:1515
WGPUFeatureLevel featureLevel
Definition webgpu.h:2628
WGPUBool forceFallbackAdapter
Definition webgpu.h:2639
WGPUSurface compatibleSurface
Definition webgpu.h:2653
WGPUBackendType backendType
Definition webgpu.h:2646
WGPUChainedStruct * nextInChain
Definition webgpu.h:2617
WGPUPowerPreference powerPreference
Definition webgpu.h:2632
WGPUChainedStruct chain
Definition webgpu.h:2674
WGPUCallbackMode mode
Definition webgpu.h:1545
WGPUChainedStruct * nextInChain
Definition webgpu.h:1539
WGPURequestDeviceCallback callback
Definition webgpu.h:1546
WGPUChainedStruct * nextInChain
Definition webgpu.h:2698
WGPUSamplerBindingType type
Definition webgpu.h:2705
WGPUFilterMode minFilter
Definition webgpu.h:2761
WGPUAddressMode addressModeU
Definition webgpu.h:2733
WGPUCompareFunction compare
Definition webgpu.h:2788
WGPUAddressMode addressModeW
Definition webgpu.h:2747
uint16_t maxAnisotropy
Definition webgpu.h:2792
WGPUAddressMode addressModeV
Definition webgpu.h:2740
WGPUStringView label
Definition webgpu.h:2726
WGPUFilterMode magFilter
Definition webgpu.h:2754
WGPUChainedStruct * nextInChain
Definition webgpu.h:2720
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2768
WGPUChainedStruct * nextInChain
Definition webgpu.h:2817
WGPUStringView label
Definition webgpu.h:2823
WGPUChainedStruct chain
Definition webgpu.h:2838
uint32_t const * code
Definition webgpu.h:2846
WGPUChainedStruct chain
Definition webgpu.h:2865
WGPUStringView code
Definition webgpu.h:2871
WGPUCompareFunction compare
Definition webgpu.h:2895
WGPUStencilOperation depthFailOp
Definition webgpu.h:2909
WGPUStencilOperation passOp
Definition webgpu.h:2916
WGPUStencilOperation failOp
Definition webgpu.h:2902
WGPUChainedStruct * nextInChain
Definition webgpu.h:2933
WGPUTextureViewDimension viewDimension
Definition webgpu.h:2951
WGPUTextureFormat format
Definition webgpu.h:2944
WGPUStorageTextureAccess access
Definition webgpu.h:2940
size_t length
Definition webgpu.h:139
char const * data
Definition webgpu.h:138
WGPUFeatureName const * features
Definition webgpu.h:2975
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:2997
WGPUTextureFormat const * formats
Definition webgpu.h:3031
WGPUChainedStruct * nextInChain
Definition webgpu.h:3014
WGPUPresentMode const * presentModes
Definition webgpu.h:3042
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3053
WGPUTextureUsage usages
Definition webgpu.h:3021
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3084
WGPUChainedStruct chain
Definition webgpu.h:3076
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3080
WGPUTextureUsage usage
Definition webgpu.h:3124
WGPUTextureFormat format
Definition webgpu.h:3118
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3146
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3156
WGPUChainedStruct * nextInChain
Definition webgpu.h:3106
WGPUPresentMode presentMode
Definition webgpu.h:3165
WGPUChainedStruct * nextInChain
Definition webgpu.h:3192
WGPUStringView label
Definition webgpu.h:3200
WGPUChainedStruct chain
Definition webgpu.h:3243
WGPUChainedStruct chain
Definition webgpu.h:3269
WGPUChainedStruct chain
Definition webgpu.h:3302
WGPUChainedStruct chain
Definition webgpu.h:3336
WGPUChainedStruct chain
Definition webgpu.h:3369
WGPUChainedStruct * nextInChain
Definition webgpu.h:3403
WGPUTexture texture
Definition webgpu.h:3410
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3416
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4005
WGPUOrigin3D origin
Definition webgpu.h:4035
WGPUTextureAspect aspect
Definition webgpu.h:4042
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3473
WGPUTextureSampleType sampleType
Definition webgpu.h:3466
WGPUChainedStruct * nextInChain
Definition webgpu.h:3459
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4100
WGPUTextureDimension dimension
Definition webgpu.h:4076
WGPUStringView label
Definition webgpu.h:4065
uint32_t mipLevelCount
Definition webgpu.h:4088
WGPUChainedStruct * nextInChain
Definition webgpu.h:4059
WGPUTextureFormat format
Definition webgpu.h:4084
WGPUTextureUsage usage
Definition webgpu.h:4069
WGPUExtent3D size
Definition webgpu.h:4080
WGPUChainedStruct * nextInChain
Definition webgpu.h:3494
WGPUTextureUsage usage
Definition webgpu.h:3535
WGPUTextureFormat format
Definition webgpu.h:3504
WGPUTextureViewDimension dimension
Definition webgpu.h:3508
WGPUStringView label
Definition webgpu.h:3500
WGPUTextureAspect aspect
Definition webgpu.h:3531
WGPUChainedStruct * nextInChain
Definition webgpu.h:1563
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1564
WGPUVertexFormat format
Definition webgpu.h:3562
WGPUChainedStruct * nextInChain
Definition webgpu.h:3558
uint32_t shaderLocation
Definition webgpu.h:3570
WGPUVertexAttribute const * attributes
Definition webgpu.h:4152
WGPUVertexStepMode stepMode
Definition webgpu.h:4140
WGPUChainedStruct * nextInChain
Definition webgpu.h:4136
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4321
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4337
WGPUConstantEntry const * constants
Definition webgpu.h:4329
size_t constantCount
Definition webgpu.h:4325
size_t bufferCount
Definition webgpu.h:4333
WGPUChainedStruct * nextInChain
Definition webgpu.h:4311