WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
webgpu.h
1
24#ifndef WEBGPU_H_
25#define WEBGPU_H_
26
27#if defined(WGPU_SHARED_LIBRARY)
28# if defined(_WIN32)
29# if defined(WGPU_IMPLEMENTATION)
30# define WGPU_EXPORT __declspec(dllexport)
31# else
32# define WGPU_EXPORT __declspec(dllimport)
33# endif
34# else // defined(_WIN32)
35# if defined(WGPU_IMPLEMENTATION)
36# define WGPU_EXPORT __attribute__((visibility("default")))
37# else
38# define WGPU_EXPORT
39# endif
40# endif // defined(_WIN32)
41#else // defined(WGPU_SHARED_LIBRARY)
42# define WGPU_EXPORT
43#endif // defined(WGPU_SHARED_LIBRARY)
44
45#if !defined(WGPU_OBJECT_ATTRIBUTE)
46#define WGPU_OBJECT_ATTRIBUTE
47#endif
48#if !defined(WGPU_ENUM_ATTRIBUTE)
49#define WGPU_ENUM_ATTRIBUTE
50#endif
51#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
52#define WGPU_STRUCTURE_ATTRIBUTE
53#endif
54#if !defined(WGPU_FUNCTION_ATTRIBUTE)
55#define WGPU_FUNCTION_ATTRIBUTE
56#endif
57#if !defined(WGPU_NULLABLE)
58#define WGPU_NULLABLE
59#endif
60
61#include <stdint.h>
62#include <stddef.h>
63#include <math.h>
64
65#define _wgpu_COMMA ,
66#if defined(__cplusplus)
67# define _wgpu_ENUM_ZERO_INIT(type) type(0)
68# if __cplusplus >= 201103L
69# define _wgpu_MAKE_INIT_STRUCT(type, value) (type value)
70# else
71# define _wgpu_MAKE_INIT_STRUCT(type, value) value
72# endif
73#else
74# define _wgpu_ENUM_ZERO_INIT(type) (type)0
75# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
76# define _wgpu_MAKE_INIT_STRUCT(type, value) ((type) value)
77# else
78# define _wgpu_MAKE_INIT_STRUCT(type, value) value
79# endif
80#endif
81
82
89#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
90#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
95#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
96#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
97#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
98#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
99#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
100#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
101#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
102#define WGPU_WHOLE_SIZE (UINT64_MAX)
103
104
112typedef uint64_t WGPUFlags;
113typedef uint32_t WGPUBool;
114
136typedef struct WGPUStringView {
137 char const * WGPU_NULLABLE data;
138 size_t length;
140
145#define WGPU_STRLEN SIZE_MAX
146
150#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
151 /*.data=*/NULL _wgpu_COMMA \
152 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
153})
154
155
164typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
165typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
166typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
167typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
168typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
169typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
170typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
171typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
172typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
173typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
174typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
175typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
176typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
177typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
178typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
179typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
180typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
181typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
182typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
186typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
187typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
188typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
189
190
192// Structure forward declarations
193struct WGPUAdapterInfo;
194struct WGPUBindGroupEntry;
195struct WGPUBlendComponent;
198struct WGPUColor;
202struct WGPUConstantEntry;
203struct WGPUExtent3D;
204struct WGPUFuture;
206struct WGPULimits;
208struct WGPUOrigin3D;
211struct WGPUPrimitiveState;
237struct WGPUSurfaceTexture;
244struct WGPUBlendState;
247struct WGPUComputeState;
250struct WGPUFutureWaitInfo;
261struct WGPUVertexState;
262struct WGPUFragmentState;
264
265// Callback info structure forward declarations
276
277
284typedef enum WGPUAdapterType {
289 WGPUAdapterType_Force32 = 0x7FFFFFFF
290} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
291
303
320
346
360
379
386
418
435
442
449
481
489
490typedef enum WGPUCullMode {
496 WGPUCullMode_None = 0x00000001,
497 WGPUCullMode_Front = 0x00000002,
498 WGPUCullMode_Back = 0x00000003,
499 WGPUCullMode_Force32 = 0x7FFFFFFF
500} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
501
509
510typedef enum WGPUErrorFilter {
514 WGPUErrorFilter_Force32 = 0x7FFFFFFF
515} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
516
517typedef enum WGPUErrorType {
523 WGPUErrorType_Force32 = 0x7FFFFFFF
524} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
525
529typedef enum WGPUFeatureLevel {
545 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
546} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
547
568
569typedef enum WGPUFilterMode {
577 WGPUFilterMode_Force32 = 0x7FFFFFFF
578} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
579
580typedef enum WGPUFrontFace {
586 WGPUFrontFace_CCW = 0x00000001,
587 WGPUFrontFace_CW = 0x00000002,
588 WGPUFrontFace_Force32 = 0x7FFFFFFF
589} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
590
591typedef enum WGPUIndexFormat {
599 WGPUIndexFormat_Force32 = 0x7FFFFFFF
600} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
601
602typedef enum WGPULoadOp {
608 WGPULoadOp_Load = 0x00000001,
609 WGPULoadOp_Clear = 0x00000002,
610 WGPULoadOp_Force32 = 0x7FFFFFFF
611} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
612
620
631
632typedef enum WGPUOptionalBool {
636 WGPUOptionalBool_Force32 = 0x7FFFFFFF
637} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
638
653
664
702
716
717typedef enum WGPUQueryType {
720 WGPUQueryType_Force32 = 0x7FFFFFFF
721} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
722
729
737
744
757
776
782typedef enum WGPUStatus {
783 WGPUStatus_Success = 0x00000001,
784 WGPUStatus_Error = 0x00000002,
785 WGPUStatus_Force32 = 0x7FFFFFFF
786} WGPUStatus WGPU_ENUM_ATTRIBUTE;
787
804
823
824typedef enum WGPUStoreOp {
830 WGPUStoreOp_Store = 0x00000001,
832 WGPUStoreOp_Force32 = 0x7FFFFFFF
833} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
834
876
888
900
901typedef enum WGPUTextureFormat {
1002 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1003} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1004
1025
1040
1041typedef enum WGPUVertexFormat {
1083 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1084} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1085
1096
1104
1136
1137
1147static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1148static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1149static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1150static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1151static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1152static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1153static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1154static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1155static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1156static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1157static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1158
1160static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1161static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1162static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1163static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1164static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1165static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F /* Red | Green | Blue | Alpha */;
1166
1168static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1169static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1170static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1171
1173static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1174static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1175static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1176static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1177
1179static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1180static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1181static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1182static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1183static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1184static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1185
1186
1188typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1189
1190
1203typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1210typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1217typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1224typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1235typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1253typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1257typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1267typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1277typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1287typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1288
1297typedef struct WGPUChainedStruct {
1298 struct WGPUChainedStruct const * next;
1300} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1301
1306
1330
1334#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1335 /*.nextInChain=*/NULL _wgpu_COMMA \
1336 /*.mode=*/WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1337 /*.callback=*/NULL _wgpu_COMMA \
1338 /*.userdata1=*/NULL _wgpu_COMMA \
1339 /*.userdata2=*/NULL _wgpu_COMMA \
1340})
1341
1349
1353#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1354 /*.nextInChain=*/NULL _wgpu_COMMA \
1355 /*.mode=*/WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1356 /*.callback=*/NULL _wgpu_COMMA \
1357 /*.userdata1=*/NULL _wgpu_COMMA \
1358 /*.userdata2=*/NULL _wgpu_COMMA \
1359})
1360
1368
1372#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1373 /*.nextInChain=*/NULL _wgpu_COMMA \
1374 /*.mode=*/WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1375 /*.callback=*/NULL _wgpu_COMMA \
1376 /*.userdata1=*/NULL _wgpu_COMMA \
1377 /*.userdata2=*/NULL _wgpu_COMMA \
1378})
1379
1387
1391#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1392 /*.nextInChain=*/NULL _wgpu_COMMA \
1393 /*.mode=*/WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1394 /*.callback=*/NULL _wgpu_COMMA \
1395 /*.userdata1=*/NULL _wgpu_COMMA \
1396 /*.userdata2=*/NULL _wgpu_COMMA \
1397})
1398
1406
1410#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1411 /*.nextInChain=*/NULL _wgpu_COMMA \
1412 /*.mode=*/WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1413 /*.callback=*/NULL _wgpu_COMMA \
1414 /*.userdata1=*/NULL _wgpu_COMMA \
1415 /*.userdata2=*/NULL _wgpu_COMMA \
1416})
1417
1425
1429#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1430 /*.nextInChain=*/NULL _wgpu_COMMA \
1431 /*.mode=*/WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1432 /*.callback=*/NULL _wgpu_COMMA \
1433 /*.userdata1=*/NULL _wgpu_COMMA \
1434 /*.userdata2=*/NULL _wgpu_COMMA \
1435})
1436
1444
1448#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1449 /*.nextInChain=*/NULL _wgpu_COMMA \
1450 /*.mode=*/WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1451 /*.callback=*/NULL _wgpu_COMMA \
1452 /*.userdata1=*/NULL _wgpu_COMMA \
1453 /*.userdata2=*/NULL _wgpu_COMMA \
1454})
1455
1463
1467#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1468 /*.nextInChain=*/NULL _wgpu_COMMA \
1469 /*.mode=*/WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1470 /*.callback=*/NULL _wgpu_COMMA \
1471 /*.userdata1=*/NULL _wgpu_COMMA \
1472 /*.userdata2=*/NULL _wgpu_COMMA \
1473})
1474
1482
1486#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1487 /*.nextInChain=*/NULL _wgpu_COMMA \
1488 /*.mode=*/WGPUCallbackMode_WaitAnyOnly _wgpu_COMMA \
1489 /*.callback=*/NULL _wgpu_COMMA \
1490 /*.userdata1=*/NULL _wgpu_COMMA \
1491 /*.userdata2=*/NULL _wgpu_COMMA \
1492})
1493
1500
1504#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1505 /*.nextInChain=*/NULL _wgpu_COMMA \
1506 /*.callback=*/NULL _wgpu_COMMA \
1507 /*.userdata1=*/NULL _wgpu_COMMA \
1508 /*.userdata2=*/NULL _wgpu_COMMA \
1509})
1510
1559
1563#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1564 /*.nextInChain=*/NULL _wgpu_COMMA \
1565 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1566 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1567 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1568 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1569 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1570 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1571 /*.vendorID=*/0 _wgpu_COMMA \
1572 /*.deviceID=*/0 _wgpu_COMMA \
1573})
1574
1578typedef struct WGPUBindGroupEntry {
1585 uint32_t binding;
1592 WGPU_NULLABLE WGPUBuffer buffer;
1599 uint64_t offset;
1607 uint64_t size;
1614 WGPU_NULLABLE WGPUSampler sampler;
1622} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1623
1627#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1628 /*.nextInChain=*/NULL _wgpu_COMMA \
1629 /*.binding=*/0 _wgpu_COMMA \
1630 /*.buffer=*/NULL _wgpu_COMMA \
1631 /*.offset=*/0 _wgpu_COMMA \
1632 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1633 /*.sampler=*/NULL _wgpu_COMMA \
1634 /*.textureView=*/NULL _wgpu_COMMA \
1635})
1636
1663
1667#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1668 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1669 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1670 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1671})
1672
1694
1698#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1699 /*.nextInChain=*/NULL _wgpu_COMMA \
1700 /*.type=*/WGPUBufferBindingType_BindingNotUsed _wgpu_COMMA \
1701 /*.hasDynamicOffset=*/0 _wgpu_COMMA \
1702 /*.minBindingSize=*/0 _wgpu_COMMA \
1703})
1704
1729
1733#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1734 /*.nextInChain=*/NULL _wgpu_COMMA \
1735 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1736 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1737 /*.size=*/0 _wgpu_COMMA \
1738 /*.mappedAtCreation=*/0 _wgpu_COMMA \
1739})
1740
1744typedef struct WGPUColor {
1748 double r;
1752 double g;
1756 double b;
1760 double a;
1761} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1762
1766#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1767 /*.r=*/0. _wgpu_COMMA \
1768 /*.g=*/0. _wgpu_COMMA \
1769 /*.b=*/0. _wgpu_COMMA \
1770 /*.a=*/0. _wgpu_COMMA \
1771})
1772
1785
1789#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1790 /*.nextInChain=*/NULL _wgpu_COMMA \
1791 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1792})
1793
1806
1810#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
1811 /*.nextInChain=*/NULL _wgpu_COMMA \
1812 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1813})
1814
1859
1863#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
1864 /*.nextInChain=*/NULL _wgpu_COMMA \
1865 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1866 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
1867 /*.lineNum=*/0 _wgpu_COMMA \
1868 /*.linePos=*/0 _wgpu_COMMA \
1869 /*.offset=*/0 _wgpu_COMMA \
1870 /*.length=*/0 _wgpu_COMMA \
1871})
1872
1889
1893#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
1894 /*.nextInChain=*/NULL _wgpu_COMMA \
1895 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1896 /*.value=*/0. _wgpu_COMMA \
1897})
1898
1902typedef struct WGPUExtent3D {
1906 uint32_t width;
1910 uint32_t height;
1915} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
1916
1920#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
1921 /*.width=*/0 _wgpu_COMMA \
1922 /*.height=*/1 _wgpu_COMMA \
1923 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
1924})
1925
1931typedef struct WGPUFuture {
1937 uint64_t id;
1938} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
1939
1943#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
1944 /*.id=*/0 _wgpu_COMMA \
1945})
1946
1968
1972#define WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceCapabilities, { \
1973 /*.nextInChain=*/NULL _wgpu_COMMA \
1974 /*.timedWaitAnyEnable=*/0 _wgpu_COMMA \
1975 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
1976})
1977
2109
2113#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2114 /*.nextInChain=*/NULL _wgpu_COMMA \
2115 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2116 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2117 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2118 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2119 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2120 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2121 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2122 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2123 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2124 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2125 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2126 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2127 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2128 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2129 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2130 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2131 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2132 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2133 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2134 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2135 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2136 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2137 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2138 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2139 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2140 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2141 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2142 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2143 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2144 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2145 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2146})
2147
2166
2170#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2171 /*.nextInChain=*/NULL _wgpu_COMMA \
2172 /*.count=*/1 _wgpu_COMMA \
2173 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2174 /*.alphaToCoverageEnabled=*/0 _wgpu_COMMA \
2175})
2176
2180typedef struct WGPUOrigin3D {
2184 uint32_t x;
2188 uint32_t y;
2192 uint32_t z;
2193} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2194
2198#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2199 /*.x=*/0 _wgpu_COMMA \
2200 /*.y=*/0 _wgpu_COMMA \
2201 /*.z=*/0 _wgpu_COMMA \
2202})
2203
2224
2228#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2229 /*.nextInChain=*/NULL _wgpu_COMMA \
2230 /*.querySet=*/NULL _wgpu_COMMA \
2231 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2232 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2233})
2234
2255
2259#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2260 /*.nextInChain=*/NULL _wgpu_COMMA \
2261 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2262 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2263 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2264})
2265
2301
2305#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2306 /*.nextInChain=*/NULL _wgpu_COMMA \
2307 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2308 /*.stripIndexFormat=*/_wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
2309 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2310 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2311 /*.unclippedDepth=*/0 _wgpu_COMMA \
2312})
2313
2334
2338#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2339 /*.nextInChain=*/NULL _wgpu_COMMA \
2340 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2341 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2342 /*.count=*/0 _wgpu_COMMA \
2343})
2344
2357
2361#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2362 /*.nextInChain=*/NULL _wgpu_COMMA \
2363 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2364})
2365
2378
2382#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2383 /*.nextInChain=*/NULL _wgpu_COMMA \
2384 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2385})
2386
2423
2427#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2428 /*.nextInChain=*/NULL _wgpu_COMMA \
2429 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2430 /*.colorFormatCount=*/0 _wgpu_COMMA \
2431 /*.colorFormats=*/NULL _wgpu_COMMA \
2432 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2433 /*.sampleCount=*/1 _wgpu_COMMA \
2434 /*.depthReadOnly=*/0 _wgpu_COMMA \
2435 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2436})
2437
2480
2484#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2485 /*.nextInChain=*/NULL _wgpu_COMMA \
2486 /*.view=*/NULL _wgpu_COMMA \
2487 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2488 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2489 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2490 /*.depthReadOnly=*/0 _wgpu_COMMA \
2491 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2492 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2493 /*.stencilClearValue=*/0 _wgpu_COMMA \
2494 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2495})
2496
2507
2511#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2512 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2513 /*.next=*/NULL _wgpu_COMMA \
2514 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2515 }) _wgpu_COMMA \
2516 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2517})
2518
2561
2565#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
2566 /*.nextInChain=*/NULL _wgpu_COMMA \
2567 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
2568 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
2569 /*.forceFallbackAdapter=*/0 _wgpu_COMMA \
2570 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
2571 /*.compatibleSurface=*/NULL _wgpu_COMMA \
2572})
2573
2587
2591#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2592 /*.nextInChain=*/NULL _wgpu_COMMA \
2593 /*.type=*/WGPUSamplerBindingType_BindingNotUsed _wgpu_COMMA \
2594})
2595
2666
2670#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2671 /*.nextInChain=*/NULL _wgpu_COMMA \
2672 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2673 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2674 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2675 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2676 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2677 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2678 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2679 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2680 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2681 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2682 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2683})
2684
2697
2701#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
2702 /*.nextInChain=*/NULL _wgpu_COMMA \
2703 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2704})
2705
2714 uint32_t codeSize;
2718 uint32_t const * code;
2719} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2720
2724#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2725 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2726 /*.next=*/NULL _wgpu_COMMA \
2727 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2728 }) _wgpu_COMMA \
2729 /*.codeSize=*/0 _wgpu_COMMA \
2730 /*.code=*/NULL _wgpu_COMMA \
2731})
2732
2745
2749#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2750 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2751 /*.next=*/NULL _wgpu_COMMA \
2752 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2753 }) _wgpu_COMMA \
2754 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2755})
2756
2790
2794#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2795 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2796 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2797 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2798 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2799})
2800
2825
2829#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
2830 /*.nextInChain=*/NULL _wgpu_COMMA \
2831 /*.access=*/WGPUStorageTextureAccess_BindingNotUsed _wgpu_COMMA \
2832 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2833 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
2834})
2835
2848} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
2849
2853#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
2854 /*.featureCount=*/0 _wgpu_COMMA \
2855 /*.features=*/NULL _wgpu_COMMA \
2856})
2857
2871
2875#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
2876 /*.featureCount=*/0 _wgpu_COMMA \
2877 /*.features=*/NULL _wgpu_COMMA \
2878})
2879
2927
2931#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
2932 /*.nextInChain=*/NULL _wgpu_COMMA \
2933 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
2934 /*.formatCount=*/0 _wgpu_COMMA \
2935 /*.formats=*/NULL _wgpu_COMMA \
2936 /*.presentModeCount=*/0 _wgpu_COMMA \
2937 /*.presentModes=*/NULL _wgpu_COMMA \
2938 /*.alphaModeCount=*/0 _wgpu_COMMA \
2939 /*.alphaModes=*/NULL _wgpu_COMMA \
2940})
2941
3010
3014#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3015 /*.nextInChain=*/NULL _wgpu_COMMA \
3016 /*.device=*/NULL _wgpu_COMMA \
3017 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3018 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3019 /*.width=*/0 _wgpu_COMMA \
3020 /*.height=*/0 _wgpu_COMMA \
3021 /*.viewFormatCount=*/0 _wgpu_COMMA \
3022 /*.viewFormats=*/NULL _wgpu_COMMA \
3023 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3024 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3025})
3026
3045
3049#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
3050 /*.nextInChain=*/NULL _wgpu_COMMA \
3051 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3052})
3053
3068
3072#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3073 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3074 /*.next=*/NULL _wgpu_COMMA \
3075 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3076 }) _wgpu_COMMA \
3077 /*.window=*/NULL _wgpu_COMMA \
3078})
3079
3094
3098#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3099 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3100 /*.next=*/NULL _wgpu_COMMA \
3101 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3102 }) _wgpu_COMMA \
3103 /*.layer=*/NULL _wgpu_COMMA \
3104})
3105
3126
3130#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3131 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3132 /*.next=*/NULL _wgpu_COMMA \
3133 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3134 }) _wgpu_COMMA \
3135 /*.display=*/NULL _wgpu_COMMA \
3136 /*.surface=*/NULL _wgpu_COMMA \
3137})
3138
3160
3164#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3165 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3166 /*.next=*/NULL _wgpu_COMMA \
3167 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3168 }) _wgpu_COMMA \
3169 /*.hinstance=*/NULL _wgpu_COMMA \
3170 /*.hwnd=*/NULL _wgpu_COMMA \
3171})
3172
3193
3197#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3198 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3199 /*.next=*/NULL _wgpu_COMMA \
3200 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3201 }) _wgpu_COMMA \
3202 /*.connection=*/NULL _wgpu_COMMA \
3203 /*.window=*/0 _wgpu_COMMA \
3204})
3205
3226
3230#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3231 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3232 /*.next=*/NULL _wgpu_COMMA \
3233 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3234 }) _wgpu_COMMA \
3235 /*.display=*/NULL _wgpu_COMMA \
3236 /*.window=*/0 _wgpu_COMMA \
3237})
3238
3261
3265#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3266 /*.nextInChain=*/NULL _wgpu_COMMA \
3267 /*.texture=*/NULL _wgpu_COMMA \
3268 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3269})
3270
3278 uint64_t offset;
3282 uint32_t bytesPerRow;
3287} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3288
3292#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3293 /*.offset=*/0 _wgpu_COMMA \
3294 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3295 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3296})
3297
3322
3326#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3327 /*.nextInChain=*/NULL _wgpu_COMMA \
3328 /*.sampleType=*/WGPUTextureSampleType_BindingNotUsed _wgpu_COMMA \
3329 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3330 /*.multisampled=*/0 _wgpu_COMMA \
3331})
3332
3380
3384#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3385 /*.nextInChain=*/NULL _wgpu_COMMA \
3386 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3387 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3388 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3389 /*.baseMipLevel=*/0 _wgpu_COMMA \
3390 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3391 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3392 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3393 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3394 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3395})
3396
3415
3419#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3420 /*.nextInChain=*/NULL _wgpu_COMMA \
3421 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3422 /*.offset=*/0 _wgpu_COMMA \
3423 /*.shaderLocation=*/0 _wgpu_COMMA \
3424})
3425
3450
3454#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3455 /*.nextInChain=*/NULL _wgpu_COMMA \
3456 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3457 /*.layout=*/NULL _wgpu_COMMA \
3458 /*.entryCount=*/0 _wgpu_COMMA \
3459 /*.entries=*/NULL _wgpu_COMMA \
3460})
3461
3492
3496#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3497 /*.nextInChain=*/NULL _wgpu_COMMA \
3498 /*.binding=*/0 _wgpu_COMMA \
3499 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3500 /*.buffer=*/WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_COMMA \
3501 /*.sampler=*/WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_COMMA \
3502 /*.texture=*/WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_COMMA \
3503 /*.storageTexture=*/WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_COMMA \
3504})
3505
3519
3523#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3524 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3525 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3526})
3527
3542
3546#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3547 /*.nextInChain=*/NULL _wgpu_COMMA \
3548 /*.messageCount=*/0 _wgpu_COMMA \
3549 /*.messages=*/NULL _wgpu_COMMA \
3550})
3551
3568
3572#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3573 /*.nextInChain=*/NULL _wgpu_COMMA \
3574 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3575 /*.timestampWrites=*/NULL _wgpu_COMMA \
3576})
3577
3602
3606#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3607 /*.nextInChain=*/NULL _wgpu_COMMA \
3608 /*.module=*/NULL _wgpu_COMMA \
3609 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3610 /*.constantCount=*/0 _wgpu_COMMA \
3611 /*.constants=*/NULL _wgpu_COMMA \
3612})
3613
3660
3664#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3665 /*.nextInChain=*/NULL _wgpu_COMMA \
3666 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3667 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3668 /*.depthCompare=*/_wgpu_ENUM_ZERO_INIT(WGPUCompareFunction) _wgpu_COMMA \
3669 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3670 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3671 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3672 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3673 /*.depthBias=*/0 _wgpu_COMMA \
3674 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3675 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3676})
3677
3714
3718#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
3719 /*.nextInChain=*/NULL _wgpu_COMMA \
3720 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3721 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3722 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3723 /*.requiredLimits=*/NULL _wgpu_COMMA \
3724 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
3725 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
3726 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
3727})
3728
3748
3752#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3753 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3754 /*.completed=*/0 _wgpu_COMMA \
3755})
3756
3769
3773#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
3774 /*.nextInChain=*/NULL _wgpu_COMMA \
3775 /*.features=*/WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_COMMA \
3776})
3777
3811
3815#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
3816 /*.nextInChain=*/NULL _wgpu_COMMA \
3817 /*.view=*/NULL _wgpu_COMMA \
3818 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
3819 /*.resolveTarget=*/NULL _wgpu_COMMA \
3820 /*.loadOp=*/_wgpu_ENUM_ZERO_INIT(WGPULoadOp) _wgpu_COMMA \
3821 /*.storeOp=*/_wgpu_ENUM_ZERO_INIT(WGPUStoreOp) _wgpu_COMMA \
3822 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
3823})
3824
3838
3842#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
3843 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
3844 /*.buffer=*/NULL _wgpu_COMMA \
3845})
3846
3871
3875#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
3876 /*.texture=*/NULL _wgpu_COMMA \
3877 /*.mipLevel=*/0 _wgpu_COMMA \
3878 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
3879 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3880})
3881
3929
3933#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
3934 /*.nextInChain=*/NULL _wgpu_COMMA \
3935 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3936 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3937 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
3938 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
3939 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3940 /*.mipLevelCount=*/1 _wgpu_COMMA \
3941 /*.sampleCount=*/1 _wgpu_COMMA \
3942 /*.viewFormatCount=*/0 _wgpu_COMMA \
3943 /*.viewFormats=*/NULL _wgpu_COMMA \
3944})
3945
3981
3985#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
3986 /*.nextInChain=*/NULL _wgpu_COMMA \
3987 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
3988 /*.arrayStride=*/0 _wgpu_COMMA \
3989 /*.attributeCount=*/0 _wgpu_COMMA \
3990 /*.attributes=*/NULL _wgpu_COMMA \
3991})
3992
4013
4017#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4018 /*.nextInChain=*/NULL _wgpu_COMMA \
4019 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4020 /*.entryCount=*/0 _wgpu_COMMA \
4021 /*.entries=*/NULL _wgpu_COMMA \
4022})
4023
4046
4050#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4051 /*.nextInChain=*/NULL _wgpu_COMMA \
4052 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4053 /*.blend=*/NULL _wgpu_COMMA \
4054 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4055})
4056
4077
4081#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4082 /*.nextInChain=*/NULL _wgpu_COMMA \
4083 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4084 /*.layout=*/NULL _wgpu_COMMA \
4085 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4086})
4087
4120
4124#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4125 /*.nextInChain=*/NULL _wgpu_COMMA \
4126 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4127 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4128 /*.colorAttachments=*/NULL _wgpu_COMMA \
4129 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4130 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4131 /*.timestampWrites=*/NULL _wgpu_COMMA \
4132})
4133
4166
4170#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4171 /*.nextInChain=*/NULL _wgpu_COMMA \
4172 /*.module=*/NULL _wgpu_COMMA \
4173 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4174 /*.constantCount=*/0 _wgpu_COMMA \
4175 /*.constants=*/NULL _wgpu_COMMA \
4176 /*.bufferCount=*/0 _wgpu_COMMA \
4177 /*.buffers=*/NULL _wgpu_COMMA \
4178})
4179
4212
4216#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4217 /*.nextInChain=*/NULL _wgpu_COMMA \
4218 /*.module=*/NULL _wgpu_COMMA \
4219 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4220 /*.constantCount=*/0 _wgpu_COMMA \
4221 /*.constants=*/NULL _wgpu_COMMA \
4222 /*.targetCount=*/0 _wgpu_COMMA \
4223 /*.targets=*/NULL _wgpu_COMMA \
4224})
4225
4262
4266#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4267 /*.nextInChain=*/NULL _wgpu_COMMA \
4268 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4269 /*.layout=*/NULL _wgpu_COMMA \
4270 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4271 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4272 /*.depthStencil=*/NULL _wgpu_COMMA \
4273 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4274 /*.fragment=*/NULL _wgpu_COMMA \
4275})
4276
4279#ifdef __cplusplus
4280extern "C" {
4281#endif
4282
4283#if !defined(WGPU_SKIP_PROCS)
4284
4289typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4294typedef WGPUStatus (*WGPUProcGetInstanceCapabilities)(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
4299typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4300
4301// Procs of Adapter
4306typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4311typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4316typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4321typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4326typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4331typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4336typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4337
4338// Procs of AdapterInfo
4343typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4344
4345// Procs of BindGroup
4350typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4355typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4360typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4361
4362// Procs of BindGroupLayout
4367typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4372typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4377typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4378
4379// Procs of Buffer
4384typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4389typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4394typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4399typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4404typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4409typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4414typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4419typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4424typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4429typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4434typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4435
4436// Procs of CommandBuffer
4441typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4446typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4451typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4452
4453// Procs of CommandEncoder
4458typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4463typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4468typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4473typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4478typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4483typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4488typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4493typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4498typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4503typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4508typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4513typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4518typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4523typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4528typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4533typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4534
4535// Procs of ComputePassEncoder
4540typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4545typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4550typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4555typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4560typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4565typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4570typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4575typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4580typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4585typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4590typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4591
4592// Procs of ComputePipeline
4597typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
4602typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4607typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4612typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4613
4614// Procs of Device
4619typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4624typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4629typedef WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4634typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4639typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4644typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4649typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4654typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4659typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4664typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4669typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4674typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4679typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4684typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4689typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4694typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4699typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4704typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4709typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4714typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4719typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4724typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4729typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
4734typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4739typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4744typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4745
4746// Procs of Instance
4751typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4756typedef WGPUStatus (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4761typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4766typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4771typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4776typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
4781typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4786typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4787
4788// Procs of PipelineLayout
4793typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4798typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4803typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4804
4805// Procs of QuerySet
4810typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4815typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4820typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4825typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4830typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4835typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4836
4837// Procs of Queue
4842typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4847typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4852typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
4857typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4862typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
4867typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
4872typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
4873
4874// Procs of RenderBundle
4879typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4884typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
4889typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
4890
4891// Procs of RenderBundleEncoder
4896typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
4901typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
4906typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4911typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4916typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4921typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4926typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
4931typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4936typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4941typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4946typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4951typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4956typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4961typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
4966typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
4967
4968// Procs of RenderPassEncoder
4973typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4978typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
4983typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
4988typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4993typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4998typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5003typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5008typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5013typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5018typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5023typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5028typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5033typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5038typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5043typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5048typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5053typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5058typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5063typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5068typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5073typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5078typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5079
5080// Procs of RenderPipeline
5085typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5090typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5095typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5100typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5101
5102// Procs of Sampler
5107typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5112typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5117typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5118
5119// Procs of ShaderModule
5124typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5129typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5134typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5139typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5140
5141// Procs of SupportedFeatures
5146typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5147
5148// Procs of SupportedWGSLLanguageFeatures
5153typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5154
5155// Procs of Surface
5160typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5165typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5170typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5175typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5180typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5185typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5190typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5195typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5196
5197// Procs of SurfaceCapabilities
5202typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5203
5204// Procs of Texture
5209typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5214typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5219typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5224typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5229typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5234typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5239typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5244typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5249typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5254typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5259typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5264typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5269typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5270
5271// Procs of TextureView
5276typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5281typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5286typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5287
5288#endif // !defined(WGPU_SKIP_PROCS)
5289
5290#if !defined(WGPU_SKIP_DECLARATIONS)
5300WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5310WGPU_EXPORT WGPUStatus wgpuGetInstanceCapabilities(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5315WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5316
5317
5339WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5347WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5352WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5353WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5354WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5355WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5356WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5370WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5381WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5382WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5383WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5394WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5395WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5396WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5407WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5424WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5425WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5440WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5441WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5442WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5443WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5444WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5445WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5446WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5447WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5458WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5459WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5460WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5471WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5472WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5473WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5474WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5475WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5476WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5477WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5478WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5479WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5480WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5481WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5482WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5483WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5484WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5485WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5486WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5497WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5498WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5499WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5500WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5501WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5502WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5503WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5504WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5505WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5506WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5507WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5518WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5519WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5520WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5521WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5532WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5533WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5534WGPU_EXPORT WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5535WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5536WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5538WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5539WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5541WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5543WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5544WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5545WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5546WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5554WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5561WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5566WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5571WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5572WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5573WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5574WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5575WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5576WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5577WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5578WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5598WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5603WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5609WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5610WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5616WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5617WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5618WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5629WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5630WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5631WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5642WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5643WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5644WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5645WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5646WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5647WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5658WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5659WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5660WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5665WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5666WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5667WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5668WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5679WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5680WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5681WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5692WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5693WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5694WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5695WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5696WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5697WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5698WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5699WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5700WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5701WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5702WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5703WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5704WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5705WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5706WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5717WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5718WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5719WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5720WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5721WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5722WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5723WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5724WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5725WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5726WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5727WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5728WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5729WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5730WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5731WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5732WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5733WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5734WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5735WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5736WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5737WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5738WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5749WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5750WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5751WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5752WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5763WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5764WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5765WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5776WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5777WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5778WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5779WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5793WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5807WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5827WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5843WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5853WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5861WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5868WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5873WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5874WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5875WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5889WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5900WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5901WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5902WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5903WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5904WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5905WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5906WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5907WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5908WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5909WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5910WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5911WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5912WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5923WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5924WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5925WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5931#endif // !defined(WGPU_SKIP_DECLARATIONS)
5932
5933#ifdef __cplusplus
5934} // extern "C"
5935#endif
5936
5937#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1163
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1156
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1159
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1155
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1164
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1148
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1152
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1147
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1168
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1179
WGPUFlags WGPUMapMode
Definition webgpu.h:1167
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1182
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1165
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1180
WGPUFlags WGPUShaderStage
Definition webgpu.h:1172
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1157
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1175
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1176
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1170
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1173
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1184
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1149
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1181
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1150
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1183
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1178
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1154
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1169
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1162
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1153
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1174
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1160
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1161
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1146
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1151
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1287
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1277
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1217
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1235
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1224
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1210
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1267
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, void *userdata1, void *userdata2)
Definition webgpu.h:1257
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1203
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1253
WGPUIndexFormat
Definition webgpu.h:591
WGPURequestAdapterStatus
Definition webgpu.h:730
WGPUFeatureName
Definition webgpu.h:548
WGPUVertexFormat
Definition webgpu.h:1041
WGPUSType
Definition webgpu.h:745
WGPUBufferBindingType
Definition webgpu.h:361
WGPUDeviceLostReason
Definition webgpu.h:502
WGPUCompareFunction
Definition webgpu.h:419
WGPUCullMode
Definition webgpu.h:490
WGPUTextureDimension
Definition webgpu.h:889
WGPURequestDeviceStatus
Definition webgpu.h:738
WGPUCompilationMessageType
Definition webgpu.h:443
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:482
WGPUTextureViewDimension
Definition webgpu.h:1026
WGPUPrimitiveTopology
Definition webgpu.h:703
WGPUTextureFormat
Definition webgpu.h:901
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1097
WGPUStencilOperation
Definition webgpu.h:788
WGPUAddressMode
Definition webgpu.h:292
WGPUTextureAspect
Definition webgpu.h:877
WGPUBufferMapState
Definition webgpu.h:380
WGPUFilterMode
Definition webgpu.h:569
WGPUBackendType
Definition webgpu.h:304
WGPUBlendFactor
Definition webgpu.h:321
WGPUSamplerBindingType
Definition webgpu.h:758
WGPULoadOp
Definition webgpu.h:602
WGPUPopErrorScopeStatus
Definition webgpu.h:639
WGPUWaitStatus
Definition webgpu.h:1108
WGPUStorageTextureAccess
Definition webgpu.h:805
WGPUPowerPreference
Definition webgpu.h:654
WGPUPresentMode
Definition webgpu.h:668
WGPUMapAsyncStatus
Definition webgpu.h:613
WGPUBlendOperation
Definition webgpu.h:347
WGPUCompositeAlphaMode
Definition webgpu.h:453
WGPUQueueWorkDoneStatus
Definition webgpu.h:723
WGPUVertexStepMode
Definition webgpu.h:1086
WGPUQueryType
Definition webgpu.h:717
WGPUFeatureLevel
Definition webgpu.h:529
WGPUAdapterType
Definition webgpu.h:284
WGPUStatus
Definition webgpu.h:782
WGPUCompilationInfoRequestStatus
Definition webgpu.h:436
WGPUMipmapFilterMode
Definition webgpu.h:621
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:838
WGPUFrontFace
Definition webgpu.h:580
WGPUStoreOp
Definition webgpu.h:824
WGPUErrorFilter
Definition webgpu.h:510
WGPUOptionalBool
Definition webgpu.h:632
WGPUCallbackMode
Definition webgpu.h:390
WGPUTextureSampleType
Definition webgpu.h:1005
WGPUErrorType
Definition webgpu.h:517
@ WGPUIndexFormat_Force32
Definition webgpu.h:599
@ WGPUIndexFormat_Uint16
Definition webgpu.h:597
@ WGPUIndexFormat_Undefined
Definition webgpu.h:596
@ WGPUIndexFormat_Uint32
Definition webgpu.h:598
@ WGPURequestAdapterStatus_InstanceDropped
Definition webgpu.h:732
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:733
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:731
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:734
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:735
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:556
@ WGPUFeatureName_Force32
Definition webgpu.h:566
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:564
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:551
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:560
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:561
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:563
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:565
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:557
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:554
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:559
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:562
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:552
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:553
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:555
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:558
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:550
@ WGPUFeatureName_Undefined
Definition webgpu.h:549
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1080
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1070
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1078
@ WGPUVertexFormat_Float32
Definition webgpu.h:1069
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1068
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1056
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1052
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1044
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1046
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1048
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1050
@ WGPUVertexFormat_Force32
Definition webgpu.h:1083
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1043
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1072
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1067
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1073
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1051
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1045
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1076
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1082
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1077
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1054
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1074
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1075
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1063
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1059
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1081
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1061
@ WGPUVertexFormat_Float16
Definition webgpu.h:1066
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1049
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1079
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1058
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1053
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1042
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1047
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1060
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1057
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1055
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1064
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1062
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1071
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1065
@ WGPUSType_Force32
Definition webgpu.h:755
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:752
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:746
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:753
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:754
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:750
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:748
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:749
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:747
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:751
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:368
@ WGPUBufferBindingType_Storage
Definition webgpu.h:375
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:373
@ WGPUBufferBindingType_Force32
Definition webgpu.h:377
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:376
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:374
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:506
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:504
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:507
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:503
@ WGPUDeviceLostReason_InstanceDropped
Definition webgpu.h:505
@ WGPUCompareFunction_Force32
Definition webgpu.h:433
@ WGPUCompareFunction_Always
Definition webgpu.h:432
@ WGPUCompareFunction_Never
Definition webgpu.h:425
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:430
@ WGPUCompareFunction_Less
Definition webgpu.h:426
@ WGPUCompareFunction_Undefined
Definition webgpu.h:424
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:431
@ WGPUCompareFunction_Equal
Definition webgpu.h:427
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:428
@ WGPUCompareFunction_Greater
Definition webgpu.h:429
@ WGPUCullMode_Force32
Definition webgpu.h:499
@ WGPUCullMode_Undefined
Definition webgpu.h:495
@ WGPUCullMode_Back
Definition webgpu.h:498
@ WGPUCullMode_Front
Definition webgpu.h:497
@ WGPUCullMode_None
Definition webgpu.h:496
@ WGPUTextureDimension_Undefined
Definition webgpu.h:894
@ WGPUTextureDimension_2D
Definition webgpu.h:896
@ WGPUTextureDimension_Force32
Definition webgpu.h:898
@ WGPUTextureDimension_3D
Definition webgpu.h:897
@ WGPUTextureDimension_1D
Definition webgpu.h:895
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:739
@ WGPURequestDeviceStatus_InstanceDropped
Definition webgpu.h:740
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:741
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:742
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:447
@ WGPUCompilationMessageType_Info
Definition webgpu.h:446
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:445
@ WGPUCompilationMessageType_Error
Definition webgpu.h:444
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:487
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:485
@ WGPUCreatePipelineAsyncStatus_InstanceDropped
Definition webgpu.h:484
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:483
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:486
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1035
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1034
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1033
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1037
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1032
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1036
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1031
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1038
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:710
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:711
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:708
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:712
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:709
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:713
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:714
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:998
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:959
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:962
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:924
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:914
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:964
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:974
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:967
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:971
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:957
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:926
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:992
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:930
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:982
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:966
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:994
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:988
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:941
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:960
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:937
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:940
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:996
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:949
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:915
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:999
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:946
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:922
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:972
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:965
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:961
@ WGPUTextureFormat_R32Float
Definition webgpu.h:918
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:963
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:912
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:910
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:925
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:955
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:927
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:973
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:938
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:997
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:932
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:991
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:978
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:919
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:969
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:976
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:954
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:929
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:956
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:958
@ WGPUTextureFormat_Force32
Definition webgpu.h:1002
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:950
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:979
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:987
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:920
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:953
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:942
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:944
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:970
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:983
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:921
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:995
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:934
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:945
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:917
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:989
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:911
@ WGPUTextureFormat_Undefined
Definition webgpu.h:906
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:993
@ WGPUTextureFormat_R16Float
Definition webgpu.h:913
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:977
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:935
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:933
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1001
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:943
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:951
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:923
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:980
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:947
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:990
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:939
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:907
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:948
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:952
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:986
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:916
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:909
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:984
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1000
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:931
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:975
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:968
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:936
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:985
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:928
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:908
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:981
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1098
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1100
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1101
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1102
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1099
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:799
@ WGPUStencilOperation_Undefined
Definition webgpu.h:793
@ WGPUStencilOperation_Replace
Definition webgpu.h:796
@ WGPUStencilOperation_Keep
Definition webgpu.h:794
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:801
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:800
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:798
@ WGPUStencilOperation_Invert
Definition webgpu.h:797
@ WGPUStencilOperation_Force32
Definition webgpu.h:802
@ WGPUStencilOperation_Zero
Definition webgpu.h:795
@ WGPUAddressMode_Repeat
Definition webgpu.h:299
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:300
@ WGPUAddressMode_Undefined
Definition webgpu.h:297
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:298
@ WGPUAddressMode_Force32
Definition webgpu.h:301
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:885
@ WGPUTextureAspect_Force32
Definition webgpu.h:886
@ WGPUTextureAspect_Undefined
Definition webgpu.h:882
@ WGPUTextureAspect_All
Definition webgpu.h:883
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:884
@ WGPUBufferMapState_Pending
Definition webgpu.h:382
@ WGPUBufferMapState_Mapped
Definition webgpu.h:383
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:381
@ WGPUBufferMapState_Force32
Definition webgpu.h:384
@ WGPUFilterMode_Undefined
Definition webgpu.h:574
@ WGPUFilterMode_Force32
Definition webgpu.h:577
@ WGPUFilterMode_Nearest
Definition webgpu.h:575
@ WGPUFilterMode_Linear
Definition webgpu.h:576
@ WGPUBackendType_Vulkan
Definition webgpu.h:315
@ WGPUBackendType_OpenGL
Definition webgpu.h:316
@ WGPUBackendType_Force32
Definition webgpu.h:318
@ WGPUBackendType_OpenGLES
Definition webgpu.h:317
@ WGPUBackendType_WebGPU
Definition webgpu.h:311
@ WGPUBackendType_D3D11
Definition webgpu.h:312
@ WGPUBackendType_D3D12
Definition webgpu.h:313
@ WGPUBackendType_Undefined
Definition webgpu.h:309
@ WGPUBackendType_Null
Definition webgpu.h:310
@ WGPUBackendType_Metal
Definition webgpu.h:314
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:335
@ WGPUBlendFactor_One
Definition webgpu.h:328
@ WGPUBlendFactor_Zero
Definition webgpu.h:327
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:342
@ WGPUBlendFactor_Undefined
Definition webgpu.h:326
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:334
@ WGPUBlendFactor_Force32
Definition webgpu.h:344
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:341
@ WGPUBlendFactor_Constant
Definition webgpu.h:338
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:330
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:337
@ WGPUBlendFactor_Src
Definition webgpu.h:329
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:332
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:331
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:339
@ WGPUBlendFactor_Src1
Definition webgpu.h:340
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:336
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:343
@ WGPUBlendFactor_Dst
Definition webgpu.h:333
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:765
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:772
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:774
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:771
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:770
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:773
@ WGPULoadOp_Load
Definition webgpu.h:608
@ WGPULoadOp_Force32
Definition webgpu.h:610
@ WGPULoadOp_Undefined
Definition webgpu.h:607
@ WGPULoadOp_Clear
Definition webgpu.h:609
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:651
@ WGPUPopErrorScopeStatus_InstanceDropped
Definition webgpu.h:645
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:644
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:650
@ WGPUWaitStatus_Force32
Definition webgpu.h:1134
@ WGPUWaitStatus_UnsupportedCount
Definition webgpu.h:1128
@ WGPUWaitStatus_Success
Definition webgpu.h:1113
@ WGPUWaitStatus_UnsupportedTimeout
Definition webgpu.h:1123
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1118
@ WGPUWaitStatus_UnsupportedMixedSources
Definition webgpu.h:1133
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:817
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:812
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:819
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:818
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:821
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:820
@ WGPUPowerPreference_Force32
Definition webgpu.h:662
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:661
@ WGPUPowerPreference_LowPower
Definition webgpu.h:660
@ WGPUPowerPreference_Undefined
Definition webgpu.h:659
@ WGPUPresentMode_Fifo
Definition webgpu.h:680
@ WGPUPresentMode_Force32
Definition webgpu.h:700
@ WGPUPresentMode_Immediate
Definition webgpu.h:693
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:687
@ WGPUPresentMode_Mailbox
Definition webgpu.h:699
@ WGPUPresentMode_Undefined
Definition webgpu.h:673
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:617
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:616
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:618
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:614
@ WGPUMapAsyncStatus_InstanceDropped
Definition webgpu.h:615
@ WGPUBlendOperation_Undefined
Definition webgpu.h:352
@ WGPUBlendOperation_Max
Definition webgpu.h:357
@ WGPUBlendOperation_Subtract
Definition webgpu.h:354
@ WGPUBlendOperation_Min
Definition webgpu.h:356
@ WGPUBlendOperation_Add
Definition webgpu.h:353
@ WGPUBlendOperation_Force32
Definition webgpu.h:358
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:355
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:458
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:479
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:463
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:473
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:478
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:468
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:726
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:724
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:727
@ WGPUQueueWorkDoneStatus_InstanceDropped
Definition webgpu.h:725
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1091
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1093
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1092
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1094
@ WGPUQueryType_Occlusion
Definition webgpu.h:718
@ WGPUQueryType_Timestamp
Definition webgpu.h:719
@ WGPUQueryType_Force32
Definition webgpu.h:720
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:534
@ WGPUFeatureLevel_Core
Definition webgpu.h:544
@ WGPUFeatureLevel_Force32
Definition webgpu.h:545
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:539
@ WGPUAdapterType_CPU
Definition webgpu.h:287
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:285
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:286
@ WGPUAdapterType_Unknown
Definition webgpu.h:288
@ WGPUAdapterType_Force32
Definition webgpu.h:289
@ WGPUStatus_Force32
Definition webgpu.h:785
@ WGPUStatus_Success
Definition webgpu.h:783
@ WGPUStatus_Error
Definition webgpu.h:784
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:440
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:437
@ WGPUCompilationInfoRequestStatus_Error
Definition webgpu.h:439
@ WGPUCompilationInfoRequestStatus_InstanceDropped
Definition webgpu.h:438
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:626
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:628
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:629
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:627
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:863
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:873
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:858
@ WGPUSurfaceGetCurrentTextureStatus_OutOfMemory
Definition webgpu.h:868
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:853
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:843
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:874
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:848
@ WGPUFrontFace_CW
Definition webgpu.h:587
@ WGPUFrontFace_Undefined
Definition webgpu.h:585
@ WGPUFrontFace_CCW
Definition webgpu.h:586
@ WGPUFrontFace_Force32
Definition webgpu.h:588
@ WGPUStoreOp_Discard
Definition webgpu.h:831
@ WGPUStoreOp_Force32
Definition webgpu.h:832
@ WGPUStoreOp_Store
Definition webgpu.h:830
@ WGPUStoreOp_Undefined
Definition webgpu.h:829
@ WGPUErrorFilter_Internal
Definition webgpu.h:513
@ WGPUErrorFilter_Force32
Definition webgpu.h:514
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:512
@ WGPUErrorFilter_Validation
Definition webgpu.h:511
@ WGPUOptionalBool_True
Definition webgpu.h:634
@ WGPUOptionalBool_Force32
Definition webgpu.h:636
@ WGPUOptionalBool_Undefined
Definition webgpu.h:635
@ WGPUOptionalBool_False
Definition webgpu.h:633
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:404
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:415
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:397
@ WGPUCallbackMode_Force32
Definition webgpu.h:416
@ WGPUTextureSampleType_Float
Definition webgpu.h:1018
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1021
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1012
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1017
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1023
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1022
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1020
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1019
@ WGPUErrorType_NoError
Definition webgpu.h:518
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:520
@ WGPUErrorType_Unknown
Definition webgpu.h:522
@ WGPUErrorType_Validation
Definition webgpu.h:519
@ WGPUErrorType_Force32
Definition webgpu.h:523
@ WGPUErrorType_Internal
Definition webgpu.h:521
WGPUStatus wgpuGetInstanceCapabilities(WGPUInstanceCapabilities *capabilities)
WGPUInstance wgpuCreateInstance(WGPUInstanceDescriptor const *descriptor)
WGPUProc wgpuGetProcAddress(WGPUStringView procName)
struct WGPUPipelineLayoutImpl * WGPUPipelineLayout
Definition webgpu.h:174
struct WGPUSamplerImpl * WGPUSampler
Definition webgpu.h:181
struct WGPUQueueImpl * WGPUQueue
Definition webgpu.h:176
struct WGPUSurfaceImpl * WGPUSurface
Definition webgpu.h:186
struct WGPURenderBundleImpl * WGPURenderBundle
Definition webgpu.h:177
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
Definition webgpu.h:170
struct WGPUBindGroupImpl * WGPUBindGroup
Definition webgpu.h:165
struct WGPUInstanceImpl * WGPUInstance
Definition webgpu.h:173
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
Definition webgpu.h:166
struct WGPUTextureViewImpl * WGPUTextureView
Definition webgpu.h:188
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
Definition webgpu.h:179
struct WGPUShaderModuleImpl * WGPUShaderModule
Definition webgpu.h:182
struct WGPUQuerySetImpl * WGPUQuerySet
Definition webgpu.h:175
struct WGPUCommandBufferImpl * WGPUCommandBuffer
Definition webgpu.h:168
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
Definition webgpu.h:178
struct WGPUDeviceImpl * WGPUDevice
Definition webgpu.h:172
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
Definition webgpu.h:169
struct WGPUTextureImpl * WGPUTexture
Definition webgpu.h:187
struct WGPUComputePipelineImpl * WGPUComputePipeline
Definition webgpu.h:171
struct WGPURenderPipelineImpl * WGPURenderPipeline
Definition webgpu.h:180
struct WGPUAdapterImpl * WGPUAdapter
Definition webgpu.h:164
struct WGPUBufferImpl * WGPUBuffer
Definition webgpu.h:167
struct WGPUFuture WGPUFuture
uint32_t WGPUBool
Definition webgpu.h:113
uint64_t WGPUFlags
Definition webgpu.h:112
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)
void wgpuBufferRelease(WGPUBuffer buffer)
void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
void wgpuBufferUnmap(WGPUBuffer buffer)
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:1535
WGPUBackendType backendType
Definition webgpu.h:1545
uint32_t deviceID
Definition webgpu.h:1557
uint32_t vendorID
Definition webgpu.h:1553
WGPUStringView description
Definition webgpu.h:1541
WGPUAdapterType adapterType
Definition webgpu.h:1549
WGPUChainedStructOut * nextInChain
Definition webgpu.h:1517
WGPUStringView architecture
Definition webgpu.h:1529
WGPUStringView vendor
Definition webgpu.h:1523
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3430
WGPUStringView label
Definition webgpu.h:3436
WGPUBindGroupLayout layout
Definition webgpu.h:3440
WGPUBindGroupEntry const * entries
Definition webgpu.h:3448
uint64_t offset
Definition webgpu.h:1599
WGPUBuffer buffer
Definition webgpu.h:1592
WGPUSampler sampler
Definition webgpu.h:1614
WGPUTextureView textureView
Definition webgpu.h:1621
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1579
uint32_t binding
Definition webgpu.h:1585
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4011
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3997
WGPUTextureBindingLayout texture
Definition webgpu.h:3486
WGPUShaderStage visibility
Definition webgpu.h:3474
WGPUBufferBindingLayout buffer
Definition webgpu.h:3478
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3466
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3490
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3482
WGPUBlendFactor dstFactor
Definition webgpu.h:1661
WGPUBlendFactor srcFactor
Definition webgpu.h:1654
WGPUBlendOperation operation
Definition webgpu.h:1647
WGPUBlendComponent alpha
Definition webgpu.h:3517
WGPUBlendComponent color
Definition webgpu.h:3513
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1677
WGPUBufferBindingType type
Definition webgpu.h:1684
WGPUBool hasDynamicOffset
Definition webgpu.h:1688
WGPUBool mappedAtCreation
Definition webgpu.h:1727
WGPUStringView label
Definition webgpu.h:1715
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1709
WGPUBufferUsage usage
Definition webgpu.h:1719
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1324
WGPUBufferMapCallback callback
Definition webgpu.h:1326
WGPUCallbackMode mode
Definition webgpu.h:1325
struct WGPUChainedStructOut * next
Definition webgpu.h:1303
WGPUSType sType
Definition webgpu.h:1299
struct WGPUChainedStruct const * next
Definition webgpu.h:1298
WGPUBlendState const * blend
Definition webgpu.h:4040
WGPUColorWriteMask writeMask
Definition webgpu.h:4044
WGPUTextureFormat format
Definition webgpu.h:4036
WGPUChainedStruct const * nextInChain
Definition webgpu.h:4028
double a
Definition webgpu.h:1760
double b
Definition webgpu.h:1756
double r
Definition webgpu.h:1748
double g
Definition webgpu.h:1752
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1777
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1798
WGPUCompilationInfoCallback callback
Definition webgpu.h:1345
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1343
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3532
WGPUCompilationMessage const * messages
Definition webgpu.h:3540
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1819
WGPUCompilationMessageType type
Definition webgpu.h:1833
WGPUStringView message
Definition webgpu.h:1827
WGPUStringView label
Definition webgpu.h:3562
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3566
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3556
WGPUComputeState compute
Definition webgpu.h:4075
WGPUChainedStruct const * nextInChain
Definition webgpu.h:4061
WGPUPipelineLayout layout
Definition webgpu.h:4071
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3582
WGPUConstantEntry const * constants
Definition webgpu.h:3600
size_t constantCount
Definition webgpu.h:3596
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3592
WGPUStringView key
Definition webgpu.h:1883
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1877
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1362
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1364
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1381
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1383
WGPUStencilFaceState stencilFront
Definition webgpu.h:3634
uint32_t stencilWriteMask
Definition webgpu.h:3646
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3618
WGPUStencilFaceState stencilBack
Definition webgpu.h:3638
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3626
WGPUCompareFunction depthCompare
Definition webgpu.h:3630
uint32_t stencilReadMask
Definition webgpu.h:3642
WGPUTextureFormat format
Definition webgpu.h:3622
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:3708
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:3712
size_t requiredFeatureCount
Definition webgpu.h:3692
WGPUStringView label
Definition webgpu.h:3688
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3682
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:3696
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:3704
WGPULimits const * requiredLimits
Definition webgpu.h:3700
WGPUDeviceLostCallback callback
Definition webgpu.h:1402
WGPUCallbackMode mode
Definition webgpu.h:1401
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1400
uint32_t width
Definition webgpu.h:1906
uint32_t depthOrArrayLayers
Definition webgpu.h:1914
uint32_t height
Definition webgpu.h:1910
size_t constantCount
Definition webgpu.h:4198
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4194
WGPUChainedStruct const * nextInChain
Definition webgpu.h:4184
size_t targetCount
Definition webgpu.h:4206
WGPUConstantEntry const * constants
Definition webgpu.h:4202
WGPUColorTargetState const * targets
Definition webgpu.h:4210
WGPUFuture future
Definition webgpu.h:3740
WGPUBool completed
Definition webgpu.h:3746
uint64_t id
Definition webgpu.h:1937
WGPUChainedStructOut * nextInChain
Definition webgpu.h:1954
WGPUBool timedWaitAnyEnable
Definition webgpu.h:1960
WGPUInstanceCapabilities features
Definition webgpu.h:3767
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3761
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2007
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2083
uint32_t maxTextureDimension2D
Definition webgpu.h:1991
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2023
uint32_t maxTextureDimension3D
Definition webgpu.h:1995
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2027
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2011
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2107
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2019
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2087
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2055
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2099
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2047
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2091
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2071
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2051
uint32_t maxVertexAttributes
Definition webgpu.h:2067
uint32_t maxColorAttachments
Definition webgpu.h:2079
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2075
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2103
uint32_t maxTextureDimension1D
Definition webgpu.h:1987
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2015
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2043
uint64_t maxBufferSize
Definition webgpu.h:2063
WGPUChainedStructOut * nextInChain
Definition webgpu.h:1983
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2039
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2095
uint32_t maxVertexBuffers
Definition webgpu.h:2059
uint32_t maxTextureArrayLayers
Definition webgpu.h:1999
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2035
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2031
uint32_t maxBindGroups
Definition webgpu.h:2003
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2164
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2152
uint32_t y
Definition webgpu.h:2188
uint32_t z
Definition webgpu.h:2192
uint32_t x
Definition webgpu.h:2184
WGPUQuerySet querySet
Definition webgpu.h:2214
uint32_t endOfPassWriteIndex
Definition webgpu.h:2222
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2208
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2218
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2239
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2253
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1419
WGPUCallbackMode mode
Definition webgpu.h:1420
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1421
WGPUFrontFace frontFace
Definition webgpu.h:2288
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2281
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2270
WGPUPrimitiveTopology topology
Definition webgpu.h:2277
WGPUCullMode cullMode
Definition webgpu.h:2295
WGPUBool unclippedDepth
Definition webgpu.h:2299
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2318
WGPUQueryType type
Definition webgpu.h:2328
WGPUStringView label
Definition webgpu.h:2324
WGPUStringView label
Definition webgpu.h:2355
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2349
WGPUCallbackMode mode
Definition webgpu.h:1439
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1438
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1440
WGPUStringView label
Definition webgpu.h:2376
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2370
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2391
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2405
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2409
WGPUTextureView resolveTarget
Definition webgpu.h:3797
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3782
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2442
WGPUStringView label
Definition webgpu.h:4098
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4110
WGPUChainedStruct const * nextInChain
Definition webgpu.h:4092
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4106
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4114
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4118
WGPUChainedStruct chain
Definition webgpu.h:2501
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4252
WGPUMultisampleState multisample
Definition webgpu.h:4256
WGPUFragmentState const * fragment
Definition webgpu.h:4260
WGPUChainedStruct const * nextInChain
Definition webgpu.h:4230
WGPUPrimitiveState primitive
Definition webgpu.h:4248
WGPUPipelineLayout layout
Definition webgpu.h:4240
WGPUVertexState vertex
Definition webgpu.h:4244
WGPURequestAdapterCallback callback
Definition webgpu.h:1459
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1457
WGPUFeatureLevel featureLevel
Definition webgpu.h:2534
WGPUBool forceFallbackAdapter
Definition webgpu.h:2545
WGPUSurface compatibleSurface
Definition webgpu.h:2559
WGPUBackendType backendType
Definition webgpu.h:2552
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2523
WGPUPowerPreference powerPreference
Definition webgpu.h:2538
WGPUCallbackMode mode
Definition webgpu.h:1477
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1476
WGPURequestDeviceCallback callback
Definition webgpu.h:1478
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2578
WGPUSamplerBindingType type
Definition webgpu.h:2585
WGPUFilterMode minFilter
Definition webgpu.h:2641
WGPUAddressMode addressModeU
Definition webgpu.h:2613
WGPUCompareFunction compare
Definition webgpu.h:2660
WGPUAddressMode addressModeW
Definition webgpu.h:2627
uint16_t maxAnisotropy
Definition webgpu.h:2664
WGPUAddressMode addressModeV
Definition webgpu.h:2620
WGPUStringView label
Definition webgpu.h:2606
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2600
WGPUFilterMode magFilter
Definition webgpu.h:2634
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2648
WGPUStringView label
Definition webgpu.h:2695
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2689
WGPUChainedStruct chain
Definition webgpu.h:2710
uint32_t const * code
Definition webgpu.h:2718
WGPUChainedStruct chain
Definition webgpu.h:2737
WGPUStringView code
Definition webgpu.h:2743
WGPUCompareFunction compare
Definition webgpu.h:2767
WGPUStencilOperation depthFailOp
Definition webgpu.h:2781
WGPUStencilOperation passOp
Definition webgpu.h:2788
WGPUStencilOperation failOp
Definition webgpu.h:2774
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2805
WGPUTextureViewDimension viewDimension
Definition webgpu.h:2823
WGPUTextureFormat format
Definition webgpu.h:2816
WGPUStorageTextureAccess access
Definition webgpu.h:2812
size_t length
Definition webgpu.h:138
char const * data
Definition webgpu.h:137
WGPUFeatureName const * features
Definition webgpu.h:2847
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:2869
WGPUTextureFormat const * formats
Definition webgpu.h:2903
WGPUChainedStructOut * nextInChain
Definition webgpu.h:2886
WGPUPresentMode const * presentModes
Definition webgpu.h:2914
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:2925
WGPUTextureUsage usages
Definition webgpu.h:2893
WGPUTextureUsage usage
Definition webgpu.h:2967
WGPUTextureFormat format
Definition webgpu.h:2961
WGPUTextureFormat const * viewFormats
Definition webgpu.h:2989
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:2999
WGPUChainedStruct const * nextInChain
Definition webgpu.h:2949
WGPUPresentMode presentMode
Definition webgpu.h:3008
WGPUStringView label
Definition webgpu.h:3043
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3035
WGPUChainedStruct chain
Definition webgpu.h:3086
WGPUChainedStruct chain
Definition webgpu.h:3112
WGPUChainedStruct chain
Definition webgpu.h:3145
WGPUChainedStruct chain
Definition webgpu.h:3179
WGPUChainedStruct chain
Definition webgpu.h:3212
WGPUChainedStructOut * nextInChain
Definition webgpu.h:3246
WGPUTexture texture
Definition webgpu.h:3253
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3259
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:3832
WGPUOrigin3D origin
Definition webgpu.h:3862
WGPUTextureAspect aspect
Definition webgpu.h:3869
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3316
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3302
WGPUTextureSampleType sampleType
Definition webgpu.h:3309
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3886
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3927
WGPUTextureDimension dimension
Definition webgpu.h:3903
WGPUStringView label
Definition webgpu.h:3892
uint32_t mipLevelCount
Definition webgpu.h:3915
WGPUTextureFormat format
Definition webgpu.h:3911
WGPUTextureUsage usage
Definition webgpu.h:3896
WGPUExtent3D size
Definition webgpu.h:3907
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3337
WGPUTextureUsage usage
Definition webgpu.h:3378
WGPUTextureFormat format
Definition webgpu.h:3347
WGPUTextureViewDimension dimension
Definition webgpu.h:3351
WGPUStringView label
Definition webgpu.h:3343
WGPUTextureAspect aspect
Definition webgpu.h:3374
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1496
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1495
WGPUVertexFormat format
Definition webgpu.h:3405
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3401
uint32_t shaderLocation
Definition webgpu.h:3413
WGPUVertexAttribute const * attributes
Definition webgpu.h:3979
WGPUVertexStepMode stepMode
Definition webgpu.h:3967
WGPUChainedStruct const * nextInChain
Definition webgpu.h:3963
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4148
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4164
WGPUChainedStruct const * nextInChain
Definition webgpu.h:4138
WGPUConstantEntry const * constants
Definition webgpu.h:4156
size_t constantCount
Definition webgpu.h:4152
size_t bufferCount
Definition webgpu.h:4160