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
1251
1268static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1272static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1278static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1282static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1286static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1290static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1294static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1298static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1302static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1306static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1310static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1311
1319static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1320static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1321static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1322static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1323static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1327static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1328
1336static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1337static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1338static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1339
1347static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1348static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1349static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1350static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1351
1359static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1360static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1361static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1362static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1363static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1364static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1366
1369typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1370
1384typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1385
1394typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1395
1402typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1403
1410typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1411
1429typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1430
1448typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1449
1462typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1463
1473typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1474
1484typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1485
1495typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1496
1505typedef struct WGPUChainedStruct {
1508} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1509
1539
1543#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1544 /*.nextInChain=*/NULL _wgpu_COMMA \
1545 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1546 /*.callback=*/NULL _wgpu_COMMA \
1547 /*.userdata1=*/NULL _wgpu_COMMA \
1548 /*.userdata2=*/NULL _wgpu_COMMA \
1549})
1550
1563
1567#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1568 /*.nextInChain=*/NULL _wgpu_COMMA \
1569 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1570 /*.callback=*/NULL _wgpu_COMMA \
1571 /*.userdata1=*/NULL _wgpu_COMMA \
1572 /*.userdata2=*/NULL _wgpu_COMMA \
1573})
1574
1587
1591#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1592 /*.nextInChain=*/NULL _wgpu_COMMA \
1593 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1594 /*.callback=*/NULL _wgpu_COMMA \
1595 /*.userdata1=*/NULL _wgpu_COMMA \
1596 /*.userdata2=*/NULL _wgpu_COMMA \
1597})
1598
1611
1615#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1616 /*.nextInChain=*/NULL _wgpu_COMMA \
1617 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1618 /*.callback=*/NULL _wgpu_COMMA \
1619 /*.userdata1=*/NULL _wgpu_COMMA \
1620 /*.userdata2=*/NULL _wgpu_COMMA \
1621})
1622
1635
1639#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1640 /*.nextInChain=*/NULL _wgpu_COMMA \
1641 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1642 /*.callback=*/NULL _wgpu_COMMA \
1643 /*.userdata1=*/NULL _wgpu_COMMA \
1644 /*.userdata2=*/NULL _wgpu_COMMA \
1645})
1646
1659
1663#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1664 /*.nextInChain=*/NULL _wgpu_COMMA \
1665 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1666 /*.callback=*/NULL _wgpu_COMMA \
1667 /*.userdata1=*/NULL _wgpu_COMMA \
1668 /*.userdata2=*/NULL _wgpu_COMMA \
1669})
1670
1683
1687#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1688 /*.nextInChain=*/NULL _wgpu_COMMA \
1689 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1690 /*.callback=*/NULL _wgpu_COMMA \
1691 /*.userdata1=*/NULL _wgpu_COMMA \
1692 /*.userdata2=*/NULL _wgpu_COMMA \
1693})
1694
1707
1711#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1712 /*.nextInChain=*/NULL _wgpu_COMMA \
1713 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1714 /*.callback=*/NULL _wgpu_COMMA \
1715 /*.userdata1=*/NULL _wgpu_COMMA \
1716 /*.userdata2=*/NULL _wgpu_COMMA \
1717})
1718
1731
1735#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1736 /*.nextInChain=*/NULL _wgpu_COMMA \
1737 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1738 /*.callback=*/NULL _wgpu_COMMA \
1739 /*.userdata1=*/NULL _wgpu_COMMA \
1740 /*.userdata2=*/NULL _wgpu_COMMA \
1741})
1742
1749
1753#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1754 /*.nextInChain=*/NULL _wgpu_COMMA \
1755 /*.callback=*/NULL _wgpu_COMMA \
1756 /*.userdata1=*/NULL _wgpu_COMMA \
1757 /*.userdata2=*/NULL _wgpu_COMMA \
1758})
1759
1816
1820#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1821 /*.nextInChain=*/NULL _wgpu_COMMA \
1822 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1823 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1824 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1825 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1826 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1827 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1828 /*.vendorID=*/0 _wgpu_COMMA \
1829 /*.deviceID=*/0 _wgpu_COMMA \
1830 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1831 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1832})
1833
1860
1864#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1865 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1866 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1867 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1868})
1869
1891
1895#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1896 /*.nextInChain=*/NULL _wgpu_COMMA \
1897 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1898 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1899 /*.minBindingSize=*/0 _wgpu_COMMA \
1900})
1901
1930
1934#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1935 /*.nextInChain=*/NULL _wgpu_COMMA \
1936 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1937 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1938 /*.size=*/0 _wgpu_COMMA \
1939 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1940})
1941
1949typedef struct WGPUColor {
1953 double r;
1957 double g;
1961 double b;
1965 double a;
1966} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1967
1971#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1972 /*.r=*/0. _wgpu_COMMA \
1973 /*.g=*/0. _wgpu_COMMA \
1974 /*.b=*/0. _wgpu_COMMA \
1975 /*.a=*/0. _wgpu_COMMA \
1976})
1977
1990
1994#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1995 /*.nextInChain=*/NULL _wgpu_COMMA \
1996 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1997})
1998
2011
2015#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2016 /*.nextInChain=*/NULL _wgpu_COMMA \
2017 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2018})
2019
2067
2071#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2072 /*.nextInChain=*/NULL _wgpu_COMMA \
2073 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2074 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2075 /*.lineNum=*/0 _wgpu_COMMA \
2076 /*.linePos=*/0 _wgpu_COMMA \
2077 /*.offset=*/0 _wgpu_COMMA \
2078 /*.length=*/0 _wgpu_COMMA \
2079})
2080
2101
2105#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2106 /*.nextInChain=*/NULL _wgpu_COMMA \
2107 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2108 /*.value=*/0. _wgpu_COMMA \
2109})
2110
2114typedef struct WGPUExtent3D {
2118 uint32_t width;
2122 uint32_t height;
2127} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2128
2132#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2133 /*.width=*/0 _wgpu_COMMA \
2134 /*.height=*/1 _wgpu_COMMA \
2135 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2136})
2137
2150
2154#define WGPU_EXTERNAL_TEXTURE_BINDING_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingEntry, { \
2155 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2156 /*.next=*/NULL _wgpu_COMMA \
2157 /*.sType=*/WGPUSType_ExternalTextureBindingEntry _wgpu_COMMA \
2158 }) _wgpu_COMMA \
2159 /*.externalTexture=*/NULL _wgpu_COMMA \
2160})
2161
2170
2174#define WGPU_EXTERNAL_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingLayout, { \
2175 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2176 /*.next=*/NULL _wgpu_COMMA \
2177 /*.sType=*/WGPUSType_ExternalTextureBindingLayout _wgpu_COMMA \
2178 }) _wgpu_COMMA \
2179})
2180
2186typedef struct WGPUFuture {
2192 uint64_t id;
2193} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2194
2198#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2199 /*.id=*/0 _wgpu_COMMA \
2200})
2201
2214
2218#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2219 /*.nextInChain=*/NULL _wgpu_COMMA \
2220 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2221})
2222
2357
2361#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2362 /*.nextInChain=*/NULL _wgpu_COMMA \
2363 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2364 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2365 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2366 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2367 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2368 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2369 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2370 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2371 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2372 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2373 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2374 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2375 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2376 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2377 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2378 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2379 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2380 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2381 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2382 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2383 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2384 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2385 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2386 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2387 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2388 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2389 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2390 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2391 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2392 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2393 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2394 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2395})
2396
2415
2419#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2420 /*.nextInChain=*/NULL _wgpu_COMMA \
2421 /*.count=*/1 _wgpu_COMMA \
2422 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2423 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2424})
2425
2429typedef struct WGPUOrigin3D {
2433 uint32_t x;
2437 uint32_t y;
2441 uint32_t z;
2442} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2443
2447#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2448 /*.x=*/0 _wgpu_COMMA \
2449 /*.y=*/0 _wgpu_COMMA \
2450 /*.z=*/0 _wgpu_COMMA \
2451})
2452
2473
2477#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2478 /*.nextInChain=*/NULL _wgpu_COMMA \
2479 /*.querySet=*/NULL _wgpu_COMMA \
2480 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2481 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2482})
2483
2508
2512#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2513 /*.nextInChain=*/NULL _wgpu_COMMA \
2514 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2515 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2516 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2517 /*.immediateSize=*/0 _wgpu_COMMA \
2518})
2519
2555
2559#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2560 /*.nextInChain=*/NULL _wgpu_COMMA \
2561 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2562 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2563 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2564 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2565 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2566})
2567
2588
2592#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2593 /*.nextInChain=*/NULL _wgpu_COMMA \
2594 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2595 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2596 /*.count=*/0 _wgpu_COMMA \
2597})
2598
2611
2615#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2616 /*.nextInChain=*/NULL _wgpu_COMMA \
2617 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2618})
2619
2632
2636#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2637 /*.nextInChain=*/NULL _wgpu_COMMA \
2638 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2639})
2640
2677
2681#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2682 /*.nextInChain=*/NULL _wgpu_COMMA \
2683 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2684 /*.colorFormatCount=*/0 _wgpu_COMMA \
2685 /*.colorFormats=*/NULL _wgpu_COMMA \
2686 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2687 /*.sampleCount=*/1 _wgpu_COMMA \
2688 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2689 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2690})
2691
2741
2745#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2746 /*.nextInChain=*/NULL _wgpu_COMMA \
2747 /*.view=*/NULL _wgpu_COMMA \
2748 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2749 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2750 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2751 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2752 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2753 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2754 /*.stencilClearValue=*/0 _wgpu_COMMA \
2755 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2756})
2757
2768
2772#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2773 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2774 /*.next=*/NULL _wgpu_COMMA \
2775 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2776 }) _wgpu_COMMA \
2777 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2778})
2779
2794
2798#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2799 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2800 /*.next=*/NULL _wgpu_COMMA \
2801 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2802 }) _wgpu_COMMA \
2803 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2804})
2805
2819
2823#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2824 /*.nextInChain=*/NULL _wgpu_COMMA \
2825 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2826})
2827
2906
2910#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2911 /*.nextInChain=*/NULL _wgpu_COMMA \
2912 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2913 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2914 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2915 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2916 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2917 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2918 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2919 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2920 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2921 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2922 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2923})
2924
2933 uint32_t codeSize;
2937 uint32_t const * code;
2938} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2939
2943#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2944 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2945 /*.next=*/NULL _wgpu_COMMA \
2946 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2947 }) _wgpu_COMMA \
2948 /*.codeSize=*/0 _wgpu_COMMA \
2949 /*.code=*/NULL _wgpu_COMMA \
2950})
2951
2964
2968#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2969 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2970 /*.next=*/NULL _wgpu_COMMA \
2971 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2972 }) _wgpu_COMMA \
2973 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2974})
2975
3009
3013#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
3014 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3015 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3016 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3017 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3018})
3019
3044
3048#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3049 /*.nextInChain=*/NULL _wgpu_COMMA \
3050 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3051 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3052 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3053})
3054
3067} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3068
3072#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3073 /*.featureCount=*/0 _wgpu_COMMA \
3074 /*.features=*/NULL _wgpu_COMMA \
3075})
3076
3090
3094#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
3095 /*.featureCount=*/0 _wgpu_COMMA \
3096 /*.features=*/NULL _wgpu_COMMA \
3097})
3098
3112
3116#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3117 /*.featureCount=*/0 _wgpu_COMMA \
3118 /*.features=*/NULL _wgpu_COMMA \
3119})
3120
3168
3172#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3173 /*.nextInChain=*/NULL _wgpu_COMMA \
3174 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3175 /*.formatCount=*/0 _wgpu_COMMA \
3176 /*.formats=*/NULL _wgpu_COMMA \
3177 /*.presentModeCount=*/0 _wgpu_COMMA \
3178 /*.presentModes=*/NULL _wgpu_COMMA \
3179 /*.alphaModeCount=*/0 _wgpu_COMMA \
3180 /*.alphaModes=*/NULL _wgpu_COMMA \
3181})
3182
3199
3203#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3204 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3205 /*.next=*/NULL _wgpu_COMMA \
3206 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3207 }) _wgpu_COMMA \
3208 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3209 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3210})
3211
3280
3284#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3285 /*.nextInChain=*/NULL _wgpu_COMMA \
3286 /*.device=*/NULL _wgpu_COMMA \
3287 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3288 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3289 /*.width=*/0 _wgpu_COMMA \
3290 /*.height=*/0 _wgpu_COMMA \
3291 /*.viewFormatCount=*/0 _wgpu_COMMA \
3292 /*.viewFormats=*/NULL _wgpu_COMMA \
3293 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3294 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3295})
3296
3311
3315#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3316 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3317 /*.next=*/NULL _wgpu_COMMA \
3318 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3319 }) _wgpu_COMMA \
3320 /*.window=*/NULL _wgpu_COMMA \
3321})
3322
3337
3341#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3342 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3343 /*.next=*/NULL _wgpu_COMMA \
3344 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3345 }) _wgpu_COMMA \
3346 /*.layer=*/NULL _wgpu_COMMA \
3347})
3348
3369
3373#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3374 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3375 /*.next=*/NULL _wgpu_COMMA \
3376 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3377 }) _wgpu_COMMA \
3378 /*.display=*/NULL _wgpu_COMMA \
3379 /*.surface=*/NULL _wgpu_COMMA \
3380})
3381
3403
3407#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3408 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3409 /*.next=*/NULL _wgpu_COMMA \
3410 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3411 }) _wgpu_COMMA \
3412 /*.hinstance=*/NULL _wgpu_COMMA \
3413 /*.hwnd=*/NULL _wgpu_COMMA \
3414})
3415
3436
3440#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3441 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3442 /*.next=*/NULL _wgpu_COMMA \
3443 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3444 }) _wgpu_COMMA \
3445 /*.connection=*/NULL _wgpu_COMMA \
3446 /*.window=*/0 _wgpu_COMMA \
3447})
3448
3469
3473#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3474 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3475 /*.next=*/NULL _wgpu_COMMA \
3476 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3477 }) _wgpu_COMMA \
3478 /*.display=*/NULL _wgpu_COMMA \
3479 /*.window=*/0 _wgpu_COMMA \
3480})
3481
3504
3508#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3509 /*.nextInChain=*/NULL _wgpu_COMMA \
3510 /*.texture=*/NULL _wgpu_COMMA \
3511 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3512})
3513
3521 uint64_t offset;
3525 uint32_t bytesPerRow;
3530} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3531
3535#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3536 /*.offset=*/0 _wgpu_COMMA \
3537 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3538 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3539})
3540
3565
3569#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3570 /*.nextInChain=*/NULL _wgpu_COMMA \
3571 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3572 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3573 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3574})
3575
3622
3626#define WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzle, { \
3627 /*.r=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3628 /*.g=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3629 /*.b=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3630 /*.a=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3631})
3632
3680
3684#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3685 /*.nextInChain=*/NULL _wgpu_COMMA \
3686 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3687 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3688 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3689 /*.baseMipLevel=*/0 _wgpu_COMMA \
3690 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3691 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3692 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3693 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3694 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3695})
3696
3715
3719#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3720 /*.nextInChain=*/NULL _wgpu_COMMA \
3721 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3722 /*.offset=*/0 _wgpu_COMMA \
3723 /*.shaderLocation=*/0 _wgpu_COMMA \
3724})
3725
3729typedef struct WGPUBindGroupEntry {
3736 uint32_t binding;
3743 WGPU_NULLABLE WGPUBuffer buffer;
3750 uint64_t offset;
3758 uint64_t size;
3765 WGPU_NULLABLE WGPUSampler sampler;
3773} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
3774
3778#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
3779 /*.nextInChain=*/NULL _wgpu_COMMA \
3780 /*.binding=*/0 _wgpu_COMMA \
3781 /*.buffer=*/NULL _wgpu_COMMA \
3782 /*.offset=*/0 _wgpu_COMMA \
3783 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
3784 /*.sampler=*/NULL _wgpu_COMMA \
3785 /*.textureView=*/NULL _wgpu_COMMA \
3786})
3787
3824
3828#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3829 /*.nextInChain=*/NULL _wgpu_COMMA \
3830 /*.binding=*/0 _wgpu_COMMA \
3831 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3832 /*.bindingArraySize=*/0 _wgpu_COMMA \
3833 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3834 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3835 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3836 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3837})
3838
3852
3856#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3857 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3858 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3859})
3860
3878
3882#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3883 /*.nextInChain=*/NULL _wgpu_COMMA \
3884 /*.messageCount=*/0 _wgpu_COMMA \
3885 /*.messages=*/NULL _wgpu_COMMA \
3886})
3887
3904
3908#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3909 /*.nextInChain=*/NULL _wgpu_COMMA \
3910 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3911 /*.timestampWrites=*/NULL _wgpu_COMMA \
3912})
3913
3938
3942#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3943 /*.nextInChain=*/NULL _wgpu_COMMA \
3944 /*.module=*/NULL _wgpu_COMMA \
3945 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3946 /*.constantCount=*/0 _wgpu_COMMA \
3947 /*.constants=*/NULL _wgpu_COMMA \
3948})
3949
4004
4008#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
4009 /*.nextInChain=*/NULL _wgpu_COMMA \
4010 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4011 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
4012 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
4013 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
4014 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
4015 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
4016 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
4017 /*.depthBias=*/0 _wgpu_COMMA \
4018 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
4019 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
4020})
4021
4063
4067#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4068 /*.nextInChain=*/NULL _wgpu_COMMA \
4069 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4070 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4071 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4072 /*.requiredLimits=*/NULL _wgpu_COMMA \
4073 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4074 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4075 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4076})
4077
4097
4101#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
4102 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
4103 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
4104})
4105
4124
4128#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4129 /*.nextInChain=*/NULL _wgpu_COMMA \
4130 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4131 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4132 /*.requiredLimits=*/NULL _wgpu_COMMA \
4133})
4134
4168
4172#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4173 /*.nextInChain=*/NULL _wgpu_COMMA \
4174 /*.view=*/NULL _wgpu_COMMA \
4175 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4176 /*.resolveTarget=*/NULL _wgpu_COMMA \
4177 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4178 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4179 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4180})
4181
4224
4228#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4229 /*.nextInChain=*/NULL _wgpu_COMMA \
4230 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4231 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4232 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4233 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4234 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4235})
4236
4249
4253#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4254 /*.nextInChain=*/NULL _wgpu_COMMA \
4255 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4256})
4257
4276
4280#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4281 /*.nextInChain=*/NULL _wgpu_COMMA \
4282 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4283})
4284
4298
4302#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4303 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4304 /*.buffer=*/NULL _wgpu_COMMA \
4305})
4306
4331
4335#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4336 /*.texture=*/NULL _wgpu_COMMA \
4337 /*.mipLevel=*/0 _wgpu_COMMA \
4338 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4339 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4340})
4341
4352
4356#define WGPU_TEXTURE_COMPONENT_SWIZZLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzleDescriptor, { \
4357 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
4358 /*.next=*/NULL _wgpu_COMMA \
4359 /*.sType=*/WGPUSType_TextureComponentSwizzleDescriptor _wgpu_COMMA \
4360 }) _wgpu_COMMA \
4361 /*.swizzle=*/WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_COMMA \
4362})
4363
4411
4415#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4416 /*.nextInChain=*/NULL _wgpu_COMMA \
4417 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4418 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4419 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4420 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4421 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4422 /*.mipLevelCount=*/1 _wgpu_COMMA \
4423 /*.sampleCount=*/1 _wgpu_COMMA \
4424 /*.viewFormatCount=*/0 _wgpu_COMMA \
4425 /*.viewFormats=*/NULL _wgpu_COMMA \
4426})
4427
4463
4467#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4468 /*.nextInChain=*/NULL _wgpu_COMMA \
4469 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4470 /*.arrayStride=*/0 _wgpu_COMMA \
4471 /*.attributeCount=*/0 _wgpu_COMMA \
4472 /*.attributes=*/NULL _wgpu_COMMA \
4473})
4474
4499
4503#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
4504 /*.nextInChain=*/NULL _wgpu_COMMA \
4505 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4506 /*.layout=*/NULL _wgpu_COMMA \
4507 /*.entryCount=*/0 _wgpu_COMMA \
4508 /*.entries=*/NULL _wgpu_COMMA \
4509})
4510
4531
4535#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4536 /*.nextInChain=*/NULL _wgpu_COMMA \
4537 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4538 /*.entryCount=*/0 _wgpu_COMMA \
4539 /*.entries=*/NULL _wgpu_COMMA \
4540})
4541
4564
4568#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4569 /*.nextInChain=*/NULL _wgpu_COMMA \
4570 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4571 /*.blend=*/NULL _wgpu_COMMA \
4572 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4573})
4574
4595
4599#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4600 /*.nextInChain=*/NULL _wgpu_COMMA \
4601 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4602 /*.layout=*/NULL _wgpu_COMMA \
4603 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4604})
4605
4638
4642#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4643 /*.nextInChain=*/NULL _wgpu_COMMA \
4644 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4645 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4646 /*.colorAttachments=*/NULL _wgpu_COMMA \
4647 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4648 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4649 /*.timestampWrites=*/NULL _wgpu_COMMA \
4650})
4651
4684
4688#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4689 /*.nextInChain=*/NULL _wgpu_COMMA \
4690 /*.module=*/NULL _wgpu_COMMA \
4691 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4692 /*.constantCount=*/0 _wgpu_COMMA \
4693 /*.constants=*/NULL _wgpu_COMMA \
4694 /*.bufferCount=*/0 _wgpu_COMMA \
4695 /*.buffers=*/NULL _wgpu_COMMA \
4696})
4697
4730
4734#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4735 /*.nextInChain=*/NULL _wgpu_COMMA \
4736 /*.module=*/NULL _wgpu_COMMA \
4737 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4738 /*.constantCount=*/0 _wgpu_COMMA \
4739 /*.constants=*/NULL _wgpu_COMMA \
4740 /*.targetCount=*/0 _wgpu_COMMA \
4741 /*.targets=*/NULL _wgpu_COMMA \
4742})
4743
4780
4784#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4785 /*.nextInChain=*/NULL _wgpu_COMMA \
4786 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4787 /*.layout=*/NULL _wgpu_COMMA \
4788 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4789 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4790 /*.depthStencil=*/NULL _wgpu_COMMA \
4791 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4792 /*.fragment=*/NULL _wgpu_COMMA \
4793})
4794
4797#ifdef __cplusplus
4798extern "C" {
4799#endif
4800
4801#if !defined(WGPU_SKIP_PROCS)
4802// Global procs
4807typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4812typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4817typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4822typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4827typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4828
4829
4830// Procs of Adapter
4835typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4840typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4845typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4850typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4855typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4860typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4865typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4866
4867// Procs of AdapterInfo
4872typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4873
4874// Procs of BindGroup
4879typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4884typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4889typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4890
4891// Procs of BindGroupLayout
4896typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4901typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4906typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4907
4908// Procs of Buffer
4913typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4918typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4923typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4928typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4933typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4938typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4943typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4948typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4953typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4958typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4963typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4968typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4973typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4974
4975// Procs of CommandBuffer
4980typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4985typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4990typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4991
4992// Procs of CommandEncoder
4997typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5002typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5007typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5012typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5017typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5022typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5027typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5032typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5037typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5042typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5047typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5052typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5057typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5062typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5067typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5072typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5073
5074// Procs of ComputePassEncoder
5079typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5084typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5089typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5094typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5099typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5104typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5109typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5114typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5119typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5124typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5129typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5130
5131// Procs of ComputePipeline
5136typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5141typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5146typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5151typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5152
5153// Procs of Device
5158typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5163typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5168typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5173typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5178typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5183typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5188typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5193typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5198typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5203typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5208typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5213typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5218typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5223typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5228typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5233typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5238typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5243typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5248typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5253typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5258typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5263typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5268typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5273typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5278typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5283typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5284
5285// Procs of ExternalTexture
5290typedef void (*WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5295typedef void (*WGPUProcExternalTextureAddRef)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5300typedef void (*WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5301
5302// Procs of Instance
5307typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5312typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5317typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5322typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5327typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5332typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5337typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5342typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5343
5344// Procs of PipelineLayout
5349typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5354typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5359typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5360
5361// Procs of QuerySet
5366typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5371typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5376typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5381typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5386typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5391typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5392
5393// Procs of Queue
5398typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5403typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5408typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5413typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5418typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5423typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5428typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5429
5430// Procs of RenderBundle
5435typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5440typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5445typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5446
5447// Procs of RenderBundleEncoder
5452typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5457typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5462typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5467typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5472typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5477typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5482typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5487typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5492typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5497typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5502typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5507typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5512typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5517typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5522typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5523
5524// Procs of RenderPassEncoder
5529typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5534typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5539typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5544typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5549typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5554typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5559typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5564typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5569typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5574typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5579typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5584typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5589typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5594typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5599typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5604typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5609typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5614typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5619typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5624typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5629typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5634typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5635
5636// Procs of RenderPipeline
5641typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5646typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5651typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5656typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5657
5658// Procs of Sampler
5663typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5668typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5673typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5674
5675// Procs of ShaderModule
5680typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5685typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5690typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5695typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5696
5697// Procs of SupportedFeatures
5702typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5703
5704// Procs of SupportedInstanceFeatures
5709typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5710
5711// Procs of SupportedWGSLLanguageFeatures
5716typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5717
5718// Procs of Surface
5723typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5728typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5733typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5738typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5743typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5748typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5753typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5758typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5759
5760// Procs of SurfaceCapabilities
5765typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5766
5767// Procs of Texture
5772typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5777typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5782typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5787typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5792typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5797typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5802typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5807typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5812typedef WGPUTextureViewDimension (*WGPUProcTextureGetTextureBindingViewDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5817typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5822typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5827typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5832typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5837typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5838
5839// Procs of TextureView
5844typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5849typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5854typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5855
5856#endif // !defined(WGPU_SKIP_PROCS)
5857
5858#if !defined(WGPU_SKIP_DECLARATIONS)
5871WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5878WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5885WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5889WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5894WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5895
5917WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5925WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5930WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5931WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5932WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5933WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5934WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5935
5947WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5948
5957WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5958WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5959WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5960
5969WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5970WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5971WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5972
5981WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5999WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6016WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6017WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6018WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6019WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6031WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6052WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6053WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6054WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6075WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6076WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6077WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6078
6087WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6088WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6089WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6090
6103WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6108WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6109WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6110WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6111WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6112WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6113WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6118WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6119WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6120WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6121WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6122WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
6123WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6124WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6125WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6126WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6127
6136WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
6137WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6138WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6139WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6140WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6141WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6142WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6143WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6144WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6145WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6146WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6147
6160WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6161WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6162WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6163WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6164
6177WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6182WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6192WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6197WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6202WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6208WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6213WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6223WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6229WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6234WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6248WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6255WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6260WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6265WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6270WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6271WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6276WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6281WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6282WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6283WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6284WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6285
6294WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6295WGPU_EXPORT void wgpuExternalTextureAddRef(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6296WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6297
6316WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6320WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6321WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6327WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6328WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6334WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6335WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6336WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6337
6346WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6347WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6348WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6349
6358WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6359WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6360WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6361WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6362WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6363WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6364
6373WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6374WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6375WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6380WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6381WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6382WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6383WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6384
6393WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6394WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6395WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6396
6405WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6406WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6407WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6408WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6413WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6414WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6415WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6416WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6417WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6418WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6419WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6420WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6421WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6422WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6423WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6424
6433WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6434WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6435WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6436WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6437WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6438WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6439WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6440WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6441WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6442WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6443WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6444WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6449WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6450WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6451WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6452WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6453WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6454WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6455WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6461WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6462WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6463WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6464
6477WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6478WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6479WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6480WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6481
6490WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6491WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6492WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6493
6502WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6503WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6504WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6505WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6506
6518WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6519
6531WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6532
6544WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6545
6563WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6579WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6589WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6597WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6604WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6609WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6610WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6611WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6612
6624WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6625
6638WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6639WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6640WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6641WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6642WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6643WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6644WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6645WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6647WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6648WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6649WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6650WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6651WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6652
6661WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6662WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6663WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6664
6669#endif // !defined(WGPU_SKIP_DECLARATIONS)
6670
6671#ifdef __cplusplus
6672} // extern "C"
6673#endif
6674
6675#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1322
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1306
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1315
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1302
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1323
static const WGPUTextureUsage WGPUTextureUsage_TransientAttachment
Definition webgpu.h:1365
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1272
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1290
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1268
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1336
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1359
WGPUFlags WGPUMapMode
Definition webgpu.h:1332
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1362
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1327
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1360
WGPUFlags WGPUShaderStage
Definition webgpu.h:1343
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1310
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1349
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1350
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1338
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1347
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1364
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1278
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1361
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1282
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1363
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1355
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1298
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1337
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1321
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1294
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1348
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1319
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1320
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1264
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1286
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1495
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1484
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1402
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1429
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1410
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1394
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1473
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1384
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1462
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1448
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_TextureAndSamplerLet
Definition webgpu.h:1247
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1244
@ WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout
Definition webgpu.h:1245
@ WGPUWGSLLanguageFeatureName_SubgroupId
Definition webgpu.h:1246
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1249
@ WGPUWGSLLanguageFeatureName_SubgroupUniformity
Definition webgpu.h:1248
@ 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)
WGPUTextureViewDimension wgpuTextureGetTextureBindingViewDimension(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:1784
WGPUBackendType backendType
Definition webgpu.h:1794
uint32_t deviceID
Definition webgpu.h:1806
WGPUChainedStruct * nextInChain
Definition webgpu.h:1766
uint32_t subgroupMinSize
Definition webgpu.h:1810
uint32_t vendorID
Definition webgpu.h:1802
WGPUStringView description
Definition webgpu.h:1790
WGPUAdapterType adapterType
Definition webgpu.h:1798
uint32_t subgroupMaxSize
Definition webgpu.h:1814
WGPUStringView architecture
Definition webgpu.h:1778
WGPUStringView vendor
Definition webgpu.h:1772
WGPUChainedStruct * nextInChain
Definition webgpu.h:4479
WGPUStringView label
Definition webgpu.h:4485
WGPUBindGroupLayout layout
Definition webgpu.h:4489
WGPUBindGroupEntry const * entries
Definition webgpu.h:4497
uint64_t offset
Definition webgpu.h:3750
WGPUBuffer buffer
Definition webgpu.h:3743
WGPUSampler sampler
Definition webgpu.h:3765
WGPUTextureView textureView
Definition webgpu.h:3772
WGPUChainedStruct * nextInChain
Definition webgpu.h:3730
uint32_t binding
Definition webgpu.h:3736
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4529
WGPUChainedStruct * nextInChain
Definition webgpu.h:4515
WGPUTextureBindingLayout texture
Definition webgpu.h:3818
WGPUShaderStage visibility
Definition webgpu.h:3800
WGPUBufferBindingLayout buffer
Definition webgpu.h:3810
WGPUChainedStruct * nextInChain
Definition webgpu.h:3792
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3822
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3814
WGPUBlendFactor dstFactor
Definition webgpu.h:1858
WGPUBlendFactor srcFactor
Definition webgpu.h:1851
WGPUBlendOperation operation
Definition webgpu.h:1844
WGPUBlendComponent alpha
Definition webgpu.h:3850
WGPUBlendComponent color
Definition webgpu.h:3846
WGPUBufferBindingType type
Definition webgpu.h:1881
WGPUBool hasDynamicOffset
Definition webgpu.h:1885
WGPUChainedStruct * nextInChain
Definition webgpu.h:1874
WGPUBool mappedAtCreation
Definition webgpu.h:1928
WGPUStringView label
Definition webgpu.h:1912
WGPUBufferUsage usage
Definition webgpu.h:1916
WGPUChainedStruct * nextInChain
Definition webgpu.h:1906
WGPUChainedStruct * nextInChain
Definition webgpu.h:1528
WGPUBufferMapCallback callback
Definition webgpu.h:1535
WGPUCallbackMode mode
Definition webgpu.h:1534
struct WGPUChainedStruct * next
Definition webgpu.h:1506
WGPUSType sType
Definition webgpu.h:1507
WGPUBlendState const * blend
Definition webgpu.h:4558
WGPUColorWriteMask writeMask
Definition webgpu.h:4562
WGPUChainedStruct * nextInChain
Definition webgpu.h:4546
WGPUTextureFormat format
Definition webgpu.h:4554
double a
Definition webgpu.h:1965
double b
Definition webgpu.h:1961
double r
Definition webgpu.h:1953
double g
Definition webgpu.h:1957
WGPUChainedStruct * nextInChain
Definition webgpu.h:1982
WGPUChainedStruct * nextInChain
Definition webgpu.h:2003
WGPUCompilationInfoCallback callback
Definition webgpu.h:1559
WGPUChainedStruct * nextInChain
Definition webgpu.h:1552
WGPUChainedStruct * nextInChain
Definition webgpu.h:3868
WGPUCompilationMessage const * messages
Definition webgpu.h:3876
WGPUChainedStruct * nextInChain
Definition webgpu.h:2027
WGPUCompilationMessageType type
Definition webgpu.h:2041
WGPUStringView message
Definition webgpu.h:2035
WGPUStringView label
Definition webgpu.h:3898
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3902
WGPUChainedStruct * nextInChain
Definition webgpu.h:3892
WGPUComputeState compute
Definition webgpu.h:4593
WGPUChainedStruct * nextInChain
Definition webgpu.h:4579
WGPUPipelineLayout layout
Definition webgpu.h:4589
WGPUChainedStruct * nextInChain
Definition webgpu.h:3918
WGPUConstantEntry const * constants
Definition webgpu.h:3936
size_t constantCount
Definition webgpu.h:3932
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3928
WGPUStringView key
Definition webgpu.h:2091
WGPUChainedStruct * nextInChain
Definition webgpu.h:2085
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1583
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1607
WGPUStencilFaceState stencilFront
Definition webgpu.h:3970
uint32_t stencilWriteMask
Definition webgpu.h:3982
WGPUStencilFaceState stencilBack
Definition webgpu.h:3974
WGPUChainedStruct * nextInChain
Definition webgpu.h:3954
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3962
WGPUCompareFunction depthCompare
Definition webgpu.h:3966
uint32_t stencilReadMask
Definition webgpu.h:3978
WGPUTextureFormat format
Definition webgpu.h:3958
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:4052
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:4061
size_t requiredFeatureCount
Definition webgpu.h:4036
WGPUStringView label
Definition webgpu.h:4032
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:4040
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:4048
WGPUChainedStruct * nextInChain
Definition webgpu.h:4026
WGPULimits const * requiredLimits
Definition webgpu.h:4044
WGPUChainedStruct * nextInChain
Definition webgpu.h:1624
WGPUDeviceLostCallback callback
Definition webgpu.h:1631
WGPUCallbackMode mode
Definition webgpu.h:1630
uint32_t width
Definition webgpu.h:2118
uint32_t depthOrArrayLayers
Definition webgpu.h:2126
uint32_t height
Definition webgpu.h:2122
WGPUChainedStruct chain
Definition webgpu.h:2144
WGPUExternalTexture externalTexture
Definition webgpu.h:2148
size_t constantCount
Definition webgpu.h:4716
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4712
WGPUChainedStruct * nextInChain
Definition webgpu.h:4702
size_t targetCount
Definition webgpu.h:4724
WGPUConstantEntry const * constants
Definition webgpu.h:4720
WGPUColorTargetState const * targets
Definition webgpu.h:4728
WGPUFuture future
Definition webgpu.h:4089
WGPUBool completed
Definition webgpu.h:4095
uint64_t id
Definition webgpu.h:2192
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:4118
WGPUChainedStruct * nextInChain
Definition webgpu.h:4110
size_t requiredFeatureCount
Definition webgpu.h:4114
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:4122
size_t timedWaitAnyMaxCount
Definition webgpu.h:2212
WGPUChainedStruct * nextInChain
Definition webgpu.h:2206
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2251
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2327
uint32_t maxTextureDimension2D
Definition webgpu.h:2235
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2267
uint32_t maxTextureDimension3D
Definition webgpu.h:2239
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2271
WGPUChainedStruct * nextInChain
Definition webgpu.h:2227
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2255
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2351
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2263
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2331
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2299
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2343
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2291
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2335
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2315
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2295
uint32_t maxVertexAttributes
Definition webgpu.h:2311
uint32_t maxColorAttachments
Definition webgpu.h:2323
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2319
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2347
uint32_t maxTextureDimension1D
Definition webgpu.h:2231
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2259
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2287
uint64_t maxBufferSize
Definition webgpu.h:2307
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2283
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2339
uint32_t maxVertexBuffers
Definition webgpu.h:2303
uint32_t maxTextureArrayLayers
Definition webgpu.h:2243
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2279
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2275
uint32_t maxImmediateSize
Definition webgpu.h:2355
uint32_t maxBindGroups
Definition webgpu.h:2247
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2413
WGPUChainedStruct * nextInChain
Definition webgpu.h:2401
uint32_t y
Definition webgpu.h:2437
uint32_t z
Definition webgpu.h:2441
uint32_t x
Definition webgpu.h:2433
WGPUQuerySet querySet
Definition webgpu.h:2463
uint32_t endOfPassWriteIndex
Definition webgpu.h:2471
WGPUChainedStruct * nextInChain
Definition webgpu.h:2457
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2467
WGPUChainedStruct * nextInChain
Definition webgpu.h:2488
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2502
WGPUChainedStruct * nextInChain
Definition webgpu.h:1648
WGPUCallbackMode mode
Definition webgpu.h:1654
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1655
WGPUFrontFace frontFace
Definition webgpu.h:2542
WGPUChainedStruct * nextInChain
Definition webgpu.h:2524
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2535
WGPUPrimitiveTopology topology
Definition webgpu.h:2531
WGPUCullMode cullMode
Definition webgpu.h:2549
WGPUBool unclippedDepth
Definition webgpu.h:2553
WGPUQueryType type
Definition webgpu.h:2582
WGPUChainedStruct * nextInChain
Definition webgpu.h:2572
WGPUStringView label
Definition webgpu.h:2578
WGPUChainedStruct * nextInChain
Definition webgpu.h:2603
WGPUStringView label
Definition webgpu.h:2609
WGPUCallbackMode mode
Definition webgpu.h:1678
WGPUChainedStruct * nextInChain
Definition webgpu.h:1672
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1679
WGPUChainedStruct * nextInChain
Definition webgpu.h:2624
WGPUStringView label
Definition webgpu.h:2630
WGPUChainedStruct * nextInChain
Definition webgpu.h:2645
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2659
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2663
WGPUTextureView resolveTarget
Definition webgpu.h:4154
WGPUChainedStruct * nextInChain
Definition webgpu.h:4139
WGPUChainedStruct * nextInChain
Definition webgpu.h:2696
WGPUChainedStruct * nextInChain
Definition webgpu.h:4610
WGPUStringView label
Definition webgpu.h:4616
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4628
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4624
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4632
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4636
WGPUChainedStruct chain
Definition webgpu.h:2762
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4770
WGPUChainedStruct * nextInChain
Definition webgpu.h:4748
WGPUMultisampleState multisample
Definition webgpu.h:4774
WGPUFragmentState const * fragment
Definition webgpu.h:4778
WGPUPrimitiveState primitive
Definition webgpu.h:4766
WGPUPipelineLayout layout
Definition webgpu.h:4758
WGPUVertexState vertex
Definition webgpu.h:4762
WGPURequestAdapterCallback callback
Definition webgpu.h:1703
WGPUChainedStruct * nextInChain
Definition webgpu.h:1696
WGPUFeatureLevel featureLevel
Definition webgpu.h:4197
WGPUBool forceFallbackAdapter
Definition webgpu.h:4208
WGPUSurface compatibleSurface
Definition webgpu.h:4222
WGPUBackendType backendType
Definition webgpu.h:4215
WGPUChainedStruct * nextInChain
Definition webgpu.h:4186
WGPUPowerPreference powerPreference
Definition webgpu.h:4201
WGPUChainedStruct chain
Definition webgpu.h:2786
WGPUCallbackMode mode
Definition webgpu.h:1726
WGPUChainedStruct * nextInChain
Definition webgpu.h:1720
WGPURequestDeviceCallback callback
Definition webgpu.h:1727
WGPUChainedStruct * nextInChain
Definition webgpu.h:2810
WGPUSamplerBindingType type
Definition webgpu.h:2817
WGPUFilterMode minFilter
Definition webgpu.h:2873
WGPUAddressMode addressModeU
Definition webgpu.h:2845
WGPUCompareFunction compare
Definition webgpu.h:2900
WGPUAddressMode addressModeW
Definition webgpu.h:2859
uint16_t maxAnisotropy
Definition webgpu.h:2904
WGPUAddressMode addressModeV
Definition webgpu.h:2852
WGPUStringView label
Definition webgpu.h:2838
WGPUFilterMode magFilter
Definition webgpu.h:2866
WGPUChainedStruct * nextInChain
Definition webgpu.h:2832
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2880
WGPUChainedStruct * nextInChain
Definition webgpu.h:4241
WGPUStringView label
Definition webgpu.h:4247
WGPUChainedStruct chain
Definition webgpu.h:2929
uint32_t const * code
Definition webgpu.h:2937
WGPUChainedStruct chain
Definition webgpu.h:2956
WGPUStringView code
Definition webgpu.h:2962
WGPUCompareFunction compare
Definition webgpu.h:2986
WGPUStencilOperation depthFailOp
Definition webgpu.h:3000
WGPUStencilOperation passOp
Definition webgpu.h:3007
WGPUStencilOperation failOp
Definition webgpu.h:2993
WGPUChainedStruct * nextInChain
Definition webgpu.h:3024
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3042
WGPUTextureFormat format
Definition webgpu.h:3035
WGPUStorageTextureAccess access
Definition webgpu.h:3031
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:3066
WGPUInstanceFeatureName const * features
Definition webgpu.h:3088
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3110
WGPUTextureFormat const * formats
Definition webgpu.h:3144
WGPUChainedStruct * nextInChain
Definition webgpu.h:3127
WGPUPresentMode const * presentModes
Definition webgpu.h:3155
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3166
WGPUTextureUsage usages
Definition webgpu.h:3134
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3197
WGPUChainedStruct chain
Definition webgpu.h:3189
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3193
WGPUTextureUsage usage
Definition webgpu.h:3237
WGPUTextureFormat format
Definition webgpu.h:3231
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3259
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3269
WGPUChainedStruct * nextInChain
Definition webgpu.h:3219
WGPUPresentMode presentMode
Definition webgpu.h:3278
WGPUChainedStruct * nextInChain
Definition webgpu.h:4266
WGPUStringView label
Definition webgpu.h:4274
WGPUChainedStruct chain
Definition webgpu.h:3329
WGPUChainedStruct chain
Definition webgpu.h:3355
WGPUChainedStruct chain
Definition webgpu.h:3388
WGPUChainedStruct chain
Definition webgpu.h:3422
WGPUChainedStruct chain
Definition webgpu.h:3455
WGPUChainedStruct * nextInChain
Definition webgpu.h:3489
WGPUTexture texture
Definition webgpu.h:3496
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3502
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4292
WGPUOrigin3D origin
Definition webgpu.h:4322
WGPUTextureAspect aspect
Definition webgpu.h:4329
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3559
WGPUTextureSampleType sampleType
Definition webgpu.h:3552
WGPUChainedStruct * nextInChain
Definition webgpu.h:3545
WGPUTextureComponentSwizzle swizzle
Definition webgpu.h:4350
WGPUComponentSwizzle r
Definition webgpu.h:3593
WGPUComponentSwizzle a
Definition webgpu.h:3620
WGPUComponentSwizzle g
Definition webgpu.h:3602
WGPUComponentSwizzle b
Definition webgpu.h:3611
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4409
WGPUTextureDimension dimension
Definition webgpu.h:4385
WGPUStringView label
Definition webgpu.h:4374
uint32_t mipLevelCount
Definition webgpu.h:4397
WGPUChainedStruct * nextInChain
Definition webgpu.h:4368
WGPUTextureFormat format
Definition webgpu.h:4393
WGPUTextureUsage usage
Definition webgpu.h:4378
WGPUExtent3D size
Definition webgpu.h:4389
WGPUChainedStruct * nextInChain
Definition webgpu.h:3637
WGPUTextureUsage usage
Definition webgpu.h:3678
WGPUTextureFormat format
Definition webgpu.h:3647
WGPUTextureViewDimension dimension
Definition webgpu.h:3651
WGPUStringView label
Definition webgpu.h:3643
WGPUTextureAspect aspect
Definition webgpu.h:3674
WGPUChainedStruct * nextInChain
Definition webgpu.h:1744
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1745
WGPUVertexFormat format
Definition webgpu.h:3705
WGPUChainedStruct * nextInChain
Definition webgpu.h:3701
uint32_t shaderLocation
Definition webgpu.h:3713
WGPUVertexAttribute const * attributes
Definition webgpu.h:4461
WGPUVertexStepMode stepMode
Definition webgpu.h:4449
WGPUChainedStruct * nextInChain
Definition webgpu.h:4445
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4666
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4682
WGPUConstantEntry const * constants
Definition webgpu.h:4674
size_t constantCount
Definition webgpu.h:4670
size_t bufferCount
Definition webgpu.h:4678
WGPUChainedStruct * nextInChain
Definition webgpu.h:4656