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;
265struct WGPUConstantEntry;
266struct WGPUExtent3D;
269struct WGPUFuture;
270struct WGPUInstanceLimits;
272struct WGPUOrigin3D;
275struct WGPUPrimitiveState;
301struct WGPUSurfaceTexture;
307struct WGPUBindGroupEntry;
309struct WGPUBlendState;
312struct WGPUComputeState;
314struct WGPUFutureWaitInfo;
316struct WGPULimits;
333struct WGPUVertexState;
334struct WGPUFragmentState;
336
337// Callback info structure forward declarations
348
356typedef enum WGPUAdapterType {
361 WGPUAdapterType_Force32 = 0x7FFFFFFF
362} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
363
374
390
415
428
445
452
481
497
506
513
545
572
583
584typedef enum WGPUCullMode {
589 WGPUCullMode_None = 0x00000001,
590 WGPUCullMode_Front = 0x00000002,
591 WGPUCullMode_Back = 0x00000003,
592 WGPUCullMode_Force32 = 0x7FFFFFFF
593} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
594
605
606typedef enum WGPUErrorFilter {
610 WGPUErrorFilter_Force32 = 0x7FFFFFFF
611} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
612
613typedef enum WGPUErrorType {
619 WGPUErrorType_Force32 = 0x7FFFFFFF
620} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
621
625typedef enum WGPUFeatureLevel {
638 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
639} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
640
669
670typedef enum WGPUFilterMode {
677 WGPUFilterMode_Force32 = 0x7FFFFFFF
678} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
679
680typedef enum WGPUFrontFace {
685 WGPUFrontFace_CCW = 0x00000001,
686 WGPUFrontFace_CW = 0x00000002,
687 WGPUFrontFace_Force32 = 0x7FFFFFFF
688} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
689
690typedef enum WGPUIndexFormat {
697 WGPUIndexFormat_Force32 = 0x7FFFFFFF
698} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
699
719
720typedef enum WGPULoadOp {
725 WGPULoadOp_Load = 0x00000001,
726 WGPULoadOp_Clear = 0x00000002,
727 WGPULoadOp_Force32 = 0x7FFFFFFF
728} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
729
740
750
751typedef enum WGPUOptionalBool {
758 WGPUOptionalBool_Force32 = 0x7FFFFFFF
759} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
760
776
786
792
825
838
839typedef enum WGPUQueryType {
842 WGPUQueryType_Force32 = 0x7FFFFFFF
843} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
844
858
869
879
896
902typedef enum WGPUStatus {
903 WGPUStatus_Success = 0x00000001,
904 WGPUStatus_Error = 0x00000002,
905 WGPUStatus_Force32 = 0x7FFFFFFF
906} WGPUStatus WGPU_ENUM_ATTRIBUTE;
907
923
940
941typedef enum WGPUStoreOp {
946 WGPUStoreOp_Store = 0x00000001,
948 WGPUStoreOp_Force32 = 0x7FFFFFFF
949} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
950
970
1001
1012
1023
1024typedef enum WGPUTextureFormat {
1130 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1131} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1132
1151
1165
1171
1172typedef enum WGPUVertexFormat {
1215 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1216} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1217
1227
1231typedef enum WGPUWaitStatus {
1245 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1246} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1247
1265
1282static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1286static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1292static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1296static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1300static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1304static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1308static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1312static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1316static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1320static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1324static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1325
1333static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1334static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1335static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1336static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1337static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1341static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1342
1350static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1351static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1352static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1353
1361static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1362static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1363static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1364static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1365
1373static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1374static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1375static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1376static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1377static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1378static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1380
1383typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1384
1398typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1399
1408typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1409
1416typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1417
1424typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1425
1443typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1444
1462typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1463
1476typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1477
1487typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1488
1498typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1499
1509typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1510
1519typedef struct WGPUChainedStruct {
1522} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1523
1553
1557#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1558 /*.nextInChain=*/NULL _wgpu_COMMA \
1559 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1560 /*.callback=*/NULL _wgpu_COMMA \
1561 /*.userdata1=*/NULL _wgpu_COMMA \
1562 /*.userdata2=*/NULL _wgpu_COMMA \
1563})
1564
1577
1581#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1582 /*.nextInChain=*/NULL _wgpu_COMMA \
1583 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1584 /*.callback=*/NULL _wgpu_COMMA \
1585 /*.userdata1=*/NULL _wgpu_COMMA \
1586 /*.userdata2=*/NULL _wgpu_COMMA \
1587})
1588
1601
1605#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1606 /*.nextInChain=*/NULL _wgpu_COMMA \
1607 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1608 /*.callback=*/NULL _wgpu_COMMA \
1609 /*.userdata1=*/NULL _wgpu_COMMA \
1610 /*.userdata2=*/NULL _wgpu_COMMA \
1611})
1612
1625
1629#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1630 /*.nextInChain=*/NULL _wgpu_COMMA \
1631 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1632 /*.callback=*/NULL _wgpu_COMMA \
1633 /*.userdata1=*/NULL _wgpu_COMMA \
1634 /*.userdata2=*/NULL _wgpu_COMMA \
1635})
1636
1649
1653#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1654 /*.nextInChain=*/NULL _wgpu_COMMA \
1655 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1656 /*.callback=*/NULL _wgpu_COMMA \
1657 /*.userdata1=*/NULL _wgpu_COMMA \
1658 /*.userdata2=*/NULL _wgpu_COMMA \
1659})
1660
1673
1677#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1678 /*.nextInChain=*/NULL _wgpu_COMMA \
1679 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1680 /*.callback=*/NULL _wgpu_COMMA \
1681 /*.userdata1=*/NULL _wgpu_COMMA \
1682 /*.userdata2=*/NULL _wgpu_COMMA \
1683})
1684
1697
1701#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1702 /*.nextInChain=*/NULL _wgpu_COMMA \
1703 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1704 /*.callback=*/NULL _wgpu_COMMA \
1705 /*.userdata1=*/NULL _wgpu_COMMA \
1706 /*.userdata2=*/NULL _wgpu_COMMA \
1707})
1708
1721
1725#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1726 /*.nextInChain=*/NULL _wgpu_COMMA \
1727 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1728 /*.callback=*/NULL _wgpu_COMMA \
1729 /*.userdata1=*/NULL _wgpu_COMMA \
1730 /*.userdata2=*/NULL _wgpu_COMMA \
1731})
1732
1745
1749#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1750 /*.nextInChain=*/NULL _wgpu_COMMA \
1751 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1752 /*.callback=*/NULL _wgpu_COMMA \
1753 /*.userdata1=*/NULL _wgpu_COMMA \
1754 /*.userdata2=*/NULL _wgpu_COMMA \
1755})
1756
1763
1767#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1768 /*.nextInChain=*/NULL _wgpu_COMMA \
1769 /*.callback=*/NULL _wgpu_COMMA \
1770 /*.userdata1=*/NULL _wgpu_COMMA \
1771 /*.userdata2=*/NULL _wgpu_COMMA \
1772})
1773
1830
1834#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1835 /*.nextInChain=*/NULL _wgpu_COMMA \
1836 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1837 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1838 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1839 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1840 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1841 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1842 /*.vendorID=*/0 _wgpu_COMMA \
1843 /*.deviceID=*/0 _wgpu_COMMA \
1844 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1845 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1846})
1847
1874
1878#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1879 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1880 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1881 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1882})
1883
1905
1909#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1910 /*.nextInChain=*/NULL _wgpu_COMMA \
1911 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1912 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1913 /*.minBindingSize=*/0 _wgpu_COMMA \
1914})
1915
1944
1948#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1949 /*.nextInChain=*/NULL _wgpu_COMMA \
1950 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1951 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1952 /*.size=*/0 _wgpu_COMMA \
1953 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1954})
1955
1963typedef struct WGPUColor {
1967 double r;
1971 double g;
1975 double b;
1979 double a;
1980} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1981
1985#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1986 /*.r=*/0. _wgpu_COMMA \
1987 /*.g=*/0. _wgpu_COMMA \
1988 /*.b=*/0. _wgpu_COMMA \
1989 /*.a=*/0. _wgpu_COMMA \
1990})
1991
2004
2008#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
2009 /*.nextInChain=*/NULL _wgpu_COMMA \
2010 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2011})
2012
2025
2029#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2030 /*.nextInChain=*/NULL _wgpu_COMMA \
2031 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2032})
2033
2060
2064#define WGPU_COMPATIBILITY_MODE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompatibilityModeLimits, { \
2065 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2066 /*.next=*/NULL _wgpu_COMMA \
2067 /*.sType=*/WGPUSType_CompatibilityModeLimits _wgpu_COMMA \
2068 }) _wgpu_COMMA \
2069 /*.maxStorageBuffersInVertexStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2070 /*.maxStorageTexturesInVertexStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2071 /*.maxStorageBuffersInFragmentStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2072 /*.maxStorageTexturesInFragmentStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2073})
2074
2122
2126#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2127 /*.nextInChain=*/NULL _wgpu_COMMA \
2128 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2129 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2130 /*.lineNum=*/0 _wgpu_COMMA \
2131 /*.linePos=*/0 _wgpu_COMMA \
2132 /*.offset=*/0 _wgpu_COMMA \
2133 /*.length=*/0 _wgpu_COMMA \
2134})
2135
2156
2160#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2161 /*.nextInChain=*/NULL _wgpu_COMMA \
2162 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2163 /*.value=*/0. _wgpu_COMMA \
2164})
2165
2169typedef struct WGPUExtent3D {
2173 uint32_t width;
2177 uint32_t height;
2182} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2183
2187#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2188 /*.width=*/0 _wgpu_COMMA \
2189 /*.height=*/1 _wgpu_COMMA \
2190 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2191})
2192
2205
2209#define WGPU_EXTERNAL_TEXTURE_BINDING_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingEntry, { \
2210 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2211 /*.next=*/NULL _wgpu_COMMA \
2212 /*.sType=*/WGPUSType_ExternalTextureBindingEntry _wgpu_COMMA \
2213 }) _wgpu_COMMA \
2214 /*.externalTexture=*/NULL _wgpu_COMMA \
2215})
2216
2225
2229#define WGPU_EXTERNAL_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingLayout, { \
2230 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2231 /*.next=*/NULL _wgpu_COMMA \
2232 /*.sType=*/WGPUSType_ExternalTextureBindingLayout _wgpu_COMMA \
2233 }) _wgpu_COMMA \
2234})
2235
2241typedef struct WGPUFuture {
2247 uint64_t id;
2248} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2249
2253#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2254 /*.id=*/0 _wgpu_COMMA \
2255})
2256
2269
2273#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2274 /*.nextInChain=*/NULL _wgpu_COMMA \
2275 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2276})
2277
2296
2300#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2301 /*.nextInChain=*/NULL _wgpu_COMMA \
2302 /*.count=*/1 _wgpu_COMMA \
2303 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2304 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2305})
2306
2310typedef struct WGPUOrigin3D {
2314 uint32_t x;
2318 uint32_t y;
2322 uint32_t z;
2323} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2324
2328#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2329 /*.x=*/0 _wgpu_COMMA \
2330 /*.y=*/0 _wgpu_COMMA \
2331 /*.z=*/0 _wgpu_COMMA \
2332})
2333
2354
2358#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2359 /*.nextInChain=*/NULL _wgpu_COMMA \
2360 /*.querySet=*/NULL _wgpu_COMMA \
2361 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2362 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2363})
2364
2389
2393#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2394 /*.nextInChain=*/NULL _wgpu_COMMA \
2395 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2396 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2397 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2398 /*.immediateSize=*/0 _wgpu_COMMA \
2399})
2400
2436
2440#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2441 /*.nextInChain=*/NULL _wgpu_COMMA \
2442 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2443 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2444 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2445 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2446 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2447})
2448
2469
2473#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2474 /*.nextInChain=*/NULL _wgpu_COMMA \
2475 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2476 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2477 /*.count=*/0 _wgpu_COMMA \
2478})
2479
2492
2496#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2497 /*.nextInChain=*/NULL _wgpu_COMMA \
2498 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2499})
2500
2513
2517#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2518 /*.nextInChain=*/NULL _wgpu_COMMA \
2519 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2520})
2521
2558
2562#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2563 /*.nextInChain=*/NULL _wgpu_COMMA \
2564 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2565 /*.colorFormatCount=*/0 _wgpu_COMMA \
2566 /*.colorFormats=*/NULL _wgpu_COMMA \
2567 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2568 /*.sampleCount=*/1 _wgpu_COMMA \
2569 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2570 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2571})
2572
2622
2626#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2627 /*.nextInChain=*/NULL _wgpu_COMMA \
2628 /*.view=*/NULL _wgpu_COMMA \
2629 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2630 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2631 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2632 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2633 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2634 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2635 /*.stencilClearValue=*/0 _wgpu_COMMA \
2636 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2637})
2638
2649
2653#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2654 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2655 /*.next=*/NULL _wgpu_COMMA \
2656 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2657 }) _wgpu_COMMA \
2658 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2659})
2660
2675
2679#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2680 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2681 /*.next=*/NULL _wgpu_COMMA \
2682 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2683 }) _wgpu_COMMA \
2684 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2685})
2686
2700
2704#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2705 /*.nextInChain=*/NULL _wgpu_COMMA \
2706 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2707})
2708
2787
2791#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2792 /*.nextInChain=*/NULL _wgpu_COMMA \
2793 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2794 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2795 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2796 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2797 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2798 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2799 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2800 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2801 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2802 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2803 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2804})
2805
2814 uint32_t codeSize;
2818 uint32_t const * code;
2819} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2820
2824#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2825 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2826 /*.next=*/NULL _wgpu_COMMA \
2827 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2828 }) _wgpu_COMMA \
2829 /*.codeSize=*/0 _wgpu_COMMA \
2830 /*.code=*/NULL _wgpu_COMMA \
2831})
2832
2845
2849#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2850 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2851 /*.next=*/NULL _wgpu_COMMA \
2852 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2853 }) _wgpu_COMMA \
2854 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2855})
2856
2890
2894#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2895 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2896 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2897 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2898 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2899})
2900
2925
2929#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
2930 /*.nextInChain=*/NULL _wgpu_COMMA \
2931 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
2932 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2933 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
2934})
2935
2948} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
2949
2953#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
2954 /*.featureCount=*/0 _wgpu_COMMA \
2955 /*.features=*/NULL _wgpu_COMMA \
2956})
2957
2971
2975#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
2976 /*.featureCount=*/0 _wgpu_COMMA \
2977 /*.features=*/NULL _wgpu_COMMA \
2978})
2979
2993
2997#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
2998 /*.featureCount=*/0 _wgpu_COMMA \
2999 /*.features=*/NULL _wgpu_COMMA \
3000})
3001
3049
3053#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3054 /*.nextInChain=*/NULL _wgpu_COMMA \
3055 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3056 /*.formatCount=*/0 _wgpu_COMMA \
3057 /*.formats=*/NULL _wgpu_COMMA \
3058 /*.presentModeCount=*/0 _wgpu_COMMA \
3059 /*.presentModes=*/NULL _wgpu_COMMA \
3060 /*.alphaModeCount=*/0 _wgpu_COMMA \
3061 /*.alphaModes=*/NULL _wgpu_COMMA \
3062})
3063
3080
3084#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3085 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3086 /*.next=*/NULL _wgpu_COMMA \
3087 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3088 }) _wgpu_COMMA \
3089 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3090 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3091})
3092
3161
3165#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3166 /*.nextInChain=*/NULL _wgpu_COMMA \
3167 /*.device=*/NULL _wgpu_COMMA \
3168 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3169 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3170 /*.width=*/0 _wgpu_COMMA \
3171 /*.height=*/0 _wgpu_COMMA \
3172 /*.viewFormatCount=*/0 _wgpu_COMMA \
3173 /*.viewFormats=*/NULL _wgpu_COMMA \
3174 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3175 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3176})
3177
3192
3196#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3197 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3198 /*.next=*/NULL _wgpu_COMMA \
3199 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3200 }) _wgpu_COMMA \
3201 /*.window=*/NULL _wgpu_COMMA \
3202})
3203
3218
3222#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3223 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3224 /*.next=*/NULL _wgpu_COMMA \
3225 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3226 }) _wgpu_COMMA \
3227 /*.layer=*/NULL _wgpu_COMMA \
3228})
3229
3250
3254#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3255 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3256 /*.next=*/NULL _wgpu_COMMA \
3257 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3258 }) _wgpu_COMMA \
3259 /*.display=*/NULL _wgpu_COMMA \
3260 /*.surface=*/NULL _wgpu_COMMA \
3261})
3262
3284
3288#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3289 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3290 /*.next=*/NULL _wgpu_COMMA \
3291 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3292 }) _wgpu_COMMA \
3293 /*.hinstance=*/NULL _wgpu_COMMA \
3294 /*.hwnd=*/NULL _wgpu_COMMA \
3295})
3296
3317
3321#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3322 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3323 /*.next=*/NULL _wgpu_COMMA \
3324 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3325 }) _wgpu_COMMA \
3326 /*.connection=*/NULL _wgpu_COMMA \
3327 /*.window=*/0 _wgpu_COMMA \
3328})
3329
3350
3354#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3355 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3356 /*.next=*/NULL _wgpu_COMMA \
3357 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3358 }) _wgpu_COMMA \
3359 /*.display=*/NULL _wgpu_COMMA \
3360 /*.window=*/0 _wgpu_COMMA \
3361})
3362
3385
3389#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3390 /*.nextInChain=*/NULL _wgpu_COMMA \
3391 /*.texture=*/NULL _wgpu_COMMA \
3392 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3393})
3394
3402 uint64_t offset;
3406 uint32_t bytesPerRow;
3411} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3412
3416#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3417 /*.offset=*/0 _wgpu_COMMA \
3418 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3419 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3420})
3421
3446
3450#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3451 /*.nextInChain=*/NULL _wgpu_COMMA \
3452 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3453 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3454 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3455})
3456
3471
3475#define WGPU_TEXTURE_BINDING_VIEW_DIMENSION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingViewDimension, { \
3476 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3477 /*.next=*/NULL _wgpu_COMMA \
3478 /*.sType=*/WGPUSType_TextureBindingViewDimension _wgpu_COMMA \
3479 }) _wgpu_COMMA \
3480 /*.textureBindingViewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3481})
3482
3529
3533#define WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzle, { \
3534 /*.r=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3535 /*.g=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3536 /*.b=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3537 /*.a=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3538})
3539
3558
3562#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3563 /*.nextInChain=*/NULL _wgpu_COMMA \
3564 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3565 /*.offset=*/0 _wgpu_COMMA \
3566 /*.shaderLocation=*/0 _wgpu_COMMA \
3567})
3568
3572typedef struct WGPUBindGroupEntry {
3579 uint32_t binding;
3586 WGPU_NULLABLE WGPUBuffer buffer;
3593 uint64_t offset;
3601 uint64_t size;
3608 WGPU_NULLABLE WGPUSampler sampler;
3616} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
3617
3621#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
3622 /*.nextInChain=*/NULL _wgpu_COMMA \
3623 /*.binding=*/0 _wgpu_COMMA \
3624 /*.buffer=*/NULL _wgpu_COMMA \
3625 /*.offset=*/0 _wgpu_COMMA \
3626 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
3627 /*.sampler=*/NULL _wgpu_COMMA \
3628 /*.textureView=*/NULL _wgpu_COMMA \
3629})
3630
3667
3671#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3672 /*.nextInChain=*/NULL _wgpu_COMMA \
3673 /*.binding=*/0 _wgpu_COMMA \
3674 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3675 /*.bindingArraySize=*/0 _wgpu_COMMA \
3676 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3677 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3678 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3679 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3680})
3681
3695
3699#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3700 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3701 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3702})
3703
3721
3725#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3726 /*.nextInChain=*/NULL _wgpu_COMMA \
3727 /*.messageCount=*/0 _wgpu_COMMA \
3728 /*.messages=*/NULL _wgpu_COMMA \
3729})
3730
3747
3751#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3752 /*.nextInChain=*/NULL _wgpu_COMMA \
3753 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3754 /*.timestampWrites=*/NULL _wgpu_COMMA \
3755})
3756
3781
3785#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3786 /*.nextInChain=*/NULL _wgpu_COMMA \
3787 /*.module=*/NULL _wgpu_COMMA \
3788 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3789 /*.constantCount=*/0 _wgpu_COMMA \
3790 /*.constants=*/NULL _wgpu_COMMA \
3791})
3792
3847
3851#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3852 /*.nextInChain=*/NULL _wgpu_COMMA \
3853 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3854 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3855 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3856 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3857 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3858 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3859 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3860 /*.depthBias=*/0 _wgpu_COMMA \
3861 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3862 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3863})
3864
3884
3888#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3889 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3890 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
3891})
3892
3911
3915#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
3916 /*.nextInChain=*/NULL _wgpu_COMMA \
3917 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3918 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3919 /*.requiredLimits=*/NULL _wgpu_COMMA \
3920})
3921
4056
4060#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
4061 /*.nextInChain=*/NULL _wgpu_COMMA \
4062 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4063 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4064 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4065 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4066 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4067 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4068 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4069 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4070 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4071 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4072 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4073 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4074 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4075 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4076 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4077 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4078 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4079 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4080 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4081 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4082 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4083 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4084 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4085 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4086 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4087 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4088 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4089 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4090 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4091 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4092 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4093 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4094})
4095
4129
4133#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4134 /*.nextInChain=*/NULL _wgpu_COMMA \
4135 /*.view=*/NULL _wgpu_COMMA \
4136 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4137 /*.resolveTarget=*/NULL _wgpu_COMMA \
4138 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4139 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4140 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4141})
4142
4185
4189#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4190 /*.nextInChain=*/NULL _wgpu_COMMA \
4191 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4192 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4193 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4194 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4195 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4196})
4197
4210
4214#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4215 /*.nextInChain=*/NULL _wgpu_COMMA \
4216 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4217})
4218
4237
4241#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4242 /*.nextInChain=*/NULL _wgpu_COMMA \
4243 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4244})
4245
4259
4263#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4264 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4265 /*.buffer=*/NULL _wgpu_COMMA \
4266})
4267
4292
4296#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4297 /*.texture=*/NULL _wgpu_COMMA \
4298 /*.mipLevel=*/0 _wgpu_COMMA \
4299 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4300 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4301})
4302
4313
4317#define WGPU_TEXTURE_COMPONENT_SWIZZLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzleDescriptor, { \
4318 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
4319 /*.next=*/NULL _wgpu_COMMA \
4320 /*.sType=*/WGPUSType_TextureComponentSwizzleDescriptor _wgpu_COMMA \
4321 }) _wgpu_COMMA \
4322 /*.swizzle=*/WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_COMMA \
4323})
4324
4372
4376#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4377 /*.nextInChain=*/NULL _wgpu_COMMA \
4378 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4379 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4380 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4381 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4382 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4383 /*.mipLevelCount=*/1 _wgpu_COMMA \
4384 /*.sampleCount=*/1 _wgpu_COMMA \
4385 /*.viewFormatCount=*/0 _wgpu_COMMA \
4386 /*.viewFormats=*/NULL _wgpu_COMMA \
4387})
4388
4424
4428#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4429 /*.nextInChain=*/NULL _wgpu_COMMA \
4430 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4431 /*.arrayStride=*/0 _wgpu_COMMA \
4432 /*.attributeCount=*/0 _wgpu_COMMA \
4433 /*.attributes=*/NULL _wgpu_COMMA \
4434})
4435
4460
4464#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
4465 /*.nextInChain=*/NULL _wgpu_COMMA \
4466 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4467 /*.layout=*/NULL _wgpu_COMMA \
4468 /*.entryCount=*/0 _wgpu_COMMA \
4469 /*.entries=*/NULL _wgpu_COMMA \
4470})
4471
4492
4496#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4497 /*.nextInChain=*/NULL _wgpu_COMMA \
4498 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4499 /*.entryCount=*/0 _wgpu_COMMA \
4500 /*.entries=*/NULL _wgpu_COMMA \
4501})
4502
4525
4529#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4530 /*.nextInChain=*/NULL _wgpu_COMMA \
4531 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4532 /*.blend=*/NULL _wgpu_COMMA \
4533 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4534})
4535
4556
4560#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4561 /*.nextInChain=*/NULL _wgpu_COMMA \
4562 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4563 /*.layout=*/NULL _wgpu_COMMA \
4564 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4565})
4566
4608
4612#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4613 /*.nextInChain=*/NULL _wgpu_COMMA \
4614 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4615 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4616 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4617 /*.requiredLimits=*/NULL _wgpu_COMMA \
4618 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4619 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4620 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4621})
4622
4655
4659#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4660 /*.nextInChain=*/NULL _wgpu_COMMA \
4661 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4662 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4663 /*.colorAttachments=*/NULL _wgpu_COMMA \
4664 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4665 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4666 /*.timestampWrites=*/NULL _wgpu_COMMA \
4667})
4668
4716
4720#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
4721 /*.nextInChain=*/NULL _wgpu_COMMA \
4722 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4723 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4724 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
4725 /*.baseMipLevel=*/0 _wgpu_COMMA \
4726 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
4727 /*.baseArrayLayer=*/0 _wgpu_COMMA \
4728 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
4729 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4730 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4731})
4732
4765
4769#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4770 /*.nextInChain=*/NULL _wgpu_COMMA \
4771 /*.module=*/NULL _wgpu_COMMA \
4772 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4773 /*.constantCount=*/0 _wgpu_COMMA \
4774 /*.constants=*/NULL _wgpu_COMMA \
4775 /*.bufferCount=*/0 _wgpu_COMMA \
4776 /*.buffers=*/NULL _wgpu_COMMA \
4777})
4778
4811
4815#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4816 /*.nextInChain=*/NULL _wgpu_COMMA \
4817 /*.module=*/NULL _wgpu_COMMA \
4818 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4819 /*.constantCount=*/0 _wgpu_COMMA \
4820 /*.constants=*/NULL _wgpu_COMMA \
4821 /*.targetCount=*/0 _wgpu_COMMA \
4822 /*.targets=*/NULL _wgpu_COMMA \
4823})
4824
4861
4865#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4866 /*.nextInChain=*/NULL _wgpu_COMMA \
4867 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4868 /*.layout=*/NULL _wgpu_COMMA \
4869 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4870 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4871 /*.depthStencil=*/NULL _wgpu_COMMA \
4872 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4873 /*.fragment=*/NULL _wgpu_COMMA \
4874})
4875
4878#ifdef __cplusplus
4879extern "C" {
4880#endif
4881
4882#if !defined(WGPU_SKIP_PROCS)
4883// Global procs
4888typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4893typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4898typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4903typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4908typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4909
4910
4911// Procs of Adapter
4916typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4921typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4926typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4931typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4936typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4941typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4946typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4947
4948// Procs of AdapterInfo
4953typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4954
4955// Procs of BindGroup
4960typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4965typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4970typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4971
4972// Procs of BindGroupLayout
4977typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4982typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4987typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4988
4989// Procs of Buffer
4994typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4999typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5004typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5009typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5014typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5019typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5024typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5029typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5034typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5039typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5044typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5049typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5054typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5055
5056// Procs of CommandBuffer
5061typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5066typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5071typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5072
5073// Procs of CommandEncoder
5078typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5083typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5088typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5093typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5098typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5103typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5108typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5113typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5118typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5123typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5128typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5133typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5138typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5143typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5148typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5153typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5154
5155// Procs of ComputePassEncoder
5160typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5165typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5170typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5175typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5180typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5185typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5190typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5195typedef void (*WGPUProcComputePassEncoderSetImmediates)(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5200typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5205typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5210typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5215typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5216
5217// Procs of ComputePipeline
5222typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5227typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5232typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5237typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5238
5239// Procs of Device
5244typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5249typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5254typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5259typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5264typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5269typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5274typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5279typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5284typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5289typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5294typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5299typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5304typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5309typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5314typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5319typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5324typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5329typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5334typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5339typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5344typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5349typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5354typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5359typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5364typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5369typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5370
5371// Procs of ExternalTexture
5376typedef void (*WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5381typedef void (*WGPUProcExternalTextureAddRef)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5386typedef void (*WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5387
5388// Procs of Instance
5393typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5398typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5403typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5408typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5413typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5418typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5423typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5428typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5429
5430// Procs of PipelineLayout
5435typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5440typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5445typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5446
5447// Procs of QuerySet
5452typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5457typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5462typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5467typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5472typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5477typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5478
5479// Procs of Queue
5484typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5489typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5494typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5499typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5504typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5509typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5514typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5515
5516// Procs of RenderBundle
5521typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5526typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5531typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5532
5533// Procs of RenderBundleEncoder
5538typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5543typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5548typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5553typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5558typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5563typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5568typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5573typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5578typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5583typedef void (*WGPUProcRenderBundleEncoderSetImmediates)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5588typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5593typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5598typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5603typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5608typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5613typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5614
5615// Procs of RenderPassEncoder
5620typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5625typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5630typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5635typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5640typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5645typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5650typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5655typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5660typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5665typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5670typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5675typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5680typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5685typedef void (*WGPUProcRenderPassEncoderSetImmediates)(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5690typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5695typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5700typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5705typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5710typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5715typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5720typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5725typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5730typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5731
5732// Procs of RenderPipeline
5737typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5742typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5747typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5752typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5753
5754// Procs of Sampler
5759typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5764typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5769typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5770
5771// Procs of ShaderModule
5776typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5781typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5786typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5791typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5792
5793// Procs of SupportedFeatures
5798typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5799
5800// Procs of SupportedInstanceFeatures
5805typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5806
5807// Procs of SupportedWGSLLanguageFeatures
5812typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5813
5814// Procs of Surface
5819typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5824typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5829typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5834typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5839typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5844typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5849typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5854typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5855
5856// Procs of SurfaceCapabilities
5861typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5862
5863// Procs of Texture
5868typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5873typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5878typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5883typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5888typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5893typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5898typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5903typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5908typedef WGPUTextureViewDimension (*WGPUProcTextureGetTextureBindingViewDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5913typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5918typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5923typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5928typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5933typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5934
5935// Procs of TextureView
5940typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5945typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5950typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5951
5952#endif // !defined(WGPU_SKIP_PROCS)
5953
5954#if !defined(WGPU_SKIP_DECLARATIONS)
5967WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5974WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5981WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5985WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5990WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5991
6013WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6021WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
6026WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6027WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6028WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6029WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
6030WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
6031
6043WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6044
6053WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6054WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
6055WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
6056
6065WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6066WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
6067WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
6068
6077WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6095WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6112WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6113WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6114WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6115WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6127WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6148WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6149WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6150WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6171WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6172WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6173WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6174
6183WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6184WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6185WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6186
6199WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6204WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6205WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6206WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6207WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6208WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6209WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6214WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6215WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6216WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6217WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6218WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
6219WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6220WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6221WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6222WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6223
6232WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
6233WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6234WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6235WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6236WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6237WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6238WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT void wgpuComputePassEncoderSetImmediates(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6241WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6242WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6243WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6244
6257WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6258WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6259WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6260WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6261
6274WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6279WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6289WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6294WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6299WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6305WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6310WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6320WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6326WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6331WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6336WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6337WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6345WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6352WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6357WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6362WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6367WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6368WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6373WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6378WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6379WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6380WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6381WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6382
6391WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6392WGPU_EXPORT void wgpuExternalTextureAddRef(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6393WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6394
6413WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6417WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6418WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6424WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6425WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6431WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6432WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6433WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6434
6443WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6444WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6445WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6446
6455WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6456WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6457WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6458WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6459WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6460WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6461
6470WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6471WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6472WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6477WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6478WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6479WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6480WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6481
6490WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6491WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6492WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6493
6502WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6503WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6504WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6505WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6510WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6511WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6512WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6513WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6514WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6515WGPU_EXPORT void wgpuRenderBundleEncoderSetImmediates(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6516WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6517WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6518WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6519WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6520WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6521WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6522
6531WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6532WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6533WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6534WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6535WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6536WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6537WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6538WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6539WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6540WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6541WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6542WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6547WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6548WGPU_EXPORT void wgpuRenderPassEncoderSetImmediates(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6549WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6550WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6551WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6552WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6553WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6554WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6560WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6561WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6562WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6563
6576WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6577WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6578WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6579WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6580
6589WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6590WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6591WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6592
6601WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6602WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6603WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6604WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6605
6617WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6618
6630WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6631
6643WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6644
6662WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6678WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6688WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6696WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6703WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6708WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6709WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6710WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6711
6723WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6724
6737WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6738WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6739WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6740WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6741WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6742WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6743WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6744WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6746WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6747WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6748WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6749WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6750WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6751
6760WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6761WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6762WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6763
6768#endif // !defined(WGPU_SKIP_DECLARATIONS)
6769
6770#ifdef __cplusplus
6771} // extern "C"
6772#endif
6773
6774#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1336
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1320
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1329
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1316
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1337
static const WGPUTextureUsage WGPUTextureUsage_TransientAttachment
Definition webgpu.h:1379
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1286
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1304
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1282
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1350
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1373
WGPUFlags WGPUMapMode
Definition webgpu.h:1346
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1376
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1341
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1374
WGPUFlags WGPUShaderStage
Definition webgpu.h:1357
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1324
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1363
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1364
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1352
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1361
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1378
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1292
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1375
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1296
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1377
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1369
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1312
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1351
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1335
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1308
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1362
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1333
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1334
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1278
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1300
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1509
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1498
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1416
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1443
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1424
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1408
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1487
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1398
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1476
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1462
WGPUIndexFormat
Definition webgpu.h:690
WGPURequestAdapterStatus
Definition webgpu.h:859
WGPUFeatureName
Definition webgpu.h:641
WGPUVertexFormat
Definition webgpu.h:1172
WGPUSType
Definition webgpu.h:951
WGPUBufferBindingType
Definition webgpu.h:429
WGPUDeviceLostReason
Definition webgpu.h:595
WGPUCompareFunction
Definition webgpu.h:482
WGPUCullMode
Definition webgpu.h:584
WGPUTextureDimension
Definition webgpu.h:1013
WGPURequestDeviceStatus
Definition webgpu.h:870
WGPUCompilationMessageType
Definition webgpu.h:507
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:573
WGPUTextureViewDimension
Definition webgpu.h:1152
WGPUPrimitiveTopology
Definition webgpu.h:826
WGPUTextureFormat
Definition webgpu.h:1024
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1248
WGPUStencilOperation
Definition webgpu.h:908
WGPUAddressMode
Definition webgpu.h:364
WGPUToneMappingMode
Definition webgpu.h:1166
WGPUTextureAspect
Definition webgpu.h:1002
WGPUBufferMapState
Definition webgpu.h:446
WGPUFilterMode
Definition webgpu.h:670
WGPUBackendType
Definition webgpu.h:375
WGPUBlendFactor
Definition webgpu.h:391
WGPUSamplerBindingType
Definition webgpu.h:880
WGPULoadOp
Definition webgpu.h:720
WGPUPopErrorScopeStatus
Definition webgpu.h:761
WGPUWaitStatus
Definition webgpu.h:1231
WGPUStorageTextureAccess
Definition webgpu.h:924
WGPUPowerPreference
Definition webgpu.h:777
WGPUPresentMode
Definition webgpu.h:796
WGPUMapAsyncStatus
Definition webgpu.h:730
WGPUBlendOperation
Definition webgpu.h:416
WGPUCompositeAlphaMode
Definition webgpu.h:549
WGPUPredefinedColorSpace
Definition webgpu.h:787
WGPUQueueWorkDoneStatus
Definition webgpu.h:845
WGPUComponentSwizzle
Definition webgpu.h:514
WGPUVertexStepMode
Definition webgpu.h:1218
WGPUQueryType
Definition webgpu.h:839
WGPUFeatureLevel
Definition webgpu.h:625
WGPUAdapterType
Definition webgpu.h:356
WGPUInstanceFeatureName
Definition webgpu.h:700
WGPUStatus
Definition webgpu.h:902
WGPUCompilationInfoRequestStatus
Definition webgpu.h:498
WGPUMipmapFilterMode
Definition webgpu.h:741
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:974
WGPUFrontFace
Definition webgpu.h:680
WGPUStoreOp
Definition webgpu.h:941
WGPUErrorFilter
Definition webgpu.h:606
WGPUOptionalBool
Definition webgpu.h:751
WGPUCallbackMode
Definition webgpu.h:456
WGPUTextureSampleType
Definition webgpu.h:1133
WGPUErrorType
Definition webgpu.h:613
@ WGPUIndexFormat_Force32
Definition webgpu.h:697
@ WGPUIndexFormat_Uint16
Definition webgpu.h:695
@ WGPUIndexFormat_Undefined
Definition webgpu.h:694
@ WGPUIndexFormat_Uint32
Definition webgpu.h:696
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:865
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:860
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:866
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:864
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:867
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:648
@ WGPUFeatureName_AtomicVec2uMinMax
Definition webgpu.h:666
@ WGPUFeatureName_Subgroups
Definition webgpu.h:659
@ WGPUFeatureName_Force32
Definition webgpu.h:667
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:657
@ WGPUFeatureName_PrimitiveIndex
Definition webgpu.h:662
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:644
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:653
@ WGPUFeatureName_TextureFormatsTier1
Definition webgpu.h:660
@ WGPUFeatureName_TextureCompressionUnaligned
Definition webgpu.h:665
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:654
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:656
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:658
@ WGPUFeatureName_TextureComponentSwizzle
Definition webgpu.h:663
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:649
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:646
@ WGPUFeatureName_CoreFeaturesAndLimits
Definition webgpu.h:642
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:652
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:655
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:650
@ WGPUFeatureName_SubgroupSizeControl
Definition webgpu.h:664
@ WGPUFeatureName_TextureFormatsTier2
Definition webgpu.h:661
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:645
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:647
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:651
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:643
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1211
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1201
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1209
@ WGPUVertexFormat_Float32
Definition webgpu.h:1200
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1199
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1187
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1183
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1175
@ WGPUVertexFormat_Snorm10_10_10_2
Definition webgpu.h:1214
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1177
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1179
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1181
@ WGPUVertexFormat_Force32
Definition webgpu.h:1215
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1174
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1203
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1198
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1204
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1182
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1176
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1207
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1213
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1208
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1185
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1205
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1206
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1194
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1190
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1212
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1192
@ WGPUVertexFormat_Float16
Definition webgpu.h:1197
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1180
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1210
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1189
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1184
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1173
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1178
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1191
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1188
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1186
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1195
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1193
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1202
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1196
@ WGPUSType_Force32
Definition webgpu.h:968
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:958
@ WGPUSType_TextureComponentSwizzleDescriptor
Definition webgpu.h:963
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:952
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:961
@ WGPUSType_TextureBindingViewDimension
Definition webgpu.h:967
@ WGPUSType_ExternalTextureBindingEntry
Definition webgpu.h:965
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:959
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:960
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:956
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:954
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:955
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:962
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:953
@ WGPUSType_CompatibilityModeLimits
Definition webgpu.h:966
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:957
@ WGPUSType_ExternalTextureBindingLayout
Definition webgpu.h:964
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:435
@ WGPUBufferBindingType_Storage
Definition webgpu.h:441
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:439
@ WGPUBufferBindingType_Force32
Definition webgpu.h:443
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:442
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:440
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:602
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:597
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:601
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:603
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:596
@ WGPUCompareFunction_Force32
Definition webgpu.h:495
@ WGPUCompareFunction_Always
Definition webgpu.h:494
@ WGPUCompareFunction_Never
Definition webgpu.h:487
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:492
@ WGPUCompareFunction_Less
Definition webgpu.h:488
@ WGPUCompareFunction_Undefined
Definition webgpu.h:486
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:493
@ WGPUCompareFunction_Equal
Definition webgpu.h:489
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:490
@ WGPUCompareFunction_Greater
Definition webgpu.h:491
@ WGPUCullMode_Force32
Definition webgpu.h:592
@ WGPUCullMode_Undefined
Definition webgpu.h:588
@ WGPUCullMode_Back
Definition webgpu.h:591
@ WGPUCullMode_Front
Definition webgpu.h:590
@ WGPUCullMode_None
Definition webgpu.h:589
@ WGPUTextureDimension_Undefined
Definition webgpu.h:1017
@ WGPUTextureDimension_2D
Definition webgpu.h:1019
@ WGPUTextureDimension_Force32
Definition webgpu.h:1021
@ WGPUTextureDimension_3D
Definition webgpu.h:1020
@ WGPUTextureDimension_1D
Definition webgpu.h:1018
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:875
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:871
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:876
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:877
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:511
@ WGPUCompilationMessageType_Info
Definition webgpu.h:510
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:509
@ WGPUCompilationMessageType_Error
Definition webgpu.h:508
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:581
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:579
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:578
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:574
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:580
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1160
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1159
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1158
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1162
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1157
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1161
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1156
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1163
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:832
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:833
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:830
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:834
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:831
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:835
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:836
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1126
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1087
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1090
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:1050
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:1038
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1092
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1102
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1095
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1099
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1085
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:1052
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1120
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:1056
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1110
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1094
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1122
@ WGPUTextureFormat_RG16Unorm
Definition webgpu.h:1045
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1116
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1069
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1088
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1063
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1068
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1124
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1077
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:1039
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1127
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1074
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:1048
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1100
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1093
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1089
@ WGPUTextureFormat_R32Float
Definition webgpu.h:1042
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1091
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:1036
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:1032
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:1051
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1083
@ WGPUTextureFormat_RGBA16Unorm
Definition webgpu.h:1064
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:1053
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1101
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1066
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1125
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:1058
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1119
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1106
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:1043
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1097
@ WGPUTextureFormat_RG16Snorm
Definition webgpu.h:1046
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1104
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1082
@ WGPUTextureFormat_R16Unorm
Definition webgpu.h:1033
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:1055
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1084
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1086
@ WGPUTextureFormat_Force32
Definition webgpu.h:1130
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1078
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1107
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1115
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:1044
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1081
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1070
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1072
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1098
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1111
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:1047
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1123
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1060
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1073
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:1041
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1117
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:1035
@ WGPUTextureFormat_Undefined
Definition webgpu.h:1028
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1121
@ WGPUTextureFormat_R16Float
Definition webgpu.h:1037
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1105
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1061
@ WGPUTextureFormat_RGBA16Snorm
Definition webgpu.h:1065
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1059
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1129
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1071
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1079
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:1049
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1108
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1075
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1118
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1067
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:1029
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1076
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1080
@ WGPUTextureFormat_R16Snorm
Definition webgpu.h:1034
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1114
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:1040
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:1031
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1112
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1128
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:1057
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1103
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1096
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1062
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1113
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:1054
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:1030
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1109
@ WGPUWGSLLanguageFeatureName_BufferView
Definition webgpu.h:1260
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1249
@ WGPUWGSLLanguageFeatureName_LinearIndexing
Definition webgpu.h:1258
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1251
@ WGPUWGSLLanguageFeatureName_ImmediateAddressSpace
Definition webgpu.h:1259
@ WGPUWGSLLanguageFeatureName_FragmentDepth
Definition webgpu.h:1262
@ WGPUWGSLLanguageFeatureName_TextureAndSamplerLet
Definition webgpu.h:1255
@ WGPUWGSLLanguageFeatureName_TextureFormatsTier1
Definition webgpu.h:1257
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1252
@ WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout
Definition webgpu.h:1253
@ WGPUWGSLLanguageFeatureName_SubgroupId
Definition webgpu.h:1254
@ WGPUWGSLLanguageFeatureName_SwizzleAssignment
Definition webgpu.h:1261
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1263
@ WGPUWGSLLanguageFeatureName_SubgroupUniformity
Definition webgpu.h:1256
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1250
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:918
@ WGPUStencilOperation_Undefined
Definition webgpu.h:912
@ WGPUStencilOperation_Replace
Definition webgpu.h:915
@ WGPUStencilOperation_Keep
Definition webgpu.h:913
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:920
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:919
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:917
@ WGPUStencilOperation_Invert
Definition webgpu.h:916
@ WGPUStencilOperation_Force32
Definition webgpu.h:921
@ WGPUStencilOperation_Zero
Definition webgpu.h:914
@ WGPUAddressMode_Repeat
Definition webgpu.h:370
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:371
@ WGPUAddressMode_Undefined
Definition webgpu.h:368
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:369
@ WGPUAddressMode_Force32
Definition webgpu.h:372
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1169
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1167
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1168
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:1009
@ WGPUTextureAspect_Force32
Definition webgpu.h:1010
@ WGPUTextureAspect_Undefined
Definition webgpu.h:1006
@ WGPUTextureAspect_All
Definition webgpu.h:1007
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:1008
@ WGPUBufferMapState_Pending
Definition webgpu.h:448
@ WGPUBufferMapState_Mapped
Definition webgpu.h:449
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:447
@ WGPUBufferMapState_Force32
Definition webgpu.h:450
@ WGPUFilterMode_Undefined
Definition webgpu.h:674
@ WGPUFilterMode_Force32
Definition webgpu.h:677
@ WGPUFilterMode_Nearest
Definition webgpu.h:675
@ WGPUFilterMode_Linear
Definition webgpu.h:676
@ WGPUBackendType_Vulkan
Definition webgpu.h:385
@ WGPUBackendType_OpenGL
Definition webgpu.h:386
@ WGPUBackendType_Force32
Definition webgpu.h:388
@ WGPUBackendType_OpenGLES
Definition webgpu.h:387
@ WGPUBackendType_WebGPU
Definition webgpu.h:381
@ WGPUBackendType_D3D11
Definition webgpu.h:382
@ WGPUBackendType_D3D12
Definition webgpu.h:383
@ WGPUBackendType_Undefined
Definition webgpu.h:379
@ WGPUBackendType_Null
Definition webgpu.h:380
@ WGPUBackendType_Metal
Definition webgpu.h:384
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:404
@ WGPUBlendFactor_One
Definition webgpu.h:397
@ WGPUBlendFactor_Zero
Definition webgpu.h:396
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:411
@ WGPUBlendFactor_Undefined
Definition webgpu.h:395
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:403
@ WGPUBlendFactor_Force32
Definition webgpu.h:413
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:410
@ WGPUBlendFactor_Constant
Definition webgpu.h:407
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:399
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:406
@ WGPUBlendFactor_Src
Definition webgpu.h:398
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:401
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:400
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:408
@ WGPUBlendFactor_Src1
Definition webgpu.h:409
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:405
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:412
@ WGPUBlendFactor_Dst
Definition webgpu.h:402
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:886
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:892
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:894
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:891
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:890
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:893
@ WGPULoadOp_Load
Definition webgpu.h:725
@ WGPULoadOp_Force32
Definition webgpu.h:727
@ WGPULoadOp_Undefined
Definition webgpu.h:724
@ WGPULoadOp_Clear
Definition webgpu.h:726
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:774
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:765
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:769
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:773
@ WGPUWaitStatus_Error
Definition webgpu.h:1244
@ WGPUWaitStatus_Force32
Definition webgpu.h:1245
@ WGPUWaitStatus_Success
Definition webgpu.h:1235
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1239
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:934
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:930
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:936
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:935
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:938
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:937
@ WGPUPowerPreference_Force32
Definition webgpu.h:784
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:783
@ WGPUPowerPreference_LowPower
Definition webgpu.h:782
@ WGPUPowerPreference_Undefined
Definition webgpu.h:781
@ WGPUPresentMode_Fifo
Definition webgpu.h:806
@ WGPUPresentMode_Force32
Definition webgpu.h:823
@ WGPUPresentMode_Immediate
Definition webgpu.h:817
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:812
@ WGPUPresentMode_Mailbox
Definition webgpu.h:822
@ WGPUPresentMode_Undefined
Definition webgpu.h:800
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:737
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:735
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:736
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:738
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:731
@ WGPUBlendOperation_Undefined
Definition webgpu.h:420
@ WGPUBlendOperation_Max
Definition webgpu.h:425
@ WGPUBlendOperation_Subtract
Definition webgpu.h:422
@ WGPUBlendOperation_Min
Definition webgpu.h:424
@ WGPUBlendOperation_Add
Definition webgpu.h:421
@ WGPUBlendOperation_Force32
Definition webgpu.h:426
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:423
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:553
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:570
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:557
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:565
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:569
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:561
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:789
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:788
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:790
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:855
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:850
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:846
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:856
@ WGPUComponentSwizzle_A
Definition webgpu.h:542
@ WGPUComponentSwizzle_Force32
Definition webgpu.h:543
@ WGPUComponentSwizzle_G
Definition webgpu.h:534
@ WGPUComponentSwizzle_R
Definition webgpu.h:530
@ WGPUComponentSwizzle_B
Definition webgpu.h:538
@ WGPUComponentSwizzle_Zero
Definition webgpu.h:522
@ WGPUComponentSwizzle_One
Definition webgpu.h:526
@ WGPUComponentSwizzle_Undefined
Definition webgpu.h:518
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1222
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1224
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1223
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1225
@ WGPUQueryType_Occlusion
Definition webgpu.h:840
@ WGPUQueryType_Timestamp
Definition webgpu.h:841
@ WGPUQueryType_Force32
Definition webgpu.h:842
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:629
@ WGPUFeatureLevel_Core
Definition webgpu.h:637
@ WGPUFeatureLevel_Force32
Definition webgpu.h:638
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:633
@ WGPUAdapterType_CPU
Definition webgpu.h:359
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:357
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:358
@ WGPUAdapterType_Unknown
Definition webgpu.h:360
@ WGPUAdapterType_Force32
Definition webgpu.h:361
@ WGPUInstanceFeatureName_ShaderSourceSPIRV
Definition webgpu.h:709
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:717
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
Definition webgpu.h:716
@ WGPUInstanceFeatureName_TimedWaitAny
Definition webgpu.h:704
@ WGPUStatus_Force32
Definition webgpu.h:905
@ WGPUStatus_Success
Definition webgpu.h:903
@ WGPUStatus_Error
Definition webgpu.h:904
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:504
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:499
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:503
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:745
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:747
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:748
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:746
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:994
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:998
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:990
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:986
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:978
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:999
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:982
@ WGPUFrontFace_CW
Definition webgpu.h:686
@ WGPUFrontFace_Undefined
Definition webgpu.h:684
@ WGPUFrontFace_CCW
Definition webgpu.h:685
@ WGPUFrontFace_Force32
Definition webgpu.h:687
@ WGPUStoreOp_Discard
Definition webgpu.h:947
@ WGPUStoreOp_Force32
Definition webgpu.h:948
@ WGPUStoreOp_Store
Definition webgpu.h:946
@ WGPUStoreOp_Undefined
Definition webgpu.h:945
@ WGPUErrorFilter_Internal
Definition webgpu.h:609
@ WGPUErrorFilter_Force32
Definition webgpu.h:610
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:608
@ WGPUErrorFilter_Validation
Definition webgpu.h:607
@ WGPUOptionalBool_True
Definition webgpu.h:756
@ WGPUOptionalBool_Force32
Definition webgpu.h:758
@ WGPUOptionalBool_Undefined
Definition webgpu.h:757
@ WGPUOptionalBool_False
Definition webgpu.h:755
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:468
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:478
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:462
@ WGPUCallbackMode_Force32
Definition webgpu.h:479
@ WGPUTextureSampleType_Float
Definition webgpu.h:1144
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1147
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1139
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1143
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1149
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1148
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1146
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1145
@ WGPUErrorType_NoError
Definition webgpu.h:614
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:616
@ WGPUErrorType_Unknown
Definition webgpu.h:618
@ WGPUErrorType_Validation
Definition webgpu.h:615
@ WGPUErrorType_Force32
Definition webgpu.h:619
@ WGPUErrorType_Internal
Definition webgpu.h:617
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 wgpuComputePassEncoderSetImmediates(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const *data, size_t size)
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 wgpuRenderBundleEncoderSetImmediates(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const *data, size_t size)
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 wgpuRenderPassEncoderSetImmediates(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const *data, size_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:1798
WGPUBackendType backendType
Definition webgpu.h:1808
uint32_t deviceID
Definition webgpu.h:1820
WGPUChainedStruct * nextInChain
Definition webgpu.h:1780
uint32_t subgroupMinSize
Definition webgpu.h:1824
uint32_t vendorID
Definition webgpu.h:1816
WGPUStringView description
Definition webgpu.h:1804
WGPUAdapterType adapterType
Definition webgpu.h:1812
uint32_t subgroupMaxSize
Definition webgpu.h:1828
WGPUStringView architecture
Definition webgpu.h:1792
WGPUStringView vendor
Definition webgpu.h:1786
WGPUChainedStruct * nextInChain
Definition webgpu.h:4440
WGPUStringView label
Definition webgpu.h:4446
WGPUBindGroupLayout layout
Definition webgpu.h:4450
WGPUBindGroupEntry const * entries
Definition webgpu.h:4458
uint64_t offset
Definition webgpu.h:3593
WGPUBuffer buffer
Definition webgpu.h:3586
WGPUSampler sampler
Definition webgpu.h:3608
WGPUTextureView textureView
Definition webgpu.h:3615
WGPUChainedStruct * nextInChain
Definition webgpu.h:3573
uint32_t binding
Definition webgpu.h:3579
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4490
WGPUChainedStruct * nextInChain
Definition webgpu.h:4476
WGPUTextureBindingLayout texture
Definition webgpu.h:3661
WGPUShaderStage visibility
Definition webgpu.h:3643
WGPUBufferBindingLayout buffer
Definition webgpu.h:3653
WGPUChainedStruct * nextInChain
Definition webgpu.h:3635
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3665
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3657
WGPUBlendFactor dstFactor
Definition webgpu.h:1872
WGPUBlendFactor srcFactor
Definition webgpu.h:1865
WGPUBlendOperation operation
Definition webgpu.h:1858
WGPUBlendComponent alpha
Definition webgpu.h:3693
WGPUBlendComponent color
Definition webgpu.h:3689
WGPUBufferBindingType type
Definition webgpu.h:1895
WGPUBool hasDynamicOffset
Definition webgpu.h:1899
WGPUChainedStruct * nextInChain
Definition webgpu.h:1888
WGPUBool mappedAtCreation
Definition webgpu.h:1942
WGPUStringView label
Definition webgpu.h:1926
WGPUBufferUsage usage
Definition webgpu.h:1930
WGPUChainedStruct * nextInChain
Definition webgpu.h:1920
WGPUChainedStruct * nextInChain
Definition webgpu.h:1542
WGPUBufferMapCallback callback
Definition webgpu.h:1549
WGPUCallbackMode mode
Definition webgpu.h:1548
struct WGPUChainedStruct * next
Definition webgpu.h:1520
WGPUSType sType
Definition webgpu.h:1521
WGPUBlendState const * blend
Definition webgpu.h:4519
WGPUColorWriteMask writeMask
Definition webgpu.h:4523
WGPUChainedStruct * nextInChain
Definition webgpu.h:4507
WGPUTextureFormat format
Definition webgpu.h:4515
double a
Definition webgpu.h:1979
double b
Definition webgpu.h:1975
double r
Definition webgpu.h:1967
double g
Definition webgpu.h:1971
WGPUChainedStruct * nextInChain
Definition webgpu.h:1996
WGPUChainedStruct * nextInChain
Definition webgpu.h:2017
uint32_t maxStorageBuffersInVertexStage
Definition webgpu.h:2046
uint32_t maxStorageBuffersInFragmentStage
Definition webgpu.h:2054
uint32_t maxStorageTexturesInFragmentStage
Definition webgpu.h:2058
uint32_t maxStorageTexturesInVertexStage
Definition webgpu.h:2050
WGPUChainedStruct chain
Definition webgpu.h:2042
WGPUCompilationInfoCallback callback
Definition webgpu.h:1573
WGPUChainedStruct * nextInChain
Definition webgpu.h:1566
WGPUChainedStruct * nextInChain
Definition webgpu.h:3711
WGPUCompilationMessage const * messages
Definition webgpu.h:3719
WGPUChainedStruct * nextInChain
Definition webgpu.h:2082
WGPUCompilationMessageType type
Definition webgpu.h:2096
WGPUStringView message
Definition webgpu.h:2090
WGPUStringView label
Definition webgpu.h:3741
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3745
WGPUChainedStruct * nextInChain
Definition webgpu.h:3735
WGPUComputeState compute
Definition webgpu.h:4554
WGPUChainedStruct * nextInChain
Definition webgpu.h:4540
WGPUPipelineLayout layout
Definition webgpu.h:4550
WGPUChainedStruct * nextInChain
Definition webgpu.h:3761
WGPUConstantEntry const * constants
Definition webgpu.h:3779
size_t constantCount
Definition webgpu.h:3775
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3771
WGPUStringView key
Definition webgpu.h:2146
WGPUChainedStruct * nextInChain
Definition webgpu.h:2140
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1597
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1621
WGPUStencilFaceState stencilFront
Definition webgpu.h:3813
uint32_t stencilWriteMask
Definition webgpu.h:3825
WGPUStencilFaceState stencilBack
Definition webgpu.h:3817
WGPUChainedStruct * nextInChain
Definition webgpu.h:3797
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3805
WGPUCompareFunction depthCompare
Definition webgpu.h:3809
uint32_t stencilReadMask
Definition webgpu.h:3821
WGPUTextureFormat format
Definition webgpu.h:3801
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:4597
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:4606
size_t requiredFeatureCount
Definition webgpu.h:4581
WGPUStringView label
Definition webgpu.h:4577
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:4585
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:4593
WGPUChainedStruct * nextInChain
Definition webgpu.h:4571
WGPULimits const * requiredLimits
Definition webgpu.h:4589
WGPUChainedStruct * nextInChain
Definition webgpu.h:1638
WGPUDeviceLostCallback callback
Definition webgpu.h:1645
WGPUCallbackMode mode
Definition webgpu.h:1644
uint32_t width
Definition webgpu.h:2173
uint32_t depthOrArrayLayers
Definition webgpu.h:2181
uint32_t height
Definition webgpu.h:2177
WGPUChainedStruct chain
Definition webgpu.h:2199
WGPUExternalTexture externalTexture
Definition webgpu.h:2203
size_t constantCount
Definition webgpu.h:4797
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4793
WGPUChainedStruct * nextInChain
Definition webgpu.h:4783
size_t targetCount
Definition webgpu.h:4805
WGPUConstantEntry const * constants
Definition webgpu.h:4801
WGPUColorTargetState const * targets
Definition webgpu.h:4809
WGPUFuture future
Definition webgpu.h:3876
WGPUBool completed
Definition webgpu.h:3882
uint64_t id
Definition webgpu.h:2247
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:3905
WGPUChainedStruct * nextInChain
Definition webgpu.h:3897
size_t requiredFeatureCount
Definition webgpu.h:3901
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:3909
size_t timedWaitAnyMaxCount
Definition webgpu.h:2267
WGPUChainedStruct * nextInChain
Definition webgpu.h:2261
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:3950
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:4026
uint32_t maxTextureDimension2D
Definition webgpu.h:3934
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:3966
uint32_t maxTextureDimension3D
Definition webgpu.h:3938
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:3970
WGPUChainedStruct * nextInChain
Definition webgpu.h:3926
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:3954
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:4050
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:3962
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:4030
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:3998
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:4042
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:3990
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:4034
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:4014
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:3994
uint32_t maxVertexAttributes
Definition webgpu.h:4010
uint32_t maxColorAttachments
Definition webgpu.h:4022
uint32_t maxInterStageShaderVariables
Definition webgpu.h:4018
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:4046
uint32_t maxTextureDimension1D
Definition webgpu.h:3930
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:3958
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:3986
uint64_t maxBufferSize
Definition webgpu.h:4006
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:3982
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:4038
uint32_t maxVertexBuffers
Definition webgpu.h:4002
uint32_t maxTextureArrayLayers
Definition webgpu.h:3942
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:3978
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:3974
uint32_t maxImmediateSize
Definition webgpu.h:4054
uint32_t maxBindGroups
Definition webgpu.h:3946
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2294
WGPUChainedStruct * nextInChain
Definition webgpu.h:2282
uint32_t y
Definition webgpu.h:2318
uint32_t z
Definition webgpu.h:2322
uint32_t x
Definition webgpu.h:2314
WGPUQuerySet querySet
Definition webgpu.h:2344
uint32_t endOfPassWriteIndex
Definition webgpu.h:2352
WGPUChainedStruct * nextInChain
Definition webgpu.h:2338
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2348
WGPUChainedStruct * nextInChain
Definition webgpu.h:2369
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2383
WGPUChainedStruct * nextInChain
Definition webgpu.h:1662
WGPUCallbackMode mode
Definition webgpu.h:1668
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1669
WGPUFrontFace frontFace
Definition webgpu.h:2423
WGPUChainedStruct * nextInChain
Definition webgpu.h:2405
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2416
WGPUPrimitiveTopology topology
Definition webgpu.h:2412
WGPUCullMode cullMode
Definition webgpu.h:2430
WGPUBool unclippedDepth
Definition webgpu.h:2434
WGPUQueryType type
Definition webgpu.h:2463
WGPUChainedStruct * nextInChain
Definition webgpu.h:2453
WGPUStringView label
Definition webgpu.h:2459
WGPUChainedStruct * nextInChain
Definition webgpu.h:2484
WGPUStringView label
Definition webgpu.h:2490
WGPUCallbackMode mode
Definition webgpu.h:1692
WGPUChainedStruct * nextInChain
Definition webgpu.h:1686
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1693
WGPUChainedStruct * nextInChain
Definition webgpu.h:2505
WGPUStringView label
Definition webgpu.h:2511
WGPUChainedStruct * nextInChain
Definition webgpu.h:2526
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2540
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2544
WGPUTextureView resolveTarget
Definition webgpu.h:4115
WGPUChainedStruct * nextInChain
Definition webgpu.h:4100
WGPUChainedStruct * nextInChain
Definition webgpu.h:2577
WGPUChainedStruct * nextInChain
Definition webgpu.h:4627
WGPUStringView label
Definition webgpu.h:4633
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4645
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4641
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4649
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4653
WGPUChainedStruct chain
Definition webgpu.h:2643
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4851
WGPUChainedStruct * nextInChain
Definition webgpu.h:4829
WGPUMultisampleState multisample
Definition webgpu.h:4855
WGPUFragmentState const * fragment
Definition webgpu.h:4859
WGPUPrimitiveState primitive
Definition webgpu.h:4847
WGPUPipelineLayout layout
Definition webgpu.h:4839
WGPUVertexState vertex
Definition webgpu.h:4843
WGPURequestAdapterCallback callback
Definition webgpu.h:1717
WGPUChainedStruct * nextInChain
Definition webgpu.h:1710
WGPUFeatureLevel featureLevel
Definition webgpu.h:4158
WGPUBool forceFallbackAdapter
Definition webgpu.h:4169
WGPUSurface compatibleSurface
Definition webgpu.h:4183
WGPUBackendType backendType
Definition webgpu.h:4176
WGPUChainedStruct * nextInChain
Definition webgpu.h:4147
WGPUPowerPreference powerPreference
Definition webgpu.h:4162
WGPUChainedStruct chain
Definition webgpu.h:2667
WGPUCallbackMode mode
Definition webgpu.h:1740
WGPUChainedStruct * nextInChain
Definition webgpu.h:1734
WGPURequestDeviceCallback callback
Definition webgpu.h:1741
WGPUChainedStruct * nextInChain
Definition webgpu.h:2691
WGPUSamplerBindingType type
Definition webgpu.h:2698
WGPUFilterMode minFilter
Definition webgpu.h:2754
WGPUAddressMode addressModeU
Definition webgpu.h:2726
WGPUCompareFunction compare
Definition webgpu.h:2781
WGPUAddressMode addressModeW
Definition webgpu.h:2740
uint16_t maxAnisotropy
Definition webgpu.h:2785
WGPUAddressMode addressModeV
Definition webgpu.h:2733
WGPUStringView label
Definition webgpu.h:2719
WGPUFilterMode magFilter
Definition webgpu.h:2747
WGPUChainedStruct * nextInChain
Definition webgpu.h:2713
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2761
WGPUChainedStruct * nextInChain
Definition webgpu.h:4202
WGPUStringView label
Definition webgpu.h:4208
WGPUChainedStruct chain
Definition webgpu.h:2810
uint32_t const * code
Definition webgpu.h:2818
WGPUChainedStruct chain
Definition webgpu.h:2837
WGPUStringView code
Definition webgpu.h:2843
WGPUCompareFunction compare
Definition webgpu.h:2867
WGPUStencilOperation depthFailOp
Definition webgpu.h:2881
WGPUStencilOperation passOp
Definition webgpu.h:2888
WGPUStencilOperation failOp
Definition webgpu.h:2874
WGPUChainedStruct * nextInChain
Definition webgpu.h:2905
WGPUTextureViewDimension viewDimension
Definition webgpu.h:2923
WGPUTextureFormat format
Definition webgpu.h:2916
WGPUStorageTextureAccess access
Definition webgpu.h:2912
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:2947
WGPUInstanceFeatureName const * features
Definition webgpu.h:2969
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:2991
WGPUTextureFormat const * formats
Definition webgpu.h:3025
WGPUChainedStruct * nextInChain
Definition webgpu.h:3008
WGPUPresentMode const * presentModes
Definition webgpu.h:3036
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3047
WGPUTextureUsage usages
Definition webgpu.h:3015
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3078
WGPUChainedStruct chain
Definition webgpu.h:3070
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3074
WGPUTextureUsage usage
Definition webgpu.h:3118
WGPUTextureFormat format
Definition webgpu.h:3112
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3140
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3150
WGPUChainedStruct * nextInChain
Definition webgpu.h:3100
WGPUPresentMode presentMode
Definition webgpu.h:3159
WGPUChainedStruct * nextInChain
Definition webgpu.h:4227
WGPUStringView label
Definition webgpu.h:4235
WGPUChainedStruct chain
Definition webgpu.h:3210
WGPUChainedStruct chain
Definition webgpu.h:3236
WGPUChainedStruct chain
Definition webgpu.h:3269
WGPUChainedStruct chain
Definition webgpu.h:3303
WGPUChainedStruct chain
Definition webgpu.h:3336
WGPUChainedStruct * nextInChain
Definition webgpu.h:3370
WGPUTexture texture
Definition webgpu.h:3377
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3383
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4253
WGPUOrigin3D origin
Definition webgpu.h:4283
WGPUTextureAspect aspect
Definition webgpu.h:4290
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3440
WGPUTextureSampleType sampleType
Definition webgpu.h:3433
WGPUChainedStruct * nextInChain
Definition webgpu.h:3426
WGPUChainedStruct chain
Definition webgpu.h:3465
WGPUTextureViewDimension textureBindingViewDimension
Definition webgpu.h:3469
WGPUTextureComponentSwizzle swizzle
Definition webgpu.h:4311
WGPUComponentSwizzle r
Definition webgpu.h:3500
WGPUComponentSwizzle a
Definition webgpu.h:3527
WGPUComponentSwizzle g
Definition webgpu.h:3509
WGPUComponentSwizzle b
Definition webgpu.h:3518
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4370
WGPUTextureDimension dimension
Definition webgpu.h:4346
WGPUStringView label
Definition webgpu.h:4335
uint32_t mipLevelCount
Definition webgpu.h:4358
WGPUChainedStruct * nextInChain
Definition webgpu.h:4329
WGPUTextureFormat format
Definition webgpu.h:4354
WGPUTextureUsage usage
Definition webgpu.h:4339
WGPUExtent3D size
Definition webgpu.h:4350
WGPUChainedStruct * nextInChain
Definition webgpu.h:4673
WGPUTextureUsage usage
Definition webgpu.h:4714
WGPUTextureFormat format
Definition webgpu.h:4683
WGPUTextureViewDimension dimension
Definition webgpu.h:4687
WGPUStringView label
Definition webgpu.h:4679
WGPUTextureAspect aspect
Definition webgpu.h:4710
WGPUChainedStruct * nextInChain
Definition webgpu.h:1758
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1759
WGPUVertexFormat format
Definition webgpu.h:3548
WGPUChainedStruct * nextInChain
Definition webgpu.h:3544
uint32_t shaderLocation
Definition webgpu.h:3556
WGPUVertexAttribute const * attributes
Definition webgpu.h:4422
WGPUVertexStepMode stepMode
Definition webgpu.h:4410
WGPUChainedStruct * nextInChain
Definition webgpu.h:4406
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4747
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4763
WGPUConstantEntry const * constants
Definition webgpu.h:4755
size_t constantCount
Definition webgpu.h:4751
size_t bufferCount
Definition webgpu.h:4759
WGPUChainedStruct * nextInChain
Definition webgpu.h:4737