WebGPU Headers
The WebGPU C API
 
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
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
87
94#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
95#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
100#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
101#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
102#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
103#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
104#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
105#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
106#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
107#define WGPU_WHOLE_SIZE (UINT64_MAX)
108
109
117typedef uint64_t WGPUFlags;
118typedef uint32_t WGPUBool;
119
141typedef struct WGPUStringView {
142 char const * WGPU_NULLABLE data;
143 size_t length;
145
150#define WGPU_STRLEN SIZE_MAX
151
155#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
156 /*.data=*/NULL _wgpu_COMMA \
157 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
158})
159
160
169typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
170typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
171typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
172typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
173typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
174typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
175typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
176typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
177typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
178typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
179typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
180typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
181typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
182typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
183typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
184typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
185typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
186typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
187typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
191typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
192typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
193typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
194
195
197// Structure forward declarations
198struct WGPUAdapterInfo;
199struct WGPUBindGroupEntry;
200struct WGPUBlendComponent;
203struct WGPUColor;
207struct WGPUConstantEntry;
208struct WGPUExtent3D;
209struct WGPUFuture;
211struct WGPULimits;
213struct WGPUOrigin3D;
216struct WGPUPrimitiveState;
244struct WGPUSurfaceTexture;
251struct WGPUBlendState;
254struct WGPUComputeState;
257struct WGPUFutureWaitInfo;
268struct WGPUVertexState;
269struct WGPUFragmentState;
271
272// Callback info structure forward declarations
283
284
291typedef enum WGPUAdapterType {
296 WGPUAdapterType_Force32 = 0x7FFFFFFF
297} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
298
309
325
350
363
380
387
416
432
441
448
475
486
487typedef enum WGPUCullMode {
492 WGPUCullMode_None = 0x00000001,
493 WGPUCullMode_Front = 0x00000002,
494 WGPUCullMode_Back = 0x00000003,
495 WGPUCullMode_Force32 = 0x7FFFFFFF
496} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
497
508
509typedef enum WGPUErrorFilter {
513 WGPUErrorFilter_Force32 = 0x7FFFFFFF
514} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
515
516typedef enum WGPUErrorType {
522 WGPUErrorType_Force32 = 0x7FFFFFFF
523} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
524
528typedef enum WGPUFeatureLevel {
541 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
542} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
543
568
569typedef enum WGPUFilterMode {
576 WGPUFilterMode_Force32 = 0x7FFFFFFF
577} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
578
579typedef enum WGPUFrontFace {
584 WGPUFrontFace_CCW = 0x00000001,
585 WGPUFrontFace_CW = 0x00000002,
586 WGPUFrontFace_Force32 = 0x7FFFFFFF
587} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
588
589typedef enum WGPUIndexFormat {
596 WGPUIndexFormat_Force32 = 0x7FFFFFFF
597} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
598
599typedef enum WGPULoadOp {
604 WGPULoadOp_Load = 0x00000001,
605 WGPULoadOp_Clear = 0x00000002,
606 WGPULoadOp_Force32 = 0x7FFFFFFF
607} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
608
619
629
630typedef enum WGPUOptionalBool {
637 WGPUOptionalBool_Force32 = 0x7FFFFFFF
638} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
639
655
665
671
704
717
718typedef enum WGPUQueryType {
721 WGPUQueryType_Force32 = 0x7FFFFFFF
722} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
723
737
748
758
773
790
796typedef enum WGPUStatus {
797 WGPUStatus_Success = 0x00000001,
798 WGPUStatus_Error = 0x00000002,
799 WGPUStatus_Force32 = 0x7FFFFFFF
800} WGPUStatus WGPU_ENUM_ATTRIBUTE;
801
817
834
835typedef enum WGPUStoreOp {
840 WGPUStoreOp_Store = 0x00000001,
842 WGPUStoreOp_Force32 = 0x7FFFFFFF
843} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
844
875
886
897
898typedef enum WGPUTextureFormat {
998 WGPUTextureFormat_Force32 = 0x7FFFFFFF
999} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1000
1019
1033
1039
1040typedef enum WGPUVertexFormat {
1082 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1083} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1084
1094
1102
1106typedef enum WGPUWaitStatus {
1120 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1121} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1122
1123
1139static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1140static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1141static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1142static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1143static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1144static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1145static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1146static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1147static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1148static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1149static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1150
1158static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1159static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1160static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1161static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1162static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1166static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1167
1175static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1176static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1177static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1178
1186static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1187static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1188static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1189static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1190
1198static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1199static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1200static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1201static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1202static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1203static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1204
1205
1207typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1208
1209
1222typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1231typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1238typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1245typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1256typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1274typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1278typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1288typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1298typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1308typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1309
1318typedef struct WGPUChainedStruct {
1321} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1322
1351
1355#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1356 /*.nextInChain=*/NULL _wgpu_COMMA \
1357 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1358 /*.callback=*/NULL _wgpu_COMMA \
1359 /*.userdata1=*/NULL _wgpu_COMMA \
1360 /*.userdata2=*/NULL _wgpu_COMMA \
1361})
1362
1375
1379#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1380 /*.nextInChain=*/NULL _wgpu_COMMA \
1381 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1382 /*.callback=*/NULL _wgpu_COMMA \
1383 /*.userdata1=*/NULL _wgpu_COMMA \
1384 /*.userdata2=*/NULL _wgpu_COMMA \
1385})
1386
1399
1403#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1404 /*.nextInChain=*/NULL _wgpu_COMMA \
1405 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1406 /*.callback=*/NULL _wgpu_COMMA \
1407 /*.userdata1=*/NULL _wgpu_COMMA \
1408 /*.userdata2=*/NULL _wgpu_COMMA \
1409})
1410
1423
1427#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1428 /*.nextInChain=*/NULL _wgpu_COMMA \
1429 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1430 /*.callback=*/NULL _wgpu_COMMA \
1431 /*.userdata1=*/NULL _wgpu_COMMA \
1432 /*.userdata2=*/NULL _wgpu_COMMA \
1433})
1434
1447
1451#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1452 /*.nextInChain=*/NULL _wgpu_COMMA \
1453 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1454 /*.callback=*/NULL _wgpu_COMMA \
1455 /*.userdata1=*/NULL _wgpu_COMMA \
1456 /*.userdata2=*/NULL _wgpu_COMMA \
1457})
1458
1471
1475#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1476 /*.nextInChain=*/NULL _wgpu_COMMA \
1477 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1478 /*.callback=*/NULL _wgpu_COMMA \
1479 /*.userdata1=*/NULL _wgpu_COMMA \
1480 /*.userdata2=*/NULL _wgpu_COMMA \
1481})
1482
1495
1499#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1500 /*.nextInChain=*/NULL _wgpu_COMMA \
1501 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1502 /*.callback=*/NULL _wgpu_COMMA \
1503 /*.userdata1=*/NULL _wgpu_COMMA \
1504 /*.userdata2=*/NULL _wgpu_COMMA \
1505})
1506
1519
1523#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1524 /*.nextInChain=*/NULL _wgpu_COMMA \
1525 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1526 /*.callback=*/NULL _wgpu_COMMA \
1527 /*.userdata1=*/NULL _wgpu_COMMA \
1528 /*.userdata2=*/NULL _wgpu_COMMA \
1529})
1530
1543
1547#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1548 /*.nextInChain=*/NULL _wgpu_COMMA \
1549 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1550 /*.callback=*/NULL _wgpu_COMMA \
1551 /*.userdata1=*/NULL _wgpu_COMMA \
1552 /*.userdata2=*/NULL _wgpu_COMMA \
1553})
1554
1561
1565#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1566 /*.nextInChain=*/NULL _wgpu_COMMA \
1567 /*.callback=*/NULL _wgpu_COMMA \
1568 /*.userdata1=*/NULL _wgpu_COMMA \
1569 /*.userdata2=*/NULL _wgpu_COMMA \
1570})
1571
1628
1632#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1633 /*.nextInChain=*/NULL _wgpu_COMMA \
1634 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1635 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1636 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1637 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1638 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1639 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1640 /*.vendorID=*/0 _wgpu_COMMA \
1641 /*.deviceID=*/0 _wgpu_COMMA \
1642 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1643 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1644})
1645
1649typedef struct WGPUBindGroupEntry {
1656 uint32_t binding;
1663 WGPU_NULLABLE WGPUBuffer buffer;
1670 uint64_t offset;
1678 uint64_t size;
1685 WGPU_NULLABLE WGPUSampler sampler;
1693} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1694
1698#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1699 /*.nextInChain=*/NULL _wgpu_COMMA \
1700 /*.binding=*/0 _wgpu_COMMA \
1701 /*.buffer=*/NULL _wgpu_COMMA \
1702 /*.offset=*/0 _wgpu_COMMA \
1703 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1704 /*.sampler=*/NULL _wgpu_COMMA \
1705 /*.textureView=*/NULL _wgpu_COMMA \
1706})
1707
1734
1738#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1739 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1740 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1741 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1742})
1743
1765
1769#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1770 /*.nextInChain=*/NULL _wgpu_COMMA \
1771 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1772 /*.hasDynamicOffset=*/0 _wgpu_COMMA \
1773 /*.minBindingSize=*/0 _wgpu_COMMA \
1774})
1775
1800
1804#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1805 /*.nextInChain=*/NULL _wgpu_COMMA \
1806 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1807 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1808 /*.size=*/0 _wgpu_COMMA \
1809 /*.mappedAtCreation=*/0 _wgpu_COMMA \
1810})
1811
1819typedef struct WGPUColor {
1823 double r;
1827 double g;
1831 double b;
1835 double a;
1836} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1837
1841#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1842 /*.r=*/0. _wgpu_COMMA \
1843 /*.g=*/0. _wgpu_COMMA \
1844 /*.b=*/0. _wgpu_COMMA \
1845 /*.a=*/0. _wgpu_COMMA \
1846})
1847
1860
1864#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1865 /*.nextInChain=*/NULL _wgpu_COMMA \
1866 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1867})
1868
1881
1885#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
1886 /*.nextInChain=*/NULL _wgpu_COMMA \
1887 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1888})
1889
1937
1941#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
1942 /*.nextInChain=*/NULL _wgpu_COMMA \
1943 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1944 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
1945 /*.lineNum=*/0 _wgpu_COMMA \
1946 /*.linePos=*/0 _wgpu_COMMA \
1947 /*.offset=*/0 _wgpu_COMMA \
1948 /*.length=*/0 _wgpu_COMMA \
1949})
1950
1971
1975#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
1976 /*.nextInChain=*/NULL _wgpu_COMMA \
1977 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1978 /*.value=*/0. _wgpu_COMMA \
1979})
1980
1984typedef struct WGPUExtent3D {
1988 uint32_t width;
1992 uint32_t height;
1997} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
1998
2002#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2003 /*.width=*/0 _wgpu_COMMA \
2004 /*.height=*/1 _wgpu_COMMA \
2005 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2006})
2007
2013typedef struct WGPUFuture {
2019 uint64_t id;
2020} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2021
2025#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2026 /*.id=*/0 _wgpu_COMMA \
2027})
2028
2049
2053#define WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceCapabilities, { \
2054 /*.nextInChain=*/NULL _wgpu_COMMA \
2055 /*.timedWaitAnyEnable=*/0 _wgpu_COMMA \
2056 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2057})
2058
2189
2193#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2194 /*.nextInChain=*/NULL _wgpu_COMMA \
2195 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2196 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2197 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2198 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2199 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2200 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2201 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2202 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2203 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2204 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2205 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2206 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2207 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2208 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2209 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2210 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2211 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2212 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2213 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2214 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2215 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2216 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2217 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2218 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2219 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2220 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2221 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2222 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2223 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2224 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2225 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2226})
2227
2246
2250#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2251 /*.nextInChain=*/NULL _wgpu_COMMA \
2252 /*.count=*/1 _wgpu_COMMA \
2253 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2254 /*.alphaToCoverageEnabled=*/0 _wgpu_COMMA \
2255})
2256
2260typedef struct WGPUOrigin3D {
2264 uint32_t x;
2268 uint32_t y;
2272 uint32_t z;
2273} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2274
2278#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2279 /*.x=*/0 _wgpu_COMMA \
2280 /*.y=*/0 _wgpu_COMMA \
2281 /*.z=*/0 _wgpu_COMMA \
2282})
2283
2304
2308#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2309 /*.nextInChain=*/NULL _wgpu_COMMA \
2310 /*.querySet=*/NULL _wgpu_COMMA \
2311 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2312 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2313})
2314
2335
2339#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2340 /*.nextInChain=*/NULL _wgpu_COMMA \
2341 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2342 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2343 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2344})
2345
2381
2385#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2386 /*.nextInChain=*/NULL _wgpu_COMMA \
2387 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2388 /*.stripIndexFormat=*/_wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
2389 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2390 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2391 /*.unclippedDepth=*/0 _wgpu_COMMA \
2392})
2393
2414
2418#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2419 /*.nextInChain=*/NULL _wgpu_COMMA \
2420 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2421 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2422 /*.count=*/0 _wgpu_COMMA \
2423})
2424
2437
2441#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2442 /*.nextInChain=*/NULL _wgpu_COMMA \
2443 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2444})
2445
2458
2462#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2463 /*.nextInChain=*/NULL _wgpu_COMMA \
2464 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2465})
2466
2503
2507#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2508 /*.nextInChain=*/NULL _wgpu_COMMA \
2509 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2510 /*.colorFormatCount=*/0 _wgpu_COMMA \
2511 /*.colorFormats=*/NULL _wgpu_COMMA \
2512 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2513 /*.sampleCount=*/1 _wgpu_COMMA \
2514 /*.depthReadOnly=*/0 _wgpu_COMMA \
2515 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2516})
2517
2567
2571#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2572 /*.nextInChain=*/NULL _wgpu_COMMA \
2573 /*.view=*/NULL _wgpu_COMMA \
2574 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2575 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2576 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2577 /*.depthReadOnly=*/0 _wgpu_COMMA \
2578 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2579 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2580 /*.stencilClearValue=*/0 _wgpu_COMMA \
2581 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2582})
2583
2594
2598#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2599 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2600 /*.next=*/NULL _wgpu_COMMA \
2601 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2602 }) _wgpu_COMMA \
2603 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2604})
2605
2648
2652#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
2653 /*.nextInChain=*/NULL _wgpu_COMMA \
2654 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
2655 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
2656 /*.forceFallbackAdapter=*/0 _wgpu_COMMA \
2657 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
2658 /*.compatibleSurface=*/NULL _wgpu_COMMA \
2659})
2660
2675
2679#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2680 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2681 /*.next=*/NULL _wgpu_COMMA \
2682 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2683 }) _wgpu_COMMA \
2684 /*.xrCompatible=*/0 _wgpu_COMMA \
2685})
2686
2700
2704#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2705 /*.nextInChain=*/NULL _wgpu_COMMA \
2706 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2707})
2708
2787
2791#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2792 /*.nextInChain=*/NULL _wgpu_COMMA \
2793 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2794 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2795 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2796 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2797 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2798 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2799 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2800 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2801 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2802 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2803 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2804})
2805
2818
2822#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
2823 /*.nextInChain=*/NULL _wgpu_COMMA \
2824 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2825})
2826
2835 uint32_t codeSize;
2839 uint32_t const * code;
2840} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2841
2845#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2846 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2847 /*.next=*/NULL _wgpu_COMMA \
2848 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2849 }) _wgpu_COMMA \
2850 /*.codeSize=*/0 _wgpu_COMMA \
2851 /*.code=*/NULL _wgpu_COMMA \
2852})
2853
2866
2870#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2871 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2872 /*.next=*/NULL _wgpu_COMMA \
2873 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2874 }) _wgpu_COMMA \
2875 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2876})
2877
2911
2915#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2916 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2917 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2918 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2919 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2920})
2921
2946
2950#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
2951 /*.nextInChain=*/NULL _wgpu_COMMA \
2952 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
2953 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2954 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
2955})
2956
2969} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
2970
2974#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
2975 /*.featureCount=*/0 _wgpu_COMMA \
2976 /*.features=*/NULL _wgpu_COMMA \
2977})
2978
2992
2996#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
2997 /*.featureCount=*/0 _wgpu_COMMA \
2998 /*.features=*/NULL _wgpu_COMMA \
2999})
3000
3048
3052#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3053 /*.nextInChain=*/NULL _wgpu_COMMA \
3054 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3055 /*.formatCount=*/0 _wgpu_COMMA \
3056 /*.formats=*/NULL _wgpu_COMMA \
3057 /*.presentModeCount=*/0 _wgpu_COMMA \
3058 /*.presentModes=*/NULL _wgpu_COMMA \
3059 /*.alphaModeCount=*/0 _wgpu_COMMA \
3060 /*.alphaModes=*/NULL _wgpu_COMMA \
3061})
3062
3079
3083#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3084 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3085 /*.next=*/NULL _wgpu_COMMA \
3086 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3087 }) _wgpu_COMMA \
3088 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3089 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3090})
3091
3160
3164#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3165 /*.nextInChain=*/NULL _wgpu_COMMA \
3166 /*.device=*/NULL _wgpu_COMMA \
3167 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3168 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3169 /*.width=*/0 _wgpu_COMMA \
3170 /*.height=*/0 _wgpu_COMMA \
3171 /*.viewFormatCount=*/0 _wgpu_COMMA \
3172 /*.viewFormats=*/NULL _wgpu_COMMA \
3173 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3174 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3175})
3176
3195
3199#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
3200 /*.nextInChain=*/NULL _wgpu_COMMA \
3201 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3202})
3203
3218
3222#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3223 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3224 /*.next=*/NULL _wgpu_COMMA \
3225 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3226 }) _wgpu_COMMA \
3227 /*.window=*/NULL _wgpu_COMMA \
3228})
3229
3244
3248#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3249 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3250 /*.next=*/NULL _wgpu_COMMA \
3251 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3252 }) _wgpu_COMMA \
3253 /*.layer=*/NULL _wgpu_COMMA \
3254})
3255
3276
3280#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3281 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3282 /*.next=*/NULL _wgpu_COMMA \
3283 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3284 }) _wgpu_COMMA \
3285 /*.display=*/NULL _wgpu_COMMA \
3286 /*.surface=*/NULL _wgpu_COMMA \
3287})
3288
3310
3314#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3315 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3316 /*.next=*/NULL _wgpu_COMMA \
3317 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3318 }) _wgpu_COMMA \
3319 /*.hinstance=*/NULL _wgpu_COMMA \
3320 /*.hwnd=*/NULL _wgpu_COMMA \
3321})
3322
3343
3347#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3348 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3349 /*.next=*/NULL _wgpu_COMMA \
3350 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3351 }) _wgpu_COMMA \
3352 /*.connection=*/NULL _wgpu_COMMA \
3353 /*.window=*/0 _wgpu_COMMA \
3354})
3355
3376
3380#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3381 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3382 /*.next=*/NULL _wgpu_COMMA \
3383 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3384 }) _wgpu_COMMA \
3385 /*.display=*/NULL _wgpu_COMMA \
3386 /*.window=*/0 _wgpu_COMMA \
3387})
3388
3411
3415#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3416 /*.nextInChain=*/NULL _wgpu_COMMA \
3417 /*.texture=*/NULL _wgpu_COMMA \
3418 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3419})
3420
3428 uint64_t offset;
3432 uint32_t bytesPerRow;
3437} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3438
3442#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3443 /*.offset=*/0 _wgpu_COMMA \
3444 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3445 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3446})
3447
3472
3476#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3477 /*.nextInChain=*/NULL _wgpu_COMMA \
3478 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3479 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3480 /*.multisampled=*/0 _wgpu_COMMA \
3481})
3482
3530
3534#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3535 /*.nextInChain=*/NULL _wgpu_COMMA \
3536 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3537 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3538 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3539 /*.baseMipLevel=*/0 _wgpu_COMMA \
3540 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3541 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3542 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3543 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3544 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3545})
3546
3565
3569#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3570 /*.nextInChain=*/NULL _wgpu_COMMA \
3571 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3572 /*.offset=*/0 _wgpu_COMMA \
3573 /*.shaderLocation=*/0 _wgpu_COMMA \
3574})
3575
3600
3604#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3605 /*.nextInChain=*/NULL _wgpu_COMMA \
3606 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3607 /*.layout=*/NULL _wgpu_COMMA \
3608 /*.entryCount=*/0 _wgpu_COMMA \
3609 /*.entries=*/NULL _wgpu_COMMA \
3610})
3611
3642
3646#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3647 /*.nextInChain=*/NULL _wgpu_COMMA \
3648 /*.binding=*/0 _wgpu_COMMA \
3649 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3650 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3651 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3652 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3653 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3654})
3655
3669
3673#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3674 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3675 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3676})
3677
3695
3699#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3700 /*.nextInChain=*/NULL _wgpu_COMMA \
3701 /*.messageCount=*/0 _wgpu_COMMA \
3702 /*.messages=*/NULL _wgpu_COMMA \
3703})
3704
3721
3725#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3726 /*.nextInChain=*/NULL _wgpu_COMMA \
3727 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3728 /*.timestampWrites=*/NULL _wgpu_COMMA \
3729})
3730
3755
3759#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3760 /*.nextInChain=*/NULL _wgpu_COMMA \
3761 /*.module=*/NULL _wgpu_COMMA \
3762 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3763 /*.constantCount=*/0 _wgpu_COMMA \
3764 /*.constants=*/NULL _wgpu_COMMA \
3765})
3766
3821
3825#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3826 /*.nextInChain=*/NULL _wgpu_COMMA \
3827 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3828 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3829 /*.depthCompare=*/_wgpu_ENUM_ZERO_INIT(WGPUCompareFunction) _wgpu_COMMA \
3830 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3831 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3832 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3833 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3834 /*.depthBias=*/0 _wgpu_COMMA \
3835 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3836 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3837})
3838
3880
3884#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
3885 /*.nextInChain=*/NULL _wgpu_COMMA \
3886 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3887 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3888 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3889 /*.requiredLimits=*/NULL _wgpu_COMMA \
3890 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
3891 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
3892 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
3893})
3894
3914
3918#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3919 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3920 /*.completed=*/0 _wgpu_COMMA \
3921})
3922
3935
3939#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
3940 /*.nextInChain=*/NULL _wgpu_COMMA \
3941 /*.capabilities=*/WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_COMMA \
3942})
3943
3977
3981#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
3982 /*.nextInChain=*/NULL _wgpu_COMMA \
3983 /*.view=*/NULL _wgpu_COMMA \
3984 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
3985 /*.resolveTarget=*/NULL _wgpu_COMMA \
3986 /*.loadOp=*/_wgpu_ENUM_ZERO_INIT(WGPULoadOp) _wgpu_COMMA \
3987 /*.storeOp=*/_wgpu_ENUM_ZERO_INIT(WGPUStoreOp) _wgpu_COMMA \
3988 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
3989})
3990
4004
4008#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4009 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4010 /*.buffer=*/NULL _wgpu_COMMA \
4011})
4012
4037
4041#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4042 /*.texture=*/NULL _wgpu_COMMA \
4043 /*.mipLevel=*/0 _wgpu_COMMA \
4044 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4045 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4046})
4047
4095
4099#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4100 /*.nextInChain=*/NULL _wgpu_COMMA \
4101 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4102 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4103 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4104 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4105 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4106 /*.mipLevelCount=*/1 _wgpu_COMMA \
4107 /*.sampleCount=*/1 _wgpu_COMMA \
4108 /*.viewFormatCount=*/0 _wgpu_COMMA \
4109 /*.viewFormats=*/NULL _wgpu_COMMA \
4110})
4111
4147
4151#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4152 /*.nextInChain=*/NULL _wgpu_COMMA \
4153 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4154 /*.arrayStride=*/0 _wgpu_COMMA \
4155 /*.attributeCount=*/0 _wgpu_COMMA \
4156 /*.attributes=*/NULL _wgpu_COMMA \
4157})
4158
4179
4183#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4184 /*.nextInChain=*/NULL _wgpu_COMMA \
4185 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4186 /*.entryCount=*/0 _wgpu_COMMA \
4187 /*.entries=*/NULL _wgpu_COMMA \
4188})
4189
4212
4216#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4217 /*.nextInChain=*/NULL _wgpu_COMMA \
4218 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4219 /*.blend=*/NULL _wgpu_COMMA \
4220 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4221})
4222
4243
4247#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4248 /*.nextInChain=*/NULL _wgpu_COMMA \
4249 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4250 /*.layout=*/NULL _wgpu_COMMA \
4251 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4252})
4253
4286
4290#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4291 /*.nextInChain=*/NULL _wgpu_COMMA \
4292 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4293 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4294 /*.colorAttachments=*/NULL _wgpu_COMMA \
4295 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4296 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4297 /*.timestampWrites=*/NULL _wgpu_COMMA \
4298})
4299
4332
4336#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4337 /*.nextInChain=*/NULL _wgpu_COMMA \
4338 /*.module=*/NULL _wgpu_COMMA \
4339 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4340 /*.constantCount=*/0 _wgpu_COMMA \
4341 /*.constants=*/NULL _wgpu_COMMA \
4342 /*.bufferCount=*/0 _wgpu_COMMA \
4343 /*.buffers=*/NULL _wgpu_COMMA \
4344})
4345
4378
4382#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4383 /*.nextInChain=*/NULL _wgpu_COMMA \
4384 /*.module=*/NULL _wgpu_COMMA \
4385 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4386 /*.constantCount=*/0 _wgpu_COMMA \
4387 /*.constants=*/NULL _wgpu_COMMA \
4388 /*.targetCount=*/0 _wgpu_COMMA \
4389 /*.targets=*/NULL _wgpu_COMMA \
4390})
4391
4428
4432#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4433 /*.nextInChain=*/NULL _wgpu_COMMA \
4434 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4435 /*.layout=*/NULL _wgpu_COMMA \
4436 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4437 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4438 /*.depthStencil=*/NULL _wgpu_COMMA \
4439 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4440 /*.fragment=*/NULL _wgpu_COMMA \
4441})
4442
4445#ifdef __cplusplus
4446extern "C" {
4447#endif
4448
4449#if !defined(WGPU_SKIP_PROCS)
4450
4455typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4460typedef WGPUStatus (*WGPUProcGetInstanceCapabilities)(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
4465typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4466
4467// Procs of Adapter
4472typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4477typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4482typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4487typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4492typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4497typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4502typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4503
4504// Procs of AdapterInfo
4509typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4510
4511// Procs of BindGroup
4516typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4521typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4526typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4527
4528// Procs of BindGroupLayout
4533typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4538typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4543typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4544
4545// Procs of Buffer
4550typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4555typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4560typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4565typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4570typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4575typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4580typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4585typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4590typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4595typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4600typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4605typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4610typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4611
4612// Procs of CommandBuffer
4617typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4622typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4627typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4628
4629// Procs of CommandEncoder
4634typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4639typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4644typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4649typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4654typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4659typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4664typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4669typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4674typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4679typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4684typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4689typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4694typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4699typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4704typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4709typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4710
4711// Procs of ComputePassEncoder
4716typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4721typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4726typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4731typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4736typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4741typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4746typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4751typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4756typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4761typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4766typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4767
4768// Procs of ComputePipeline
4773typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
4778typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4783typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4788typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4789
4790// Procs of Device
4795typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4800typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4805typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4810typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4815typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4820typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4825typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4830typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4835typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4840typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4845typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4850typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4855typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4860typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4865typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4870typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4875typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4880typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4885typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4890typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4895typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4900typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4905typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
4910typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4915typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4920typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4921
4922// Procs of Instance
4927typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4932typedef WGPUStatus (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4937typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4942typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4947typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4952typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
4957typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4962typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4963
4964// Procs of PipelineLayout
4969typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4974typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4979typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4980
4981// Procs of QuerySet
4986typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4991typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4996typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5001typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5006typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5011typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5012
5013// Procs of Queue
5018typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5023typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5028typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5033typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5038typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5043typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5048typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5049
5050// Procs of RenderBundle
5055typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5060typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5065typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5066
5067// Procs of RenderBundleEncoder
5072typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5077typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5082typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5087typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5092typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5097typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5102typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5107typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5112typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5117typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5122typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5127typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5132typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5137typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5142typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5143
5144// Procs of RenderPassEncoder
5149typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5154typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5159typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5164typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5169typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5174typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5179typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5184typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5189typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5194typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5199typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5204typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5209typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5214typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5219typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5224typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5229typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5234typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5239typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5244typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5249typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5254typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5255
5256// Procs of RenderPipeline
5261typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5266typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5271typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5276typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5277
5278// Procs of Sampler
5283typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5288typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5293typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5294
5295// Procs of ShaderModule
5300typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5305typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5310typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5315typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5316
5317// Procs of SupportedFeatures
5322typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5323
5324// Procs of SupportedWGSLLanguageFeatures
5329typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5330
5331// Procs of Surface
5336typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5341typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5346typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5351typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5356typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5361typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5366typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5371typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5372
5373// Procs of SurfaceCapabilities
5378typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5379
5380// Procs of Texture
5385typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5390typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5395typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5400typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5405typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5410typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5415typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5420typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5425typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5430typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5435typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5440typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5445typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5446
5447// Procs of TextureView
5452typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5457typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5462typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5463
5464#endif // !defined(WGPU_SKIP_PROCS)
5465
5466#if !defined(WGPU_SKIP_DECLARATIONS)
5479WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5489WGPU_EXPORT WGPUStatus wgpuGetInstanceCapabilities(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5494WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5495
5496
5518WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5526WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5531WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5532WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5533WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5534WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5535WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5549WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5560WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5561WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5562WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5573WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5574WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5575WGPU_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;
5690WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5691WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5692WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5707WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5712WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5713WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5714WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5715WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5716WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5717WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5722WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5723WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5724WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5725WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5726WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5727WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5728WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5729WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5730WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5741WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5742WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5743WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5744WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5745WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5746WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5747WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5748WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5749WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5750WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5751WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5766WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5767WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5768WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5769WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5784WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5789WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5799WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5804WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5809WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5815WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5820WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5830WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5836WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5841WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5846WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5847WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5855WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5862WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5867WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5872WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5877WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5878WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5883WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5888WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5889WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5890WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5891WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5912WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5917WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5923WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5924WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5930WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5931WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5932WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5943WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5944WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5945WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5956WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5957WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5958WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5959WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5960WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5961WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5972WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5973WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5974WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5979WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5980WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5981WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5982WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5993WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5994WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5995WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6006WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6007WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6008WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6009WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6014WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6015WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6016WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6017WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6018WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6019WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6020WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6021WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6022WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6023WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6024WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6035WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6036WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6037WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6038WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6039WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6040WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6041WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6042WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6043WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6044WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6045WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6046WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6051WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6052WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6053WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6054WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6055WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6056WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6057WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6063WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6064WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6065WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6080WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6081WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6082WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6083WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6094WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6095WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6096WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6107WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6108WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6109WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6110WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6124WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6138WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6158WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6174WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6184WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6192WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6199WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6204WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6205WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6206WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6220WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6235WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6236WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6237WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6238WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6241WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6242WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6243WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6244WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6245WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6246WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6247WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6258WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6259WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6260WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6266#endif // !defined(WGPU_SKIP_DECLARATIONS)
6267
6268#ifdef __cplusplus
6269} // extern "C"
6270#endif
6271
6272#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1161
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1148
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1154
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1147
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1162
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1140
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1144
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1139
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1175
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1198
WGPUFlags WGPUMapMode
Definition webgpu.h:1171
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1201
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1166
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1199
WGPUFlags WGPUShaderStage
Definition webgpu.h:1182
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1149
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1188
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1189
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1177
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1186
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1203
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1141
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1200
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1142
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1202
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1194
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1146
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1176
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1160
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1145
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1187
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1158
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1159
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1135
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1143
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1308
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1298
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1238
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1256
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:1231
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1288
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, void *userdata1, void *userdata2)
Definition webgpu.h:1278
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1222
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1274
WGPUIndexFormat
Definition webgpu.h:589
WGPURequestAdapterStatus
Definition webgpu.h:738
WGPUFeatureName
Definition webgpu.h:544
WGPUVertexFormat
Definition webgpu.h:1040
WGPUSType
Definition webgpu.h:759
WGPUBufferBindingType
Definition webgpu.h:364
WGPUDeviceLostReason
Definition webgpu.h:498
WGPUCompareFunction
Definition webgpu.h:417
WGPUCullMode
Definition webgpu.h:487
WGPUTextureDimension
Definition webgpu.h:887
WGPURequestDeviceStatus
Definition webgpu.h:749
WGPUCompilationMessageType
Definition webgpu.h:442
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:476
WGPUTextureViewDimension
Definition webgpu.h:1020
WGPUPrimitiveTopology
Definition webgpu.h:705
WGPUTextureFormat
Definition webgpu.h:898
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1095
WGPUStencilOperation
Definition webgpu.h:802
WGPUAddressMode
Definition webgpu.h:299
WGPUToneMappingMode
Definition webgpu.h:1034
WGPUTextureAspect
Definition webgpu.h:876
WGPUBufferMapState
Definition webgpu.h:381
WGPUFilterMode
Definition webgpu.h:569
WGPUBackendType
Definition webgpu.h:310
WGPUBlendFactor
Definition webgpu.h:326
WGPUSamplerBindingType
Definition webgpu.h:774
WGPULoadOp
Definition webgpu.h:599
WGPUPopErrorScopeStatus
Definition webgpu.h:640
WGPUWaitStatus
Definition webgpu.h:1106
WGPUStorageTextureAccess
Definition webgpu.h:818
WGPUPowerPreference
Definition webgpu.h:656
WGPUPresentMode
Definition webgpu.h:675
WGPUMapAsyncStatus
Definition webgpu.h:609
WGPUBlendOperation
Definition webgpu.h:351
WGPUCompositeAlphaMode
Definition webgpu.h:452
WGPUPredefinedColorSpace
Definition webgpu.h:666
WGPUQueueWorkDoneStatus
Definition webgpu.h:724
WGPUVertexStepMode
Definition webgpu.h:1085
WGPUQueryType
Definition webgpu.h:718
WGPUFeatureLevel
Definition webgpu.h:528
WGPUAdapterType
Definition webgpu.h:291
WGPUStatus
Definition webgpu.h:796
WGPUCompilationInfoRequestStatus
Definition webgpu.h:433
WGPUMipmapFilterMode
Definition webgpu.h:620
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:848
WGPUFrontFace
Definition webgpu.h:579
WGPUStoreOp
Definition webgpu.h:835
WGPUErrorFilter
Definition webgpu.h:509
WGPUOptionalBool
Definition webgpu.h:630
WGPUCallbackMode
Definition webgpu.h:391
WGPUTextureSampleType
Definition webgpu.h:1001
WGPUErrorType
Definition webgpu.h:516
@ WGPUIndexFormat_Force32
Definition webgpu.h:596
@ WGPUIndexFormat_Uint16
Definition webgpu.h:594
@ WGPUIndexFormat_Undefined
Definition webgpu.h:593
@ WGPUIndexFormat_Uint32
Definition webgpu.h:595
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:744
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:739
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:745
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:743
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:746
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:555
@ WGPUFeatureName_Subgroups
Definition webgpu.h:565
@ WGPUFeatureName_Force32
Definition webgpu.h:566
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:563
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:550
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:559
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:560
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:562
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:564
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:556
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:553
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:558
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:561
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:551
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:552
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:554
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:557
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:549
@ WGPUFeatureName_Undefined
Definition webgpu.h:548
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1079
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1069
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1077
@ WGPUVertexFormat_Float32
Definition webgpu.h:1068
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1067
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1055
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1051
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1043
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1045
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1047
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1049
@ WGPUVertexFormat_Force32
Definition webgpu.h:1082
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1042
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1071
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1066
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1072
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1050
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1044
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1075
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1081
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1076
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1053
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1073
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1074
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1062
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1058
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1080
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1060
@ WGPUVertexFormat_Float16
Definition webgpu.h:1065
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1048
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1078
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1057
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1052
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1041
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1046
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1059
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1056
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1054
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1063
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1061
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1070
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1064
@ WGPUSType_Force32
Definition webgpu.h:771
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:766
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:760
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:769
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:767
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:768
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:764
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:762
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:763
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:770
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:761
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:765
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:370
@ WGPUBufferBindingType_Storage
Definition webgpu.h:376
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:374
@ WGPUBufferBindingType_Force32
Definition webgpu.h:378
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:377
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:375
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:505
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:500
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:504
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:506
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:499
@ WGPUCompareFunction_Force32
Definition webgpu.h:430
@ WGPUCompareFunction_Always
Definition webgpu.h:429
@ WGPUCompareFunction_Never
Definition webgpu.h:422
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:427
@ WGPUCompareFunction_Less
Definition webgpu.h:423
@ WGPUCompareFunction_Undefined
Definition webgpu.h:421
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:428
@ WGPUCompareFunction_Equal
Definition webgpu.h:424
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:425
@ WGPUCompareFunction_Greater
Definition webgpu.h:426
@ WGPUCullMode_Force32
Definition webgpu.h:495
@ WGPUCullMode_Undefined
Definition webgpu.h:491
@ WGPUCullMode_Back
Definition webgpu.h:494
@ WGPUCullMode_Front
Definition webgpu.h:493
@ WGPUCullMode_None
Definition webgpu.h:492
@ WGPUTextureDimension_Undefined
Definition webgpu.h:891
@ WGPUTextureDimension_2D
Definition webgpu.h:893
@ WGPUTextureDimension_Force32
Definition webgpu.h:895
@ WGPUTextureDimension_3D
Definition webgpu.h:894
@ WGPUTextureDimension_1D
Definition webgpu.h:892
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:754
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:750
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:755
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:756
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:446
@ WGPUCompilationMessageType_Info
Definition webgpu.h:445
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:444
@ WGPUCompilationMessageType_Error
Definition webgpu.h:443
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:484
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:482
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:481
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:477
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:483
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1028
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1027
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1026
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1030
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1025
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1029
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1024
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1031
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:711
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:712
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:709
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:713
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:710
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:714
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:715
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:994
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:955
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:958
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:920
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:910
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:960
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:970
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:963
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:967
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:953
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:922
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:988
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:926
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:978
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:962
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:990
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:984
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:937
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:956
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:933
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:936
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:992
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:945
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:911
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:995
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:942
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:918
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:968
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:961
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:957
@ WGPUTextureFormat_R32Float
Definition webgpu.h:914
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:959
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:908
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:906
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:921
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:951
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:923
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:969
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:934
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:993
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:928
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:987
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:974
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:915
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:965
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:972
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:950
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:925
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:952
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:954
@ WGPUTextureFormat_Force32
Definition webgpu.h:998
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:946
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:975
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:983
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:916
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:949
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:938
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:940
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:966
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:979
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:917
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:991
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:930
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:941
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:913
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:985
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:907
@ WGPUTextureFormat_Undefined
Definition webgpu.h:902
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:989
@ WGPUTextureFormat_R16Float
Definition webgpu.h:909
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:973
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:931
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:929
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:997
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:939
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:947
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:919
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:976
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:943
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:986
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:935
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:903
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:944
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:948
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:982
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:912
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:905
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:980
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:996
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:927
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:971
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:964
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:932
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:981
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:924
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:904
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:977
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1096
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1098
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1099
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1100
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1097
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:812
@ WGPUStencilOperation_Undefined
Definition webgpu.h:806
@ WGPUStencilOperation_Replace
Definition webgpu.h:809
@ WGPUStencilOperation_Keep
Definition webgpu.h:807
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:814
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:813
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:811
@ WGPUStencilOperation_Invert
Definition webgpu.h:810
@ WGPUStencilOperation_Force32
Definition webgpu.h:815
@ WGPUStencilOperation_Zero
Definition webgpu.h:808
@ WGPUAddressMode_Repeat
Definition webgpu.h:305
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:306
@ WGPUAddressMode_Undefined
Definition webgpu.h:303
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:304
@ WGPUAddressMode_Force32
Definition webgpu.h:307
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1037
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1035
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1036
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:883
@ WGPUTextureAspect_Force32
Definition webgpu.h:884
@ WGPUTextureAspect_Undefined
Definition webgpu.h:880
@ WGPUTextureAspect_All
Definition webgpu.h:881
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:882
@ WGPUBufferMapState_Pending
Definition webgpu.h:383
@ WGPUBufferMapState_Mapped
Definition webgpu.h:384
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:382
@ WGPUBufferMapState_Force32
Definition webgpu.h:385
@ WGPUFilterMode_Undefined
Definition webgpu.h:573
@ WGPUFilterMode_Force32
Definition webgpu.h:576
@ WGPUFilterMode_Nearest
Definition webgpu.h:574
@ WGPUFilterMode_Linear
Definition webgpu.h:575
@ WGPUBackendType_Vulkan
Definition webgpu.h:320
@ WGPUBackendType_OpenGL
Definition webgpu.h:321
@ WGPUBackendType_Force32
Definition webgpu.h:323
@ WGPUBackendType_OpenGLES
Definition webgpu.h:322
@ WGPUBackendType_WebGPU
Definition webgpu.h:316
@ WGPUBackendType_D3D11
Definition webgpu.h:317
@ WGPUBackendType_D3D12
Definition webgpu.h:318
@ WGPUBackendType_Undefined
Definition webgpu.h:314
@ WGPUBackendType_Null
Definition webgpu.h:315
@ WGPUBackendType_Metal
Definition webgpu.h:319
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:339
@ WGPUBlendFactor_One
Definition webgpu.h:332
@ WGPUBlendFactor_Zero
Definition webgpu.h:331
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:346
@ WGPUBlendFactor_Undefined
Definition webgpu.h:330
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:338
@ WGPUBlendFactor_Force32
Definition webgpu.h:348
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:345
@ WGPUBlendFactor_Constant
Definition webgpu.h:342
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:334
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:341
@ WGPUBlendFactor_Src
Definition webgpu.h:333
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:336
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:335
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:343
@ WGPUBlendFactor_Src1
Definition webgpu.h:344
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:340
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:347
@ WGPUBlendFactor_Dst
Definition webgpu.h:337
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:780
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:786
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:788
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:785
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:784
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:787
@ WGPULoadOp_Load
Definition webgpu.h:604
@ WGPULoadOp_Force32
Definition webgpu.h:606
@ WGPULoadOp_Undefined
Definition webgpu.h:603
@ WGPULoadOp_Clear
Definition webgpu.h:605
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:653
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:644
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:648
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:652
@ WGPUWaitStatus_Error
Definition webgpu.h:1119
@ WGPUWaitStatus_Force32
Definition webgpu.h:1120
@ WGPUWaitStatus_Success
Definition webgpu.h:1110
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1114
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:828
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:824
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:830
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:829
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:832
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:831
@ WGPUPowerPreference_Force32
Definition webgpu.h:663
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:662
@ WGPUPowerPreference_LowPower
Definition webgpu.h:661
@ WGPUPowerPreference_Undefined
Definition webgpu.h:660
@ WGPUPresentMode_Fifo
Definition webgpu.h:685
@ WGPUPresentMode_Force32
Definition webgpu.h:702
@ WGPUPresentMode_Immediate
Definition webgpu.h:696
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:691
@ WGPUPresentMode_Mailbox
Definition webgpu.h:701
@ WGPUPresentMode_Undefined
Definition webgpu.h:679
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:616
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:614
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:615
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:617
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:610
@ WGPUBlendOperation_Undefined
Definition webgpu.h:355
@ WGPUBlendOperation_Max
Definition webgpu.h:360
@ WGPUBlendOperation_Subtract
Definition webgpu.h:357
@ WGPUBlendOperation_Min
Definition webgpu.h:359
@ WGPUBlendOperation_Add
Definition webgpu.h:356
@ WGPUBlendOperation_Force32
Definition webgpu.h:361
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:358
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:456
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:473
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:460
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:468
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:472
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:464
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:668
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:667
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:669
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:734
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:729
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:725
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:735
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1089
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1091
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1090
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1092
@ WGPUQueryType_Occlusion
Definition webgpu.h:719
@ WGPUQueryType_Timestamp
Definition webgpu.h:720
@ WGPUQueryType_Force32
Definition webgpu.h:721
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:532
@ WGPUFeatureLevel_Core
Definition webgpu.h:540
@ WGPUFeatureLevel_Force32
Definition webgpu.h:541
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:536
@ WGPUAdapterType_CPU
Definition webgpu.h:294
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:292
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:293
@ WGPUAdapterType_Unknown
Definition webgpu.h:295
@ WGPUAdapterType_Force32
Definition webgpu.h:296
@ WGPUStatus_Force32
Definition webgpu.h:799
@ WGPUStatus_Success
Definition webgpu.h:797
@ WGPUStatus_Error
Definition webgpu.h:798
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:439
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:434
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:438
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:624
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:626
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:627
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:625
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:868
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:872
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:864
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:860
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:852
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:873
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:856
@ WGPUFrontFace_CW
Definition webgpu.h:585
@ WGPUFrontFace_Undefined
Definition webgpu.h:583
@ WGPUFrontFace_CCW
Definition webgpu.h:584
@ WGPUFrontFace_Force32
Definition webgpu.h:586
@ WGPUStoreOp_Discard
Definition webgpu.h:841
@ WGPUStoreOp_Force32
Definition webgpu.h:842
@ WGPUStoreOp_Store
Definition webgpu.h:840
@ WGPUStoreOp_Undefined
Definition webgpu.h:839
@ WGPUErrorFilter_Internal
Definition webgpu.h:512
@ WGPUErrorFilter_Force32
Definition webgpu.h:513
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:511
@ WGPUErrorFilter_Validation
Definition webgpu.h:510
@ WGPUOptionalBool_True
Definition webgpu.h:635
@ WGPUOptionalBool_Force32
Definition webgpu.h:637
@ WGPUOptionalBool_Undefined
Definition webgpu.h:636
@ WGPUOptionalBool_False
Definition webgpu.h:634
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:403
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:413
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:397
@ WGPUCallbackMode_Force32
Definition webgpu.h:414
@ WGPUTextureSampleType_Float
Definition webgpu.h:1012
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1015
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1007
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1011
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1017
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1016
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1014
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1013
@ WGPUErrorType_NoError
Definition webgpu.h:517
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:519
@ WGPUErrorType_Unknown
Definition webgpu.h:521
@ WGPUErrorType_Validation
Definition webgpu.h:518
@ WGPUErrorType_Force32
Definition webgpu.h:522
@ WGPUErrorType_Internal
Definition webgpu.h:520
WGPUStatus wgpuGetInstanceCapabilities(WGPUInstanceCapabilities *capabilities)
WGPUInstance wgpuCreateInstance(WGPUInstanceDescriptor const *descriptor)
WGPUProc wgpuGetProcAddress(WGPUStringView procName)
struct WGPUPipelineLayoutImpl * WGPUPipelineLayout
Definition webgpu.h:179
struct WGPUSamplerImpl * WGPUSampler
Definition webgpu.h:186
struct WGPUQueueImpl * WGPUQueue
Definition webgpu.h:181
struct WGPUSurfaceImpl * WGPUSurface
Definition webgpu.h:191
struct WGPURenderBundleImpl * WGPURenderBundle
Definition webgpu.h:182
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
Definition webgpu.h:175
struct WGPUBindGroupImpl * WGPUBindGroup
Definition webgpu.h:170
struct WGPUInstanceImpl * WGPUInstance
Definition webgpu.h:178
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
Definition webgpu.h:171
struct WGPUTextureViewImpl * WGPUTextureView
Definition webgpu.h:193
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
Definition webgpu.h:184
struct WGPUShaderModuleImpl * WGPUShaderModule
Definition webgpu.h:187
struct WGPUQuerySetImpl * WGPUQuerySet
Definition webgpu.h:180
struct WGPUCommandBufferImpl * WGPUCommandBuffer
Definition webgpu.h:173
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
Definition webgpu.h:183
struct WGPUDeviceImpl * WGPUDevice
Definition webgpu.h:177
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
Definition webgpu.h:174
struct WGPUTextureImpl * WGPUTexture
Definition webgpu.h:192
struct WGPUComputePipelineImpl * WGPUComputePipeline
Definition webgpu.h:176
struct WGPURenderPipelineImpl * WGPURenderPipeline
Definition webgpu.h:185
struct WGPUAdapterImpl * WGPUAdapter
Definition webgpu.h:169
struct WGPUBufferImpl * WGPUBuffer
Definition webgpu.h:172
struct WGPUFuture WGPUFuture
uint32_t WGPUBool
Definition webgpu.h:118
uint64_t WGPUFlags
Definition webgpu.h:117
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:1596
WGPUBackendType backendType
Definition webgpu.h:1606
uint32_t deviceID
Definition webgpu.h:1618
WGPUChainedStruct * nextInChain
Definition webgpu.h:1578
uint32_t subgroupMinSize
Definition webgpu.h:1622
uint32_t vendorID
Definition webgpu.h:1614
WGPUStringView description
Definition webgpu.h:1602
WGPUAdapterType adapterType
Definition webgpu.h:1610
uint32_t subgroupMaxSize
Definition webgpu.h:1626
WGPUStringView architecture
Definition webgpu.h:1590
WGPUStringView vendor
Definition webgpu.h:1584
WGPUChainedStruct * nextInChain
Definition webgpu.h:3580
WGPUStringView label
Definition webgpu.h:3586
WGPUBindGroupLayout layout
Definition webgpu.h:3590
WGPUBindGroupEntry const * entries
Definition webgpu.h:3598
uint64_t offset
Definition webgpu.h:1670
WGPUBuffer buffer
Definition webgpu.h:1663
WGPUSampler sampler
Definition webgpu.h:1685
WGPUTextureView textureView
Definition webgpu.h:1692
WGPUChainedStruct * nextInChain
Definition webgpu.h:1650
uint32_t binding
Definition webgpu.h:1656
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4177
WGPUChainedStruct * nextInChain
Definition webgpu.h:4163
WGPUTextureBindingLayout texture
Definition webgpu.h:3636
WGPUShaderStage visibility
Definition webgpu.h:3624
WGPUBufferBindingLayout buffer
Definition webgpu.h:3628
WGPUChainedStruct * nextInChain
Definition webgpu.h:3616
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3640
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3632
WGPUBlendFactor dstFactor
Definition webgpu.h:1732
WGPUBlendFactor srcFactor
Definition webgpu.h:1725
WGPUBlendOperation operation
Definition webgpu.h:1718
WGPUBlendComponent alpha
Definition webgpu.h:3667
WGPUBlendComponent color
Definition webgpu.h:3663
WGPUBufferBindingType type
Definition webgpu.h:1755
WGPUBool hasDynamicOffset
Definition webgpu.h:1759
WGPUChainedStruct * nextInChain
Definition webgpu.h:1748
WGPUBool mappedAtCreation
Definition webgpu.h:1798
WGPUStringView label
Definition webgpu.h:1786
WGPUBufferUsage usage
Definition webgpu.h:1790
WGPUChainedStruct * nextInChain
Definition webgpu.h:1780
WGPUChainedStruct * nextInChain
Definition webgpu.h:1340
WGPUBufferMapCallback callback
Definition webgpu.h:1347
WGPUCallbackMode mode
Definition webgpu.h:1346
struct WGPUChainedStruct * next
Definition webgpu.h:1319
WGPUSType sType
Definition webgpu.h:1320
WGPUBlendState const * blend
Definition webgpu.h:4206
WGPUColorWriteMask writeMask
Definition webgpu.h:4210
WGPUChainedStruct * nextInChain
Definition webgpu.h:4194
WGPUTextureFormat format
Definition webgpu.h:4202
double a
Definition webgpu.h:1835
double b
Definition webgpu.h:1831
double r
Definition webgpu.h:1823
double g
Definition webgpu.h:1827
WGPUChainedStruct * nextInChain
Definition webgpu.h:1852
WGPUChainedStruct * nextInChain
Definition webgpu.h:1873
WGPUCompilationInfoCallback callback
Definition webgpu.h:1371
WGPUChainedStruct * nextInChain
Definition webgpu.h:1364
WGPUChainedStruct * nextInChain
Definition webgpu.h:3685
WGPUCompilationMessage const * messages
Definition webgpu.h:3693
WGPUChainedStruct * nextInChain
Definition webgpu.h:1897
WGPUCompilationMessageType type
Definition webgpu.h:1911
WGPUStringView message
Definition webgpu.h:1905
WGPUStringView label
Definition webgpu.h:3715
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3719
WGPUChainedStruct * nextInChain
Definition webgpu.h:3709
WGPUComputeState compute
Definition webgpu.h:4241
WGPUChainedStruct * nextInChain
Definition webgpu.h:4227
WGPUPipelineLayout layout
Definition webgpu.h:4237
WGPUChainedStruct * nextInChain
Definition webgpu.h:3735
WGPUConstantEntry const * constants
Definition webgpu.h:3753
size_t constantCount
Definition webgpu.h:3749
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3745
WGPUStringView key
Definition webgpu.h:1961
WGPUChainedStruct * nextInChain
Definition webgpu.h:1955
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1395
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1419
WGPUStencilFaceState stencilFront
Definition webgpu.h:3787
uint32_t stencilWriteMask
Definition webgpu.h:3799
WGPUStencilFaceState stencilBack
Definition webgpu.h:3791
WGPUChainedStruct * nextInChain
Definition webgpu.h:3771
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3779
WGPUCompareFunction depthCompare
Definition webgpu.h:3783
uint32_t stencilReadMask
Definition webgpu.h:3795
WGPUTextureFormat format
Definition webgpu.h:3775
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:3869
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:3878
size_t requiredFeatureCount
Definition webgpu.h:3853
WGPUStringView label
Definition webgpu.h:3849
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:3857
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:3865
WGPUChainedStruct * nextInChain
Definition webgpu.h:3843
WGPULimits const * requiredLimits
Definition webgpu.h:3861
WGPUChainedStruct * nextInChain
Definition webgpu.h:1436
WGPUDeviceLostCallback callback
Definition webgpu.h:1443
WGPUCallbackMode mode
Definition webgpu.h:1442
uint32_t width
Definition webgpu.h:1988
uint32_t depthOrArrayLayers
Definition webgpu.h:1996
uint32_t height
Definition webgpu.h:1992
size_t constantCount
Definition webgpu.h:4364
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4360
WGPUChainedStruct * nextInChain
Definition webgpu.h:4350
size_t targetCount
Definition webgpu.h:4372
WGPUConstantEntry const * constants
Definition webgpu.h:4368
WGPUColorTargetState const * targets
Definition webgpu.h:4376
WGPUFuture future
Definition webgpu.h:3906
WGPUBool completed
Definition webgpu.h:3912
uint64_t id
Definition webgpu.h:2019
WGPUChainedStruct * nextInChain
Definition webgpu.h:2035
WGPUBool timedWaitAnyEnable
Definition webgpu.h:2041
WGPUInstanceCapabilities capabilities
Definition webgpu.h:3933
WGPUChainedStruct * nextInChain
Definition webgpu.h:3927
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2087
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2163
uint32_t maxTextureDimension2D
Definition webgpu.h:2071
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2103
uint32_t maxTextureDimension3D
Definition webgpu.h:2075
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2107
WGPUChainedStruct * nextInChain
Definition webgpu.h:2063
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2091
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2187
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2099
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2167
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2135
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2179
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2127
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2171
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2151
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2131
uint32_t maxVertexAttributes
Definition webgpu.h:2147
uint32_t maxColorAttachments
Definition webgpu.h:2159
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2155
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2183
uint32_t maxTextureDimension1D
Definition webgpu.h:2067
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2095
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2123
uint64_t maxBufferSize
Definition webgpu.h:2143
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2119
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2175
uint32_t maxVertexBuffers
Definition webgpu.h:2139
uint32_t maxTextureArrayLayers
Definition webgpu.h:2079
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2115
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2111
uint32_t maxBindGroups
Definition webgpu.h:2083
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2244
WGPUChainedStruct * nextInChain
Definition webgpu.h:2232
uint32_t y
Definition webgpu.h:2268
uint32_t z
Definition webgpu.h:2272
uint32_t x
Definition webgpu.h:2264
WGPUQuerySet querySet
Definition webgpu.h:2294
uint32_t endOfPassWriteIndex
Definition webgpu.h:2302
WGPUChainedStruct * nextInChain
Definition webgpu.h:2288
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2298
WGPUChainedStruct * nextInChain
Definition webgpu.h:2319
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2333
WGPUChainedStruct * nextInChain
Definition webgpu.h:1460
WGPUCallbackMode mode
Definition webgpu.h:1466
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1467
WGPUFrontFace frontFace
Definition webgpu.h:2368
WGPUChainedStruct * nextInChain
Definition webgpu.h:2350
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2361
WGPUPrimitiveTopology topology
Definition webgpu.h:2357
WGPUCullMode cullMode
Definition webgpu.h:2375
WGPUBool unclippedDepth
Definition webgpu.h:2379
WGPUQueryType type
Definition webgpu.h:2408
WGPUChainedStruct * nextInChain
Definition webgpu.h:2398
WGPUStringView label
Definition webgpu.h:2404
WGPUChainedStruct * nextInChain
Definition webgpu.h:2429
WGPUStringView label
Definition webgpu.h:2435
WGPUCallbackMode mode
Definition webgpu.h:1490
WGPUChainedStruct * nextInChain
Definition webgpu.h:1484
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1491
WGPUChainedStruct * nextInChain
Definition webgpu.h:2450
WGPUStringView label
Definition webgpu.h:2456
WGPUChainedStruct * nextInChain
Definition webgpu.h:2471
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2485
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2489
WGPUTextureView resolveTarget
Definition webgpu.h:3963
WGPUChainedStruct * nextInChain
Definition webgpu.h:3948
WGPUChainedStruct * nextInChain
Definition webgpu.h:2522
WGPUChainedStruct * nextInChain
Definition webgpu.h:4258
WGPUStringView label
Definition webgpu.h:4264
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4276
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4272
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4280
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4284
WGPUChainedStruct chain
Definition webgpu.h:2588
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4418
WGPUChainedStruct * nextInChain
Definition webgpu.h:4396
WGPUMultisampleState multisample
Definition webgpu.h:4422
WGPUFragmentState const * fragment
Definition webgpu.h:4426
WGPUPrimitiveState primitive
Definition webgpu.h:4414
WGPUPipelineLayout layout
Definition webgpu.h:4406
WGPUVertexState vertex
Definition webgpu.h:4410
WGPURequestAdapterCallback callback
Definition webgpu.h:1515
WGPUChainedStruct * nextInChain
Definition webgpu.h:1508
WGPUFeatureLevel featureLevel
Definition webgpu.h:2621
WGPUBool forceFallbackAdapter
Definition webgpu.h:2632
WGPUSurface compatibleSurface
Definition webgpu.h:2646
WGPUBackendType backendType
Definition webgpu.h:2639
WGPUChainedStruct * nextInChain
Definition webgpu.h:2610
WGPUPowerPreference powerPreference
Definition webgpu.h:2625
WGPUChainedStruct chain
Definition webgpu.h:2667
WGPUCallbackMode mode
Definition webgpu.h:1538
WGPUChainedStruct * nextInChain
Definition webgpu.h:1532
WGPURequestDeviceCallback callback
Definition webgpu.h:1539
WGPUChainedStruct * nextInChain
Definition webgpu.h:2691
WGPUSamplerBindingType type
Definition webgpu.h:2698
WGPUFilterMode minFilter
Definition webgpu.h:2754
WGPUAddressMode addressModeU
Definition webgpu.h:2726
WGPUCompareFunction compare
Definition webgpu.h:2781
WGPUAddressMode addressModeW
Definition webgpu.h:2740
uint16_t maxAnisotropy
Definition webgpu.h:2785
WGPUAddressMode addressModeV
Definition webgpu.h:2733
WGPUStringView label
Definition webgpu.h:2719
WGPUFilterMode magFilter
Definition webgpu.h:2747
WGPUChainedStruct * nextInChain
Definition webgpu.h:2713
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2761
WGPUChainedStruct * nextInChain
Definition webgpu.h:2810
WGPUStringView label
Definition webgpu.h:2816
WGPUChainedStruct chain
Definition webgpu.h:2831
uint32_t const * code
Definition webgpu.h:2839
WGPUChainedStruct chain
Definition webgpu.h:2858
WGPUStringView code
Definition webgpu.h:2864
WGPUCompareFunction compare
Definition webgpu.h:2888
WGPUStencilOperation depthFailOp
Definition webgpu.h:2902
WGPUStencilOperation passOp
Definition webgpu.h:2909
WGPUStencilOperation failOp
Definition webgpu.h:2895
WGPUChainedStruct * nextInChain
Definition webgpu.h:2926
WGPUTextureViewDimension viewDimension
Definition webgpu.h:2944
WGPUTextureFormat format
Definition webgpu.h:2937
WGPUStorageTextureAccess access
Definition webgpu.h:2933
size_t length
Definition webgpu.h:143
char const * data
Definition webgpu.h:142
WGPUFeatureName const * features
Definition webgpu.h:2968
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:2990
WGPUTextureFormat const * formats
Definition webgpu.h:3024
WGPUChainedStruct * nextInChain
Definition webgpu.h:3007
WGPUPresentMode const * presentModes
Definition webgpu.h:3035
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3046
WGPUTextureUsage usages
Definition webgpu.h:3014
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3077
WGPUChainedStruct chain
Definition webgpu.h:3069
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3073
WGPUTextureUsage usage
Definition webgpu.h:3117
WGPUTextureFormat format
Definition webgpu.h:3111
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3139
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3149
WGPUChainedStruct * nextInChain
Definition webgpu.h:3099
WGPUPresentMode presentMode
Definition webgpu.h:3158
WGPUChainedStruct * nextInChain
Definition webgpu.h:3185
WGPUStringView label
Definition webgpu.h:3193
WGPUChainedStruct chain
Definition webgpu.h:3236
WGPUChainedStruct chain
Definition webgpu.h:3262
WGPUChainedStruct chain
Definition webgpu.h:3295
WGPUChainedStruct chain
Definition webgpu.h:3329
WGPUChainedStruct chain
Definition webgpu.h:3362
WGPUChainedStruct * nextInChain
Definition webgpu.h:3396
WGPUTexture texture
Definition webgpu.h:3403
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3409
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:3998
WGPUOrigin3D origin
Definition webgpu.h:4028
WGPUTextureAspect aspect
Definition webgpu.h:4035
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3466
WGPUTextureSampleType sampleType
Definition webgpu.h:3459
WGPUChainedStruct * nextInChain
Definition webgpu.h:3452
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4093
WGPUTextureDimension dimension
Definition webgpu.h:4069
WGPUStringView label
Definition webgpu.h:4058
uint32_t mipLevelCount
Definition webgpu.h:4081
WGPUChainedStruct * nextInChain
Definition webgpu.h:4052
WGPUTextureFormat format
Definition webgpu.h:4077
WGPUTextureUsage usage
Definition webgpu.h:4062
WGPUExtent3D size
Definition webgpu.h:4073
WGPUChainedStruct * nextInChain
Definition webgpu.h:3487
WGPUTextureUsage usage
Definition webgpu.h:3528
WGPUTextureFormat format
Definition webgpu.h:3497
WGPUTextureViewDimension dimension
Definition webgpu.h:3501
WGPUStringView label
Definition webgpu.h:3493
WGPUTextureAspect aspect
Definition webgpu.h:3524
WGPUChainedStruct * nextInChain
Definition webgpu.h:1556
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1557
WGPUVertexFormat format
Definition webgpu.h:3555
WGPUChainedStruct * nextInChain
Definition webgpu.h:3551
uint32_t shaderLocation
Definition webgpu.h:3563
WGPUVertexAttribute const * attributes
Definition webgpu.h:4145
WGPUVertexStepMode stepMode
Definition webgpu.h:4133
WGPUChainedStruct * nextInChain
Definition webgpu.h:4129
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4314
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4330
WGPUConstantEntry const * constants
Definition webgpu.h:4322
size_t constantCount
Definition webgpu.h:4318
size_t bufferCount
Definition webgpu.h:4326
WGPUChainedStruct * nextInChain
Definition webgpu.h:4304