WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
webgpu.h
1
27#ifndef WEBGPU_H_
28#define WEBGPU_H_
29
30#if defined(WGPU_SHARED_LIBRARY)
31# if defined(_WIN32)
32# if defined(WGPU_IMPLEMENTATION)
33# define WGPU_EXPORT __declspec(dllexport)
34# else
35# define WGPU_EXPORT __declspec(dllimport)
36# endif
37# else // defined(_WIN32)
38# if defined(WGPU_IMPLEMENTATION)
39# define WGPU_EXPORT __attribute__((visibility("default")))
40# else
41# define WGPU_EXPORT
42# endif
43# endif // defined(_WIN32)
44#else // defined(WGPU_SHARED_LIBRARY)
45# define WGPU_EXPORT
46#endif // defined(WGPU_SHARED_LIBRARY)
47
48#if !defined(WGPU_OBJECT_ATTRIBUTE)
49#define WGPU_OBJECT_ATTRIBUTE
50#endif
51#if !defined(WGPU_ENUM_ATTRIBUTE)
52#define WGPU_ENUM_ATTRIBUTE
53#endif
54#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
55#define WGPU_STRUCTURE_ATTRIBUTE
56#endif
57#if !defined(WGPU_FUNCTION_ATTRIBUTE)
58#define WGPU_FUNCTION_ATTRIBUTE
59#endif
60#if !defined(WGPU_NULLABLE)
61#define WGPU_NULLABLE
62#endif
63
64#include <stdint.h>
65#include <stddef.h>
66#include <math.h>
67
68#define _wgpu_COMMA ,
69#if defined(__cplusplus)
70# define _wgpu_ENUM_ZERO_INIT(type) type(0)
71# define _wgpu_STRUCT_ZERO_INIT {}
72# if __cplusplus >= 201103L
73# define _wgpu_MAKE_INIT_STRUCT(type, value) (type value)
74# else
75# define _wgpu_MAKE_INIT_STRUCT(type, value) value
76# endif
77#else
78# define _wgpu_ENUM_ZERO_INIT(type) (type)0
79# define _wgpu_STRUCT_ZERO_INIT {0}
80# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
81# define _wgpu_MAKE_INIT_STRUCT(type, value) ((type) value)
82# else
83# define _wgpu_MAKE_INIT_STRUCT(type, value) value
84# endif
85#endif
86
87
94#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
95#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
100#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
101#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
102#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
103#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
104#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
105#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
106#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
107#define WGPU_WHOLE_SIZE (UINT64_MAX)
108
109
117typedef uint64_t WGPUFlags;
118typedef uint32_t WGPUBool;
119
141typedef struct WGPUStringView {
142 char const * WGPU_NULLABLE data;
143 size_t length;
145
150#define WGPU_STRLEN SIZE_MAX
151
155#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
156 /*.data=*/NULL _wgpu_COMMA \
157 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
158})
159
160
169typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
170typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
171typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
172typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
173typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
174typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
175typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
176typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
177typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
178typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
179typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
180typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
181typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
182typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
183typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
184typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
185typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
186typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
187typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
191typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
192typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
193typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
194
195
197// Structure forward declarations
198struct WGPUAdapterInfo;
199struct WGPUBindGroupEntry;
200struct WGPUBlendComponent;
203struct WGPUColor;
207struct WGPUConstantEntry;
208struct WGPUExtent3D;
209struct WGPUFuture;
211struct WGPULimits;
213struct WGPUOrigin3D;
216struct WGPUPrimitiveState;
244struct WGPUSurfaceTexture;
251struct WGPUBlendState;
254struct WGPUComputeState;
257struct WGPUFutureWaitInfo;
268struct WGPUVertexState;
269struct WGPUFragmentState;
271
272// Callback info structure forward declarations
283
284
291typedef enum WGPUAdapterType {
296 WGPUAdapterType_Force32 = 0x7FFFFFFF
297} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
298
309
325
350
363
380
387
416
432
438
445
472
480
481typedef enum WGPUCullMode {
486 WGPUCullMode_None = 0x00000001,
487 WGPUCullMode_Front = 0x00000002,
488 WGPUCullMode_Back = 0x00000003,
489 WGPUCullMode_Force32 = 0x7FFFFFFF
490} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
491
499
500typedef enum WGPUErrorFilter {
504 WGPUErrorFilter_Force32 = 0x7FFFFFFF
505} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
506
507typedef enum WGPUErrorType {
513 WGPUErrorType_Force32 = 0x7FFFFFFF
514} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
515
519typedef enum WGPUFeatureLevel {
532 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
533} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
534
559
560typedef enum WGPUFilterMode {
567 WGPUFilterMode_Force32 = 0x7FFFFFFF
568} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
569
570typedef enum WGPUFrontFace {
575 WGPUFrontFace_CCW = 0x00000001,
576 WGPUFrontFace_CW = 0x00000002,
577 WGPUFrontFace_Force32 = 0x7FFFFFFF
578} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
579
580typedef enum WGPUIndexFormat {
587 WGPUIndexFormat_Force32 = 0x7FFFFFFF
588} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
589
590typedef enum WGPULoadOp {
595 WGPULoadOp_Load = 0x00000001,
596 WGPULoadOp_Clear = 0x00000002,
597 WGPULoadOp_Force32 = 0x7FFFFFFF
598} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
599
607
617
618typedef enum WGPUOptionalBool {
625 WGPUOptionalBool_Force32 = 0x7FFFFFFF
626} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
627
640
650
656
689
702
703typedef enum WGPUQueryType {
706 WGPUQueryType_Force32 = 0x7FFFFFFF
707} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
708
719
727
734
749
766
772typedef enum WGPUStatus {
773 WGPUStatus_Success = 0x00000001,
774 WGPUStatus_Error = 0x00000002,
775 WGPUStatus_Force32 = 0x7FFFFFFF
776} WGPUStatus WGPU_ENUM_ATTRIBUTE;
777
793
810
811typedef enum WGPUStoreOp {
816 WGPUStoreOp_Store = 0x00000001,
818 WGPUStoreOp_Force32 = 0x7FFFFFFF
819} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
820
851
862
873
874typedef enum WGPUTextureFormat {
974 WGPUTextureFormat_Force32 = 0x7FFFFFFF
975} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
976
995
1009
1015
1016typedef enum WGPUVertexFormat {
1058 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1059} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1060
1070
1078
1082typedef enum WGPUWaitStatus {
1096 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1097} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1098
1099
1115static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1116static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1117static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1118static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1119static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1120static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1121static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1122static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1123static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1124static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1125static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1126
1134static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1135static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1136static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1137static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1138static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1142static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1143
1151static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1152static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1153static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1154
1162static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1163static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1164static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1165static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1166
1174static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1175static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1176static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1177static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1178static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1179static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1180
1181
1183typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1184
1185
1198typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1207typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1214typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1221typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1232typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1250typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1254typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1264typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1274typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1284typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1285
1294typedef struct WGPUChainedStruct {
1297} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1298
1327
1331#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1332 /*.nextInChain=*/NULL _wgpu_COMMA \
1333 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1334 /*.callback=*/NULL _wgpu_COMMA \
1335 /*.userdata1=*/NULL _wgpu_COMMA \
1336 /*.userdata2=*/NULL _wgpu_COMMA \
1337})
1338
1351
1355#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1356 /*.nextInChain=*/NULL _wgpu_COMMA \
1357 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1358 /*.callback=*/NULL _wgpu_COMMA \
1359 /*.userdata1=*/NULL _wgpu_COMMA \
1360 /*.userdata2=*/NULL _wgpu_COMMA \
1361})
1362
1375
1379#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1380 /*.nextInChain=*/NULL _wgpu_COMMA \
1381 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1382 /*.callback=*/NULL _wgpu_COMMA \
1383 /*.userdata1=*/NULL _wgpu_COMMA \
1384 /*.userdata2=*/NULL _wgpu_COMMA \
1385})
1386
1399
1403#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1404 /*.nextInChain=*/NULL _wgpu_COMMA \
1405 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1406 /*.callback=*/NULL _wgpu_COMMA \
1407 /*.userdata1=*/NULL _wgpu_COMMA \
1408 /*.userdata2=*/NULL _wgpu_COMMA \
1409})
1410
1423
1427#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1428 /*.nextInChain=*/NULL _wgpu_COMMA \
1429 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1430 /*.callback=*/NULL _wgpu_COMMA \
1431 /*.userdata1=*/NULL _wgpu_COMMA \
1432 /*.userdata2=*/NULL _wgpu_COMMA \
1433})
1434
1447
1451#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1452 /*.nextInChain=*/NULL _wgpu_COMMA \
1453 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1454 /*.callback=*/NULL _wgpu_COMMA \
1455 /*.userdata1=*/NULL _wgpu_COMMA \
1456 /*.userdata2=*/NULL _wgpu_COMMA \
1457})
1458
1471
1475#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1476 /*.nextInChain=*/NULL _wgpu_COMMA \
1477 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1478 /*.callback=*/NULL _wgpu_COMMA \
1479 /*.userdata1=*/NULL _wgpu_COMMA \
1480 /*.userdata2=*/NULL _wgpu_COMMA \
1481})
1482
1495
1499#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1500 /*.nextInChain=*/NULL _wgpu_COMMA \
1501 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1502 /*.callback=*/NULL _wgpu_COMMA \
1503 /*.userdata1=*/NULL _wgpu_COMMA \
1504 /*.userdata2=*/NULL _wgpu_COMMA \
1505})
1506
1519
1523#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1524 /*.nextInChain=*/NULL _wgpu_COMMA \
1525 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1526 /*.callback=*/NULL _wgpu_COMMA \
1527 /*.userdata1=*/NULL _wgpu_COMMA \
1528 /*.userdata2=*/NULL _wgpu_COMMA \
1529})
1530
1537
1541#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1542 /*.nextInChain=*/NULL _wgpu_COMMA \
1543 /*.callback=*/NULL _wgpu_COMMA \
1544 /*.userdata1=*/NULL _wgpu_COMMA \
1545 /*.userdata2=*/NULL _wgpu_COMMA \
1546})
1547
1604
1608#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1609 /*.nextInChain=*/NULL _wgpu_COMMA \
1610 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1611 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1612 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1613 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1614 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1615 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1616 /*.vendorID=*/0 _wgpu_COMMA \
1617 /*.deviceID=*/0 _wgpu_COMMA \
1618 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1619 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1620})
1621
1625typedef struct WGPUBindGroupEntry {
1632 uint32_t binding;
1639 WGPU_NULLABLE WGPUBuffer buffer;
1646 uint64_t offset;
1654 uint64_t size;
1661 WGPU_NULLABLE WGPUSampler sampler;
1669} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1670
1674#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1675 /*.nextInChain=*/NULL _wgpu_COMMA \
1676 /*.binding=*/0 _wgpu_COMMA \
1677 /*.buffer=*/NULL _wgpu_COMMA \
1678 /*.offset=*/0 _wgpu_COMMA \
1679 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1680 /*.sampler=*/NULL _wgpu_COMMA \
1681 /*.textureView=*/NULL _wgpu_COMMA \
1682})
1683
1710
1714#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1715 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1716 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1717 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1718})
1719
1741
1745#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1746 /*.nextInChain=*/NULL _wgpu_COMMA \
1747 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1748 /*.hasDynamicOffset=*/0 _wgpu_COMMA \
1749 /*.minBindingSize=*/0 _wgpu_COMMA \
1750})
1751
1776
1780#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1781 /*.nextInChain=*/NULL _wgpu_COMMA \
1782 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1783 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1784 /*.size=*/0 _wgpu_COMMA \
1785 /*.mappedAtCreation=*/0 _wgpu_COMMA \
1786})
1787
1795typedef struct WGPUColor {
1799 double r;
1803 double g;
1807 double b;
1811 double a;
1812} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1813
1817#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1818 /*.r=*/0. _wgpu_COMMA \
1819 /*.g=*/0. _wgpu_COMMA \
1820 /*.b=*/0. _wgpu_COMMA \
1821 /*.a=*/0. _wgpu_COMMA \
1822})
1823
1836
1840#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1841 /*.nextInChain=*/NULL _wgpu_COMMA \
1842 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1843})
1844
1857
1861#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
1862 /*.nextInChain=*/NULL _wgpu_COMMA \
1863 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1864})
1865
1913
1917#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
1918 /*.nextInChain=*/NULL _wgpu_COMMA \
1919 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1920 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
1921 /*.lineNum=*/0 _wgpu_COMMA \
1922 /*.linePos=*/0 _wgpu_COMMA \
1923 /*.offset=*/0 _wgpu_COMMA \
1924 /*.length=*/0 _wgpu_COMMA \
1925})
1926
1947
1951#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
1952 /*.nextInChain=*/NULL _wgpu_COMMA \
1953 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1954 /*.value=*/0. _wgpu_COMMA \
1955})
1956
1960typedef struct WGPUExtent3D {
1964 uint32_t width;
1968 uint32_t height;
1973} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
1974
1978#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
1979 /*.width=*/0 _wgpu_COMMA \
1980 /*.height=*/1 _wgpu_COMMA \
1981 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
1982})
1983
1989typedef struct WGPUFuture {
1995 uint64_t id;
1996} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
1997
2001#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2002 /*.id=*/0 _wgpu_COMMA \
2003})
2004
2025
2029#define WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceCapabilities, { \
2030 /*.nextInChain=*/NULL _wgpu_COMMA \
2031 /*.timedWaitAnyEnable=*/0 _wgpu_COMMA \
2032 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2033})
2034
2165
2169#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2170 /*.nextInChain=*/NULL _wgpu_COMMA \
2171 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2172 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2173 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2174 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2175 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2176 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2177 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2178 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2179 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2180 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2181 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2182 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2183 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2184 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2185 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2186 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2187 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2188 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2189 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2190 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2191 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2192 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2193 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2194 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2195 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2196 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2197 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2198 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2199 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2200 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2201 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2202})
2203
2222
2226#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2227 /*.nextInChain=*/NULL _wgpu_COMMA \
2228 /*.count=*/1 _wgpu_COMMA \
2229 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2230 /*.alphaToCoverageEnabled=*/0 _wgpu_COMMA \
2231})
2232
2236typedef struct WGPUOrigin3D {
2240 uint32_t x;
2244 uint32_t y;
2248 uint32_t z;
2249} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2250
2254#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2255 /*.x=*/0 _wgpu_COMMA \
2256 /*.y=*/0 _wgpu_COMMA \
2257 /*.z=*/0 _wgpu_COMMA \
2258})
2259
2280
2284#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2285 /*.nextInChain=*/NULL _wgpu_COMMA \
2286 /*.querySet=*/NULL _wgpu_COMMA \
2287 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2288 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2289})
2290
2311
2315#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2316 /*.nextInChain=*/NULL _wgpu_COMMA \
2317 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2318 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2319 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2320})
2321
2357
2361#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2362 /*.nextInChain=*/NULL _wgpu_COMMA \
2363 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2364 /*.stripIndexFormat=*/_wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
2365 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2366 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2367 /*.unclippedDepth=*/0 _wgpu_COMMA \
2368})
2369
2390
2394#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2395 /*.nextInChain=*/NULL _wgpu_COMMA \
2396 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2397 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2398 /*.count=*/0 _wgpu_COMMA \
2399})
2400
2413
2417#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2418 /*.nextInChain=*/NULL _wgpu_COMMA \
2419 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2420})
2421
2434
2438#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2439 /*.nextInChain=*/NULL _wgpu_COMMA \
2440 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2441})
2442
2479
2483#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2484 /*.nextInChain=*/NULL _wgpu_COMMA \
2485 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2486 /*.colorFormatCount=*/0 _wgpu_COMMA \
2487 /*.colorFormats=*/NULL _wgpu_COMMA \
2488 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2489 /*.sampleCount=*/1 _wgpu_COMMA \
2490 /*.depthReadOnly=*/0 _wgpu_COMMA \
2491 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2492})
2493
2543
2547#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2548 /*.nextInChain=*/NULL _wgpu_COMMA \
2549 /*.view=*/NULL _wgpu_COMMA \
2550 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2551 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2552 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2553 /*.depthReadOnly=*/0 _wgpu_COMMA \
2554 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2555 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2556 /*.stencilClearValue=*/0 _wgpu_COMMA \
2557 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2558})
2559
2570
2574#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2575 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2576 /*.next=*/NULL _wgpu_COMMA \
2577 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2578 }) _wgpu_COMMA \
2579 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2580})
2581
2624
2628#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
2629 /*.nextInChain=*/NULL _wgpu_COMMA \
2630 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
2631 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
2632 /*.forceFallbackAdapter=*/0 _wgpu_COMMA \
2633 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
2634 /*.compatibleSurface=*/NULL _wgpu_COMMA \
2635})
2636
2651
2655#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2656 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2657 /*.next=*/NULL _wgpu_COMMA \
2658 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2659 }) _wgpu_COMMA \
2660 /*.xrCompatible=*/0 _wgpu_COMMA \
2661})
2662
2676
2680#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2681 /*.nextInChain=*/NULL _wgpu_COMMA \
2682 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2683})
2684
2763
2767#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2768 /*.nextInChain=*/NULL _wgpu_COMMA \
2769 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2770 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2771 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2772 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2773 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2774 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2775 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2776 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2777 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2778 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2779 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2780})
2781
2794
2798#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
2799 /*.nextInChain=*/NULL _wgpu_COMMA \
2800 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2801})
2802
2811 uint32_t codeSize;
2815 uint32_t const * code;
2816} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2817
2821#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2822 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2823 /*.next=*/NULL _wgpu_COMMA \
2824 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2825 }) _wgpu_COMMA \
2826 /*.codeSize=*/0 _wgpu_COMMA \
2827 /*.code=*/NULL _wgpu_COMMA \
2828})
2829
2842
2846#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2847 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2848 /*.next=*/NULL _wgpu_COMMA \
2849 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2850 }) _wgpu_COMMA \
2851 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2852})
2853
2887
2891#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2892 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2893 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2894 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2895 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2896})
2897
2922
2926#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
2927 /*.nextInChain=*/NULL _wgpu_COMMA \
2928 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
2929 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2930 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
2931})
2932
2945} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
2946
2950#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
2951 /*.featureCount=*/0 _wgpu_COMMA \
2952 /*.features=*/NULL _wgpu_COMMA \
2953})
2954
2968
2972#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
2973 /*.featureCount=*/0 _wgpu_COMMA \
2974 /*.features=*/NULL _wgpu_COMMA \
2975})
2976
3024
3028#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3029 /*.nextInChain=*/NULL _wgpu_COMMA \
3030 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3031 /*.formatCount=*/0 _wgpu_COMMA \
3032 /*.formats=*/NULL _wgpu_COMMA \
3033 /*.presentModeCount=*/0 _wgpu_COMMA \
3034 /*.presentModes=*/NULL _wgpu_COMMA \
3035 /*.alphaModeCount=*/0 _wgpu_COMMA \
3036 /*.alphaModes=*/NULL _wgpu_COMMA \
3037})
3038
3055
3059#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3060 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3061 /*.next=*/NULL _wgpu_COMMA \
3062 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3063 }) _wgpu_COMMA \
3064 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3065 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3066})
3067
3136
3140#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3141 /*.nextInChain=*/NULL _wgpu_COMMA \
3142 /*.device=*/NULL _wgpu_COMMA \
3143 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3144 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3145 /*.width=*/0 _wgpu_COMMA \
3146 /*.height=*/0 _wgpu_COMMA \
3147 /*.viewFormatCount=*/0 _wgpu_COMMA \
3148 /*.viewFormats=*/NULL _wgpu_COMMA \
3149 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3150 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3151})
3152
3171
3175#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
3176 /*.nextInChain=*/NULL _wgpu_COMMA \
3177 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3178})
3179
3194
3198#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3199 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3200 /*.next=*/NULL _wgpu_COMMA \
3201 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3202 }) _wgpu_COMMA \
3203 /*.window=*/NULL _wgpu_COMMA \
3204})
3205
3220
3224#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3225 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3226 /*.next=*/NULL _wgpu_COMMA \
3227 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3228 }) _wgpu_COMMA \
3229 /*.layer=*/NULL _wgpu_COMMA \
3230})
3231
3252
3256#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3257 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3258 /*.next=*/NULL _wgpu_COMMA \
3259 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3260 }) _wgpu_COMMA \
3261 /*.display=*/NULL _wgpu_COMMA \
3262 /*.surface=*/NULL _wgpu_COMMA \
3263})
3264
3286
3290#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3291 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3292 /*.next=*/NULL _wgpu_COMMA \
3293 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3294 }) _wgpu_COMMA \
3295 /*.hinstance=*/NULL _wgpu_COMMA \
3296 /*.hwnd=*/NULL _wgpu_COMMA \
3297})
3298
3319
3323#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3324 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3325 /*.next=*/NULL _wgpu_COMMA \
3326 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3327 }) _wgpu_COMMA \
3328 /*.connection=*/NULL _wgpu_COMMA \
3329 /*.window=*/0 _wgpu_COMMA \
3330})
3331
3352
3356#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3357 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3358 /*.next=*/NULL _wgpu_COMMA \
3359 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3360 }) _wgpu_COMMA \
3361 /*.display=*/NULL _wgpu_COMMA \
3362 /*.window=*/0 _wgpu_COMMA \
3363})
3364
3387
3391#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3392 /*.nextInChain=*/NULL _wgpu_COMMA \
3393 /*.texture=*/NULL _wgpu_COMMA \
3394 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3395})
3396
3404 uint64_t offset;
3408 uint32_t bytesPerRow;
3413} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3414
3418#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3419 /*.offset=*/0 _wgpu_COMMA \
3420 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3421 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3422})
3423
3448
3452#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3453 /*.nextInChain=*/NULL _wgpu_COMMA \
3454 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3455 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3456 /*.multisampled=*/0 _wgpu_COMMA \
3457})
3458
3506
3510#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3511 /*.nextInChain=*/NULL _wgpu_COMMA \
3512 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3513 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3514 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3515 /*.baseMipLevel=*/0 _wgpu_COMMA \
3516 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3517 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3518 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3519 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3520 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3521})
3522
3541
3545#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3546 /*.nextInChain=*/NULL _wgpu_COMMA \
3547 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3548 /*.offset=*/0 _wgpu_COMMA \
3549 /*.shaderLocation=*/0 _wgpu_COMMA \
3550})
3551
3576
3580#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3581 /*.nextInChain=*/NULL _wgpu_COMMA \
3582 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3583 /*.layout=*/NULL _wgpu_COMMA \
3584 /*.entryCount=*/0 _wgpu_COMMA \
3585 /*.entries=*/NULL _wgpu_COMMA \
3586})
3587
3618
3622#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3623 /*.nextInChain=*/NULL _wgpu_COMMA \
3624 /*.binding=*/0 _wgpu_COMMA \
3625 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3626 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3627 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3628 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3629 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3630})
3631
3645
3649#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3650 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3651 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3652})
3653
3671
3675#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3676 /*.nextInChain=*/NULL _wgpu_COMMA \
3677 /*.messageCount=*/0 _wgpu_COMMA \
3678 /*.messages=*/NULL _wgpu_COMMA \
3679})
3680
3697
3701#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3702 /*.nextInChain=*/NULL _wgpu_COMMA \
3703 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3704 /*.timestampWrites=*/NULL _wgpu_COMMA \
3705})
3706
3731
3735#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3736 /*.nextInChain=*/NULL _wgpu_COMMA \
3737 /*.module=*/NULL _wgpu_COMMA \
3738 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3739 /*.constantCount=*/0 _wgpu_COMMA \
3740 /*.constants=*/NULL _wgpu_COMMA \
3741})
3742
3797
3801#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3802 /*.nextInChain=*/NULL _wgpu_COMMA \
3803 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3804 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3805 /*.depthCompare=*/_wgpu_ENUM_ZERO_INIT(WGPUCompareFunction) _wgpu_COMMA \
3806 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3807 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3808 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3809 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3810 /*.depthBias=*/0 _wgpu_COMMA \
3811 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3812 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3813})
3814
3856
3860#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
3861 /*.nextInChain=*/NULL _wgpu_COMMA \
3862 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3863 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3864 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3865 /*.requiredLimits=*/NULL _wgpu_COMMA \
3866 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
3867 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
3868 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
3869})
3870
3890
3894#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3895 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3896 /*.completed=*/0 _wgpu_COMMA \
3897})
3898
3911
3915#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
3916 /*.nextInChain=*/NULL _wgpu_COMMA \
3917 /*.capabilities=*/WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_COMMA \
3918})
3919
3953
3957#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
3958 /*.nextInChain=*/NULL _wgpu_COMMA \
3959 /*.view=*/NULL _wgpu_COMMA \
3960 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
3961 /*.resolveTarget=*/NULL _wgpu_COMMA \
3962 /*.loadOp=*/_wgpu_ENUM_ZERO_INIT(WGPULoadOp) _wgpu_COMMA \
3963 /*.storeOp=*/_wgpu_ENUM_ZERO_INIT(WGPUStoreOp) _wgpu_COMMA \
3964 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
3965})
3966
3980
3984#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
3985 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
3986 /*.buffer=*/NULL _wgpu_COMMA \
3987})
3988
4013
4017#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4018 /*.texture=*/NULL _wgpu_COMMA \
4019 /*.mipLevel=*/0 _wgpu_COMMA \
4020 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4021 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4022})
4023
4071
4075#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4076 /*.nextInChain=*/NULL _wgpu_COMMA \
4077 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4078 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4079 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4080 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4081 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4082 /*.mipLevelCount=*/1 _wgpu_COMMA \
4083 /*.sampleCount=*/1 _wgpu_COMMA \
4084 /*.viewFormatCount=*/0 _wgpu_COMMA \
4085 /*.viewFormats=*/NULL _wgpu_COMMA \
4086})
4087
4123
4127#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4128 /*.nextInChain=*/NULL _wgpu_COMMA \
4129 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4130 /*.arrayStride=*/0 _wgpu_COMMA \
4131 /*.attributeCount=*/0 _wgpu_COMMA \
4132 /*.attributes=*/NULL _wgpu_COMMA \
4133})
4134
4155
4159#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4160 /*.nextInChain=*/NULL _wgpu_COMMA \
4161 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4162 /*.entryCount=*/0 _wgpu_COMMA \
4163 /*.entries=*/NULL _wgpu_COMMA \
4164})
4165
4188
4192#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4193 /*.nextInChain=*/NULL _wgpu_COMMA \
4194 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4195 /*.blend=*/NULL _wgpu_COMMA \
4196 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4197})
4198
4219
4223#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4224 /*.nextInChain=*/NULL _wgpu_COMMA \
4225 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4226 /*.layout=*/NULL _wgpu_COMMA \
4227 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4228})
4229
4262
4266#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4267 /*.nextInChain=*/NULL _wgpu_COMMA \
4268 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4269 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4270 /*.colorAttachments=*/NULL _wgpu_COMMA \
4271 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4272 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4273 /*.timestampWrites=*/NULL _wgpu_COMMA \
4274})
4275
4308
4312#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4313 /*.nextInChain=*/NULL _wgpu_COMMA \
4314 /*.module=*/NULL _wgpu_COMMA \
4315 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4316 /*.constantCount=*/0 _wgpu_COMMA \
4317 /*.constants=*/NULL _wgpu_COMMA \
4318 /*.bufferCount=*/0 _wgpu_COMMA \
4319 /*.buffers=*/NULL _wgpu_COMMA \
4320})
4321
4354
4358#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4359 /*.nextInChain=*/NULL _wgpu_COMMA \
4360 /*.module=*/NULL _wgpu_COMMA \
4361 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4362 /*.constantCount=*/0 _wgpu_COMMA \
4363 /*.constants=*/NULL _wgpu_COMMA \
4364 /*.targetCount=*/0 _wgpu_COMMA \
4365 /*.targets=*/NULL _wgpu_COMMA \
4366})
4367
4404
4408#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4409 /*.nextInChain=*/NULL _wgpu_COMMA \
4410 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4411 /*.layout=*/NULL _wgpu_COMMA \
4412 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4413 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4414 /*.depthStencil=*/NULL _wgpu_COMMA \
4415 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4416 /*.fragment=*/NULL _wgpu_COMMA \
4417})
4418
4421#ifdef __cplusplus
4422extern "C" {
4423#endif
4424
4425#if !defined(WGPU_SKIP_PROCS)
4426
4431typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4436typedef WGPUStatus (*WGPUProcGetInstanceCapabilities)(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
4441typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4442
4443// Procs of Adapter
4448typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4453typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4458typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4463typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4468typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4473typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4478typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4479
4480// Procs of AdapterInfo
4485typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4486
4487// Procs of BindGroup
4492typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4497typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4502typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4503
4504// Procs of BindGroupLayout
4509typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4514typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4519typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4520
4521// Procs of Buffer
4526typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4531typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4536typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4541typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4546typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4551typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4556typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4561typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4566typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4571typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4576typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4577
4578// Procs of CommandBuffer
4583typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4588typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4593typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4594
4595// Procs of CommandEncoder
4600typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4605typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4610typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4615typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4620typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4625typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4630typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4635typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4640typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4645typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4650typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4655typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4660typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4665typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4670typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4675typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4676
4677// Procs of ComputePassEncoder
4682typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4687typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4692typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4697typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4702typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4707typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4712typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4717typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4722typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4727typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4732typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4733
4734// Procs of ComputePipeline
4739typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
4744typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4749typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4754typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4755
4756// Procs of Device
4761typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4766typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4771typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4776typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4781typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4786typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4791typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4796typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4801typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4806typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4811typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4816typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4821typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4826typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4831typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4836typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4841typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4846typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4851typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4856typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4861typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4866typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4871typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
4876typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4881typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4886typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4887
4888// Procs of Instance
4893typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4898typedef WGPUStatus (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4903typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4908typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4913typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4918typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
4923typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4928typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4929
4930// Procs of PipelineLayout
4935typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4940typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4945typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
4946
4947// Procs of QuerySet
4952typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4957typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4962typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4967typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4972typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4977typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
4978
4979// Procs of Queue
4984typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4989typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4994typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
4999typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5004typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5009typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5014typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5015
5016// Procs of RenderBundle
5021typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5026typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5031typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5032
5033// Procs of RenderBundleEncoder
5038typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5043typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5048typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5053typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5058typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5063typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5068typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5073typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5078typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5083typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5088typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5093typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5098typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5103typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5108typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5109
5110// Procs of RenderPassEncoder
5115typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5120typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5125typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5130typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5135typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5140typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5145typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5150typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5155typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5160typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5165typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5170typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5175typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5180typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5185typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5190typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5195typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5200typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5205typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5210typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5215typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5220typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5221
5222// Procs of RenderPipeline
5227typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5232typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5237typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5242typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5243
5244// Procs of Sampler
5249typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5254typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5259typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5260
5261// Procs of ShaderModule
5266typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5271typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5276typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5281typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5282
5283// Procs of SupportedFeatures
5288typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5289
5290// Procs of SupportedWGSLLanguageFeatures
5295typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5296
5297// Procs of Surface
5302typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5307typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5312typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5317typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5322typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5327typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5332typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5337typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5338
5339// Procs of SurfaceCapabilities
5344typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5345
5346// Procs of Texture
5351typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5356typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5361typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5366typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5371typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5376typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5381typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5386typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5391typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5396typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5401typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5406typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5411typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5412
5413// Procs of TextureView
5418typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5423typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5428typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5429
5430#endif // !defined(WGPU_SKIP_PROCS)
5431
5432#if !defined(WGPU_SKIP_DECLARATIONS)
5445WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5455WGPU_EXPORT WGPUStatus wgpuGetInstanceCapabilities(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5460WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5461
5462
5484WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5492WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5497WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5498WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5499WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5500WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5501WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5515WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5526WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5527WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5528WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5539WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5540WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5541WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5552WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5565WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5566WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5578WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5579WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5580WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5581WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5582WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5583WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5584WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5585WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5596WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5597WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5598WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5613WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5618WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5619WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5620WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5621WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5622WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5623WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5628WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5629WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5630WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5631WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5632WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5633WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5634WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5635WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5636WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5647WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5648WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5649WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5650WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5651WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5652WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5653WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5654WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5655WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5656WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5657WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5672WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5673WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5674WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5675WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5690WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5695WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5705WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5710WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5715WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5721WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5726WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5736WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5742WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5747WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5752WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5753WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5761WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5768WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5773WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5778WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5783WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5784WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5789WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5794WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5795WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5796WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5797WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5818WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5823WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5829WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5830WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5836WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5837WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5838WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5849WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5850WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5851WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5862WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5863WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5864WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5865WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5866WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5867WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5878WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5879WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5880WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5885WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5886WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5887WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5888WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5899WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5900WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5901WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5912WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5913WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5914WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5915WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5920WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5921WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5922WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5923WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5924WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5925WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5926WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5927WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5928WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5929WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5930WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5941WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5942WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5943WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5944WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5945WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5946WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5947WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5948WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5949WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5950WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5951WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5952WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5957WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5958WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5959WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5960WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5961WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5962WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5963WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5969WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5970WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5971WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5986WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5987WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5988WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5989WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6000WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6001WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6002WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6013WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6014WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6015WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6016WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6030WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6044WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6064WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6080WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6090WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6098WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6105WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6110WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6111WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6112WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6126WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6141WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6142WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6143WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6144WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6145WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6146WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6147WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6148WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6149WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6150WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6151WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6152WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6153WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6164WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6165WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6166WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6172#endif // !defined(WGPU_SKIP_DECLARATIONS)
6173
6174#ifdef __cplusplus
6175} // extern "C"
6176#endif
6177
6178#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1137
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1124
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1130
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1123
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1138
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1116
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1120
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1115
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1151
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1174
WGPUFlags WGPUMapMode
Definition webgpu.h:1147
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1177
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1142
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1175
WGPUFlags WGPUShaderStage
Definition webgpu.h:1158
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1125
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1164
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1165
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1153
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1162
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1179
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1117
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1176
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1118
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1178
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1170
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1122
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1152
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1136
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1121
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1163
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1134
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1135
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1111
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1119
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1284
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1274
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1214
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1232
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1221
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1207
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1264
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, void *userdata1, void *userdata2)
Definition webgpu.h:1254
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1198
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1250
WGPUIndexFormat
Definition webgpu.h:580
WGPURequestAdapterStatus
Definition webgpu.h:720
WGPUFeatureName
Definition webgpu.h:535
WGPUVertexFormat
Definition webgpu.h:1016
WGPUSType
Definition webgpu.h:735
WGPUBufferBindingType
Definition webgpu.h:364
WGPUDeviceLostReason
Definition webgpu.h:492
WGPUCompareFunction
Definition webgpu.h:417
WGPUCullMode
Definition webgpu.h:481
WGPUTextureDimension
Definition webgpu.h:863
WGPURequestDeviceStatus
Definition webgpu.h:728
WGPUCompilationMessageType
Definition webgpu.h:439
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:473
WGPUTextureViewDimension
Definition webgpu.h:996
WGPUPrimitiveTopology
Definition webgpu.h:690
WGPUTextureFormat
Definition webgpu.h:874
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1071
WGPUStencilOperation
Definition webgpu.h:778
WGPUAddressMode
Definition webgpu.h:299
WGPUToneMappingMode
Definition webgpu.h:1010
WGPUTextureAspect
Definition webgpu.h:852
WGPUBufferMapState
Definition webgpu.h:381
WGPUFilterMode
Definition webgpu.h:560
WGPUBackendType
Definition webgpu.h:310
WGPUBlendFactor
Definition webgpu.h:326
WGPUSamplerBindingType
Definition webgpu.h:750
WGPULoadOp
Definition webgpu.h:590
WGPUPopErrorScopeStatus
Definition webgpu.h:628
WGPUWaitStatus
Definition webgpu.h:1082
WGPUStorageTextureAccess
Definition webgpu.h:794
WGPUPowerPreference
Definition webgpu.h:641
WGPUPresentMode
Definition webgpu.h:660
WGPUMapAsyncStatus
Definition webgpu.h:600
WGPUBlendOperation
Definition webgpu.h:351
WGPUCompositeAlphaMode
Definition webgpu.h:449
WGPUPredefinedColorSpace
Definition webgpu.h:651
WGPUQueueWorkDoneStatus
Definition webgpu.h:709
WGPUVertexStepMode
Definition webgpu.h:1061
WGPUQueryType
Definition webgpu.h:703
WGPUFeatureLevel
Definition webgpu.h:519
WGPUAdapterType
Definition webgpu.h:291
WGPUStatus
Definition webgpu.h:772
WGPUCompilationInfoRequestStatus
Definition webgpu.h:433
WGPUMipmapFilterMode
Definition webgpu.h:608
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:824
WGPUFrontFace
Definition webgpu.h:570
WGPUStoreOp
Definition webgpu.h:811
WGPUErrorFilter
Definition webgpu.h:500
WGPUOptionalBool
Definition webgpu.h:618
WGPUCallbackMode
Definition webgpu.h:391
WGPUTextureSampleType
Definition webgpu.h:977
WGPUErrorType
Definition webgpu.h:507
@ WGPUIndexFormat_Force32
Definition webgpu.h:587
@ WGPUIndexFormat_Uint16
Definition webgpu.h:585
@ WGPUIndexFormat_Undefined
Definition webgpu.h:584
@ WGPUIndexFormat_Uint32
Definition webgpu.h:586
@ WGPURequestAdapterStatus_InstanceDropped
Definition webgpu.h:722
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:723
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:721
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:724
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:725
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:546
@ WGPUFeatureName_Subgroups
Definition webgpu.h:556
@ WGPUFeatureName_Force32
Definition webgpu.h:557
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:554
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:541
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:550
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:551
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:553
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:555
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:547
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:544
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:549
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:552
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:542
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:543
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:545
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:548
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:540
@ WGPUFeatureName_Undefined
Definition webgpu.h:539
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1055
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1045
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1053
@ WGPUVertexFormat_Float32
Definition webgpu.h:1044
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1043
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1031
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1027
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1019
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1021
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1023
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1025
@ WGPUVertexFormat_Force32
Definition webgpu.h:1058
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1018
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1047
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1042
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1048
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1026
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1020
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1051
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1057
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1052
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1029
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1049
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1050
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1038
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1034
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1056
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1036
@ WGPUVertexFormat_Float16
Definition webgpu.h:1041
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1024
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1054
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1033
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1028
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1017
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1022
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1035
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1032
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1030
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1039
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1037
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1046
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1040
@ WGPUSType_Force32
Definition webgpu.h:747
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:742
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:736
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:745
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:743
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:744
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:740
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:738
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:739
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:746
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:737
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:741
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:370
@ WGPUBufferBindingType_Storage
Definition webgpu.h:376
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:374
@ WGPUBufferBindingType_Force32
Definition webgpu.h:378
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:377
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:375
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:496
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:494
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:497
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:493
@ WGPUDeviceLostReason_InstanceDropped
Definition webgpu.h:495
@ WGPUCompareFunction_Force32
Definition webgpu.h:430
@ WGPUCompareFunction_Always
Definition webgpu.h:429
@ WGPUCompareFunction_Never
Definition webgpu.h:422
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:427
@ WGPUCompareFunction_Less
Definition webgpu.h:423
@ WGPUCompareFunction_Undefined
Definition webgpu.h:421
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:428
@ WGPUCompareFunction_Equal
Definition webgpu.h:424
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:425
@ WGPUCompareFunction_Greater
Definition webgpu.h:426
@ WGPUCullMode_Force32
Definition webgpu.h:489
@ WGPUCullMode_Undefined
Definition webgpu.h:485
@ WGPUCullMode_Back
Definition webgpu.h:488
@ WGPUCullMode_Front
Definition webgpu.h:487
@ WGPUCullMode_None
Definition webgpu.h:486
@ WGPUTextureDimension_Undefined
Definition webgpu.h:867
@ WGPUTextureDimension_2D
Definition webgpu.h:869
@ WGPUTextureDimension_Force32
Definition webgpu.h:871
@ WGPUTextureDimension_3D
Definition webgpu.h:870
@ WGPUTextureDimension_1D
Definition webgpu.h:868
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:729
@ WGPURequestDeviceStatus_InstanceDropped
Definition webgpu.h:730
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:731
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:732
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:443
@ WGPUCompilationMessageType_Info
Definition webgpu.h:442
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:441
@ WGPUCompilationMessageType_Error
Definition webgpu.h:440
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:478
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:476
@ WGPUCreatePipelineAsyncStatus_InstanceDropped
Definition webgpu.h:475
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:474
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:477
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1004
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1003
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1002
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1006
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1001
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1005
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1000
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1007
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:696
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:697
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:694
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:698
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:695
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:699
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:700
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:970
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:931
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:934
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:896
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:886
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:936
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:946
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:939
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:943
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:929
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:898
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:964
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:902
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:954
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:938
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:966
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:960
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:913
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:932
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:909
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:912
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:968
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:921
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:887
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:971
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:918
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:894
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:944
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:937
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:933
@ WGPUTextureFormat_R32Float
Definition webgpu.h:890
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:935
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:884
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:882
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:897
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:927
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:899
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:945
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:910
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:969
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:904
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:963
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:950
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:891
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:941
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:948
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:926
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:901
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:928
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:930
@ WGPUTextureFormat_Force32
Definition webgpu.h:974
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:922
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:951
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:959
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:892
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:925
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:914
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:916
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:942
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:955
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:893
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:967
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:906
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:917
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:889
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:961
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:883
@ WGPUTextureFormat_Undefined
Definition webgpu.h:878
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:965
@ WGPUTextureFormat_R16Float
Definition webgpu.h:885
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:949
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:907
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:905
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:973
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:915
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:923
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:895
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:952
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:919
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:962
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:911
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:879
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:920
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:924
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:958
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:888
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:881
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:956
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:972
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:903
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:947
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:940
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:908
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:957
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:900
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:880
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:953
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1072
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1074
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1075
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1076
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1073
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:788
@ WGPUStencilOperation_Undefined
Definition webgpu.h:782
@ WGPUStencilOperation_Replace
Definition webgpu.h:785
@ WGPUStencilOperation_Keep
Definition webgpu.h:783
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:790
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:789
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:787
@ WGPUStencilOperation_Invert
Definition webgpu.h:786
@ WGPUStencilOperation_Force32
Definition webgpu.h:791
@ WGPUStencilOperation_Zero
Definition webgpu.h:784
@ WGPUAddressMode_Repeat
Definition webgpu.h:305
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:306
@ WGPUAddressMode_Undefined
Definition webgpu.h:303
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:304
@ WGPUAddressMode_Force32
Definition webgpu.h:307
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1013
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1011
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1012
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:859
@ WGPUTextureAspect_Force32
Definition webgpu.h:860
@ WGPUTextureAspect_Undefined
Definition webgpu.h:856
@ WGPUTextureAspect_All
Definition webgpu.h:857
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:858
@ WGPUBufferMapState_Pending
Definition webgpu.h:383
@ WGPUBufferMapState_Mapped
Definition webgpu.h:384
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:382
@ WGPUBufferMapState_Force32
Definition webgpu.h:385
@ WGPUFilterMode_Undefined
Definition webgpu.h:564
@ WGPUFilterMode_Force32
Definition webgpu.h:567
@ WGPUFilterMode_Nearest
Definition webgpu.h:565
@ WGPUFilterMode_Linear
Definition webgpu.h:566
@ WGPUBackendType_Vulkan
Definition webgpu.h:320
@ WGPUBackendType_OpenGL
Definition webgpu.h:321
@ WGPUBackendType_Force32
Definition webgpu.h:323
@ WGPUBackendType_OpenGLES
Definition webgpu.h:322
@ WGPUBackendType_WebGPU
Definition webgpu.h:316
@ WGPUBackendType_D3D11
Definition webgpu.h:317
@ WGPUBackendType_D3D12
Definition webgpu.h:318
@ WGPUBackendType_Undefined
Definition webgpu.h:314
@ WGPUBackendType_Null
Definition webgpu.h:315
@ WGPUBackendType_Metal
Definition webgpu.h:319
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:339
@ WGPUBlendFactor_One
Definition webgpu.h:332
@ WGPUBlendFactor_Zero
Definition webgpu.h:331
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:346
@ WGPUBlendFactor_Undefined
Definition webgpu.h:330
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:338
@ WGPUBlendFactor_Force32
Definition webgpu.h:348
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:345
@ WGPUBlendFactor_Constant
Definition webgpu.h:342
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:334
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:341
@ WGPUBlendFactor_Src
Definition webgpu.h:333
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:336
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:335
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:343
@ WGPUBlendFactor_Src1
Definition webgpu.h:344
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:340
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:347
@ WGPUBlendFactor_Dst
Definition webgpu.h:337
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:756
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:762
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:764
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:761
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:760
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:763
@ WGPULoadOp_Load
Definition webgpu.h:595
@ WGPULoadOp_Force32
Definition webgpu.h:597
@ WGPULoadOp_Undefined
Definition webgpu.h:594
@ WGPULoadOp_Clear
Definition webgpu.h:596
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:638
@ WGPUPopErrorScopeStatus_InstanceDropped
Definition webgpu.h:633
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:632
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:637
@ WGPUWaitStatus_Error
Definition webgpu.h:1095
@ WGPUWaitStatus_Force32
Definition webgpu.h:1096
@ WGPUWaitStatus_Success
Definition webgpu.h:1086
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1090
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:804
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:800
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:806
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:805
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:808
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:807
@ WGPUPowerPreference_Force32
Definition webgpu.h:648
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:647
@ WGPUPowerPreference_LowPower
Definition webgpu.h:646
@ WGPUPowerPreference_Undefined
Definition webgpu.h:645
@ WGPUPresentMode_Fifo
Definition webgpu.h:670
@ WGPUPresentMode_Force32
Definition webgpu.h:687
@ WGPUPresentMode_Immediate
Definition webgpu.h:681
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:676
@ WGPUPresentMode_Mailbox
Definition webgpu.h:686
@ WGPUPresentMode_Undefined
Definition webgpu.h:664
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:604
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:603
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:605
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:601
@ WGPUMapAsyncStatus_InstanceDropped
Definition webgpu.h:602
@ WGPUBlendOperation_Undefined
Definition webgpu.h:355
@ WGPUBlendOperation_Max
Definition webgpu.h:360
@ WGPUBlendOperation_Subtract
Definition webgpu.h:357
@ WGPUBlendOperation_Min
Definition webgpu.h:359
@ WGPUBlendOperation_Add
Definition webgpu.h:356
@ WGPUBlendOperation_Force32
Definition webgpu.h:361
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:358
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:453
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:470
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:457
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:465
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:469
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:461
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:653
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:652
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:654
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:716
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:710
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:717
@ WGPUQueueWorkDoneStatus_InstanceDropped
Definition webgpu.h:711
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1065
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1067
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1066
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1068
@ WGPUQueryType_Occlusion
Definition webgpu.h:704
@ WGPUQueryType_Timestamp
Definition webgpu.h:705
@ WGPUQueryType_Force32
Definition webgpu.h:706
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:523
@ WGPUFeatureLevel_Core
Definition webgpu.h:531
@ WGPUFeatureLevel_Force32
Definition webgpu.h:532
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:527
@ WGPUAdapterType_CPU
Definition webgpu.h:294
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:292
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:293
@ WGPUAdapterType_Unknown
Definition webgpu.h:295
@ WGPUAdapterType_Force32
Definition webgpu.h:296
@ WGPUStatus_Force32
Definition webgpu.h:775
@ WGPUStatus_Success
Definition webgpu.h:773
@ WGPUStatus_Error
Definition webgpu.h:774
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:436
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:434
@ WGPUCompilationInfoRequestStatus_InstanceDropped
Definition webgpu.h:435
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:612
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:614
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:615
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:613
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:844
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:848
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:840
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:836
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:828
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:849
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:832
@ WGPUFrontFace_CW
Definition webgpu.h:576
@ WGPUFrontFace_Undefined
Definition webgpu.h:574
@ WGPUFrontFace_CCW
Definition webgpu.h:575
@ WGPUFrontFace_Force32
Definition webgpu.h:577
@ WGPUStoreOp_Discard
Definition webgpu.h:817
@ WGPUStoreOp_Force32
Definition webgpu.h:818
@ WGPUStoreOp_Store
Definition webgpu.h:816
@ WGPUStoreOp_Undefined
Definition webgpu.h:815
@ WGPUErrorFilter_Internal
Definition webgpu.h:503
@ WGPUErrorFilter_Force32
Definition webgpu.h:504
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:502
@ WGPUErrorFilter_Validation
Definition webgpu.h:501
@ WGPUOptionalBool_True
Definition webgpu.h:623
@ WGPUOptionalBool_Force32
Definition webgpu.h:625
@ WGPUOptionalBool_Undefined
Definition webgpu.h:624
@ WGPUOptionalBool_False
Definition webgpu.h:622
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:403
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:413
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:397
@ WGPUCallbackMode_Force32
Definition webgpu.h:414
@ WGPUTextureSampleType_Float
Definition webgpu.h:988
@ WGPUTextureSampleType_Sint
Definition webgpu.h:991
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:983
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:987
@ WGPUTextureSampleType_Force32
Definition webgpu.h:993
@ WGPUTextureSampleType_Uint
Definition webgpu.h:992
@ WGPUTextureSampleType_Depth
Definition webgpu.h:990
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:989
@ WGPUErrorType_NoError
Definition webgpu.h:508
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:510
@ WGPUErrorType_Unknown
Definition webgpu.h:512
@ WGPUErrorType_Validation
Definition webgpu.h:509
@ WGPUErrorType_Force32
Definition webgpu.h:513
@ WGPUErrorType_Internal
Definition webgpu.h:511
WGPUStatus wgpuGetInstanceCapabilities(WGPUInstanceCapabilities *capabilities)
WGPUInstance wgpuCreateInstance(WGPUInstanceDescriptor const *descriptor)
WGPUProc wgpuGetProcAddress(WGPUStringView procName)
struct WGPUPipelineLayoutImpl * WGPUPipelineLayout
Definition webgpu.h:179
struct WGPUSamplerImpl * WGPUSampler
Definition webgpu.h:186
struct WGPUQueueImpl * WGPUQueue
Definition webgpu.h:181
struct WGPUSurfaceImpl * WGPUSurface
Definition webgpu.h:191
struct WGPURenderBundleImpl * WGPURenderBundle
Definition webgpu.h:182
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
Definition webgpu.h:175
struct WGPUBindGroupImpl * WGPUBindGroup
Definition webgpu.h:170
struct WGPUInstanceImpl * WGPUInstance
Definition webgpu.h:178
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
Definition webgpu.h:171
struct WGPUTextureViewImpl * WGPUTextureView
Definition webgpu.h:193
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
Definition webgpu.h:184
struct WGPUShaderModuleImpl * WGPUShaderModule
Definition webgpu.h:187
struct WGPUQuerySetImpl * WGPUQuerySet
Definition webgpu.h:180
struct WGPUCommandBufferImpl * WGPUCommandBuffer
Definition webgpu.h:173
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
Definition webgpu.h:183
struct WGPUDeviceImpl * WGPUDevice
Definition webgpu.h:177
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
Definition webgpu.h:174
struct WGPUTextureImpl * WGPUTexture
Definition webgpu.h:192
struct WGPUComputePipelineImpl * WGPUComputePipeline
Definition webgpu.h:176
struct WGPURenderPipelineImpl * WGPURenderPipeline
Definition webgpu.h:185
struct WGPUAdapterImpl * WGPUAdapter
Definition webgpu.h:169
struct WGPUBufferImpl * WGPUBuffer
Definition webgpu.h:172
struct WGPUFuture WGPUFuture
uint32_t WGPUBool
Definition webgpu.h:118
uint64_t WGPUFlags
Definition webgpu.h:117
struct WGPUStringView WGPUStringView
void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo)
WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits *limits)
void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures *features)
WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallbackInfo callbackInfo)
void wgpuAdapterAddRef(WGPUAdapter adapter)
WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
void wgpuAdapterRelease(WGPUAdapter adapter)
WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo *info)
void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label)
void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupAddRef(WGPUBindGroup bindGroup)
void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label)
WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer)
WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo)
void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
void wgpuBufferAddRef(WGPUBuffer buffer)
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:1572
WGPUBackendType backendType
Definition webgpu.h:1582
uint32_t deviceID
Definition webgpu.h:1594
WGPUChainedStruct * nextInChain
Definition webgpu.h:1554
uint32_t subgroupMinSize
Definition webgpu.h:1598
uint32_t vendorID
Definition webgpu.h:1590
WGPUStringView description
Definition webgpu.h:1578
WGPUAdapterType adapterType
Definition webgpu.h:1586
uint32_t subgroupMaxSize
Definition webgpu.h:1602
WGPUStringView architecture
Definition webgpu.h:1566
WGPUStringView vendor
Definition webgpu.h:1560
WGPUChainedStruct * nextInChain
Definition webgpu.h:3556
WGPUStringView label
Definition webgpu.h:3562
WGPUBindGroupLayout layout
Definition webgpu.h:3566
WGPUBindGroupEntry const * entries
Definition webgpu.h:3574
uint64_t offset
Definition webgpu.h:1646
WGPUBuffer buffer
Definition webgpu.h:1639
WGPUSampler sampler
Definition webgpu.h:1661
WGPUTextureView textureView
Definition webgpu.h:1668
WGPUChainedStruct * nextInChain
Definition webgpu.h:1626
uint32_t binding
Definition webgpu.h:1632
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4153
WGPUChainedStruct * nextInChain
Definition webgpu.h:4139
WGPUTextureBindingLayout texture
Definition webgpu.h:3612
WGPUShaderStage visibility
Definition webgpu.h:3600
WGPUBufferBindingLayout buffer
Definition webgpu.h:3604
WGPUChainedStruct * nextInChain
Definition webgpu.h:3592
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3616
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3608
WGPUBlendFactor dstFactor
Definition webgpu.h:1708
WGPUBlendFactor srcFactor
Definition webgpu.h:1701
WGPUBlendOperation operation
Definition webgpu.h:1694
WGPUBlendComponent alpha
Definition webgpu.h:3643
WGPUBlendComponent color
Definition webgpu.h:3639
WGPUBufferBindingType type
Definition webgpu.h:1731
WGPUBool hasDynamicOffset
Definition webgpu.h:1735
WGPUChainedStruct * nextInChain
Definition webgpu.h:1724
WGPUBool mappedAtCreation
Definition webgpu.h:1774
WGPUStringView label
Definition webgpu.h:1762
WGPUBufferUsage usage
Definition webgpu.h:1766
WGPUChainedStruct * nextInChain
Definition webgpu.h:1756
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1316
WGPUBufferMapCallback callback
Definition webgpu.h:1323
WGPUCallbackMode mode
Definition webgpu.h:1322
struct WGPUChainedStruct * next
Definition webgpu.h:1295
WGPUSType sType
Definition webgpu.h:1296
WGPUBlendState const * blend
Definition webgpu.h:4182
WGPUColorWriteMask writeMask
Definition webgpu.h:4186
WGPUChainedStruct * nextInChain
Definition webgpu.h:4170
WGPUTextureFormat format
Definition webgpu.h:4178
double a
Definition webgpu.h:1811
double b
Definition webgpu.h:1807
double r
Definition webgpu.h:1799
double g
Definition webgpu.h:1803
WGPUChainedStruct * nextInChain
Definition webgpu.h:1828
WGPUChainedStruct * nextInChain
Definition webgpu.h:1849
WGPUCompilationInfoCallback callback
Definition webgpu.h:1347
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1340
WGPUChainedStruct * nextInChain
Definition webgpu.h:3661
WGPUCompilationMessage const * messages
Definition webgpu.h:3669
WGPUChainedStruct * nextInChain
Definition webgpu.h:1873
WGPUCompilationMessageType type
Definition webgpu.h:1887
WGPUStringView message
Definition webgpu.h:1881
WGPUStringView label
Definition webgpu.h:3691
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3695
WGPUChainedStruct * nextInChain
Definition webgpu.h:3685
WGPUComputeState compute
Definition webgpu.h:4217
WGPUChainedStruct * nextInChain
Definition webgpu.h:4203
WGPUPipelineLayout layout
Definition webgpu.h:4213
WGPUChainedStruct * nextInChain
Definition webgpu.h:3711
WGPUConstantEntry const * constants
Definition webgpu.h:3729
size_t constantCount
Definition webgpu.h:3725
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3721
WGPUStringView key
Definition webgpu.h:1937
WGPUChainedStruct * nextInChain
Definition webgpu.h:1931
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1364
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1371
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1388
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1395
WGPUStencilFaceState stencilFront
Definition webgpu.h:3763
uint32_t stencilWriteMask
Definition webgpu.h:3775
WGPUStencilFaceState stencilBack
Definition webgpu.h:3767
WGPUChainedStruct * nextInChain
Definition webgpu.h:3747
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3755
WGPUCompareFunction depthCompare
Definition webgpu.h:3759
uint32_t stencilReadMask
Definition webgpu.h:3771
WGPUTextureFormat format
Definition webgpu.h:3751
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:3845
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:3854
size_t requiredFeatureCount
Definition webgpu.h:3829
WGPUStringView label
Definition webgpu.h:3825
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:3833
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:3841
WGPUChainedStruct * nextInChain
Definition webgpu.h:3819
WGPULimits const * requiredLimits
Definition webgpu.h:3837
WGPUDeviceLostCallback callback
Definition webgpu.h:1419
WGPUCallbackMode mode
Definition webgpu.h:1418
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1412
uint32_t width
Definition webgpu.h:1964
uint32_t depthOrArrayLayers
Definition webgpu.h:1972
uint32_t height
Definition webgpu.h:1968
size_t constantCount
Definition webgpu.h:4340
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4336
WGPUChainedStruct * nextInChain
Definition webgpu.h:4326
size_t targetCount
Definition webgpu.h:4348
WGPUConstantEntry const * constants
Definition webgpu.h:4344
WGPUColorTargetState const * targets
Definition webgpu.h:4352
WGPUFuture future
Definition webgpu.h:3882
WGPUBool completed
Definition webgpu.h:3888
uint64_t id
Definition webgpu.h:1995
WGPUChainedStruct * nextInChain
Definition webgpu.h:2011
WGPUBool timedWaitAnyEnable
Definition webgpu.h:2017
WGPUInstanceCapabilities capabilities
Definition webgpu.h:3909
WGPUChainedStruct * nextInChain
Definition webgpu.h:3903
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2063
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2139
uint32_t maxTextureDimension2D
Definition webgpu.h:2047
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2079
uint32_t maxTextureDimension3D
Definition webgpu.h:2051
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2083
WGPUChainedStruct * nextInChain
Definition webgpu.h:2039
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2067
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2163
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2075
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2143
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2111
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2155
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2103
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2147
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2127
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2107
uint32_t maxVertexAttributes
Definition webgpu.h:2123
uint32_t maxColorAttachments
Definition webgpu.h:2135
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2131
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2159
uint32_t maxTextureDimension1D
Definition webgpu.h:2043
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2071
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2099
uint64_t maxBufferSize
Definition webgpu.h:2119
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2095
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2151
uint32_t maxVertexBuffers
Definition webgpu.h:2115
uint32_t maxTextureArrayLayers
Definition webgpu.h:2055
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2091
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2087
uint32_t maxBindGroups
Definition webgpu.h:2059
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2220
WGPUChainedStruct * nextInChain
Definition webgpu.h:2208
uint32_t y
Definition webgpu.h:2244
uint32_t z
Definition webgpu.h:2248
uint32_t x
Definition webgpu.h:2240
WGPUQuerySet querySet
Definition webgpu.h:2270
uint32_t endOfPassWriteIndex
Definition webgpu.h:2278
WGPUChainedStruct * nextInChain
Definition webgpu.h:2264
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2274
WGPUChainedStruct * nextInChain
Definition webgpu.h:2295
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2309
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1436
WGPUCallbackMode mode
Definition webgpu.h:1442
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1443
WGPUFrontFace frontFace
Definition webgpu.h:2344
WGPUChainedStruct * nextInChain
Definition webgpu.h:2326
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2337
WGPUPrimitiveTopology topology
Definition webgpu.h:2333
WGPUCullMode cullMode
Definition webgpu.h:2351
WGPUBool unclippedDepth
Definition webgpu.h:2355
WGPUQueryType type
Definition webgpu.h:2384
WGPUChainedStruct * nextInChain
Definition webgpu.h:2374
WGPUStringView label
Definition webgpu.h:2380
WGPUChainedStruct * nextInChain
Definition webgpu.h:2405
WGPUStringView label
Definition webgpu.h:2411
WGPUCallbackMode mode
Definition webgpu.h:1466
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1460
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1467
WGPUChainedStruct * nextInChain
Definition webgpu.h:2426
WGPUStringView label
Definition webgpu.h:2432
WGPUChainedStruct * nextInChain
Definition webgpu.h:2447
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2461
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2465
WGPUTextureView resolveTarget
Definition webgpu.h:3939
WGPUChainedStruct * nextInChain
Definition webgpu.h:3924
WGPUChainedStruct * nextInChain
Definition webgpu.h:2498
WGPUChainedStruct * nextInChain
Definition webgpu.h:4234
WGPUStringView label
Definition webgpu.h:4240
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4252
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4248
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4256
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4260
WGPUChainedStruct chain
Definition webgpu.h:2564
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4394
WGPUChainedStruct * nextInChain
Definition webgpu.h:4372
WGPUMultisampleState multisample
Definition webgpu.h:4398
WGPUFragmentState const * fragment
Definition webgpu.h:4402
WGPUPrimitiveState primitive
Definition webgpu.h:4390
WGPUPipelineLayout layout
Definition webgpu.h:4382
WGPUVertexState vertex
Definition webgpu.h:4386
WGPURequestAdapterCallback callback
Definition webgpu.h:1491
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1484
WGPUFeatureLevel featureLevel
Definition webgpu.h:2597
WGPUBool forceFallbackAdapter
Definition webgpu.h:2608
WGPUSurface compatibleSurface
Definition webgpu.h:2622
WGPUBackendType backendType
Definition webgpu.h:2615
WGPUChainedStruct * nextInChain
Definition webgpu.h:2586
WGPUPowerPreference powerPreference
Definition webgpu.h:2601
WGPUChainedStruct chain
Definition webgpu.h:2643
WGPUCallbackMode mode
Definition webgpu.h:1514
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1508
WGPURequestDeviceCallback callback
Definition webgpu.h:1515
WGPUChainedStruct * nextInChain
Definition webgpu.h:2667
WGPUSamplerBindingType type
Definition webgpu.h:2674
WGPUFilterMode minFilter
Definition webgpu.h:2730
WGPUAddressMode addressModeU
Definition webgpu.h:2702
WGPUCompareFunction compare
Definition webgpu.h:2757
WGPUAddressMode addressModeW
Definition webgpu.h:2716
uint16_t maxAnisotropy
Definition webgpu.h:2761
WGPUAddressMode addressModeV
Definition webgpu.h:2709
WGPUStringView label
Definition webgpu.h:2695
WGPUFilterMode magFilter
Definition webgpu.h:2723
WGPUChainedStruct * nextInChain
Definition webgpu.h:2689
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2737
WGPUChainedStruct * nextInChain
Definition webgpu.h:2786
WGPUStringView label
Definition webgpu.h:2792
WGPUChainedStruct chain
Definition webgpu.h:2807
uint32_t const * code
Definition webgpu.h:2815
WGPUChainedStruct chain
Definition webgpu.h:2834
WGPUStringView code
Definition webgpu.h:2840
WGPUCompareFunction compare
Definition webgpu.h:2864
WGPUStencilOperation depthFailOp
Definition webgpu.h:2878
WGPUStencilOperation passOp
Definition webgpu.h:2885
WGPUStencilOperation failOp
Definition webgpu.h:2871
WGPUChainedStruct * nextInChain
Definition webgpu.h:2902
WGPUTextureViewDimension viewDimension
Definition webgpu.h:2920
WGPUTextureFormat format
Definition webgpu.h:2913
WGPUStorageTextureAccess access
Definition webgpu.h:2909
size_t length
Definition webgpu.h:143
char const * data
Definition webgpu.h:142
WGPUFeatureName const * features
Definition webgpu.h:2944
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:2966
WGPUTextureFormat const * formats
Definition webgpu.h:3000
WGPUChainedStruct * nextInChain
Definition webgpu.h:2983
WGPUPresentMode const * presentModes
Definition webgpu.h:3011
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3022
WGPUTextureUsage usages
Definition webgpu.h:2990
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3053
WGPUChainedStruct chain
Definition webgpu.h:3045
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3049
WGPUTextureUsage usage
Definition webgpu.h:3093
WGPUTextureFormat format
Definition webgpu.h:3087
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3115
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3125
WGPUChainedStruct * nextInChain
Definition webgpu.h:3075
WGPUPresentMode presentMode
Definition webgpu.h:3134
WGPUChainedStruct * nextInChain
Definition webgpu.h:3161
WGPUStringView label
Definition webgpu.h:3169
WGPUChainedStruct chain
Definition webgpu.h:3212
WGPUChainedStruct chain
Definition webgpu.h:3238
WGPUChainedStruct chain
Definition webgpu.h:3271
WGPUChainedStruct chain
Definition webgpu.h:3305
WGPUChainedStruct chain
Definition webgpu.h:3338
WGPUChainedStruct * nextInChain
Definition webgpu.h:3372
WGPUTexture texture
Definition webgpu.h:3379
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3385
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:3974
WGPUOrigin3D origin
Definition webgpu.h:4004
WGPUTextureAspect aspect
Definition webgpu.h:4011
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3442
WGPUTextureSampleType sampleType
Definition webgpu.h:3435
WGPUChainedStruct * nextInChain
Definition webgpu.h:3428
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4069
WGPUTextureDimension dimension
Definition webgpu.h:4045
WGPUStringView label
Definition webgpu.h:4034
uint32_t mipLevelCount
Definition webgpu.h:4057
WGPUChainedStruct * nextInChain
Definition webgpu.h:4028
WGPUTextureFormat format
Definition webgpu.h:4053
WGPUTextureUsage usage
Definition webgpu.h:4038
WGPUExtent3D size
Definition webgpu.h:4049
WGPUChainedStruct * nextInChain
Definition webgpu.h:3463
WGPUTextureUsage usage
Definition webgpu.h:3504
WGPUTextureFormat format
Definition webgpu.h:3473
WGPUTextureViewDimension dimension
Definition webgpu.h:3477
WGPUStringView label
Definition webgpu.h:3469
WGPUTextureAspect aspect
Definition webgpu.h:3500
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1533
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1532
WGPUVertexFormat format
Definition webgpu.h:3531
WGPUChainedStruct * nextInChain
Definition webgpu.h:3527
uint32_t shaderLocation
Definition webgpu.h:3539
WGPUVertexAttribute const * attributes
Definition webgpu.h:4121
WGPUVertexStepMode stepMode
Definition webgpu.h:4109
WGPUChainedStruct * nextInChain
Definition webgpu.h:4105
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4290
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4306
WGPUConstantEntry const * constants
Definition webgpu.h:4298
size_t constantCount
Definition webgpu.h:4294
size_t bufferCount
Definition webgpu.h:4302
WGPUChainedStruct * nextInChain
Definition webgpu.h:4280