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
100#define WGPU_TRUE (UINT32_C(1))
107#define WGPU_FALSE (UINT32_C(0))
112#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
117#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
122#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
127#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
132#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
137#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
142#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
147#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
152#define WGPU_STRLEN (SIZE_MAX)
157#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
162#define WGPU_WHOLE_SIZE (UINT64_MAX)
163
193typedef struct WGPUStringView {
194 WGPU_NULLABLE char const * data;
195 size_t length;
196} WGPUStringView WGPU_STRUCTURE_ATTRIBUTE;
197
201#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
202 /*.data=*/NULL _wgpu_COMMA \
203 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
204})
205
206typedef uint64_t WGPUFlags;
207typedef uint32_t WGPUBool;
208
217typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
218typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
219typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
220typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
221typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
222typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
223typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
224typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
231typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
235typedef struct WGPUExternalTextureImpl* WGPUExternalTexture WGPU_OBJECT_ATTRIBUTE;
236typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
237typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
238typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
239typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
240typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
241typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
242typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
243typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
244typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
245typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
249typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
250typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
251typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
252
255// Structure forward declarations
256struct WGPUAdapterInfo;
257struct WGPUBlendComponent;
260struct WGPUColor;
264struct WGPUConstantEntry;
265struct WGPUExtent3D;
268struct WGPUFuture;
269struct WGPUInstanceLimits;
270struct WGPULimits;
272struct WGPUOrigin3D;
275struct WGPUPrimitiveState;
301struct WGPUSurfaceTexture;
307struct WGPUBindGroupEntry;
309struct WGPUBlendState;
312struct WGPUComputeState;
315struct WGPUFutureWaitInfo;
331struct WGPUVertexState;
332struct WGPUFragmentState;
334
335// Callback info structure forward declarations
346
354typedef enum WGPUAdapterType {
359 WGPUAdapterType_Force32 = 0x7FFFFFFF
360} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
361
372
388
413
426
443
450
479
495
504
511
543
570
581
582typedef enum WGPUCullMode {
587 WGPUCullMode_None = 0x00000001,
588 WGPUCullMode_Front = 0x00000002,
589 WGPUCullMode_Back = 0x00000003,
590 WGPUCullMode_Force32 = 0x7FFFFFFF
591} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
592
603
604typedef enum WGPUErrorFilter {
608 WGPUErrorFilter_Force32 = 0x7FFFFFFF
609} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
610
611typedef enum WGPUErrorType {
617 WGPUErrorType_Force32 = 0x7FFFFFFF
618} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
619
623typedef enum WGPUFeatureLevel {
636 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
637} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
638
664
665typedef enum WGPUFilterMode {
672 WGPUFilterMode_Force32 = 0x7FFFFFFF
673} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
674
675typedef enum WGPUFrontFace {
680 WGPUFrontFace_CCW = 0x00000001,
681 WGPUFrontFace_CW = 0x00000002,
682 WGPUFrontFace_Force32 = 0x7FFFFFFF
683} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
684
685typedef enum WGPUIndexFormat {
692 WGPUIndexFormat_Force32 = 0x7FFFFFFF
693} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
694
714
715typedef enum WGPULoadOp {
720 WGPULoadOp_Load = 0x00000001,
721 WGPULoadOp_Clear = 0x00000002,
722 WGPULoadOp_Force32 = 0x7FFFFFFF
723} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
724
735
745
746typedef enum WGPUOptionalBool {
753 WGPUOptionalBool_Force32 = 0x7FFFFFFF
754} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
755
771
781
787
820
833
834typedef enum WGPUQueryType {
837 WGPUQueryType_Force32 = 0x7FFFFFFF
838} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
839
853
864
874
891
897typedef enum WGPUStatus {
898 WGPUStatus_Success = 0x00000001,
899 WGPUStatus_Error = 0x00000002,
900 WGPUStatus_Force32 = 0x7FFFFFFF
901} WGPUStatus WGPU_ENUM_ATTRIBUTE;
902
918
935
936typedef enum WGPUStoreOp {
941 WGPUStoreOp_Store = 0x00000001,
943 WGPUStoreOp_Force32 = 0x7FFFFFFF
944} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
945
963
994
1005
1016
1017typedef enum WGPUTextureFormat {
1123 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1124} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1125
1144
1158
1164
1165typedef enum WGPUVertexFormat {
1207 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1208} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1209
1219
1223typedef enum WGPUWaitStatus {
1237 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1238} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1239
1249
1266static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1270static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1276static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1280static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1284static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1288static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1292static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1296static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1300static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1304static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1308static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1309
1317static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1318static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1319static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1320static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1321static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1325static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1326
1334static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1335static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1336static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1337
1345static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1346static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1347static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1348static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1349
1357static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1358static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1359static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1360static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1361static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1362static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1363
1366typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1367
1381typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1382
1391typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1392
1399typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1400
1407typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1408
1426typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1427
1445typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1446
1459typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1460
1470typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1471
1481typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1482
1492typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1493
1502typedef struct WGPUChainedStruct {
1505} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1506
1536
1540#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1541 /*.nextInChain=*/NULL _wgpu_COMMA \
1542 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1543 /*.callback=*/NULL _wgpu_COMMA \
1544 /*.userdata1=*/NULL _wgpu_COMMA \
1545 /*.userdata2=*/NULL _wgpu_COMMA \
1546})
1547
1560
1564#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1565 /*.nextInChain=*/NULL _wgpu_COMMA \
1566 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1567 /*.callback=*/NULL _wgpu_COMMA \
1568 /*.userdata1=*/NULL _wgpu_COMMA \
1569 /*.userdata2=*/NULL _wgpu_COMMA \
1570})
1571
1584
1588#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1589 /*.nextInChain=*/NULL _wgpu_COMMA \
1590 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1591 /*.callback=*/NULL _wgpu_COMMA \
1592 /*.userdata1=*/NULL _wgpu_COMMA \
1593 /*.userdata2=*/NULL _wgpu_COMMA \
1594})
1595
1608
1612#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1613 /*.nextInChain=*/NULL _wgpu_COMMA \
1614 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1615 /*.callback=*/NULL _wgpu_COMMA \
1616 /*.userdata1=*/NULL _wgpu_COMMA \
1617 /*.userdata2=*/NULL _wgpu_COMMA \
1618})
1619
1632
1636#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1637 /*.nextInChain=*/NULL _wgpu_COMMA \
1638 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1639 /*.callback=*/NULL _wgpu_COMMA \
1640 /*.userdata1=*/NULL _wgpu_COMMA \
1641 /*.userdata2=*/NULL _wgpu_COMMA \
1642})
1643
1656
1660#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1661 /*.nextInChain=*/NULL _wgpu_COMMA \
1662 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1663 /*.callback=*/NULL _wgpu_COMMA \
1664 /*.userdata1=*/NULL _wgpu_COMMA \
1665 /*.userdata2=*/NULL _wgpu_COMMA \
1666})
1667
1680
1684#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1685 /*.nextInChain=*/NULL _wgpu_COMMA \
1686 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1687 /*.callback=*/NULL _wgpu_COMMA \
1688 /*.userdata1=*/NULL _wgpu_COMMA \
1689 /*.userdata2=*/NULL _wgpu_COMMA \
1690})
1691
1704
1708#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1709 /*.nextInChain=*/NULL _wgpu_COMMA \
1710 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1711 /*.callback=*/NULL _wgpu_COMMA \
1712 /*.userdata1=*/NULL _wgpu_COMMA \
1713 /*.userdata2=*/NULL _wgpu_COMMA \
1714})
1715
1728
1732#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1733 /*.nextInChain=*/NULL _wgpu_COMMA \
1734 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1735 /*.callback=*/NULL _wgpu_COMMA \
1736 /*.userdata1=*/NULL _wgpu_COMMA \
1737 /*.userdata2=*/NULL _wgpu_COMMA \
1738})
1739
1746
1750#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1751 /*.nextInChain=*/NULL _wgpu_COMMA \
1752 /*.callback=*/NULL _wgpu_COMMA \
1753 /*.userdata1=*/NULL _wgpu_COMMA \
1754 /*.userdata2=*/NULL _wgpu_COMMA \
1755})
1756
1813
1817#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1818 /*.nextInChain=*/NULL _wgpu_COMMA \
1819 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1820 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1821 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1822 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1823 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1824 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1825 /*.vendorID=*/0 _wgpu_COMMA \
1826 /*.deviceID=*/0 _wgpu_COMMA \
1827 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1828 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1829})
1830
1857
1861#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1862 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1863 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1864 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1865})
1866
1888
1892#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1893 /*.nextInChain=*/NULL _wgpu_COMMA \
1894 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1895 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1896 /*.minBindingSize=*/0 _wgpu_COMMA \
1897})
1898
1927
1931#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1932 /*.nextInChain=*/NULL _wgpu_COMMA \
1933 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1934 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1935 /*.size=*/0 _wgpu_COMMA \
1936 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1937})
1938
1946typedef struct WGPUColor {
1950 double r;
1954 double g;
1958 double b;
1962 double a;
1963} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1964
1968#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1969 /*.r=*/0. _wgpu_COMMA \
1970 /*.g=*/0. _wgpu_COMMA \
1971 /*.b=*/0. _wgpu_COMMA \
1972 /*.a=*/0. _wgpu_COMMA \
1973})
1974
1987
1991#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1992 /*.nextInChain=*/NULL _wgpu_COMMA \
1993 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1994})
1995
2008
2012#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2013 /*.nextInChain=*/NULL _wgpu_COMMA \
2014 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2015})
2016
2064
2068#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2069 /*.nextInChain=*/NULL _wgpu_COMMA \
2070 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2071 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2072 /*.lineNum=*/0 _wgpu_COMMA \
2073 /*.linePos=*/0 _wgpu_COMMA \
2074 /*.offset=*/0 _wgpu_COMMA \
2075 /*.length=*/0 _wgpu_COMMA \
2076})
2077
2098
2102#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2103 /*.nextInChain=*/NULL _wgpu_COMMA \
2104 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2105 /*.value=*/0. _wgpu_COMMA \
2106})
2107
2111typedef struct WGPUExtent3D {
2115 uint32_t width;
2119 uint32_t height;
2124} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2125
2129#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2130 /*.width=*/0 _wgpu_COMMA \
2131 /*.height=*/1 _wgpu_COMMA \
2132 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2133})
2134
2147
2151#define WGPU_EXTERNAL_TEXTURE_BINDING_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingEntry, { \
2152 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2153 /*.next=*/NULL _wgpu_COMMA \
2154 /*.sType=*/WGPUSType_ExternalTextureBindingEntry _wgpu_COMMA \
2155 }) _wgpu_COMMA \
2156 /*.externalTexture=*/NULL _wgpu_COMMA \
2157})
2158
2167
2171#define WGPU_EXTERNAL_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingLayout, { \
2172 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2173 /*.next=*/NULL _wgpu_COMMA \
2174 /*.sType=*/WGPUSType_ExternalTextureBindingLayout _wgpu_COMMA \
2175 }) _wgpu_COMMA \
2176})
2177
2183typedef struct WGPUFuture {
2189 uint64_t id;
2190} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2191
2195#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2196 /*.id=*/0 _wgpu_COMMA \
2197})
2198
2211
2215#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2216 /*.nextInChain=*/NULL _wgpu_COMMA \
2217 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2218})
2219
2354
2358#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2359 /*.nextInChain=*/NULL _wgpu_COMMA \
2360 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2361 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2362 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2363 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2364 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2365 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2366 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2367 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2368 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2369 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2370 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2371 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2372 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2373 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2374 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2375 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2376 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2377 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2378 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2379 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2380 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2381 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2382 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2383 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2384 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2385 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2386 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2387 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2388 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2389 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2390 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2391 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2392})
2393
2412
2416#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2417 /*.nextInChain=*/NULL _wgpu_COMMA \
2418 /*.count=*/1 _wgpu_COMMA \
2419 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2420 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2421})
2422
2426typedef struct WGPUOrigin3D {
2430 uint32_t x;
2434 uint32_t y;
2438 uint32_t z;
2439} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2440
2444#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2445 /*.x=*/0 _wgpu_COMMA \
2446 /*.y=*/0 _wgpu_COMMA \
2447 /*.z=*/0 _wgpu_COMMA \
2448})
2449
2470
2474#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2475 /*.nextInChain=*/NULL _wgpu_COMMA \
2476 /*.querySet=*/NULL _wgpu_COMMA \
2477 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2478 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2479})
2480
2505
2509#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2510 /*.nextInChain=*/NULL _wgpu_COMMA \
2511 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2512 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2513 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2514 /*.immediateSize=*/0 _wgpu_COMMA \
2515})
2516
2552
2556#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2557 /*.nextInChain=*/NULL _wgpu_COMMA \
2558 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2559 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2560 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2561 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2562 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2563})
2564
2585
2589#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2590 /*.nextInChain=*/NULL _wgpu_COMMA \
2591 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2592 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2593 /*.count=*/0 _wgpu_COMMA \
2594})
2595
2608
2612#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2613 /*.nextInChain=*/NULL _wgpu_COMMA \
2614 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2615})
2616
2629
2633#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2634 /*.nextInChain=*/NULL _wgpu_COMMA \
2635 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2636})
2637
2674
2678#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2679 /*.nextInChain=*/NULL _wgpu_COMMA \
2680 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2681 /*.colorFormatCount=*/0 _wgpu_COMMA \
2682 /*.colorFormats=*/NULL _wgpu_COMMA \
2683 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2684 /*.sampleCount=*/1 _wgpu_COMMA \
2685 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2686 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2687})
2688
2738
2742#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2743 /*.nextInChain=*/NULL _wgpu_COMMA \
2744 /*.view=*/NULL _wgpu_COMMA \
2745 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2746 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2747 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2748 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2749 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2750 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2751 /*.stencilClearValue=*/0 _wgpu_COMMA \
2752 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2753})
2754
2765
2769#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2770 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2771 /*.next=*/NULL _wgpu_COMMA \
2772 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2773 }) _wgpu_COMMA \
2774 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2775})
2776
2791
2795#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2796 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2797 /*.next=*/NULL _wgpu_COMMA \
2798 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2799 }) _wgpu_COMMA \
2800 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2801})
2802
2816
2820#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2821 /*.nextInChain=*/NULL _wgpu_COMMA \
2822 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2823})
2824
2903
2907#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2908 /*.nextInChain=*/NULL _wgpu_COMMA \
2909 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2910 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2911 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2912 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2913 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2914 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2915 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2916 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2917 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2918 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2919 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2920})
2921
2930 uint32_t codeSize;
2934 uint32_t const * code;
2935} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2936
2940#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2941 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2942 /*.next=*/NULL _wgpu_COMMA \
2943 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2944 }) _wgpu_COMMA \
2945 /*.codeSize=*/0 _wgpu_COMMA \
2946 /*.code=*/NULL _wgpu_COMMA \
2947})
2948
2961
2965#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2966 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2967 /*.next=*/NULL _wgpu_COMMA \
2968 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2969 }) _wgpu_COMMA \
2970 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2971})
2972
3006
3010#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
3011 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3012 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3013 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3014 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3015})
3016
3041
3045#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3046 /*.nextInChain=*/NULL _wgpu_COMMA \
3047 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3048 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3049 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3050})
3051
3064} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3065
3069#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3070 /*.featureCount=*/0 _wgpu_COMMA \
3071 /*.features=*/NULL _wgpu_COMMA \
3072})
3073
3087
3091#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
3092 /*.featureCount=*/0 _wgpu_COMMA \
3093 /*.features=*/NULL _wgpu_COMMA \
3094})
3095
3109
3113#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3114 /*.featureCount=*/0 _wgpu_COMMA \
3115 /*.features=*/NULL _wgpu_COMMA \
3116})
3117
3165
3169#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3170 /*.nextInChain=*/NULL _wgpu_COMMA \
3171 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3172 /*.formatCount=*/0 _wgpu_COMMA \
3173 /*.formats=*/NULL _wgpu_COMMA \
3174 /*.presentModeCount=*/0 _wgpu_COMMA \
3175 /*.presentModes=*/NULL _wgpu_COMMA \
3176 /*.alphaModeCount=*/0 _wgpu_COMMA \
3177 /*.alphaModes=*/NULL _wgpu_COMMA \
3178})
3179
3196
3200#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3201 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3202 /*.next=*/NULL _wgpu_COMMA \
3203 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3204 }) _wgpu_COMMA \
3205 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3206 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3207})
3208
3277
3281#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3282 /*.nextInChain=*/NULL _wgpu_COMMA \
3283 /*.device=*/NULL _wgpu_COMMA \
3284 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3285 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3286 /*.width=*/0 _wgpu_COMMA \
3287 /*.height=*/0 _wgpu_COMMA \
3288 /*.viewFormatCount=*/0 _wgpu_COMMA \
3289 /*.viewFormats=*/NULL _wgpu_COMMA \
3290 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3291 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3292})
3293
3308
3312#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3313 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3314 /*.next=*/NULL _wgpu_COMMA \
3315 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3316 }) _wgpu_COMMA \
3317 /*.window=*/NULL _wgpu_COMMA \
3318})
3319
3334
3338#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3339 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3340 /*.next=*/NULL _wgpu_COMMA \
3341 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3342 }) _wgpu_COMMA \
3343 /*.layer=*/NULL _wgpu_COMMA \
3344})
3345
3366
3370#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3371 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3372 /*.next=*/NULL _wgpu_COMMA \
3373 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3374 }) _wgpu_COMMA \
3375 /*.display=*/NULL _wgpu_COMMA \
3376 /*.surface=*/NULL _wgpu_COMMA \
3377})
3378
3400
3404#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3405 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3406 /*.next=*/NULL _wgpu_COMMA \
3407 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3408 }) _wgpu_COMMA \
3409 /*.hinstance=*/NULL _wgpu_COMMA \
3410 /*.hwnd=*/NULL _wgpu_COMMA \
3411})
3412
3433
3437#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3438 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3439 /*.next=*/NULL _wgpu_COMMA \
3440 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3441 }) _wgpu_COMMA \
3442 /*.connection=*/NULL _wgpu_COMMA \
3443 /*.window=*/0 _wgpu_COMMA \
3444})
3445
3466
3470#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3471 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3472 /*.next=*/NULL _wgpu_COMMA \
3473 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3474 }) _wgpu_COMMA \
3475 /*.display=*/NULL _wgpu_COMMA \
3476 /*.window=*/0 _wgpu_COMMA \
3477})
3478
3501
3505#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3506 /*.nextInChain=*/NULL _wgpu_COMMA \
3507 /*.texture=*/NULL _wgpu_COMMA \
3508 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3509})
3510
3518 uint64_t offset;
3522 uint32_t bytesPerRow;
3527} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3528
3532#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3533 /*.offset=*/0 _wgpu_COMMA \
3534 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3535 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3536})
3537
3562
3566#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3567 /*.nextInChain=*/NULL _wgpu_COMMA \
3568 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3569 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3570 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3571})
3572
3619
3623#define WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzle, { \
3624 /*.r=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3625 /*.g=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3626 /*.b=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3627 /*.a=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3628})
3629
3677
3681#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3682 /*.nextInChain=*/NULL _wgpu_COMMA \
3683 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3684 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3685 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3686 /*.baseMipLevel=*/0 _wgpu_COMMA \
3687 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3688 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3689 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3690 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3691 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3692})
3693
3712
3716#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3717 /*.nextInChain=*/NULL _wgpu_COMMA \
3718 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3719 /*.offset=*/0 _wgpu_COMMA \
3720 /*.shaderLocation=*/0 _wgpu_COMMA \
3721})
3722
3726typedef struct WGPUBindGroupEntry {
3733 uint32_t binding;
3740 WGPU_NULLABLE WGPUBuffer buffer;
3747 uint64_t offset;
3755 uint64_t size;
3762 WGPU_NULLABLE WGPUSampler sampler;
3770} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
3771
3775#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
3776 /*.nextInChain=*/NULL _wgpu_COMMA \
3777 /*.binding=*/0 _wgpu_COMMA \
3778 /*.buffer=*/NULL _wgpu_COMMA \
3779 /*.offset=*/0 _wgpu_COMMA \
3780 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
3781 /*.sampler=*/NULL _wgpu_COMMA \
3782 /*.textureView=*/NULL _wgpu_COMMA \
3783})
3784
3821
3825#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3826 /*.nextInChain=*/NULL _wgpu_COMMA \
3827 /*.binding=*/0 _wgpu_COMMA \
3828 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3829 /*.bindingArraySize=*/0 _wgpu_COMMA \
3830 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3831 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3832 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3833 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3834})
3835
3849
3853#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3854 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3855 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3856})
3857
3875
3879#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3880 /*.nextInChain=*/NULL _wgpu_COMMA \
3881 /*.messageCount=*/0 _wgpu_COMMA \
3882 /*.messages=*/NULL _wgpu_COMMA \
3883})
3884
3901
3905#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3906 /*.nextInChain=*/NULL _wgpu_COMMA \
3907 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3908 /*.timestampWrites=*/NULL _wgpu_COMMA \
3909})
3910
3935
3939#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3940 /*.nextInChain=*/NULL _wgpu_COMMA \
3941 /*.module=*/NULL _wgpu_COMMA \
3942 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3943 /*.constantCount=*/0 _wgpu_COMMA \
3944 /*.constants=*/NULL _wgpu_COMMA \
3945})
3946
4001
4005#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
4006 /*.nextInChain=*/NULL _wgpu_COMMA \
4007 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4008 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
4009 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
4010 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
4011 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
4012 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
4013 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
4014 /*.depthBias=*/0 _wgpu_COMMA \
4015 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
4016 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
4017})
4018
4060
4064#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4065 /*.nextInChain=*/NULL _wgpu_COMMA \
4066 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4067 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4068 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4069 /*.requiredLimits=*/NULL _wgpu_COMMA \
4070 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4071 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4072 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4073})
4074
4094
4098#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
4099 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
4100 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
4101})
4102
4121
4125#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4126 /*.nextInChain=*/NULL _wgpu_COMMA \
4127 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4128 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4129 /*.requiredLimits=*/NULL _wgpu_COMMA \
4130})
4131
4165
4169#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4170 /*.nextInChain=*/NULL _wgpu_COMMA \
4171 /*.view=*/NULL _wgpu_COMMA \
4172 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4173 /*.resolveTarget=*/NULL _wgpu_COMMA \
4174 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4175 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4176 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4177})
4178
4221
4225#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4226 /*.nextInChain=*/NULL _wgpu_COMMA \
4227 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4228 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4229 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4230 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4231 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4232})
4233
4246
4250#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4251 /*.nextInChain=*/NULL _wgpu_COMMA \
4252 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4253})
4254
4273
4277#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4278 /*.nextInChain=*/NULL _wgpu_COMMA \
4279 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4280})
4281
4295
4299#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4300 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4301 /*.buffer=*/NULL _wgpu_COMMA \
4302})
4303
4328
4332#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4333 /*.texture=*/NULL _wgpu_COMMA \
4334 /*.mipLevel=*/0 _wgpu_COMMA \
4335 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4336 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4337})
4338
4349
4353#define WGPU_TEXTURE_COMPONENT_SWIZZLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzleDescriptor, { \
4354 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
4355 /*.next=*/NULL _wgpu_COMMA \
4356 /*.sType=*/WGPUSType_TextureComponentSwizzleDescriptor _wgpu_COMMA \
4357 }) _wgpu_COMMA \
4358 /*.swizzle=*/WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_COMMA \
4359})
4360
4408
4412#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4413 /*.nextInChain=*/NULL _wgpu_COMMA \
4414 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4415 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4416 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4417 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4418 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4419 /*.mipLevelCount=*/1 _wgpu_COMMA \
4420 /*.sampleCount=*/1 _wgpu_COMMA \
4421 /*.viewFormatCount=*/0 _wgpu_COMMA \
4422 /*.viewFormats=*/NULL _wgpu_COMMA \
4423})
4424
4460
4464#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4465 /*.nextInChain=*/NULL _wgpu_COMMA \
4466 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4467 /*.arrayStride=*/0 _wgpu_COMMA \
4468 /*.attributeCount=*/0 _wgpu_COMMA \
4469 /*.attributes=*/NULL _wgpu_COMMA \
4470})
4471
4496
4500#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
4501 /*.nextInChain=*/NULL _wgpu_COMMA \
4502 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4503 /*.layout=*/NULL _wgpu_COMMA \
4504 /*.entryCount=*/0 _wgpu_COMMA \
4505 /*.entries=*/NULL _wgpu_COMMA \
4506})
4507
4528
4532#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4533 /*.nextInChain=*/NULL _wgpu_COMMA \
4534 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4535 /*.entryCount=*/0 _wgpu_COMMA \
4536 /*.entries=*/NULL _wgpu_COMMA \
4537})
4538
4561
4565#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4566 /*.nextInChain=*/NULL _wgpu_COMMA \
4567 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4568 /*.blend=*/NULL _wgpu_COMMA \
4569 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4570})
4571
4592
4596#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4597 /*.nextInChain=*/NULL _wgpu_COMMA \
4598 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4599 /*.layout=*/NULL _wgpu_COMMA \
4600 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4601})
4602
4635
4639#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4640 /*.nextInChain=*/NULL _wgpu_COMMA \
4641 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4642 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4643 /*.colorAttachments=*/NULL _wgpu_COMMA \
4644 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4645 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4646 /*.timestampWrites=*/NULL _wgpu_COMMA \
4647})
4648
4681
4685#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4686 /*.nextInChain=*/NULL _wgpu_COMMA \
4687 /*.module=*/NULL _wgpu_COMMA \
4688 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4689 /*.constantCount=*/0 _wgpu_COMMA \
4690 /*.constants=*/NULL _wgpu_COMMA \
4691 /*.bufferCount=*/0 _wgpu_COMMA \
4692 /*.buffers=*/NULL _wgpu_COMMA \
4693})
4694
4727
4731#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4732 /*.nextInChain=*/NULL _wgpu_COMMA \
4733 /*.module=*/NULL _wgpu_COMMA \
4734 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4735 /*.constantCount=*/0 _wgpu_COMMA \
4736 /*.constants=*/NULL _wgpu_COMMA \
4737 /*.targetCount=*/0 _wgpu_COMMA \
4738 /*.targets=*/NULL _wgpu_COMMA \
4739})
4740
4777
4781#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4782 /*.nextInChain=*/NULL _wgpu_COMMA \
4783 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4784 /*.layout=*/NULL _wgpu_COMMA \
4785 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4786 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4787 /*.depthStencil=*/NULL _wgpu_COMMA \
4788 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4789 /*.fragment=*/NULL _wgpu_COMMA \
4790})
4791
4794#ifdef __cplusplus
4795extern "C" {
4796#endif
4797
4798#if !defined(WGPU_SKIP_PROCS)
4799// Global procs
4804typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4809typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4814typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4819typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4824typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4825
4826
4827// Procs of Adapter
4832typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4837typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4842typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4847typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4852typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4857typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4862typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4863
4864// Procs of AdapterInfo
4869typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4870
4871// Procs of BindGroup
4876typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4881typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4886typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4887
4888// Procs of BindGroupLayout
4893typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4898typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4903typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4904
4905// Procs of Buffer
4910typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4915typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4920typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4925typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4930typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4935typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4940typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4945typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4950typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4955typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4960typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4965typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4970typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4971
4972// Procs of CommandBuffer
4977typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4982typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4987typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4988
4989// Procs of CommandEncoder
4994typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4999typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5004typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5009typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5014typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5019typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5024typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5029typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5034typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5039typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5044typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5049typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5054typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5059typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5064typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5069typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5070
5071// Procs of ComputePassEncoder
5076typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5081typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5086typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5091typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5096typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5101typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5106typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5111typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5116typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5121typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5126typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5127
5128// Procs of ComputePipeline
5133typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5138typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5143typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5148typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5149
5150// Procs of Device
5155typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5160typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5165typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5170typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5175typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5180typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5185typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5190typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5195typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5200typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5205typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5210typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5215typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5220typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5225typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5230typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5235typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5240typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5245typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5250typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5255typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5260typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5265typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5270typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5275typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5280typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5281
5282// Procs of ExternalTexture
5287typedef void (*WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5292typedef void (*WGPUProcExternalTextureAddRef)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5297typedef void (*WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5298
5299// Procs of Instance
5304typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5309typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5314typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5319typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5324typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5329typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5334typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5339typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5340
5341// Procs of PipelineLayout
5346typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5351typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5356typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5357
5358// Procs of QuerySet
5363typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5368typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5373typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5378typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5383typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5388typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5389
5390// Procs of Queue
5395typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5400typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5405typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5410typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5415typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5420typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5425typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5426
5427// Procs of RenderBundle
5432typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5437typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5442typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5443
5444// Procs of RenderBundleEncoder
5449typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5454typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5459typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5464typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5469typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5474typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5479typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5484typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5489typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5494typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5499typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5504typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5509typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5514typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5519typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5520
5521// Procs of RenderPassEncoder
5526typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5531typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5536typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5541typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5546typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5551typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5556typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5561typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5566typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5571typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5576typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5581typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5586typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5591typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5596typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5601typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5606typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5611typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5616typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5621typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5626typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5631typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5632
5633// Procs of RenderPipeline
5638typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5643typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5648typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5653typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5654
5655// Procs of Sampler
5660typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5665typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5670typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5671
5672// Procs of ShaderModule
5677typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5682typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5687typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5692typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5693
5694// Procs of SupportedFeatures
5699typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5700
5701// Procs of SupportedInstanceFeatures
5706typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5707
5708// Procs of SupportedWGSLLanguageFeatures
5713typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5714
5715// Procs of Surface
5720typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5725typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5730typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5735typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5740typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5745typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5750typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5755typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5756
5757// Procs of SurfaceCapabilities
5762typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5763
5764// Procs of Texture
5769typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5774typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5779typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5784typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5789typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5794typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5799typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5804typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5809typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5814typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5819typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5824typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5829typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5830
5831// Procs of TextureView
5836typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5841typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5846typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5847
5848#endif // !defined(WGPU_SKIP_PROCS)
5849
5850#if !defined(WGPU_SKIP_DECLARATIONS)
5863WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5870WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5877WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5881WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5886WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5887
5909WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5917WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5922WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5923WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5924WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5925WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5926WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5927
5939WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5940
5949WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5950WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5951WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5952
5961WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5962WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5963WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5964
5973WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5991WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6008WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6009WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6010WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6011WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6023WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6044WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6045WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6046WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6067WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6068WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6069WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6070
6079WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6080WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6081WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6082
6095WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6100WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6101WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6102WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6103WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6104WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6105WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6110WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6111WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6112WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6113WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6114WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
6115WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6116WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6117WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6118WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6119
6128WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
6129WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6130WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6131WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6132WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6133WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6134WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6135WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6136WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6137WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6138WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6139
6152WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6153WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6154WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6155WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6156
6169WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6174WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6184WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6189WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6194WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6200WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6205WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6215WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6221WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6226WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6231WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6232WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6247WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6252WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6257WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6262WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6263WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6268WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6273WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6274WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6275WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6276WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6277
6286WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6287WGPU_EXPORT void wgpuExternalTextureAddRef(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6288WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6289
6308WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6312WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6313WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6319WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6320WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6326WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6327WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6328WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6329
6338WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6339WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6340WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6341
6350WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6351WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6352WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6353WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6354WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6355WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6356
6365WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6366WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6367WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6372WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6373WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6374WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6375WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6376
6385WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6386WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6387WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6388
6397WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6398WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6399WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6400WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6405WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6406WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6407WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6408WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6409WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6410WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6411WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6412WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6413WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6414WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6415WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6416
6425WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6426WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6427WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6428WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6429WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6430WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6431WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6432WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6433WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6434WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6435WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6436WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6441WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6442WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6443WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6444WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6445WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6446WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6447WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6453WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6454WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6455WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6456
6469WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6470WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6471WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6472WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6473
6482WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6483WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6484WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6485
6494WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6495WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6496WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6497WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6498
6510WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6511
6523WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6524
6536WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6537
6555WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6571WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6581WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6589WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6596WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6601WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6602WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6603WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6604
6616WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6617
6630WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6631WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6632WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6633WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6634WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6635WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6636WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6637WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6638WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6639WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6640WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6641WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6642WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6643
6652WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6653WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6654WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6655
6660#endif // !defined(WGPU_SKIP_DECLARATIONS)
6661
6662#ifdef __cplusplus
6663} // extern "C"
6664#endif
6665
6666#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1320
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1304
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1313
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1300
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1321
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1270
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1288
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1266
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1334
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1357
WGPUFlags WGPUMapMode
Definition webgpu.h:1330
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1360
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1325
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1358
WGPUFlags WGPUShaderStage
Definition webgpu.h:1341
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1308
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1347
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1348
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1336
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1345
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1362
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1276
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1359
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1280
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1361
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1353
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1296
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1335
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1319
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1292
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1346
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1317
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1318
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1262
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1284
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1492
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1481
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1399
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1426
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1407
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1391
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1470
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1381
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1459
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1445
WGPUIndexFormat
Definition webgpu.h:685
WGPURequestAdapterStatus
Definition webgpu.h:854
WGPUFeatureName
Definition webgpu.h:639
WGPUVertexFormat
Definition webgpu.h:1165
WGPUSType
Definition webgpu.h:946
WGPUBufferBindingType
Definition webgpu.h:427
WGPUDeviceLostReason
Definition webgpu.h:593
WGPUCompareFunction
Definition webgpu.h:480
WGPUCullMode
Definition webgpu.h:582
WGPUTextureDimension
Definition webgpu.h:1006
WGPURequestDeviceStatus
Definition webgpu.h:865
WGPUCompilationMessageType
Definition webgpu.h:505
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:571
WGPUTextureViewDimension
Definition webgpu.h:1145
WGPUPrimitiveTopology
Definition webgpu.h:821
WGPUTextureFormat
Definition webgpu.h:1017
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1240
WGPUStencilOperation
Definition webgpu.h:903
WGPUAddressMode
Definition webgpu.h:362
WGPUToneMappingMode
Definition webgpu.h:1159
WGPUTextureAspect
Definition webgpu.h:995
WGPUBufferMapState
Definition webgpu.h:444
WGPUFilterMode
Definition webgpu.h:665
WGPUBackendType
Definition webgpu.h:373
WGPUBlendFactor
Definition webgpu.h:389
WGPUSamplerBindingType
Definition webgpu.h:875
WGPULoadOp
Definition webgpu.h:715
WGPUPopErrorScopeStatus
Definition webgpu.h:756
WGPUWaitStatus
Definition webgpu.h:1223
WGPUStorageTextureAccess
Definition webgpu.h:919
WGPUPowerPreference
Definition webgpu.h:772
WGPUPresentMode
Definition webgpu.h:791
WGPUMapAsyncStatus
Definition webgpu.h:725
WGPUBlendOperation
Definition webgpu.h:414
WGPUCompositeAlphaMode
Definition webgpu.h:547
WGPUPredefinedColorSpace
Definition webgpu.h:782
WGPUQueueWorkDoneStatus
Definition webgpu.h:840
WGPUComponentSwizzle
Definition webgpu.h:512
WGPUVertexStepMode
Definition webgpu.h:1210
WGPUQueryType
Definition webgpu.h:834
WGPUFeatureLevel
Definition webgpu.h:623
WGPUAdapterType
Definition webgpu.h:354
WGPUInstanceFeatureName
Definition webgpu.h:695
WGPUStatus
Definition webgpu.h:897
WGPUCompilationInfoRequestStatus
Definition webgpu.h:496
WGPUMipmapFilterMode
Definition webgpu.h:736
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:967
WGPUFrontFace
Definition webgpu.h:675
WGPUStoreOp
Definition webgpu.h:936
WGPUErrorFilter
Definition webgpu.h:604
WGPUOptionalBool
Definition webgpu.h:746
WGPUCallbackMode
Definition webgpu.h:454
WGPUTextureSampleType
Definition webgpu.h:1126
WGPUErrorType
Definition webgpu.h:611
@ WGPUIndexFormat_Force32
Definition webgpu.h:692
@ WGPUIndexFormat_Uint16
Definition webgpu.h:690
@ WGPUIndexFormat_Undefined
Definition webgpu.h:689
@ WGPUIndexFormat_Uint32
Definition webgpu.h:691
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:860
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:855
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:861
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:859
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:862
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:646
@ WGPUFeatureName_Subgroups
Definition webgpu.h:657
@ WGPUFeatureName_Force32
Definition webgpu.h:662
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:655
@ WGPUFeatureName_PrimitiveIndex
Definition webgpu.h:660
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:642
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:651
@ WGPUFeatureName_TextureFormatsTier1
Definition webgpu.h:658
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:652
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:654
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:656
@ WGPUFeatureName_TextureComponentSwizzle
Definition webgpu.h:661
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:647
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:644
@ WGPUFeatureName_CoreFeaturesAndLimits
Definition webgpu.h:640
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:650
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:653
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:648
@ WGPUFeatureName_TextureFormatsTier2
Definition webgpu.h:659
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:643
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:645
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:649
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:641
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1204
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1194
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1202
@ WGPUVertexFormat_Float32
Definition webgpu.h:1193
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1192
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1180
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1176
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1168
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1170
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1172
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1174
@ WGPUVertexFormat_Force32
Definition webgpu.h:1207
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1167
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1196
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1191
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1197
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1175
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1169
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1200
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1206
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1201
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1178
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1198
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1199
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1187
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1183
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1205
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1185
@ WGPUVertexFormat_Float16
Definition webgpu.h:1190
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1173
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1203
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1182
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1177
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1166
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1171
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1184
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1181
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1179
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1188
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1186
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1195
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1189
@ WGPUSType_Force32
Definition webgpu.h:961
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:953
@ WGPUSType_TextureComponentSwizzleDescriptor
Definition webgpu.h:958
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:947
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:956
@ WGPUSType_ExternalTextureBindingEntry
Definition webgpu.h:960
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:954
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:955
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:951
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:949
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:950
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:957
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:948
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:952
@ WGPUSType_ExternalTextureBindingLayout
Definition webgpu.h:959
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:433
@ WGPUBufferBindingType_Storage
Definition webgpu.h:439
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:437
@ WGPUBufferBindingType_Force32
Definition webgpu.h:441
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:440
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:438
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:600
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:595
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:599
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:601
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:594
@ WGPUCompareFunction_Force32
Definition webgpu.h:493
@ WGPUCompareFunction_Always
Definition webgpu.h:492
@ WGPUCompareFunction_Never
Definition webgpu.h:485
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:490
@ WGPUCompareFunction_Less
Definition webgpu.h:486
@ WGPUCompareFunction_Undefined
Definition webgpu.h:484
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:491
@ WGPUCompareFunction_Equal
Definition webgpu.h:487
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:488
@ WGPUCompareFunction_Greater
Definition webgpu.h:489
@ WGPUCullMode_Force32
Definition webgpu.h:590
@ WGPUCullMode_Undefined
Definition webgpu.h:586
@ WGPUCullMode_Back
Definition webgpu.h:589
@ WGPUCullMode_Front
Definition webgpu.h:588
@ WGPUCullMode_None
Definition webgpu.h:587
@ WGPUTextureDimension_Undefined
Definition webgpu.h:1010
@ WGPUTextureDimension_2D
Definition webgpu.h:1012
@ WGPUTextureDimension_Force32
Definition webgpu.h:1014
@ WGPUTextureDimension_3D
Definition webgpu.h:1013
@ WGPUTextureDimension_1D
Definition webgpu.h:1011
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:870
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:866
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:871
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:872
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:509
@ WGPUCompilationMessageType_Info
Definition webgpu.h:508
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:507
@ WGPUCompilationMessageType_Error
Definition webgpu.h:506
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:579
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:577
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:576
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:572
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:578
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1153
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1152
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1151
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1155
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1150
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1154
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1149
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1156
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:827
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:828
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:825
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:829
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:826
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:830
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:831
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1119
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1080
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1083
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:1043
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:1031
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1085
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1095
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1088
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1092
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1078
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:1045
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1113
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:1049
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1103
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1087
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1115
@ WGPUTextureFormat_RG16Unorm
Definition webgpu.h:1038
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1109
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1062
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1081
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1056
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1061
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1117
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1070
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:1032
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1120
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1067
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:1041
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1093
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1086
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1082
@ WGPUTextureFormat_R32Float
Definition webgpu.h:1035
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1084
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:1029
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:1025
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:1044
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1076
@ WGPUTextureFormat_RGBA16Unorm
Definition webgpu.h:1057
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:1046
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1094
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1059
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1118
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:1051
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1112
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1099
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:1036
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1090
@ WGPUTextureFormat_RG16Snorm
Definition webgpu.h:1039
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1097
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1075
@ WGPUTextureFormat_R16Unorm
Definition webgpu.h:1026
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:1048
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1077
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1079
@ WGPUTextureFormat_Force32
Definition webgpu.h:1123
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1071
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1100
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1108
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:1037
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1074
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1063
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1065
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1091
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1104
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:1040
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1116
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1053
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1066
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:1034
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1110
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:1028
@ WGPUTextureFormat_Undefined
Definition webgpu.h:1021
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1114
@ WGPUTextureFormat_R16Float
Definition webgpu.h:1030
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1098
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1054
@ WGPUTextureFormat_RGBA16Snorm
Definition webgpu.h:1058
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1052
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1122
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1064
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1072
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:1042
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1101
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1068
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1111
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1060
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:1022
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1069
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1073
@ WGPUTextureFormat_R16Snorm
Definition webgpu.h:1027
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1107
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:1033
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:1024
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1105
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1121
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:1050
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1096
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1089
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1055
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1106
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:1047
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:1023
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1102
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1241
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1243
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1244
@ WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout
Definition webgpu.h:1245
@ WGPUWGSLLanguageFeatureName_SubgroupId
Definition webgpu.h:1246
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1247
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1242
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:913
@ WGPUStencilOperation_Undefined
Definition webgpu.h:907
@ WGPUStencilOperation_Replace
Definition webgpu.h:910
@ WGPUStencilOperation_Keep
Definition webgpu.h:908
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:915
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:914
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:912
@ WGPUStencilOperation_Invert
Definition webgpu.h:911
@ WGPUStencilOperation_Force32
Definition webgpu.h:916
@ WGPUStencilOperation_Zero
Definition webgpu.h:909
@ WGPUAddressMode_Repeat
Definition webgpu.h:368
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:369
@ WGPUAddressMode_Undefined
Definition webgpu.h:366
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:367
@ WGPUAddressMode_Force32
Definition webgpu.h:370
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1162
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1160
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1161
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:1002
@ WGPUTextureAspect_Force32
Definition webgpu.h:1003
@ WGPUTextureAspect_Undefined
Definition webgpu.h:999
@ WGPUTextureAspect_All
Definition webgpu.h:1000
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:1001
@ WGPUBufferMapState_Pending
Definition webgpu.h:446
@ WGPUBufferMapState_Mapped
Definition webgpu.h:447
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:445
@ WGPUBufferMapState_Force32
Definition webgpu.h:448
@ WGPUFilterMode_Undefined
Definition webgpu.h:669
@ WGPUFilterMode_Force32
Definition webgpu.h:672
@ WGPUFilterMode_Nearest
Definition webgpu.h:670
@ WGPUFilterMode_Linear
Definition webgpu.h:671
@ WGPUBackendType_Vulkan
Definition webgpu.h:383
@ WGPUBackendType_OpenGL
Definition webgpu.h:384
@ WGPUBackendType_Force32
Definition webgpu.h:386
@ WGPUBackendType_OpenGLES
Definition webgpu.h:385
@ WGPUBackendType_WebGPU
Definition webgpu.h:379
@ WGPUBackendType_D3D11
Definition webgpu.h:380
@ WGPUBackendType_D3D12
Definition webgpu.h:381
@ WGPUBackendType_Undefined
Definition webgpu.h:377
@ WGPUBackendType_Null
Definition webgpu.h:378
@ WGPUBackendType_Metal
Definition webgpu.h:382
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:402
@ WGPUBlendFactor_One
Definition webgpu.h:395
@ WGPUBlendFactor_Zero
Definition webgpu.h:394
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:409
@ WGPUBlendFactor_Undefined
Definition webgpu.h:393
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:401
@ WGPUBlendFactor_Force32
Definition webgpu.h:411
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:408
@ WGPUBlendFactor_Constant
Definition webgpu.h:405
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:397
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:404
@ WGPUBlendFactor_Src
Definition webgpu.h:396
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:399
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:398
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:406
@ WGPUBlendFactor_Src1
Definition webgpu.h:407
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:403
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:410
@ WGPUBlendFactor_Dst
Definition webgpu.h:400
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:881
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:887
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:889
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:886
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:885
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:888
@ WGPULoadOp_Load
Definition webgpu.h:720
@ WGPULoadOp_Force32
Definition webgpu.h:722
@ WGPULoadOp_Undefined
Definition webgpu.h:719
@ WGPULoadOp_Clear
Definition webgpu.h:721
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:769
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:760
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:764
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:768
@ WGPUWaitStatus_Error
Definition webgpu.h:1236
@ WGPUWaitStatus_Force32
Definition webgpu.h:1237
@ WGPUWaitStatus_Success
Definition webgpu.h:1227
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1231
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:929
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:925
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:931
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:930
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:933
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:932
@ WGPUPowerPreference_Force32
Definition webgpu.h:779
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:778
@ WGPUPowerPreference_LowPower
Definition webgpu.h:777
@ WGPUPowerPreference_Undefined
Definition webgpu.h:776
@ WGPUPresentMode_Fifo
Definition webgpu.h:801
@ WGPUPresentMode_Force32
Definition webgpu.h:818
@ WGPUPresentMode_Immediate
Definition webgpu.h:812
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:807
@ WGPUPresentMode_Mailbox
Definition webgpu.h:817
@ WGPUPresentMode_Undefined
Definition webgpu.h:795
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:732
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:730
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:731
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:733
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:726
@ WGPUBlendOperation_Undefined
Definition webgpu.h:418
@ WGPUBlendOperation_Max
Definition webgpu.h:423
@ WGPUBlendOperation_Subtract
Definition webgpu.h:420
@ WGPUBlendOperation_Min
Definition webgpu.h:422
@ WGPUBlendOperation_Add
Definition webgpu.h:419
@ WGPUBlendOperation_Force32
Definition webgpu.h:424
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:421
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:551
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:568
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:555
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:563
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:567
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:559
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:784
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:783
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:785
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:850
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:845
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:841
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:851
@ WGPUComponentSwizzle_A
Definition webgpu.h:540
@ WGPUComponentSwizzle_Force32
Definition webgpu.h:541
@ WGPUComponentSwizzle_G
Definition webgpu.h:532
@ WGPUComponentSwizzle_R
Definition webgpu.h:528
@ WGPUComponentSwizzle_B
Definition webgpu.h:536
@ WGPUComponentSwizzle_Zero
Definition webgpu.h:520
@ WGPUComponentSwizzle_One
Definition webgpu.h:524
@ WGPUComponentSwizzle_Undefined
Definition webgpu.h:516
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1214
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1216
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1215
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1217
@ WGPUQueryType_Occlusion
Definition webgpu.h:835
@ WGPUQueryType_Timestamp
Definition webgpu.h:836
@ WGPUQueryType_Force32
Definition webgpu.h:837
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:627
@ WGPUFeatureLevel_Core
Definition webgpu.h:635
@ WGPUFeatureLevel_Force32
Definition webgpu.h:636
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:631
@ WGPUAdapterType_CPU
Definition webgpu.h:357
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:355
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:356
@ WGPUAdapterType_Unknown
Definition webgpu.h:358
@ WGPUAdapterType_Force32
Definition webgpu.h:359
@ WGPUInstanceFeatureName_ShaderSourceSPIRV
Definition webgpu.h:704
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:712
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
Definition webgpu.h:711
@ WGPUInstanceFeatureName_TimedWaitAny
Definition webgpu.h:699
@ WGPUStatus_Force32
Definition webgpu.h:900
@ WGPUStatus_Success
Definition webgpu.h:898
@ WGPUStatus_Error
Definition webgpu.h:899
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:502
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:497
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:501
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:740
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:742
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:743
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:741
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:987
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:991
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:983
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:979
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:971
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:992
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:975
@ WGPUFrontFace_CW
Definition webgpu.h:681
@ WGPUFrontFace_Undefined
Definition webgpu.h:679
@ WGPUFrontFace_CCW
Definition webgpu.h:680
@ WGPUFrontFace_Force32
Definition webgpu.h:682
@ WGPUStoreOp_Discard
Definition webgpu.h:942
@ WGPUStoreOp_Force32
Definition webgpu.h:943
@ WGPUStoreOp_Store
Definition webgpu.h:941
@ WGPUStoreOp_Undefined
Definition webgpu.h:940
@ WGPUErrorFilter_Internal
Definition webgpu.h:607
@ WGPUErrorFilter_Force32
Definition webgpu.h:608
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:606
@ WGPUErrorFilter_Validation
Definition webgpu.h:605
@ WGPUOptionalBool_True
Definition webgpu.h:751
@ WGPUOptionalBool_Force32
Definition webgpu.h:753
@ WGPUOptionalBool_Undefined
Definition webgpu.h:752
@ WGPUOptionalBool_False
Definition webgpu.h:750
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:466
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:476
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:460
@ WGPUCallbackMode_Force32
Definition webgpu.h:477
@ WGPUTextureSampleType_Float
Definition webgpu.h:1137
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1140
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1132
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1136
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1142
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1141
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1139
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1138
@ WGPUErrorType_NoError
Definition webgpu.h:612
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:614
@ WGPUErrorType_Unknown
Definition webgpu.h:616
@ WGPUErrorType_Validation
Definition webgpu.h:613
@ WGPUErrorType_Force32
Definition webgpu.h:617
@ WGPUErrorType_Internal
Definition webgpu.h:615
WGPUInstance wgpuCreateInstance(WGPUInstanceDescriptor const *descriptor)
WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits *limits)
WGPUProc wgpuGetProcAddress(WGPUStringView procName)
void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures *features)
WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature)
struct WGPUPipelineLayoutImpl * WGPUPipelineLayout
Definition webgpu.h:237
struct WGPUSamplerImpl * WGPUSampler
Definition webgpu.h:244
struct WGPUExternalTextureImpl * WGPUExternalTexture
Definition webgpu.h:235
struct WGPUQueueImpl * WGPUQueue
Definition webgpu.h:239
struct WGPUSurfaceImpl * WGPUSurface
Definition webgpu.h:249
struct WGPURenderBundleImpl * WGPURenderBundle
Definition webgpu.h:240
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
Definition webgpu.h:223
struct WGPUBindGroupImpl * WGPUBindGroup
Definition webgpu.h:218
struct WGPUInstanceImpl * WGPUInstance
Definition webgpu.h:236
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
Definition webgpu.h:219
struct WGPUTextureViewImpl * WGPUTextureView
Definition webgpu.h:251
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
Definition webgpu.h:242
struct WGPUShaderModuleImpl * WGPUShaderModule
Definition webgpu.h:245
struct WGPUQuerySetImpl * WGPUQuerySet
Definition webgpu.h:238
struct WGPUCommandBufferImpl * WGPUCommandBuffer
Definition webgpu.h:221
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
Definition webgpu.h:241
struct WGPUDeviceImpl * WGPUDevice
Definition webgpu.h:231
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
Definition webgpu.h:222
struct WGPUTextureImpl * WGPUTexture
Definition webgpu.h:250
struct WGPUComputePipelineImpl * WGPUComputePipeline
Definition webgpu.h:224
struct WGPURenderPipelineImpl * WGPURenderPipeline
Definition webgpu.h:243
struct WGPUAdapterImpl * WGPUAdapter
Definition webgpu.h:217
struct WGPUBufferImpl * WGPUBuffer
Definition webgpu.h:220
struct WGPUFuture WGPUFuture
uint32_t WGPUBool
Definition webgpu.h:207
uint64_t WGPUFlags
Definition webgpu.h:206
void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo)
WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits *limits)
void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures *features)
WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallbackInfo callbackInfo)
void wgpuAdapterAddRef(WGPUAdapter adapter)
WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
void wgpuAdapterRelease(WGPUAdapter adapter)
WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo *info)
void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label)
void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupAddRef(WGPUBindGroup bindGroup)
void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label)
WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer)
WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo)
void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
void wgpuBufferAddRef(WGPUBuffer buffer)
WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void *data, size_t size)
void wgpuBufferRelease(WGPUBuffer buffer)
void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
void wgpuBufferUnmap(WGPUBuffer buffer)
WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const *data, size_t size)
void wgpuBufferDestroy(WGPUBuffer buffer)
void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label)
void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label)
void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer)
WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor)
WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const *descriptor)
void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const *descriptor)
void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label)
void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel)
void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel)
void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyBufferInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label)
void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel)
void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel)
WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline)
void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label)
void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)
WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPUSamplerDescriptor const *descriptor)
WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor)
WGPUFuture wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo)
WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)
WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)
void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures *features)
WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo *adapterInfo)
WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)
void wgpuDeviceRelease(WGPUDevice device)
WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo)
WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits *limits)
WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)
WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor)
WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)
WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)
void wgpuDeviceDestroy(WGPUDevice device)
void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label)
WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)
WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)
void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
void wgpuDeviceAddRef(WGPUDevice device)
WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device)
WGPUFuture wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo)
void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture)
void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, WGPUStringView label)
void wgpuExternalTextureAddRef(WGPUExternalTexture externalTexture)
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)
void 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 wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures)
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:1781
WGPUBackendType backendType
Definition webgpu.h:1791
uint32_t deviceID
Definition webgpu.h:1803
WGPUChainedStruct * nextInChain
Definition webgpu.h:1763
uint32_t subgroupMinSize
Definition webgpu.h:1807
uint32_t vendorID
Definition webgpu.h:1799
WGPUStringView description
Definition webgpu.h:1787
WGPUAdapterType adapterType
Definition webgpu.h:1795
uint32_t subgroupMaxSize
Definition webgpu.h:1811
WGPUStringView architecture
Definition webgpu.h:1775
WGPUStringView vendor
Definition webgpu.h:1769
WGPUChainedStruct * nextInChain
Definition webgpu.h:4476
WGPUStringView label
Definition webgpu.h:4482
WGPUBindGroupLayout layout
Definition webgpu.h:4486
WGPUBindGroupEntry const * entries
Definition webgpu.h:4494
uint64_t offset
Definition webgpu.h:3747
WGPUBuffer buffer
Definition webgpu.h:3740
WGPUSampler sampler
Definition webgpu.h:3762
WGPUTextureView textureView
Definition webgpu.h:3769
WGPUChainedStruct * nextInChain
Definition webgpu.h:3727
uint32_t binding
Definition webgpu.h:3733
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4526
WGPUChainedStruct * nextInChain
Definition webgpu.h:4512
WGPUTextureBindingLayout texture
Definition webgpu.h:3815
WGPUShaderStage visibility
Definition webgpu.h:3797
WGPUBufferBindingLayout buffer
Definition webgpu.h:3807
WGPUChainedStruct * nextInChain
Definition webgpu.h:3789
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3819
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3811
WGPUBlendFactor dstFactor
Definition webgpu.h:1855
WGPUBlendFactor srcFactor
Definition webgpu.h:1848
WGPUBlendOperation operation
Definition webgpu.h:1841
WGPUBlendComponent alpha
Definition webgpu.h:3847
WGPUBlendComponent color
Definition webgpu.h:3843
WGPUBufferBindingType type
Definition webgpu.h:1878
WGPUBool hasDynamicOffset
Definition webgpu.h:1882
WGPUChainedStruct * nextInChain
Definition webgpu.h:1871
WGPUBool mappedAtCreation
Definition webgpu.h:1925
WGPUStringView label
Definition webgpu.h:1909
WGPUBufferUsage usage
Definition webgpu.h:1913
WGPUChainedStruct * nextInChain
Definition webgpu.h:1903
WGPUChainedStruct * nextInChain
Definition webgpu.h:1525
WGPUBufferMapCallback callback
Definition webgpu.h:1532
WGPUCallbackMode mode
Definition webgpu.h:1531
struct WGPUChainedStruct * next
Definition webgpu.h:1503
WGPUSType sType
Definition webgpu.h:1504
WGPUBlendState const * blend
Definition webgpu.h:4555
WGPUColorWriteMask writeMask
Definition webgpu.h:4559
WGPUChainedStruct * nextInChain
Definition webgpu.h:4543
WGPUTextureFormat format
Definition webgpu.h:4551
double a
Definition webgpu.h:1962
double b
Definition webgpu.h:1958
double r
Definition webgpu.h:1950
double g
Definition webgpu.h:1954
WGPUChainedStruct * nextInChain
Definition webgpu.h:1979
WGPUChainedStruct * nextInChain
Definition webgpu.h:2000
WGPUCompilationInfoCallback callback
Definition webgpu.h:1556
WGPUChainedStruct * nextInChain
Definition webgpu.h:1549
WGPUChainedStruct * nextInChain
Definition webgpu.h:3865
WGPUCompilationMessage const * messages
Definition webgpu.h:3873
WGPUChainedStruct * nextInChain
Definition webgpu.h:2024
WGPUCompilationMessageType type
Definition webgpu.h:2038
WGPUStringView message
Definition webgpu.h:2032
WGPUStringView label
Definition webgpu.h:3895
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3899
WGPUChainedStruct * nextInChain
Definition webgpu.h:3889
WGPUComputeState compute
Definition webgpu.h:4590
WGPUChainedStruct * nextInChain
Definition webgpu.h:4576
WGPUPipelineLayout layout
Definition webgpu.h:4586
WGPUChainedStruct * nextInChain
Definition webgpu.h:3915
WGPUConstantEntry const * constants
Definition webgpu.h:3933
size_t constantCount
Definition webgpu.h:3929
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3925
WGPUStringView key
Definition webgpu.h:2088
WGPUChainedStruct * nextInChain
Definition webgpu.h:2082
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1580
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1604
WGPUStencilFaceState stencilFront
Definition webgpu.h:3967
uint32_t stencilWriteMask
Definition webgpu.h:3979
WGPUStencilFaceState stencilBack
Definition webgpu.h:3971
WGPUChainedStruct * nextInChain
Definition webgpu.h:3951
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3959
WGPUCompareFunction depthCompare
Definition webgpu.h:3963
uint32_t stencilReadMask
Definition webgpu.h:3975
WGPUTextureFormat format
Definition webgpu.h:3955
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:4049
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:4058
size_t requiredFeatureCount
Definition webgpu.h:4033
WGPUStringView label
Definition webgpu.h:4029
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:4037
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:4045
WGPUChainedStruct * nextInChain
Definition webgpu.h:4023
WGPULimits const * requiredLimits
Definition webgpu.h:4041
WGPUChainedStruct * nextInChain
Definition webgpu.h:1621
WGPUDeviceLostCallback callback
Definition webgpu.h:1628
WGPUCallbackMode mode
Definition webgpu.h:1627
uint32_t width
Definition webgpu.h:2115
uint32_t depthOrArrayLayers
Definition webgpu.h:2123
uint32_t height
Definition webgpu.h:2119
WGPUChainedStruct chain
Definition webgpu.h:2141
WGPUExternalTexture externalTexture
Definition webgpu.h:2145
size_t constantCount
Definition webgpu.h:4713
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4709
WGPUChainedStruct * nextInChain
Definition webgpu.h:4699
size_t targetCount
Definition webgpu.h:4721
WGPUConstantEntry const * constants
Definition webgpu.h:4717
WGPUColorTargetState const * targets
Definition webgpu.h:4725
WGPUFuture future
Definition webgpu.h:4086
WGPUBool completed
Definition webgpu.h:4092
uint64_t id
Definition webgpu.h:2189
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:4115
WGPUChainedStruct * nextInChain
Definition webgpu.h:4107
size_t requiredFeatureCount
Definition webgpu.h:4111
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:4119
size_t timedWaitAnyMaxCount
Definition webgpu.h:2209
WGPUChainedStruct * nextInChain
Definition webgpu.h:2203
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2248
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2324
uint32_t maxTextureDimension2D
Definition webgpu.h:2232
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2264
uint32_t maxTextureDimension3D
Definition webgpu.h:2236
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2268
WGPUChainedStruct * nextInChain
Definition webgpu.h:2224
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2252
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2348
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2260
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2328
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2296
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2340
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2288
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2332
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2312
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2292
uint32_t maxVertexAttributes
Definition webgpu.h:2308
uint32_t maxColorAttachments
Definition webgpu.h:2320
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2316
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2344
uint32_t maxTextureDimension1D
Definition webgpu.h:2228
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2256
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2284
uint64_t maxBufferSize
Definition webgpu.h:2304
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2280
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2336
uint32_t maxVertexBuffers
Definition webgpu.h:2300
uint32_t maxTextureArrayLayers
Definition webgpu.h:2240
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2276
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2272
uint32_t maxImmediateSize
Definition webgpu.h:2352
uint32_t maxBindGroups
Definition webgpu.h:2244
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2410
WGPUChainedStruct * nextInChain
Definition webgpu.h:2398
uint32_t y
Definition webgpu.h:2434
uint32_t z
Definition webgpu.h:2438
uint32_t x
Definition webgpu.h:2430
WGPUQuerySet querySet
Definition webgpu.h:2460
uint32_t endOfPassWriteIndex
Definition webgpu.h:2468
WGPUChainedStruct * nextInChain
Definition webgpu.h:2454
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2464
WGPUChainedStruct * nextInChain
Definition webgpu.h:2485
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2499
WGPUChainedStruct * nextInChain
Definition webgpu.h:1645
WGPUCallbackMode mode
Definition webgpu.h:1651
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1652
WGPUFrontFace frontFace
Definition webgpu.h:2539
WGPUChainedStruct * nextInChain
Definition webgpu.h:2521
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2532
WGPUPrimitiveTopology topology
Definition webgpu.h:2528
WGPUCullMode cullMode
Definition webgpu.h:2546
WGPUBool unclippedDepth
Definition webgpu.h:2550
WGPUQueryType type
Definition webgpu.h:2579
WGPUChainedStruct * nextInChain
Definition webgpu.h:2569
WGPUStringView label
Definition webgpu.h:2575
WGPUChainedStruct * nextInChain
Definition webgpu.h:2600
WGPUStringView label
Definition webgpu.h:2606
WGPUCallbackMode mode
Definition webgpu.h:1675
WGPUChainedStruct * nextInChain
Definition webgpu.h:1669
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1676
WGPUChainedStruct * nextInChain
Definition webgpu.h:2621
WGPUStringView label
Definition webgpu.h:2627
WGPUChainedStruct * nextInChain
Definition webgpu.h:2642
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2656
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2660
WGPUTextureView resolveTarget
Definition webgpu.h:4151
WGPUChainedStruct * nextInChain
Definition webgpu.h:4136
WGPUChainedStruct * nextInChain
Definition webgpu.h:2693
WGPUChainedStruct * nextInChain
Definition webgpu.h:4607
WGPUStringView label
Definition webgpu.h:4613
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4625
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4621
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4629
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4633
WGPUChainedStruct chain
Definition webgpu.h:2759
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4767
WGPUChainedStruct * nextInChain
Definition webgpu.h:4745
WGPUMultisampleState multisample
Definition webgpu.h:4771
WGPUFragmentState const * fragment
Definition webgpu.h:4775
WGPUPrimitiveState primitive
Definition webgpu.h:4763
WGPUPipelineLayout layout
Definition webgpu.h:4755
WGPUVertexState vertex
Definition webgpu.h:4759
WGPURequestAdapterCallback callback
Definition webgpu.h:1700
WGPUChainedStruct * nextInChain
Definition webgpu.h:1693
WGPUFeatureLevel featureLevel
Definition webgpu.h:4194
WGPUBool forceFallbackAdapter
Definition webgpu.h:4205
WGPUSurface compatibleSurface
Definition webgpu.h:4219
WGPUBackendType backendType
Definition webgpu.h:4212
WGPUChainedStruct * nextInChain
Definition webgpu.h:4183
WGPUPowerPreference powerPreference
Definition webgpu.h:4198
WGPUChainedStruct chain
Definition webgpu.h:2783
WGPUCallbackMode mode
Definition webgpu.h:1723
WGPUChainedStruct * nextInChain
Definition webgpu.h:1717
WGPURequestDeviceCallback callback
Definition webgpu.h:1724
WGPUChainedStruct * nextInChain
Definition webgpu.h:2807
WGPUSamplerBindingType type
Definition webgpu.h:2814
WGPUFilterMode minFilter
Definition webgpu.h:2870
WGPUAddressMode addressModeU
Definition webgpu.h:2842
WGPUCompareFunction compare
Definition webgpu.h:2897
WGPUAddressMode addressModeW
Definition webgpu.h:2856
uint16_t maxAnisotropy
Definition webgpu.h:2901
WGPUAddressMode addressModeV
Definition webgpu.h:2849
WGPUStringView label
Definition webgpu.h:2835
WGPUFilterMode magFilter
Definition webgpu.h:2863
WGPUChainedStruct * nextInChain
Definition webgpu.h:2829
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2877
WGPUChainedStruct * nextInChain
Definition webgpu.h:4238
WGPUStringView label
Definition webgpu.h:4244
WGPUChainedStruct chain
Definition webgpu.h:2926
uint32_t const * code
Definition webgpu.h:2934
WGPUChainedStruct chain
Definition webgpu.h:2953
WGPUStringView code
Definition webgpu.h:2959
WGPUCompareFunction compare
Definition webgpu.h:2983
WGPUStencilOperation depthFailOp
Definition webgpu.h:2997
WGPUStencilOperation passOp
Definition webgpu.h:3004
WGPUStencilOperation failOp
Definition webgpu.h:2990
WGPUChainedStruct * nextInChain
Definition webgpu.h:3021
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3039
WGPUTextureFormat format
Definition webgpu.h:3032
WGPUStorageTextureAccess access
Definition webgpu.h:3028
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:3063
WGPUInstanceFeatureName const * features
Definition webgpu.h:3085
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3107
WGPUTextureFormat const * formats
Definition webgpu.h:3141
WGPUChainedStruct * nextInChain
Definition webgpu.h:3124
WGPUPresentMode const * presentModes
Definition webgpu.h:3152
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3163
WGPUTextureUsage usages
Definition webgpu.h:3131
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3194
WGPUChainedStruct chain
Definition webgpu.h:3186
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3190
WGPUTextureUsage usage
Definition webgpu.h:3234
WGPUTextureFormat format
Definition webgpu.h:3228
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3256
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3266
WGPUChainedStruct * nextInChain
Definition webgpu.h:3216
WGPUPresentMode presentMode
Definition webgpu.h:3275
WGPUChainedStruct * nextInChain
Definition webgpu.h:4263
WGPUStringView label
Definition webgpu.h:4271
WGPUChainedStruct chain
Definition webgpu.h:3326
WGPUChainedStruct chain
Definition webgpu.h:3352
WGPUChainedStruct chain
Definition webgpu.h:3385
WGPUChainedStruct chain
Definition webgpu.h:3419
WGPUChainedStruct chain
Definition webgpu.h:3452
WGPUChainedStruct * nextInChain
Definition webgpu.h:3486
WGPUTexture texture
Definition webgpu.h:3493
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3499
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4289
WGPUOrigin3D origin
Definition webgpu.h:4319
WGPUTextureAspect aspect
Definition webgpu.h:4326
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3556
WGPUTextureSampleType sampleType
Definition webgpu.h:3549
WGPUChainedStruct * nextInChain
Definition webgpu.h:3542
WGPUTextureComponentSwizzle swizzle
Definition webgpu.h:4347
WGPUComponentSwizzle r
Definition webgpu.h:3590
WGPUComponentSwizzle a
Definition webgpu.h:3617
WGPUComponentSwizzle g
Definition webgpu.h:3599
WGPUComponentSwizzle b
Definition webgpu.h:3608
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4406
WGPUTextureDimension dimension
Definition webgpu.h:4382
WGPUStringView label
Definition webgpu.h:4371
uint32_t mipLevelCount
Definition webgpu.h:4394
WGPUChainedStruct * nextInChain
Definition webgpu.h:4365
WGPUTextureFormat format
Definition webgpu.h:4390
WGPUTextureUsage usage
Definition webgpu.h:4375
WGPUExtent3D size
Definition webgpu.h:4386
WGPUChainedStruct * nextInChain
Definition webgpu.h:3634
WGPUTextureUsage usage
Definition webgpu.h:3675
WGPUTextureFormat format
Definition webgpu.h:3644
WGPUTextureViewDimension dimension
Definition webgpu.h:3648
WGPUStringView label
Definition webgpu.h:3640
WGPUTextureAspect aspect
Definition webgpu.h:3671
WGPUChainedStruct * nextInChain
Definition webgpu.h:1741
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1742
WGPUVertexFormat format
Definition webgpu.h:3702
WGPUChainedStruct * nextInChain
Definition webgpu.h:3698
uint32_t shaderLocation
Definition webgpu.h:3710
WGPUVertexAttribute const * attributes
Definition webgpu.h:4458
WGPUVertexStepMode stepMode
Definition webgpu.h:4446
WGPUChainedStruct * nextInChain
Definition webgpu.h:4442
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4663
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4679
WGPUConstantEntry const * constants
Definition webgpu.h:4671
size_t constantCount
Definition webgpu.h:4667
size_t bufferCount
Definition webgpu.h:4675
WGPUChainedStruct * nextInChain
Definition webgpu.h:4653