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;
243struct WGPUSurfaceTexture;
250struct WGPUBlendState;
253struct WGPUComputeState;
256struct WGPUFutureWaitInfo;
267struct WGPUVertexState;
268struct WGPUFragmentState;
270
271// Callback info structure forward declarations
282
283
290typedef enum WGPUAdapterType {
295 WGPUAdapterType_Force32 = 0x7FFFFFFF
296} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
297
309
326
352
366
385
392
424
441
447
454
486
494
495typedef enum WGPUCullMode {
501 WGPUCullMode_None = 0x00000001,
502 WGPUCullMode_Front = 0x00000002,
503 WGPUCullMode_Back = 0x00000003,
504 WGPUCullMode_Force32 = 0x7FFFFFFF
505} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
506
514
515typedef enum WGPUErrorFilter {
519 WGPUErrorFilter_Force32 = 0x7FFFFFFF
520} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
521
522typedef enum WGPUErrorType {
528 WGPUErrorType_Force32 = 0x7FFFFFFF
529} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
530
534typedef enum WGPUFeatureLevel {
550 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
551} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
552
573
574typedef enum WGPUFilterMode {
582 WGPUFilterMode_Force32 = 0x7FFFFFFF
583} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
584
585typedef enum WGPUFrontFace {
591 WGPUFrontFace_CCW = 0x00000001,
592 WGPUFrontFace_CW = 0x00000002,
593 WGPUFrontFace_Force32 = 0x7FFFFFFF
594} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
595
596typedef enum WGPUIndexFormat {
604 WGPUIndexFormat_Force32 = 0x7FFFFFFF
605} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
606
607typedef enum WGPULoadOp {
613 WGPULoadOp_Load = 0x00000001,
614 WGPULoadOp_Clear = 0x00000002,
615 WGPULoadOp_Force32 = 0x7FFFFFFF
616} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
617
625
636
637typedef enum WGPUOptionalBool {
641 WGPUOptionalBool_Force32 = 0x7FFFFFFF
642} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
643
658
669
675
713
727
728typedef enum WGPUQueryType {
731 WGPUQueryType_Force32 = 0x7FFFFFFF
732} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
733
739
747
754
768
787
793typedef enum WGPUStatus {
794 WGPUStatus_Success = 0x00000001,
795 WGPUStatus_Error = 0x00000002,
796 WGPUStatus_Force32 = 0x7FFFFFFF
797} WGPUStatus WGPU_ENUM_ATTRIBUTE;
798
815
834
835typedef enum WGPUStoreOp {
841 WGPUStoreOp_Store = 0x00000001,
843 WGPUStoreOp_Force32 = 0x7FFFFFFF
844} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
845
882
894
906
907typedef enum WGPUTextureFormat {
1008 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1009} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1010
1031
1046
1052
1053typedef enum WGPUVertexFormat {
1095 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1096} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1097
1108
1116
1148
1149
1165static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1169static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1173static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1177static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1181static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1185static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1189static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1193static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1197static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1201static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1205static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1206
1214static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1218static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1222static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1226static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1230static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1234static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1235
1243static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1247static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1251static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1252
1260static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1264static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1268static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1272static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1273
1281static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1285static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1289static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1293static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1297static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1301static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1302
1303
1305typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1306
1307
1320typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1329typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1336typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1343typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1354typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1372typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1376typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1386typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1396typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1406typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1407
1416typedef struct WGPUChainedStruct {
1419} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1420
1449
1453#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1454 /*.nextInChain=*/NULL _wgpu_COMMA \
1455 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1456 /*.callback=*/NULL _wgpu_COMMA \
1457 /*.userdata1=*/NULL _wgpu_COMMA \
1458 /*.userdata2=*/NULL _wgpu_COMMA \
1459})
1460
1473
1477#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1478 /*.nextInChain=*/NULL _wgpu_COMMA \
1479 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1480 /*.callback=*/NULL _wgpu_COMMA \
1481 /*.userdata1=*/NULL _wgpu_COMMA \
1482 /*.userdata2=*/NULL _wgpu_COMMA \
1483})
1484
1497
1501#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1502 /*.nextInChain=*/NULL _wgpu_COMMA \
1503 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1504 /*.callback=*/NULL _wgpu_COMMA \
1505 /*.userdata1=*/NULL _wgpu_COMMA \
1506 /*.userdata2=*/NULL _wgpu_COMMA \
1507})
1508
1521
1525#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1526 /*.nextInChain=*/NULL _wgpu_COMMA \
1527 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1528 /*.callback=*/NULL _wgpu_COMMA \
1529 /*.userdata1=*/NULL _wgpu_COMMA \
1530 /*.userdata2=*/NULL _wgpu_COMMA \
1531})
1532
1545
1549#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1550 /*.nextInChain=*/NULL _wgpu_COMMA \
1551 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1552 /*.callback=*/NULL _wgpu_COMMA \
1553 /*.userdata1=*/NULL _wgpu_COMMA \
1554 /*.userdata2=*/NULL _wgpu_COMMA \
1555})
1556
1569
1573#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1574 /*.nextInChain=*/NULL _wgpu_COMMA \
1575 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1576 /*.callback=*/NULL _wgpu_COMMA \
1577 /*.userdata1=*/NULL _wgpu_COMMA \
1578 /*.userdata2=*/NULL _wgpu_COMMA \
1579})
1580
1593
1597#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1598 /*.nextInChain=*/NULL _wgpu_COMMA \
1599 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1600 /*.callback=*/NULL _wgpu_COMMA \
1601 /*.userdata1=*/NULL _wgpu_COMMA \
1602 /*.userdata2=*/NULL _wgpu_COMMA \
1603})
1604
1617
1621#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1622 /*.nextInChain=*/NULL _wgpu_COMMA \
1623 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1624 /*.callback=*/NULL _wgpu_COMMA \
1625 /*.userdata1=*/NULL _wgpu_COMMA \
1626 /*.userdata2=*/NULL _wgpu_COMMA \
1627})
1628
1641
1645#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1646 /*.nextInChain=*/NULL _wgpu_COMMA \
1647 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1648 /*.callback=*/NULL _wgpu_COMMA \
1649 /*.userdata1=*/NULL _wgpu_COMMA \
1650 /*.userdata2=*/NULL _wgpu_COMMA \
1651})
1652
1659
1663#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1664 /*.nextInChain=*/NULL _wgpu_COMMA \
1665 /*.callback=*/NULL _wgpu_COMMA \
1666 /*.userdata1=*/NULL _wgpu_COMMA \
1667 /*.userdata2=*/NULL _wgpu_COMMA \
1668})
1669
1718
1722#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1723 /*.nextInChain=*/NULL _wgpu_COMMA \
1724 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1725 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1726 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1727 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1728 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1729 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1730 /*.vendorID=*/0 _wgpu_COMMA \
1731 /*.deviceID=*/0 _wgpu_COMMA \
1732})
1733
1737typedef struct WGPUBindGroupEntry {
1744 uint32_t binding;
1751 WGPU_NULLABLE WGPUBuffer buffer;
1758 uint64_t offset;
1766 uint64_t size;
1773 WGPU_NULLABLE WGPUSampler sampler;
1781} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1782
1786#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1787 /*.nextInChain=*/NULL _wgpu_COMMA \
1788 /*.binding=*/0 _wgpu_COMMA \
1789 /*.buffer=*/NULL _wgpu_COMMA \
1790 /*.offset=*/0 _wgpu_COMMA \
1791 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1792 /*.sampler=*/NULL _wgpu_COMMA \
1793 /*.textureView=*/NULL _wgpu_COMMA \
1794})
1795
1822
1826#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1827 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1828 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1829 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1830})
1831
1853
1857#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1858 /*.nextInChain=*/NULL _wgpu_COMMA \
1859 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1860 /*.hasDynamicOffset=*/0 _wgpu_COMMA \
1861 /*.minBindingSize=*/0 _wgpu_COMMA \
1862})
1863
1888
1892#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1893 /*.nextInChain=*/NULL _wgpu_COMMA \
1894 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1895 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1896 /*.size=*/0 _wgpu_COMMA \
1897 /*.mappedAtCreation=*/0 _wgpu_COMMA \
1898})
1899
1907typedef struct WGPUColor {
1911 double r;
1915 double g;
1919 double b;
1923 double a;
1924} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1925
1929#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1930 /*.r=*/0. _wgpu_COMMA \
1931 /*.g=*/0. _wgpu_COMMA \
1932 /*.b=*/0. _wgpu_COMMA \
1933 /*.a=*/0. _wgpu_COMMA \
1934})
1935
1948
1952#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1953 /*.nextInChain=*/NULL _wgpu_COMMA \
1954 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1955})
1956
1969
1973#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
1974 /*.nextInChain=*/NULL _wgpu_COMMA \
1975 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1976})
1977
2025
2029#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2030 /*.nextInChain=*/NULL _wgpu_COMMA \
2031 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2032 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2033 /*.lineNum=*/0 _wgpu_COMMA \
2034 /*.linePos=*/0 _wgpu_COMMA \
2035 /*.offset=*/0 _wgpu_COMMA \
2036 /*.length=*/0 _wgpu_COMMA \
2037})
2038
2059
2063#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2064 /*.nextInChain=*/NULL _wgpu_COMMA \
2065 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2066 /*.value=*/0. _wgpu_COMMA \
2067})
2068
2072typedef struct WGPUExtent3D {
2076 uint32_t width;
2080 uint32_t height;
2085} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2086
2090#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2091 /*.width=*/0 _wgpu_COMMA \
2092 /*.height=*/1 _wgpu_COMMA \
2093 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2094})
2095
2101typedef struct WGPUFuture {
2107 uint64_t id;
2108} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2109
2113#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2114 /*.id=*/0 _wgpu_COMMA \
2115})
2116
2137
2141#define WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceCapabilities, { \
2142 /*.nextInChain=*/NULL _wgpu_COMMA \
2143 /*.timedWaitAnyEnable=*/0 _wgpu_COMMA \
2144 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2145})
2146
2277
2281#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2282 /*.nextInChain=*/NULL _wgpu_COMMA \
2283 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2284 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2285 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2286 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2287 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2288 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2289 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2290 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2291 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2292 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2293 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2294 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2295 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2296 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2297 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2298 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2299 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2300 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2301 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2302 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2303 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2304 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2305 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2306 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2307 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2308 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2309 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2310 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2311 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2312 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2313 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2314})
2315
2334
2338#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2339 /*.nextInChain=*/NULL _wgpu_COMMA \
2340 /*.count=*/1 _wgpu_COMMA \
2341 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2342 /*.alphaToCoverageEnabled=*/0 _wgpu_COMMA \
2343})
2344
2348typedef struct WGPUOrigin3D {
2352 uint32_t x;
2356 uint32_t y;
2360 uint32_t z;
2361} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2362
2366#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2367 /*.x=*/0 _wgpu_COMMA \
2368 /*.y=*/0 _wgpu_COMMA \
2369 /*.z=*/0 _wgpu_COMMA \
2370})
2371
2392
2396#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2397 /*.nextInChain=*/NULL _wgpu_COMMA \
2398 /*.querySet=*/NULL _wgpu_COMMA \
2399 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2400 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2401})
2402
2423
2427#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2428 /*.nextInChain=*/NULL _wgpu_COMMA \
2429 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2430 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2431 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2432})
2433
2469
2473#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2474 /*.nextInChain=*/NULL _wgpu_COMMA \
2475 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2476 /*.stripIndexFormat=*/_wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
2477 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2478 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2479 /*.unclippedDepth=*/0 _wgpu_COMMA \
2480})
2481
2502
2506#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2507 /*.nextInChain=*/NULL _wgpu_COMMA \
2508 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2509 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2510 /*.count=*/0 _wgpu_COMMA \
2511})
2512
2525
2529#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2530 /*.nextInChain=*/NULL _wgpu_COMMA \
2531 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2532})
2533
2546
2550#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2551 /*.nextInChain=*/NULL _wgpu_COMMA \
2552 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2553})
2554
2591
2595#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2596 /*.nextInChain=*/NULL _wgpu_COMMA \
2597 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2598 /*.colorFormatCount=*/0 _wgpu_COMMA \
2599 /*.colorFormats=*/NULL _wgpu_COMMA \
2600 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2601 /*.sampleCount=*/1 _wgpu_COMMA \
2602 /*.depthReadOnly=*/0 _wgpu_COMMA \
2603 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2604})
2605
2655
2659#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2660 /*.nextInChain=*/NULL _wgpu_COMMA \
2661 /*.view=*/NULL _wgpu_COMMA \
2662 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2663 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2664 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2665 /*.depthReadOnly=*/0 _wgpu_COMMA \
2666 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2667 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2668 /*.stencilClearValue=*/0 _wgpu_COMMA \
2669 /*.stencilReadOnly=*/0 _wgpu_COMMA \
2670})
2671
2682
2686#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2687 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2688 /*.next=*/NULL _wgpu_COMMA \
2689 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2690 }) _wgpu_COMMA \
2691 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2692})
2693
2736
2740#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
2741 /*.nextInChain=*/NULL _wgpu_COMMA \
2742 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
2743 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
2744 /*.forceFallbackAdapter=*/0 _wgpu_COMMA \
2745 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
2746 /*.compatibleSurface=*/NULL _wgpu_COMMA \
2747})
2748
2762
2766#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2767 /*.nextInChain=*/NULL _wgpu_COMMA \
2768 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2769})
2770
2849
2853#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2854 /*.nextInChain=*/NULL _wgpu_COMMA \
2855 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2856 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2857 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2858 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2859 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2860 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2861 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2862 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2863 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2864 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2865 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2866})
2867
2880
2884#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
2885 /*.nextInChain=*/NULL _wgpu_COMMA \
2886 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2887})
2888
2897 uint32_t codeSize;
2901 uint32_t const * code;
2902} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2903
2907#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2908 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2909 /*.next=*/NULL _wgpu_COMMA \
2910 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2911 }) _wgpu_COMMA \
2912 /*.codeSize=*/0 _wgpu_COMMA \
2913 /*.code=*/NULL _wgpu_COMMA \
2914})
2915
2928
2932#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2933 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2934 /*.next=*/NULL _wgpu_COMMA \
2935 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2936 }) _wgpu_COMMA \
2937 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2938})
2939
2973
2977#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2978 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2979 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2980 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2981 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2982})
2983
3008
3012#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3013 /*.nextInChain=*/NULL _wgpu_COMMA \
3014 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3015 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3016 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3017})
3018
3031} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3032
3036#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3037 /*.featureCount=*/0 _wgpu_COMMA \
3038 /*.features=*/NULL _wgpu_COMMA \
3039})
3040
3054
3058#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3059 /*.featureCount=*/0 _wgpu_COMMA \
3060 /*.features=*/NULL _wgpu_COMMA \
3061})
3062
3110
3114#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3115 /*.nextInChain=*/NULL _wgpu_COMMA \
3116 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3117 /*.formatCount=*/0 _wgpu_COMMA \
3118 /*.formats=*/NULL _wgpu_COMMA \
3119 /*.presentModeCount=*/0 _wgpu_COMMA \
3120 /*.presentModes=*/NULL _wgpu_COMMA \
3121 /*.alphaModeCount=*/0 _wgpu_COMMA \
3122 /*.alphaModes=*/NULL _wgpu_COMMA \
3123})
3124
3141
3145#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3146 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3147 /*.next=*/NULL _wgpu_COMMA \
3148 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3149 }) _wgpu_COMMA \
3150 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3151 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3152})
3153
3222
3226#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3227 /*.nextInChain=*/NULL _wgpu_COMMA \
3228 /*.device=*/NULL _wgpu_COMMA \
3229 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3230 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3231 /*.width=*/0 _wgpu_COMMA \
3232 /*.height=*/0 _wgpu_COMMA \
3233 /*.viewFormatCount=*/0 _wgpu_COMMA \
3234 /*.viewFormats=*/NULL _wgpu_COMMA \
3235 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3236 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3237})
3238
3257
3261#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
3262 /*.nextInChain=*/NULL _wgpu_COMMA \
3263 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3264})
3265
3280
3284#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3285 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3286 /*.next=*/NULL _wgpu_COMMA \
3287 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3288 }) _wgpu_COMMA \
3289 /*.window=*/NULL _wgpu_COMMA \
3290})
3291
3306
3310#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3311 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3312 /*.next=*/NULL _wgpu_COMMA \
3313 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3314 }) _wgpu_COMMA \
3315 /*.layer=*/NULL _wgpu_COMMA \
3316})
3317
3338
3342#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3343 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3344 /*.next=*/NULL _wgpu_COMMA \
3345 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3346 }) _wgpu_COMMA \
3347 /*.display=*/NULL _wgpu_COMMA \
3348 /*.surface=*/NULL _wgpu_COMMA \
3349})
3350
3372
3376#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3377 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3378 /*.next=*/NULL _wgpu_COMMA \
3379 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3380 }) _wgpu_COMMA \
3381 /*.hinstance=*/NULL _wgpu_COMMA \
3382 /*.hwnd=*/NULL _wgpu_COMMA \
3383})
3384
3405
3409#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3410 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3411 /*.next=*/NULL _wgpu_COMMA \
3412 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3413 }) _wgpu_COMMA \
3414 /*.connection=*/NULL _wgpu_COMMA \
3415 /*.window=*/0 _wgpu_COMMA \
3416})
3417
3438
3442#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3443 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3444 /*.next=*/NULL _wgpu_COMMA \
3445 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3446 }) _wgpu_COMMA \
3447 /*.display=*/NULL _wgpu_COMMA \
3448 /*.window=*/0 _wgpu_COMMA \
3449})
3450
3473
3477#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3478 /*.nextInChain=*/NULL _wgpu_COMMA \
3479 /*.texture=*/NULL _wgpu_COMMA \
3480 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3481})
3482
3490 uint64_t offset;
3494 uint32_t bytesPerRow;
3499} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3500
3504#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3505 /*.offset=*/0 _wgpu_COMMA \
3506 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3507 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3508})
3509
3534
3538#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3539 /*.nextInChain=*/NULL _wgpu_COMMA \
3540 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3541 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3542 /*.multisampled=*/0 _wgpu_COMMA \
3543})
3544
3592
3596#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3597 /*.nextInChain=*/NULL _wgpu_COMMA \
3598 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3599 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3600 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3601 /*.baseMipLevel=*/0 _wgpu_COMMA \
3602 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3603 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3604 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3605 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3606 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3607})
3608
3627
3631#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3632 /*.nextInChain=*/NULL _wgpu_COMMA \
3633 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3634 /*.offset=*/0 _wgpu_COMMA \
3635 /*.shaderLocation=*/0 _wgpu_COMMA \
3636})
3637
3662
3666#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3667 /*.nextInChain=*/NULL _wgpu_COMMA \
3668 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3669 /*.layout=*/NULL _wgpu_COMMA \
3670 /*.entryCount=*/0 _wgpu_COMMA \
3671 /*.entries=*/NULL _wgpu_COMMA \
3672})
3673
3704
3708#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3709 /*.nextInChain=*/NULL _wgpu_COMMA \
3710 /*.binding=*/0 _wgpu_COMMA \
3711 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3712 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3713 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3714 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3715 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3716})
3717
3731
3735#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3736 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3737 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3738})
3739
3757
3761#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3762 /*.nextInChain=*/NULL _wgpu_COMMA \
3763 /*.messageCount=*/0 _wgpu_COMMA \
3764 /*.messages=*/NULL _wgpu_COMMA \
3765})
3766
3783
3787#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3788 /*.nextInChain=*/NULL _wgpu_COMMA \
3789 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3790 /*.timestampWrites=*/NULL _wgpu_COMMA \
3791})
3792
3817
3821#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3822 /*.nextInChain=*/NULL _wgpu_COMMA \
3823 /*.module=*/NULL _wgpu_COMMA \
3824 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3825 /*.constantCount=*/0 _wgpu_COMMA \
3826 /*.constants=*/NULL _wgpu_COMMA \
3827})
3828
3883
3887#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3888 /*.nextInChain=*/NULL _wgpu_COMMA \
3889 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3890 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3891 /*.depthCompare=*/_wgpu_ENUM_ZERO_INIT(WGPUCompareFunction) _wgpu_COMMA \
3892 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3893 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3894 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3895 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3896 /*.depthBias=*/0 _wgpu_COMMA \
3897 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3898 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3899})
3900
3942
3946#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
3947 /*.nextInChain=*/NULL _wgpu_COMMA \
3948 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3949 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3950 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3951 /*.requiredLimits=*/NULL _wgpu_COMMA \
3952 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
3953 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
3954 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
3955})
3956
3976
3980#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3981 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3982 /*.completed=*/0 _wgpu_COMMA \
3983})
3984
3997
4001#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4002 /*.nextInChain=*/NULL _wgpu_COMMA \
4003 /*.capabilities=*/WGPU_INSTANCE_CAPABILITIES_INIT _wgpu_COMMA \
4004})
4005
4039
4043#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4044 /*.nextInChain=*/NULL _wgpu_COMMA \
4045 /*.view=*/NULL _wgpu_COMMA \
4046 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4047 /*.resolveTarget=*/NULL _wgpu_COMMA \
4048 /*.loadOp=*/_wgpu_ENUM_ZERO_INIT(WGPULoadOp) _wgpu_COMMA \
4049 /*.storeOp=*/_wgpu_ENUM_ZERO_INIT(WGPUStoreOp) _wgpu_COMMA \
4050 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4051})
4052
4066
4070#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4071 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4072 /*.buffer=*/NULL _wgpu_COMMA \
4073})
4074
4099
4103#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4104 /*.texture=*/NULL _wgpu_COMMA \
4105 /*.mipLevel=*/0 _wgpu_COMMA \
4106 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4107 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4108})
4109
4157
4161#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4162 /*.nextInChain=*/NULL _wgpu_COMMA \
4163 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4164 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4165 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4166 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4167 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4168 /*.mipLevelCount=*/1 _wgpu_COMMA \
4169 /*.sampleCount=*/1 _wgpu_COMMA \
4170 /*.viewFormatCount=*/0 _wgpu_COMMA \
4171 /*.viewFormats=*/NULL _wgpu_COMMA \
4172})
4173
4209
4213#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4214 /*.nextInChain=*/NULL _wgpu_COMMA \
4215 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4216 /*.arrayStride=*/0 _wgpu_COMMA \
4217 /*.attributeCount=*/0 _wgpu_COMMA \
4218 /*.attributes=*/NULL _wgpu_COMMA \
4219})
4220
4241
4245#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4246 /*.nextInChain=*/NULL _wgpu_COMMA \
4247 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4248 /*.entryCount=*/0 _wgpu_COMMA \
4249 /*.entries=*/NULL _wgpu_COMMA \
4250})
4251
4274
4278#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4279 /*.nextInChain=*/NULL _wgpu_COMMA \
4280 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4281 /*.blend=*/NULL _wgpu_COMMA \
4282 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4283})
4284
4305
4309#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4310 /*.nextInChain=*/NULL _wgpu_COMMA \
4311 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4312 /*.layout=*/NULL _wgpu_COMMA \
4313 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4314})
4315
4348
4352#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4353 /*.nextInChain=*/NULL _wgpu_COMMA \
4354 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4355 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4356 /*.colorAttachments=*/NULL _wgpu_COMMA \
4357 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4358 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4359 /*.timestampWrites=*/NULL _wgpu_COMMA \
4360})
4361
4394
4398#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4399 /*.nextInChain=*/NULL _wgpu_COMMA \
4400 /*.module=*/NULL _wgpu_COMMA \
4401 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4402 /*.constantCount=*/0 _wgpu_COMMA \
4403 /*.constants=*/NULL _wgpu_COMMA \
4404 /*.bufferCount=*/0 _wgpu_COMMA \
4405 /*.buffers=*/NULL _wgpu_COMMA \
4406})
4407
4440
4444#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4445 /*.nextInChain=*/NULL _wgpu_COMMA \
4446 /*.module=*/NULL _wgpu_COMMA \
4447 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4448 /*.constantCount=*/0 _wgpu_COMMA \
4449 /*.constants=*/NULL _wgpu_COMMA \
4450 /*.targetCount=*/0 _wgpu_COMMA \
4451 /*.targets=*/NULL _wgpu_COMMA \
4452})
4453
4490
4494#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4495 /*.nextInChain=*/NULL _wgpu_COMMA \
4496 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4497 /*.layout=*/NULL _wgpu_COMMA \
4498 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4499 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4500 /*.depthStencil=*/NULL _wgpu_COMMA \
4501 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4502 /*.fragment=*/NULL _wgpu_COMMA \
4503})
4504
4507#ifdef __cplusplus
4508extern "C" {
4509#endif
4510
4511#if !defined(WGPU_SKIP_PROCS)
4512
4517typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4522typedef WGPUStatus (*WGPUProcGetInstanceCapabilities)(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
4527typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4528
4529// Procs of Adapter
4534typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4539typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4544typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4549typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4554typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4559typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4564typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4565
4566// Procs of AdapterInfo
4571typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4572
4573// Procs of BindGroup
4578typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4583typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4588typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4589
4590// Procs of BindGroupLayout
4595typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4600typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4605typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4606
4607// Procs of Buffer
4612typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4617typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4622typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4627typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4632typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4637typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4642typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4647typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4652typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4657typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4662typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4663
4664// Procs of CommandBuffer
4669typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4674typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4679typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4680
4681// Procs of CommandEncoder
4686typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4691typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4696typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4701typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4706typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4711typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4716typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4721typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4726typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4731typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4736typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4741typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4746typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4751typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4756typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4761typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4762
4763// Procs of ComputePassEncoder
4768typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4773typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4778typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4783typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4788typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4793typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4798typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4803typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4808typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4813typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4818typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4819
4820// Procs of ComputePipeline
4825typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
4830typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4835typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4840typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4841
4842// Procs of Device
4847typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4852typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4857typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4862typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4867typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4872typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4877typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4882typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4887typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4892typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4897typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4902typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4907typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4912typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4917typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4922typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4927typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4932typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4937typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4942typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4947typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4952typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4957typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
4962typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4967typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4972typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
4973
4974// Procs of Instance
4979typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4984typedef WGPUStatus (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4989typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4994typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
4999typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5004typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5009typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5014typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5015
5016// Procs of PipelineLayout
5021typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5026typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5031typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5032
5033// Procs of QuerySet
5038typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5043typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5048typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5053typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5058typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5063typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5064
5065// Procs of Queue
5070typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5075typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5080typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5085typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5090typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5095typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5100typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5101
5102// Procs of RenderBundle
5107typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5112typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5117typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5118
5119// Procs of RenderBundleEncoder
5124typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5129typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5134typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5139typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5144typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5149typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5154typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5159typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5164typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5169typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5174typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5179typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5184typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5189typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5194typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5195
5196// Procs of RenderPassEncoder
5201typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5206typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5211typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5216typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5221typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5226typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5231typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5236typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5241typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5246typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5251typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5256typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5261typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5266typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5271typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5276typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5281typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5286typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5291typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5296typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5301typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5306typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5307
5308// Procs of RenderPipeline
5313typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5318typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5323typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5328typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5329
5330// Procs of Sampler
5335typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5340typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5345typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5346
5347// Procs of ShaderModule
5352typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5357typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5362typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5367typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5368
5369// Procs of SupportedFeatures
5374typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5375
5376// Procs of SupportedWGSLLanguageFeatures
5381typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5382
5383// Procs of Surface
5388typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5393typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5398typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5403typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5408typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5413typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5418typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5423typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5424
5425// Procs of SurfaceCapabilities
5430typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5431
5432// Procs of Texture
5437typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5442typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5447typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5452typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5457typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5462typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5467typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5472typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5477typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5482typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5487typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5492typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5497typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5498
5499// Procs of TextureView
5504typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5509typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5514typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5515
5516#endif // !defined(WGPU_SKIP_PROCS)
5517
5518#if !defined(WGPU_SKIP_DECLARATIONS)
5531WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5541WGPU_EXPORT WGPUStatus wgpuGetInstanceCapabilities(WGPUInstanceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5546WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5547
5548
5570WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5578WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5583WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5584WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5585WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5586WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5587WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5601WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5612WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5613WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5614WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5625WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5626WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5627WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5638WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5651WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5652WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5664WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5665WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5666WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5667WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5668WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5669WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5670WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5671WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5682WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5683WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5684WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5699WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5704WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5705WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5706WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5707WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5708WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5709WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5714WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5715WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5716WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5717WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5718WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5719WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5720WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5721WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5722WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5733WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5734WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5735WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5736WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5737WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5738WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5739WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5740WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5741WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5742WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5743WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5758WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5759WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5760WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5761WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5776WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5781WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5791WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5796WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5801WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5807WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5812WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5822WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5828WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5833WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5838WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5839WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5847WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5854WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5859WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5864WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5869WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5870WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5875WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5880WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5881WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5882WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5883WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5904WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5909WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5915WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5916WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5922WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5923WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5924WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5935WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5936WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5937WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5948WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5949WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5950WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5951WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5952WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5953WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5964WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5965WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5966WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5971WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5972WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5973WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5974WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5985WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5986WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5987WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5998WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5999WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6000WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6001WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6006WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6007WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6008WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6009WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6010WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6011WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6012WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6013WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6014WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6015WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6016WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6027WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6028WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6029WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6030WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6031WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6032WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6033WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6034WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6035WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6036WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6037WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6038WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6043WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6044WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6045WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6046WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6047WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6048WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6049WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6055WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6056WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6057WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6072WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6073WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6074WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6075WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6086WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6087WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6088WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6099WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6100WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6101WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6102WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6116WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6130WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6150WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6166WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6176WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6184WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6191WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6196WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6197WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6198WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6212WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6227WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6228WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6229WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6230WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6231WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6232WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6233WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6234WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6235WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6236WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6237WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6238WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6250WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6251WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6252WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6258#endif // !defined(WGPU_SKIP_DECLARATIONS)
6259
6260#ifdef __cplusplus
6261} // extern "C"
6262#endif
6263
6264#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1226
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1201
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1210
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1197
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1230
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1169
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1185
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1165
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1243
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1281
WGPUFlags WGPUMapMode
Definition webgpu.h:1239
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1293
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1234
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1285
WGPUFlags WGPUShaderStage
Definition webgpu.h:1256
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1205
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1268
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1272
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1251
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1260
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1301
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1173
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1289
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1177
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1297
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1277
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1193
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1247
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1222
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1189
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1264
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1214
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1218
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1161
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1181
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1406
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1396
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1336
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1354
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1343
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1329
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1386
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, void *userdata1, void *userdata2)
Definition webgpu.h:1376
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1320
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1372
WGPUIndexFormat
Definition webgpu.h:596
WGPURequestAdapterStatus
Definition webgpu.h:740
WGPUFeatureName
Definition webgpu.h:553
WGPUVertexFormat
Definition webgpu.h:1053
WGPUSType
Definition webgpu.h:755
WGPUBufferBindingType
Definition webgpu.h:367
WGPUDeviceLostReason
Definition webgpu.h:507
WGPUCompareFunction
Definition webgpu.h:425
WGPUCullMode
Definition webgpu.h:495
WGPUTextureDimension
Definition webgpu.h:895
WGPURequestDeviceStatus
Definition webgpu.h:748
WGPUCompilationMessageType
Definition webgpu.h:448
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:487
WGPUTextureViewDimension
Definition webgpu.h:1032
WGPUPrimitiveTopology
Definition webgpu.h:714
WGPUTextureFormat
Definition webgpu.h:907
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1109
WGPUStencilOperation
Definition webgpu.h:799
WGPUAddressMode
Definition webgpu.h:298
WGPUToneMappingMode
Definition webgpu.h:1047
WGPUTextureAspect
Definition webgpu.h:883
WGPUBufferMapState
Definition webgpu.h:386
WGPUFilterMode
Definition webgpu.h:574
WGPUBackendType
Definition webgpu.h:310
WGPUBlendFactor
Definition webgpu.h:327
WGPUSamplerBindingType
Definition webgpu.h:769
WGPULoadOp
Definition webgpu.h:607
WGPUPopErrorScopeStatus
Definition webgpu.h:644
WGPUWaitStatus
Definition webgpu.h:1120
WGPUStorageTextureAccess
Definition webgpu.h:816
WGPUPowerPreference
Definition webgpu.h:659
WGPUPresentMode
Definition webgpu.h:679
WGPUMapAsyncStatus
Definition webgpu.h:618
WGPUBlendOperation
Definition webgpu.h:353
WGPUCompositeAlphaMode
Definition webgpu.h:458
WGPUPredefinedColorSpace
Definition webgpu.h:670
WGPUQueueWorkDoneStatus
Definition webgpu.h:734
WGPUVertexStepMode
Definition webgpu.h:1098
WGPUQueryType
Definition webgpu.h:728
WGPUFeatureLevel
Definition webgpu.h:534
WGPUAdapterType
Definition webgpu.h:290
WGPUStatus
Definition webgpu.h:793
WGPUCompilationInfoRequestStatus
Definition webgpu.h:442
WGPUMipmapFilterMode
Definition webgpu.h:626
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:849
WGPUFrontFace
Definition webgpu.h:585
WGPUStoreOp
Definition webgpu.h:835
WGPUErrorFilter
Definition webgpu.h:515
WGPUOptionalBool
Definition webgpu.h:637
WGPUCallbackMode
Definition webgpu.h:396
WGPUTextureSampleType
Definition webgpu.h:1011
WGPUErrorType
Definition webgpu.h:522
@ WGPUIndexFormat_Force32
Definition webgpu.h:604
@ WGPUIndexFormat_Uint16
Definition webgpu.h:602
@ WGPUIndexFormat_Undefined
Definition webgpu.h:601
@ WGPUIndexFormat_Uint32
Definition webgpu.h:603
@ WGPURequestAdapterStatus_InstanceDropped
Definition webgpu.h:742
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:743
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:741
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:744
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:745
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:561
@ WGPUFeatureName_Force32
Definition webgpu.h:571
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:569
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:556
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:565
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:566
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:568
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:570
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:562
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:559
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:564
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:567
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:557
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:558
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:560
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:563
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:555
@ WGPUFeatureName_Undefined
Definition webgpu.h:554
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1092
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1082
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1090
@ WGPUVertexFormat_Float32
Definition webgpu.h:1081
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1080
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1068
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1064
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1056
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1058
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1060
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1062
@ WGPUVertexFormat_Force32
Definition webgpu.h:1095
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1055
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1084
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1079
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1085
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1063
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1057
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1088
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1094
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1089
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1066
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1086
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1087
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1075
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1071
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1093
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1073
@ WGPUVertexFormat_Float16
Definition webgpu.h:1078
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1061
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1091
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1070
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1065
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1054
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1059
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1072
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1069
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1067
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1076
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1074
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1083
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1077
@ WGPUSType_Force32
Definition webgpu.h:766
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:762
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:756
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:765
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:763
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:764
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:760
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:758
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:759
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:757
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:761
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:374
@ WGPUBufferBindingType_Storage
Definition webgpu.h:381
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:379
@ WGPUBufferBindingType_Force32
Definition webgpu.h:383
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:382
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:380
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:511
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:509
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:512
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:508
@ WGPUDeviceLostReason_InstanceDropped
Definition webgpu.h:510
@ WGPUCompareFunction_Force32
Definition webgpu.h:439
@ WGPUCompareFunction_Always
Definition webgpu.h:438
@ WGPUCompareFunction_Never
Definition webgpu.h:431
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:436
@ WGPUCompareFunction_Less
Definition webgpu.h:432
@ WGPUCompareFunction_Undefined
Definition webgpu.h:430
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:437
@ WGPUCompareFunction_Equal
Definition webgpu.h:433
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:434
@ WGPUCompareFunction_Greater
Definition webgpu.h:435
@ WGPUCullMode_Force32
Definition webgpu.h:504
@ WGPUCullMode_Undefined
Definition webgpu.h:500
@ WGPUCullMode_Back
Definition webgpu.h:503
@ WGPUCullMode_Front
Definition webgpu.h:502
@ WGPUCullMode_None
Definition webgpu.h:501
@ WGPUTextureDimension_Undefined
Definition webgpu.h:900
@ WGPUTextureDimension_2D
Definition webgpu.h:902
@ WGPUTextureDimension_Force32
Definition webgpu.h:904
@ WGPUTextureDimension_3D
Definition webgpu.h:903
@ WGPUTextureDimension_1D
Definition webgpu.h:901
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:749
@ WGPURequestDeviceStatus_InstanceDropped
Definition webgpu.h:750
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:751
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:752
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:452
@ WGPUCompilationMessageType_Info
Definition webgpu.h:451
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:450
@ WGPUCompilationMessageType_Error
Definition webgpu.h:449
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:492
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:490
@ WGPUCreatePipelineAsyncStatus_InstanceDropped
Definition webgpu.h:489
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:488
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:491
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1041
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1040
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1039
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1043
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1038
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1042
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1037
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1044
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:721
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:722
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:719
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:723
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:720
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:724
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:725
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1004
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:965
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:968
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:930
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:920
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:970
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:980
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:973
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:977
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:963
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:932
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:998
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:936
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:988
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:972
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1000
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:994
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:947
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:966
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:943
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:946
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1002
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:955
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:921
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1005
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:952
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:928
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:978
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:971
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:967
@ WGPUTextureFormat_R32Float
Definition webgpu.h:924
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:969
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:918
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:916
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:931
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:961
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:933
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:979
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:944
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1003
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:938
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:997
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:984
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:925
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:975
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:982
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:960
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:935
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:962
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:964
@ WGPUTextureFormat_Force32
Definition webgpu.h:1008
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:956
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:985
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:993
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:926
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:959
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:948
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:950
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:976
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:989
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:927
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1001
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:940
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:951
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:923
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:995
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:917
@ WGPUTextureFormat_Undefined
Definition webgpu.h:912
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:999
@ WGPUTextureFormat_R16Float
Definition webgpu.h:919
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:983
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:941
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:939
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1007
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:949
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:957
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:929
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:986
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:953
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:996
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:945
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:913
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:954
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:958
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:992
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:922
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:915
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:990
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1006
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:937
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:981
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:974
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:942
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:991
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:934
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:914
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:987
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1110
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1112
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1113
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1114
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1111
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:810
@ WGPUStencilOperation_Undefined
Definition webgpu.h:804
@ WGPUStencilOperation_Replace
Definition webgpu.h:807
@ WGPUStencilOperation_Keep
Definition webgpu.h:805
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:812
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:811
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:809
@ WGPUStencilOperation_Invert
Definition webgpu.h:808
@ WGPUStencilOperation_Force32
Definition webgpu.h:813
@ WGPUStencilOperation_Zero
Definition webgpu.h:806
@ WGPUAddressMode_Repeat
Definition webgpu.h: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:1050
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1048
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1049
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:891
@ WGPUTextureAspect_Force32
Definition webgpu.h:892
@ WGPUTextureAspect_Undefined
Definition webgpu.h:888
@ WGPUTextureAspect_All
Definition webgpu.h:889
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:890
@ WGPUBufferMapState_Pending
Definition webgpu.h:388
@ WGPUBufferMapState_Mapped
Definition webgpu.h:389
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:387
@ WGPUBufferMapState_Force32
Definition webgpu.h:390
@ WGPUFilterMode_Undefined
Definition webgpu.h:579
@ WGPUFilterMode_Force32
Definition webgpu.h:582
@ WGPUFilterMode_Nearest
Definition webgpu.h:580
@ WGPUFilterMode_Linear
Definition webgpu.h:581
@ WGPUBackendType_Vulkan
Definition webgpu.h:321
@ WGPUBackendType_OpenGL
Definition webgpu.h:322
@ WGPUBackendType_Force32
Definition webgpu.h:324
@ WGPUBackendType_OpenGLES
Definition webgpu.h:323
@ WGPUBackendType_WebGPU
Definition webgpu.h:317
@ WGPUBackendType_D3D11
Definition webgpu.h:318
@ WGPUBackendType_D3D12
Definition webgpu.h:319
@ WGPUBackendType_Undefined
Definition webgpu.h:315
@ WGPUBackendType_Null
Definition webgpu.h:316
@ WGPUBackendType_Metal
Definition webgpu.h:320
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:341
@ WGPUBlendFactor_One
Definition webgpu.h:334
@ WGPUBlendFactor_Zero
Definition webgpu.h:333
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:348
@ WGPUBlendFactor_Undefined
Definition webgpu.h:332
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:340
@ WGPUBlendFactor_Force32
Definition webgpu.h:350
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:347
@ WGPUBlendFactor_Constant
Definition webgpu.h:344
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:336
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:343
@ WGPUBlendFactor_Src
Definition webgpu.h:335
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:338
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:337
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:345
@ WGPUBlendFactor_Src1
Definition webgpu.h:346
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:342
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:349
@ WGPUBlendFactor_Dst
Definition webgpu.h:339
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:776
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:783
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:785
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:782
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:781
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:784
@ WGPULoadOp_Load
Definition webgpu.h:613
@ WGPULoadOp_Force32
Definition webgpu.h:615
@ WGPULoadOp_Undefined
Definition webgpu.h:612
@ WGPULoadOp_Clear
Definition webgpu.h:614
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:656
@ WGPUPopErrorScopeStatus_InstanceDropped
Definition webgpu.h:650
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:649
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:655
@ WGPUWaitStatus_Force32
Definition webgpu.h:1146
@ WGPUWaitStatus_UnsupportedCount
Definition webgpu.h:1140
@ WGPUWaitStatus_Success
Definition webgpu.h:1125
@ WGPUWaitStatus_UnsupportedTimeout
Definition webgpu.h:1135
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1130
@ WGPUWaitStatus_UnsupportedMixedSources
Definition webgpu.h:1145
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:828
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:823
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:830
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:829
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:832
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:831
@ WGPUPowerPreference_Force32
Definition webgpu.h:667
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:666
@ WGPUPowerPreference_LowPower
Definition webgpu.h:665
@ WGPUPowerPreference_Undefined
Definition webgpu.h:664
@ WGPUPresentMode_Fifo
Definition webgpu.h:691
@ WGPUPresentMode_Force32
Definition webgpu.h:711
@ WGPUPresentMode_Immediate
Definition webgpu.h:704
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:698
@ WGPUPresentMode_Mailbox
Definition webgpu.h:710
@ WGPUPresentMode_Undefined
Definition webgpu.h:684
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:622
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:621
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:623
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:619
@ WGPUMapAsyncStatus_InstanceDropped
Definition webgpu.h:620
@ WGPUBlendOperation_Undefined
Definition webgpu.h:358
@ WGPUBlendOperation_Max
Definition webgpu.h:363
@ WGPUBlendOperation_Subtract
Definition webgpu.h:360
@ WGPUBlendOperation_Min
Definition webgpu.h:362
@ WGPUBlendOperation_Add
Definition webgpu.h:359
@ WGPUBlendOperation_Force32
Definition webgpu.h:364
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:361
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:463
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:484
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:468
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:478
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:483
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:473
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:672
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:671
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:673
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:735
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:737
@ WGPUQueueWorkDoneStatus_InstanceDropped
Definition webgpu.h:736
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1103
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1105
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1104
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1106
@ WGPUQueryType_Occlusion
Definition webgpu.h:729
@ WGPUQueryType_Timestamp
Definition webgpu.h:730
@ WGPUQueryType_Force32
Definition webgpu.h:731
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:539
@ WGPUFeatureLevel_Core
Definition webgpu.h:549
@ WGPUFeatureLevel_Force32
Definition webgpu.h:550
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:544
@ WGPUAdapterType_CPU
Definition webgpu.h:293
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:291
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:292
@ WGPUAdapterType_Unknown
Definition webgpu.h:294
@ WGPUAdapterType_Force32
Definition webgpu.h:295
@ WGPUStatus_Force32
Definition webgpu.h:796
@ WGPUStatus_Success
Definition webgpu.h:794
@ WGPUStatus_Error
Definition webgpu.h:795
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:445
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:443
@ WGPUCompilationInfoRequestStatus_InstanceDropped
Definition webgpu.h:444
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:631
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:633
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:634
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:632
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:874
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:879
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:869
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:864
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:854
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:880
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:859
@ WGPUFrontFace_CW
Definition webgpu.h:592
@ WGPUFrontFace_Undefined
Definition webgpu.h:590
@ WGPUFrontFace_CCW
Definition webgpu.h:591
@ WGPUFrontFace_Force32
Definition webgpu.h:593
@ WGPUStoreOp_Discard
Definition webgpu.h:842
@ WGPUStoreOp_Force32
Definition webgpu.h:843
@ WGPUStoreOp_Store
Definition webgpu.h:841
@ WGPUStoreOp_Undefined
Definition webgpu.h:840
@ WGPUErrorFilter_Internal
Definition webgpu.h:518
@ WGPUErrorFilter_Force32
Definition webgpu.h:519
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:517
@ WGPUErrorFilter_Validation
Definition webgpu.h:516
@ WGPUOptionalBool_True
Definition webgpu.h:639
@ WGPUOptionalBool_Force32
Definition webgpu.h:641
@ WGPUOptionalBool_Undefined
Definition webgpu.h:640
@ WGPUOptionalBool_False
Definition webgpu.h:638
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:410
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:421
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:403
@ WGPUCallbackMode_Force32
Definition webgpu.h:422
@ WGPUTextureSampleType_Float
Definition webgpu.h:1024
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1027
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1018
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1023
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1029
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1028
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1026
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1025
@ WGPUErrorType_NoError
Definition webgpu.h:523
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:525
@ WGPUErrorType_Unknown
Definition webgpu.h:527
@ WGPUErrorType_Validation
Definition webgpu.h:524
@ WGPUErrorType_Force32
Definition webgpu.h:528
@ WGPUErrorType_Internal
Definition webgpu.h:526
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:1694
WGPUBackendType backendType
Definition webgpu.h:1704
uint32_t deviceID
Definition webgpu.h:1716
WGPUChainedStruct * nextInChain
Definition webgpu.h:1676
uint32_t vendorID
Definition webgpu.h:1712
WGPUStringView description
Definition webgpu.h:1700
WGPUAdapterType adapterType
Definition webgpu.h:1708
WGPUStringView architecture
Definition webgpu.h:1688
WGPUStringView vendor
Definition webgpu.h:1682
WGPUChainedStruct * nextInChain
Definition webgpu.h:3642
WGPUStringView label
Definition webgpu.h:3648
WGPUBindGroupLayout layout
Definition webgpu.h:3652
WGPUBindGroupEntry const * entries
Definition webgpu.h:3660
uint64_t offset
Definition webgpu.h:1758
WGPUBuffer buffer
Definition webgpu.h:1751
WGPUSampler sampler
Definition webgpu.h:1773
WGPUTextureView textureView
Definition webgpu.h:1780
WGPUChainedStruct * nextInChain
Definition webgpu.h:1738
uint32_t binding
Definition webgpu.h:1744
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4239
WGPUChainedStruct * nextInChain
Definition webgpu.h:4225
WGPUTextureBindingLayout texture
Definition webgpu.h:3698
WGPUShaderStage visibility
Definition webgpu.h:3686
WGPUBufferBindingLayout buffer
Definition webgpu.h:3690
WGPUChainedStruct * nextInChain
Definition webgpu.h:3678
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3702
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3694
WGPUBlendFactor dstFactor
Definition webgpu.h:1820
WGPUBlendFactor srcFactor
Definition webgpu.h:1813
WGPUBlendOperation operation
Definition webgpu.h:1806
WGPUBlendComponent alpha
Definition webgpu.h:3729
WGPUBlendComponent color
Definition webgpu.h:3725
WGPUBufferBindingType type
Definition webgpu.h:1843
WGPUBool hasDynamicOffset
Definition webgpu.h:1847
WGPUChainedStruct * nextInChain
Definition webgpu.h:1836
WGPUBool mappedAtCreation
Definition webgpu.h:1886
WGPUStringView label
Definition webgpu.h:1874
WGPUBufferUsage usage
Definition webgpu.h:1878
WGPUChainedStruct * nextInChain
Definition webgpu.h:1868
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1438
WGPUBufferMapCallback callback
Definition webgpu.h:1445
WGPUCallbackMode mode
Definition webgpu.h:1444
struct WGPUChainedStruct * next
Definition webgpu.h:1417
WGPUSType sType
Definition webgpu.h:1418
WGPUBlendState const * blend
Definition webgpu.h:4268
WGPUColorWriteMask writeMask
Definition webgpu.h:4272
WGPUChainedStruct * nextInChain
Definition webgpu.h:4256
WGPUTextureFormat format
Definition webgpu.h:4264
double a
Definition webgpu.h:1923
double b
Definition webgpu.h:1919
double r
Definition webgpu.h:1911
double g
Definition webgpu.h:1915
WGPUChainedStruct * nextInChain
Definition webgpu.h:1940
WGPUChainedStruct * nextInChain
Definition webgpu.h:1961
WGPUCompilationInfoCallback callback
Definition webgpu.h:1469
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1462
WGPUChainedStruct * nextInChain
Definition webgpu.h:3747
WGPUCompilationMessage const * messages
Definition webgpu.h:3755
WGPUChainedStruct * nextInChain
Definition webgpu.h:1985
WGPUCompilationMessageType type
Definition webgpu.h:1999
WGPUStringView message
Definition webgpu.h:1993
WGPUStringView label
Definition webgpu.h:3777
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3781
WGPUChainedStruct * nextInChain
Definition webgpu.h:3771
WGPUComputeState compute
Definition webgpu.h:4303
WGPUChainedStruct * nextInChain
Definition webgpu.h:4289
WGPUPipelineLayout layout
Definition webgpu.h:4299
WGPUChainedStruct * nextInChain
Definition webgpu.h:3797
WGPUConstantEntry const * constants
Definition webgpu.h:3815
size_t constantCount
Definition webgpu.h:3811
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3807
WGPUStringView key
Definition webgpu.h:2049
WGPUChainedStruct * nextInChain
Definition webgpu.h:2043
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1486
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1493
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1510
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1517
WGPUStencilFaceState stencilFront
Definition webgpu.h:3849
uint32_t stencilWriteMask
Definition webgpu.h:3861
WGPUStencilFaceState stencilBack
Definition webgpu.h:3853
WGPUChainedStruct * nextInChain
Definition webgpu.h:3833
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3841
WGPUCompareFunction depthCompare
Definition webgpu.h:3845
uint32_t stencilReadMask
Definition webgpu.h:3857
WGPUTextureFormat format
Definition webgpu.h:3837
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:3931
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:3940
size_t requiredFeatureCount
Definition webgpu.h:3915
WGPUStringView label
Definition webgpu.h:3911
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:3919
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:3927
WGPUChainedStruct * nextInChain
Definition webgpu.h:3905
WGPULimits const * requiredLimits
Definition webgpu.h:3923
WGPUDeviceLostCallback callback
Definition webgpu.h:1541
WGPUCallbackMode mode
Definition webgpu.h:1540
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1534
uint32_t width
Definition webgpu.h:2076
uint32_t depthOrArrayLayers
Definition webgpu.h:2084
uint32_t height
Definition webgpu.h:2080
size_t constantCount
Definition webgpu.h:4426
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4422
WGPUChainedStruct * nextInChain
Definition webgpu.h:4412
size_t targetCount
Definition webgpu.h:4434
WGPUConstantEntry const * constants
Definition webgpu.h:4430
WGPUColorTargetState const * targets
Definition webgpu.h:4438
WGPUFuture future
Definition webgpu.h:3968
WGPUBool completed
Definition webgpu.h:3974
uint64_t id
Definition webgpu.h:2107
WGPUChainedStruct * nextInChain
Definition webgpu.h:2123
WGPUBool timedWaitAnyEnable
Definition webgpu.h:2129
WGPUInstanceCapabilities capabilities
Definition webgpu.h:3995
WGPUChainedStruct * nextInChain
Definition webgpu.h:3989
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2175
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2251
uint32_t maxTextureDimension2D
Definition webgpu.h:2159
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2191
uint32_t maxTextureDimension3D
Definition webgpu.h:2163
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2195
WGPUChainedStruct * nextInChain
Definition webgpu.h:2151
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2179
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2275
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2187
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2255
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2223
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2267
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2215
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2259
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2239
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2219
uint32_t maxVertexAttributes
Definition webgpu.h:2235
uint32_t maxColorAttachments
Definition webgpu.h:2247
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2243
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2271
uint32_t maxTextureDimension1D
Definition webgpu.h:2155
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2183
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2211
uint64_t maxBufferSize
Definition webgpu.h:2231
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2207
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2263
uint32_t maxVertexBuffers
Definition webgpu.h:2227
uint32_t maxTextureArrayLayers
Definition webgpu.h:2167
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2203
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2199
uint32_t maxBindGroups
Definition webgpu.h:2171
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2332
WGPUChainedStruct * nextInChain
Definition webgpu.h:2320
uint32_t y
Definition webgpu.h:2356
uint32_t z
Definition webgpu.h:2360
uint32_t x
Definition webgpu.h:2352
WGPUQuerySet querySet
Definition webgpu.h:2382
uint32_t endOfPassWriteIndex
Definition webgpu.h:2390
WGPUChainedStruct * nextInChain
Definition webgpu.h:2376
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2386
WGPUChainedStruct * nextInChain
Definition webgpu.h:2407
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2421
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1558
WGPUCallbackMode mode
Definition webgpu.h:1564
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1565
WGPUFrontFace frontFace
Definition webgpu.h:2456
WGPUChainedStruct * nextInChain
Definition webgpu.h:2438
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2449
WGPUPrimitiveTopology topology
Definition webgpu.h:2445
WGPUCullMode cullMode
Definition webgpu.h:2463
WGPUBool unclippedDepth
Definition webgpu.h:2467
WGPUQueryType type
Definition webgpu.h:2496
WGPUChainedStruct * nextInChain
Definition webgpu.h:2486
WGPUStringView label
Definition webgpu.h:2492
WGPUChainedStruct * nextInChain
Definition webgpu.h:2517
WGPUStringView label
Definition webgpu.h:2523
WGPUCallbackMode mode
Definition webgpu.h:1588
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1582
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1589
WGPUChainedStruct * nextInChain
Definition webgpu.h:2538
WGPUStringView label
Definition webgpu.h:2544
WGPUChainedStruct * nextInChain
Definition webgpu.h:2559
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2573
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2577
WGPUTextureView resolveTarget
Definition webgpu.h:4025
WGPUChainedStruct * nextInChain
Definition webgpu.h:4010
WGPUChainedStruct * nextInChain
Definition webgpu.h:2610
WGPUChainedStruct * nextInChain
Definition webgpu.h:4320
WGPUStringView label
Definition webgpu.h:4326
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4338
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4334
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4342
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4346
WGPUChainedStruct chain
Definition webgpu.h:2676
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4480
WGPUChainedStruct * nextInChain
Definition webgpu.h:4458
WGPUMultisampleState multisample
Definition webgpu.h:4484
WGPUFragmentState const * fragment
Definition webgpu.h:4488
WGPUPrimitiveState primitive
Definition webgpu.h:4476
WGPUPipelineLayout layout
Definition webgpu.h:4468
WGPUVertexState vertex
Definition webgpu.h:4472
WGPURequestAdapterCallback callback
Definition webgpu.h:1613
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1606
WGPUFeatureLevel featureLevel
Definition webgpu.h:2709
WGPUBool forceFallbackAdapter
Definition webgpu.h:2720
WGPUSurface compatibleSurface
Definition webgpu.h:2734
WGPUBackendType backendType
Definition webgpu.h:2727
WGPUChainedStruct * nextInChain
Definition webgpu.h:2698
WGPUPowerPreference powerPreference
Definition webgpu.h:2713
WGPUCallbackMode mode
Definition webgpu.h:1636
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1630
WGPURequestDeviceCallback callback
Definition webgpu.h:1637
WGPUChainedStruct * nextInChain
Definition webgpu.h:2753
WGPUSamplerBindingType type
Definition webgpu.h:2760
WGPUFilterMode minFilter
Definition webgpu.h:2816
WGPUAddressMode addressModeU
Definition webgpu.h:2788
WGPUCompareFunction compare
Definition webgpu.h:2843
WGPUAddressMode addressModeW
Definition webgpu.h:2802
uint16_t maxAnisotropy
Definition webgpu.h:2847
WGPUAddressMode addressModeV
Definition webgpu.h:2795
WGPUStringView label
Definition webgpu.h:2781
WGPUFilterMode magFilter
Definition webgpu.h:2809
WGPUChainedStruct * nextInChain
Definition webgpu.h:2775
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2823
WGPUChainedStruct * nextInChain
Definition webgpu.h:2872
WGPUStringView label
Definition webgpu.h:2878
WGPUChainedStruct chain
Definition webgpu.h:2893
uint32_t const * code
Definition webgpu.h:2901
WGPUChainedStruct chain
Definition webgpu.h:2920
WGPUStringView code
Definition webgpu.h:2926
WGPUCompareFunction compare
Definition webgpu.h:2950
WGPUStencilOperation depthFailOp
Definition webgpu.h:2964
WGPUStencilOperation passOp
Definition webgpu.h:2971
WGPUStencilOperation failOp
Definition webgpu.h:2957
WGPUChainedStruct * nextInChain
Definition webgpu.h:2988
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3006
WGPUTextureFormat format
Definition webgpu.h:2999
WGPUStorageTextureAccess access
Definition webgpu.h:2995
size_t length
Definition webgpu.h:143
char const * data
Definition webgpu.h:142
WGPUFeatureName const * features
Definition webgpu.h:3030
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3052
WGPUTextureFormat const * formats
Definition webgpu.h:3086
WGPUChainedStruct * nextInChain
Definition webgpu.h:3069
WGPUPresentMode const * presentModes
Definition webgpu.h:3097
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3108
WGPUTextureUsage usages
Definition webgpu.h:3076
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3139
WGPUChainedStruct chain
Definition webgpu.h:3131
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3135
WGPUTextureUsage usage
Definition webgpu.h:3179
WGPUTextureFormat format
Definition webgpu.h:3173
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3201
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3211
WGPUChainedStruct * nextInChain
Definition webgpu.h:3161
WGPUPresentMode presentMode
Definition webgpu.h:3220
WGPUChainedStruct * nextInChain
Definition webgpu.h:3247
WGPUStringView label
Definition webgpu.h:3255
WGPUChainedStruct chain
Definition webgpu.h:3298
WGPUChainedStruct chain
Definition webgpu.h:3324
WGPUChainedStruct chain
Definition webgpu.h:3357
WGPUChainedStruct chain
Definition webgpu.h:3391
WGPUChainedStruct chain
Definition webgpu.h:3424
WGPUChainedStruct * nextInChain
Definition webgpu.h:3458
WGPUTexture texture
Definition webgpu.h:3465
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3471
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4060
WGPUOrigin3D origin
Definition webgpu.h:4090
WGPUTextureAspect aspect
Definition webgpu.h:4097
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3528
WGPUTextureSampleType sampleType
Definition webgpu.h:3521
WGPUChainedStruct * nextInChain
Definition webgpu.h:3514
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4155
WGPUTextureDimension dimension
Definition webgpu.h:4131
WGPUStringView label
Definition webgpu.h:4120
uint32_t mipLevelCount
Definition webgpu.h:4143
WGPUChainedStruct * nextInChain
Definition webgpu.h:4114
WGPUTextureFormat format
Definition webgpu.h:4139
WGPUTextureUsage usage
Definition webgpu.h:4124
WGPUExtent3D size
Definition webgpu.h:4135
WGPUChainedStruct * nextInChain
Definition webgpu.h:3549
WGPUTextureUsage usage
Definition webgpu.h:3590
WGPUTextureFormat format
Definition webgpu.h:3559
WGPUTextureViewDimension dimension
Definition webgpu.h:3563
WGPUStringView label
Definition webgpu.h:3555
WGPUTextureAspect aspect
Definition webgpu.h:3586
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1655
WGPUChainedStruct const * nextInChain
Definition webgpu.h:1654
WGPUVertexFormat format
Definition webgpu.h:3617
WGPUChainedStruct * nextInChain
Definition webgpu.h:3613
uint32_t shaderLocation
Definition webgpu.h:3625
WGPUVertexAttribute const * attributes
Definition webgpu.h:4207
WGPUVertexStepMode stepMode
Definition webgpu.h:4195
WGPUChainedStruct * nextInChain
Definition webgpu.h:4191
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4376
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4392
WGPUConstantEntry const * constants
Definition webgpu.h:4384
size_t constantCount
Definition webgpu.h:4380
size_t bufferCount
Definition webgpu.h:4388
WGPUChainedStruct * nextInChain
Definition webgpu.h:4366