WebGPU Headers
The WebGPU C API
 
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
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_WHOLE_MAP_SIZE (SIZE_MAX)
157#define WGPU_WHOLE_SIZE (UINT64_MAX)
158
188typedef struct WGPUStringView {
189 char const * WGPU_NULLABLE data;
190 size_t length;
192
197#define WGPU_STRLEN SIZE_MAX
198
202#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
203 /*.data=*/NULL _wgpu_COMMA \
204 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
205})
206
207typedef uint64_t WGPUFlags;
208typedef uint32_t WGPUBool;
209
218typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
219typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
220typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
221typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
222typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
223typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
224typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
225typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
232typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
233typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
234typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
235typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
236typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
237typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
238typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
239typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
240typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
241typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
242typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
246typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
247typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
248typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
249
252// Structure forward declarations
253struct WGPUAdapterInfo;
254struct WGPUBindGroupEntry;
255struct WGPUBlendComponent;
258struct WGPUColor;
262struct WGPUConstantEntry;
263struct WGPUExtent3D;
264struct WGPUFuture;
265struct WGPUInstanceLimits;
266struct WGPULimits;
268struct WGPUOrigin3D;
271struct WGPUPrimitiveState;
300struct WGPUSurfaceTexture;
307struct WGPUBlendState;
310struct WGPUComputeState;
313struct WGPUFutureWaitInfo;
324struct WGPUVertexState;
325struct WGPUFragmentState;
327
328// Callback info structure forward declarations
339
347typedef enum WGPUAdapterType {
352 WGPUAdapterType_Force32 = 0x7FFFFFFF
353} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
354
365
381
406
419
436
443
472
488
497
504
531
542
543typedef enum WGPUCullMode {
548 WGPUCullMode_None = 0x00000001,
549 WGPUCullMode_Front = 0x00000002,
550 WGPUCullMode_Back = 0x00000003,
551 WGPUCullMode_Force32 = 0x7FFFFFFF
552} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
553
564
565typedef enum WGPUErrorFilter {
569 WGPUErrorFilter_Force32 = 0x7FFFFFFF
570} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
571
572typedef enum WGPUErrorType {
578 WGPUErrorType_Force32 = 0x7FFFFFFF
579} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
580
584typedef enum WGPUFeatureLevel {
597 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
598} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
599
620
621typedef enum WGPUFilterMode {
628 WGPUFilterMode_Force32 = 0x7FFFFFFF
629} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
630
631typedef enum WGPUFrontFace {
636 WGPUFrontFace_CCW = 0x00000001,
637 WGPUFrontFace_CW = 0x00000002,
638 WGPUFrontFace_Force32 = 0x7FFFFFFF
639} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
640
641typedef enum WGPUIndexFormat {
648 WGPUIndexFormat_Force32 = 0x7FFFFFFF
649} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
650
663
664typedef enum WGPULoadOp {
669 WGPULoadOp_Load = 0x00000001,
670 WGPULoadOp_Clear = 0x00000002,
671 WGPULoadOp_Force32 = 0x7FFFFFFF
672} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
673
684
694
695typedef enum WGPUOptionalBool {
702 WGPUOptionalBool_Force32 = 0x7FFFFFFF
703} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
704
720
730
736
769
782
783typedef enum WGPUQueryType {
786 WGPUQueryType_Force32 = 0x7FFFFFFF
787} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
788
802
813
823
838
855
861typedef enum WGPUStatus {
862 WGPUStatus_Success = 0x00000001,
863 WGPUStatus_Error = 0x00000002,
864 WGPUStatus_Force32 = 0x7FFFFFFF
865} WGPUStatus WGPU_ENUM_ATTRIBUTE;
866
882
899
900typedef enum WGPUStoreOp {
905 WGPUStoreOp_Store = 0x00000001,
907 WGPUStoreOp_Force32 = 0x7FFFFFFF
908} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
909
940
951
962
963typedef enum WGPUTextureFormat {
1063 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1064} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1065
1084
1098
1104
1105typedef enum WGPUVertexFormat {
1147 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1148} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1149
1159
1167
1171typedef enum WGPUWaitStatus {
1185 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1186} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1203static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1207static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1213static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1217static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1221static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1225static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1229static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1233static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1237static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1241static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1245static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1246
1254static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1255static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1256static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1257static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1258static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1262static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1263
1271static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1272static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1273static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1274
1282static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1283static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1284static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1285static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1286
1294static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1295static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1296static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1297static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1298static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1299static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1300
1303typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1304
1318typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1319
1328typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1329
1336typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1337
1344typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1345
1359typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1360
1378typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1379
1392typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1393
1403typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1404
1414typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1415
1425typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1426
1435typedef struct WGPUChainedStruct {
1438} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1439
1469
1473#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1474 /*.nextInChain=*/NULL _wgpu_COMMA \
1475 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1476 /*.callback=*/NULL _wgpu_COMMA \
1477 /*.userdata1=*/NULL _wgpu_COMMA \
1478 /*.userdata2=*/NULL _wgpu_COMMA \
1479})
1480
1493
1497#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1498 /*.nextInChain=*/NULL _wgpu_COMMA \
1499 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1500 /*.callback=*/NULL _wgpu_COMMA \
1501 /*.userdata1=*/NULL _wgpu_COMMA \
1502 /*.userdata2=*/NULL _wgpu_COMMA \
1503})
1504
1517
1521#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1522 /*.nextInChain=*/NULL _wgpu_COMMA \
1523 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1524 /*.callback=*/NULL _wgpu_COMMA \
1525 /*.userdata1=*/NULL _wgpu_COMMA \
1526 /*.userdata2=*/NULL _wgpu_COMMA \
1527})
1528
1541
1545#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1546 /*.nextInChain=*/NULL _wgpu_COMMA \
1547 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1548 /*.callback=*/NULL _wgpu_COMMA \
1549 /*.userdata1=*/NULL _wgpu_COMMA \
1550 /*.userdata2=*/NULL _wgpu_COMMA \
1551})
1552
1565
1569#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1570 /*.nextInChain=*/NULL _wgpu_COMMA \
1571 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1572 /*.callback=*/NULL _wgpu_COMMA \
1573 /*.userdata1=*/NULL _wgpu_COMMA \
1574 /*.userdata2=*/NULL _wgpu_COMMA \
1575})
1576
1589
1593#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1594 /*.nextInChain=*/NULL _wgpu_COMMA \
1595 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1596 /*.callback=*/NULL _wgpu_COMMA \
1597 /*.userdata1=*/NULL _wgpu_COMMA \
1598 /*.userdata2=*/NULL _wgpu_COMMA \
1599})
1600
1613
1617#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1618 /*.nextInChain=*/NULL _wgpu_COMMA \
1619 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1620 /*.callback=*/NULL _wgpu_COMMA \
1621 /*.userdata1=*/NULL _wgpu_COMMA \
1622 /*.userdata2=*/NULL _wgpu_COMMA \
1623})
1624
1637
1641#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1642 /*.nextInChain=*/NULL _wgpu_COMMA \
1643 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1644 /*.callback=*/NULL _wgpu_COMMA \
1645 /*.userdata1=*/NULL _wgpu_COMMA \
1646 /*.userdata2=*/NULL _wgpu_COMMA \
1647})
1648
1661
1665#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1666 /*.nextInChain=*/NULL _wgpu_COMMA \
1667 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1668 /*.callback=*/NULL _wgpu_COMMA \
1669 /*.userdata1=*/NULL _wgpu_COMMA \
1670 /*.userdata2=*/NULL _wgpu_COMMA \
1671})
1672
1679
1683#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1684 /*.nextInChain=*/NULL _wgpu_COMMA \
1685 /*.callback=*/NULL _wgpu_COMMA \
1686 /*.userdata1=*/NULL _wgpu_COMMA \
1687 /*.userdata2=*/NULL _wgpu_COMMA \
1688})
1689
1746
1750#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1751 /*.nextInChain=*/NULL _wgpu_COMMA \
1752 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1753 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1754 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1755 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1756 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1757 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1758 /*.vendorID=*/0 _wgpu_COMMA \
1759 /*.deviceID=*/0 _wgpu_COMMA \
1760 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1761 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1762})
1763
1767typedef struct WGPUBindGroupEntry {
1774 uint32_t binding;
1781 WGPU_NULLABLE WGPUBuffer buffer;
1788 uint64_t offset;
1796 uint64_t size;
1803 WGPU_NULLABLE WGPUSampler sampler;
1811} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1812
1816#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1817 /*.nextInChain=*/NULL _wgpu_COMMA \
1818 /*.binding=*/0 _wgpu_COMMA \
1819 /*.buffer=*/NULL _wgpu_COMMA \
1820 /*.offset=*/0 _wgpu_COMMA \
1821 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1822 /*.sampler=*/NULL _wgpu_COMMA \
1823 /*.textureView=*/NULL _wgpu_COMMA \
1824})
1825
1852
1856#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1857 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1858 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1859 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1860})
1861
1883
1887#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1888 /*.nextInChain=*/NULL _wgpu_COMMA \
1889 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1890 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1891 /*.minBindingSize=*/0 _wgpu_COMMA \
1892})
1893
1922
1926#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1927 /*.nextInChain=*/NULL _wgpu_COMMA \
1928 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1929 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1930 /*.size=*/0 _wgpu_COMMA \
1931 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1932})
1933
1941typedef struct WGPUColor {
1945 double r;
1949 double g;
1953 double b;
1957 double a;
1958} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1959
1963#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1964 /*.r=*/0. _wgpu_COMMA \
1965 /*.g=*/0. _wgpu_COMMA \
1966 /*.b=*/0. _wgpu_COMMA \
1967 /*.a=*/0. _wgpu_COMMA \
1968})
1969
1982
1986#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1987 /*.nextInChain=*/NULL _wgpu_COMMA \
1988 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1989})
1990
2003
2007#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2008 /*.nextInChain=*/NULL _wgpu_COMMA \
2009 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2010})
2011
2059
2063#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2064 /*.nextInChain=*/NULL _wgpu_COMMA \
2065 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2066 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2067 /*.lineNum=*/0 _wgpu_COMMA \
2068 /*.linePos=*/0 _wgpu_COMMA \
2069 /*.offset=*/0 _wgpu_COMMA \
2070 /*.length=*/0 _wgpu_COMMA \
2071})
2072
2093
2097#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2098 /*.nextInChain=*/NULL _wgpu_COMMA \
2099 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2100 /*.value=*/0. _wgpu_COMMA \
2101})
2102
2106typedef struct WGPUExtent3D {
2110 uint32_t width;
2114 uint32_t height;
2119} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2120
2124#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2125 /*.width=*/0 _wgpu_COMMA \
2126 /*.height=*/1 _wgpu_COMMA \
2127 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2128})
2129
2135typedef struct WGPUFuture {
2141 uint64_t id;
2142} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2143
2147#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2148 /*.id=*/0 _wgpu_COMMA \
2149})
2150
2163
2167#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2168 /*.nextInChain=*/NULL _wgpu_COMMA \
2169 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2170})
2171
2306
2310#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2311 /*.nextInChain=*/NULL _wgpu_COMMA \
2312 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2313 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2314 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2315 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2316 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2317 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2318 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2319 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2320 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2321 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2322 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2323 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2324 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2325 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2326 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2327 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2328 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2329 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2330 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2331 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2332 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2333 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2334 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2335 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2336 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2337 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2338 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2339 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2340 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2341 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2342 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2343 /*.maxImmediateSize=*/0 _wgpu_COMMA \
2344})
2345
2364
2368#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2369 /*.nextInChain=*/NULL _wgpu_COMMA \
2370 /*.count=*/1 _wgpu_COMMA \
2371 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2372 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2373})
2374
2378typedef struct WGPUOrigin3D {
2382 uint32_t x;
2386 uint32_t y;
2390 uint32_t z;
2391} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2392
2396#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2397 /*.x=*/0 _wgpu_COMMA \
2398 /*.y=*/0 _wgpu_COMMA \
2399 /*.z=*/0 _wgpu_COMMA \
2400})
2401
2422
2426#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2427 /*.nextInChain=*/NULL _wgpu_COMMA \
2428 /*.querySet=*/NULL _wgpu_COMMA \
2429 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2430 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2431})
2432
2457
2461#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2462 /*.nextInChain=*/NULL _wgpu_COMMA \
2463 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2464 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2465 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2466 /*.immediateSize=*/0 _wgpu_COMMA \
2467})
2468
2504
2508#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2509 /*.nextInChain=*/NULL _wgpu_COMMA \
2510 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2511 /*.stripIndexFormat=*/_wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
2512 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2513 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2514 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2515})
2516
2537
2541#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2542 /*.nextInChain=*/NULL _wgpu_COMMA \
2543 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2544 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2545 /*.count=*/0 _wgpu_COMMA \
2546})
2547
2560
2564#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2565 /*.nextInChain=*/NULL _wgpu_COMMA \
2566 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2567})
2568
2581
2585#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2586 /*.nextInChain=*/NULL _wgpu_COMMA \
2587 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2588})
2589
2626
2630#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2631 /*.nextInChain=*/NULL _wgpu_COMMA \
2632 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2633 /*.colorFormatCount=*/0 _wgpu_COMMA \
2634 /*.colorFormats=*/NULL _wgpu_COMMA \
2635 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2636 /*.sampleCount=*/1 _wgpu_COMMA \
2637 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2638 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2639})
2640
2690
2694#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2695 /*.nextInChain=*/NULL _wgpu_COMMA \
2696 /*.view=*/NULL _wgpu_COMMA \
2697 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2698 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2699 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2700 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2701 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2702 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2703 /*.stencilClearValue=*/0 _wgpu_COMMA \
2704 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2705})
2706
2717
2721#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2722 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2723 /*.next=*/NULL _wgpu_COMMA \
2724 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2725 }) _wgpu_COMMA \
2726 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2727})
2728
2771
2775#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
2776 /*.nextInChain=*/NULL _wgpu_COMMA \
2777 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
2778 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
2779 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
2780 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
2781 /*.compatibleSurface=*/NULL _wgpu_COMMA \
2782})
2783
2798
2802#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2803 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2804 /*.next=*/NULL _wgpu_COMMA \
2805 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2806 }) _wgpu_COMMA \
2807 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2808})
2809
2823
2827#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2828 /*.nextInChain=*/NULL _wgpu_COMMA \
2829 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2830})
2831
2910
2914#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2915 /*.nextInChain=*/NULL _wgpu_COMMA \
2916 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2917 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2918 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2919 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2920 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2921 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2922 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2923 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2924 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2925 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2926 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2927})
2928
2941
2945#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
2946 /*.nextInChain=*/NULL _wgpu_COMMA \
2947 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2948})
2949
2958 uint32_t codeSize;
2962 uint32_t const * code;
2963} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2964
2968#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2969 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2970 /*.next=*/NULL _wgpu_COMMA \
2971 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2972 }) _wgpu_COMMA \
2973 /*.codeSize=*/0 _wgpu_COMMA \
2974 /*.code=*/NULL _wgpu_COMMA \
2975})
2976
2989
2993#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2994 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2995 /*.next=*/NULL _wgpu_COMMA \
2996 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2997 }) _wgpu_COMMA \
2998 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2999})
3000
3034
3038#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
3039 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3040 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3041 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3042 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3043})
3044
3069
3073#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3074 /*.nextInChain=*/NULL _wgpu_COMMA \
3075 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3076 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3077 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3078})
3079
3092} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3093
3097#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3098 /*.featureCount=*/0 _wgpu_COMMA \
3099 /*.features=*/NULL _wgpu_COMMA \
3100})
3101
3115
3119#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
3120 /*.featureCount=*/0 _wgpu_COMMA \
3121 /*.features=*/NULL _wgpu_COMMA \
3122})
3123
3137
3141#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3142 /*.featureCount=*/0 _wgpu_COMMA \
3143 /*.features=*/NULL _wgpu_COMMA \
3144})
3145
3193
3197#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3198 /*.nextInChain=*/NULL _wgpu_COMMA \
3199 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3200 /*.formatCount=*/0 _wgpu_COMMA \
3201 /*.formats=*/NULL _wgpu_COMMA \
3202 /*.presentModeCount=*/0 _wgpu_COMMA \
3203 /*.presentModes=*/NULL _wgpu_COMMA \
3204 /*.alphaModeCount=*/0 _wgpu_COMMA \
3205 /*.alphaModes=*/NULL _wgpu_COMMA \
3206})
3207
3224
3228#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3229 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3230 /*.next=*/NULL _wgpu_COMMA \
3231 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3232 }) _wgpu_COMMA \
3233 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3234 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3235})
3236
3305
3309#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3310 /*.nextInChain=*/NULL _wgpu_COMMA \
3311 /*.device=*/NULL _wgpu_COMMA \
3312 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3313 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3314 /*.width=*/0 _wgpu_COMMA \
3315 /*.height=*/0 _wgpu_COMMA \
3316 /*.viewFormatCount=*/0 _wgpu_COMMA \
3317 /*.viewFormats=*/NULL _wgpu_COMMA \
3318 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3319 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3320})
3321
3340
3344#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
3345 /*.nextInChain=*/NULL _wgpu_COMMA \
3346 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3347})
3348
3363
3367#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3368 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3369 /*.next=*/NULL _wgpu_COMMA \
3370 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3371 }) _wgpu_COMMA \
3372 /*.window=*/NULL _wgpu_COMMA \
3373})
3374
3389
3393#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3394 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3395 /*.next=*/NULL _wgpu_COMMA \
3396 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3397 }) _wgpu_COMMA \
3398 /*.layer=*/NULL _wgpu_COMMA \
3399})
3400
3421
3425#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3426 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3427 /*.next=*/NULL _wgpu_COMMA \
3428 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3429 }) _wgpu_COMMA \
3430 /*.display=*/NULL _wgpu_COMMA \
3431 /*.surface=*/NULL _wgpu_COMMA \
3432})
3433
3455
3459#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3460 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3461 /*.next=*/NULL _wgpu_COMMA \
3462 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3463 }) _wgpu_COMMA \
3464 /*.hinstance=*/NULL _wgpu_COMMA \
3465 /*.hwnd=*/NULL _wgpu_COMMA \
3466})
3467
3488
3492#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3493 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3494 /*.next=*/NULL _wgpu_COMMA \
3495 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3496 }) _wgpu_COMMA \
3497 /*.connection=*/NULL _wgpu_COMMA \
3498 /*.window=*/0 _wgpu_COMMA \
3499})
3500
3521
3525#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3526 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3527 /*.next=*/NULL _wgpu_COMMA \
3528 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3529 }) _wgpu_COMMA \
3530 /*.display=*/NULL _wgpu_COMMA \
3531 /*.window=*/0 _wgpu_COMMA \
3532})
3533
3556
3560#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3561 /*.nextInChain=*/NULL _wgpu_COMMA \
3562 /*.texture=*/NULL _wgpu_COMMA \
3563 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3564})
3565
3573 uint64_t offset;
3577 uint32_t bytesPerRow;
3582} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3583
3587#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3588 /*.offset=*/0 _wgpu_COMMA \
3589 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3590 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3591})
3592
3617
3621#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3622 /*.nextInChain=*/NULL _wgpu_COMMA \
3623 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3624 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3625 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3626})
3627
3675
3679#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3680 /*.nextInChain=*/NULL _wgpu_COMMA \
3681 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3682 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3683 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3684 /*.baseMipLevel=*/0 _wgpu_COMMA \
3685 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3686 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3687 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3688 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3689 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3690})
3691
3710
3714#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3715 /*.nextInChain=*/NULL _wgpu_COMMA \
3716 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3717 /*.offset=*/0 _wgpu_COMMA \
3718 /*.shaderLocation=*/0 _wgpu_COMMA \
3719})
3720
3745
3749#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3750 /*.nextInChain=*/NULL _wgpu_COMMA \
3751 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3752 /*.layout=*/NULL _wgpu_COMMA \
3753 /*.entryCount=*/0 _wgpu_COMMA \
3754 /*.entries=*/NULL _wgpu_COMMA \
3755})
3756
3793
3797#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3798 /*.nextInChain=*/NULL _wgpu_COMMA \
3799 /*.binding=*/0 _wgpu_COMMA \
3800 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3801 /*.bindingArraySize=*/0 _wgpu_COMMA \
3802 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3803 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3804 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3805 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3806})
3807
3821
3825#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3826 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3827 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3828})
3829
3847
3851#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3852 /*.nextInChain=*/NULL _wgpu_COMMA \
3853 /*.messageCount=*/0 _wgpu_COMMA \
3854 /*.messages=*/NULL _wgpu_COMMA \
3855})
3856
3873
3877#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3878 /*.nextInChain=*/NULL _wgpu_COMMA \
3879 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3880 /*.timestampWrites=*/NULL _wgpu_COMMA \
3881})
3882
3907
3911#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3912 /*.nextInChain=*/NULL _wgpu_COMMA \
3913 /*.module=*/NULL _wgpu_COMMA \
3914 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3915 /*.constantCount=*/0 _wgpu_COMMA \
3916 /*.constants=*/NULL _wgpu_COMMA \
3917})
3918
3973
3977#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3978 /*.nextInChain=*/NULL _wgpu_COMMA \
3979 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3980 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3981 /*.depthCompare=*/_wgpu_ENUM_ZERO_INIT(WGPUCompareFunction) _wgpu_COMMA \
3982 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3983 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3984 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3985 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3986 /*.depthBias=*/0 _wgpu_COMMA \
3987 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3988 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3989})
3990
4032
4036#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4037 /*.nextInChain=*/NULL _wgpu_COMMA \
4038 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4039 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4040 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4041 /*.requiredLimits=*/NULL _wgpu_COMMA \
4042 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4043 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4044 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4045})
4046
4066
4070#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
4071 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
4072 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
4073})
4074
4093
4097#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4098 /*.nextInChain=*/NULL _wgpu_COMMA \
4099 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4100 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4101 /*.requiredLimits=*/NULL _wgpu_COMMA \
4102})
4103
4137
4141#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4142 /*.nextInChain=*/NULL _wgpu_COMMA \
4143 /*.view=*/NULL _wgpu_COMMA \
4144 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4145 /*.resolveTarget=*/NULL _wgpu_COMMA \
4146 /*.loadOp=*/_wgpu_ENUM_ZERO_INIT(WGPULoadOp) _wgpu_COMMA \
4147 /*.storeOp=*/_wgpu_ENUM_ZERO_INIT(WGPUStoreOp) _wgpu_COMMA \
4148 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4149})
4150
4164
4168#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4169 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4170 /*.buffer=*/NULL _wgpu_COMMA \
4171})
4172
4197
4201#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4202 /*.texture=*/NULL _wgpu_COMMA \
4203 /*.mipLevel=*/0 _wgpu_COMMA \
4204 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4205 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4206})
4207
4255
4259#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4260 /*.nextInChain=*/NULL _wgpu_COMMA \
4261 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4262 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4263 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4264 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4265 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4266 /*.mipLevelCount=*/1 _wgpu_COMMA \
4267 /*.sampleCount=*/1 _wgpu_COMMA \
4268 /*.viewFormatCount=*/0 _wgpu_COMMA \
4269 /*.viewFormats=*/NULL _wgpu_COMMA \
4270})
4271
4307
4311#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4312 /*.nextInChain=*/NULL _wgpu_COMMA \
4313 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4314 /*.arrayStride=*/0 _wgpu_COMMA \
4315 /*.attributeCount=*/0 _wgpu_COMMA \
4316 /*.attributes=*/NULL _wgpu_COMMA \
4317})
4318
4339
4343#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4344 /*.nextInChain=*/NULL _wgpu_COMMA \
4345 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4346 /*.entryCount=*/0 _wgpu_COMMA \
4347 /*.entries=*/NULL _wgpu_COMMA \
4348})
4349
4372
4376#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4377 /*.nextInChain=*/NULL _wgpu_COMMA \
4378 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4379 /*.blend=*/NULL _wgpu_COMMA \
4380 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4381})
4382
4403
4407#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4408 /*.nextInChain=*/NULL _wgpu_COMMA \
4409 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4410 /*.layout=*/NULL _wgpu_COMMA \
4411 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4412})
4413
4446
4450#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4451 /*.nextInChain=*/NULL _wgpu_COMMA \
4452 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4453 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4454 /*.colorAttachments=*/NULL _wgpu_COMMA \
4455 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4456 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4457 /*.timestampWrites=*/NULL _wgpu_COMMA \
4458})
4459
4492
4496#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4497 /*.nextInChain=*/NULL _wgpu_COMMA \
4498 /*.module=*/NULL _wgpu_COMMA \
4499 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4500 /*.constantCount=*/0 _wgpu_COMMA \
4501 /*.constants=*/NULL _wgpu_COMMA \
4502 /*.bufferCount=*/0 _wgpu_COMMA \
4503 /*.buffers=*/NULL _wgpu_COMMA \
4504})
4505
4538
4542#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4543 /*.nextInChain=*/NULL _wgpu_COMMA \
4544 /*.module=*/NULL _wgpu_COMMA \
4545 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4546 /*.constantCount=*/0 _wgpu_COMMA \
4547 /*.constants=*/NULL _wgpu_COMMA \
4548 /*.targetCount=*/0 _wgpu_COMMA \
4549 /*.targets=*/NULL _wgpu_COMMA \
4550})
4551
4588
4592#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4593 /*.nextInChain=*/NULL _wgpu_COMMA \
4594 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4595 /*.layout=*/NULL _wgpu_COMMA \
4596 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4597 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4598 /*.depthStencil=*/NULL _wgpu_COMMA \
4599 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4600 /*.fragment=*/NULL _wgpu_COMMA \
4601})
4602
4605#ifdef __cplusplus
4606extern "C" {
4607#endif
4608
4609#if !defined(WGPU_SKIP_PROCS)
4610// Global procs
4615typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4620typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4625typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4630typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4635typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4636
4637
4638// Procs of Adapter
4643typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4648typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4653typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4658typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4663typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4668typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4673typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4674
4675// Procs of AdapterInfo
4680typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4681
4682// Procs of BindGroup
4687typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4692typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4697typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4698
4699// Procs of BindGroupLayout
4704typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4709typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4714typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4715
4716// Procs of Buffer
4721typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4726typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4731typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4736typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4741typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4746typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4751typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4756typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4761typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4766typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4771typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4776typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4781typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4782
4783// Procs of CommandBuffer
4788typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4793typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4798typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4799
4800// Procs of CommandEncoder
4805typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4810typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4815typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4820typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4825typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4830typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4835typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4840typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4845typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4850typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4855typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4860typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4865typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4870typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4875typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4880typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4881
4882// Procs of ComputePassEncoder
4887typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4892typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4897typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4902typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4907typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4912typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4917typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4922typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4927typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4932typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4937typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4938
4939// Procs of ComputePipeline
4944typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
4949typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4954typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4959typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4960
4961// Procs of Device
4966typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4971typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4976typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4981typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4986typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4991typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4996typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5001typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5006typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5011typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5016typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5021typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5026typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5031typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5036typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5041typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5046typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5051typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5056typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5061typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5066typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5071typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5076typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5081typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5086typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5091typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5092
5093// Procs of Instance
5098typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5103typedef WGPUStatus (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5108typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5113typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5118typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5123typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5128typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5133typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5134
5135// Procs of PipelineLayout
5140typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5145typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5150typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5151
5152// Procs of QuerySet
5157typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5162typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5167typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5172typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5177typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5182typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5183
5184// Procs of Queue
5189typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5194typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5199typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5204typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5209typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5214typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5219typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5220
5221// Procs of RenderBundle
5226typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5231typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5236typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5237
5238// Procs of RenderBundleEncoder
5243typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5248typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5253typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5258typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5263typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5268typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5273typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5278typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5283typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5288typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5293typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5298typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5303typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5308typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5313typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5314
5315// Procs of RenderPassEncoder
5320typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5325typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5330typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5335typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5340typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5345typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5350typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5355typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5360typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5365typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5370typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5375typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5380typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5385typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5390typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5395typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5400typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5405typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5410typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5415typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5420typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5425typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5426
5427// Procs of RenderPipeline
5432typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5437typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5442typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5447typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5448
5449// Procs of Sampler
5454typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5459typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5464typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5465
5466// Procs of ShaderModule
5471typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5476typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5481typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5486typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5487
5488// Procs of SupportedFeatures
5493typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5494
5495// Procs of SupportedInstanceFeatures
5500typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5501
5502// Procs of SupportedWGSLLanguageFeatures
5507typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5508
5509// Procs of Surface
5514typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5519typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5524typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5529typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5534typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5539typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5544typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5549typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5550
5551// Procs of SurfaceCapabilities
5556typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5557
5558// Procs of Texture
5563typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5568typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5573typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5578typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5583typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5588typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5593typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5598typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5603typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5608typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5613typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5618typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5623typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5624
5625// Procs of TextureView
5630typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5635typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5640typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5641
5642#endif // !defined(WGPU_SKIP_PROCS)
5643
5644#if !defined(WGPU_SKIP_DECLARATIONS)
5657WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5664WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5671WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5675WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5680WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5681
5682
5704WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5712WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5717WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5718WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5719WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5720WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5721WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5733WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5742WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5743WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5744WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5753WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5754WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5755WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5764WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5782WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5783WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5800WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5801WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5802WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5811WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5832WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5833WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5834WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5855WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5856WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5857WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5866WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5867WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5868WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5881WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5886WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5887WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5888WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5889WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5890WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5891WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5896WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5897WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5898WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5899WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5900WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5901WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5902WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5903WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5904WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5913WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5914WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5915WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5916WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5917WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5918WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5919WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5920WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5921WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5922WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5923WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5936WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5937WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5938WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5939WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5952WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5957WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5967WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5972WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5977WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5983WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5988WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5998WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6004WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6009WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6014WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6015WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6023WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6030WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6035WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6040WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6045WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6046WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6051WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6056WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6057WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6058WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6059WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6078WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6083WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6089WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6090WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6096WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6097WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6098WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6107WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6108WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6109WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6118WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6119WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6120WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6121WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6122WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6123WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6132WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6133WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6134WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6139WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6140WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6141WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6142WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6151WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6152WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6153WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6162WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6163WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6164WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6165WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6170WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6171WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6172WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6173WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6174WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6175WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6176WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6177WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6178WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6179WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6180WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6189WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6190WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6191WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6192WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6193WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6194WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6195WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6196WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6197WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6198WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6199WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6200WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6205WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6206WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6207WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6208WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6209WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6210WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6211WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6217WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6218WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6219WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6232WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6233WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6234WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6235WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6244WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6245WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6246WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6255WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6256WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6257WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6258WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6270WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6282WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6294WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6312WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6328WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6338WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6346WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6353WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6358WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6359WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6360WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6372WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6385WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6386WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6387WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6388WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6389WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6390WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6391WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6392WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6393WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6394WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6395WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6396WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6397WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6406WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6407WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6408WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6413#endif // !defined(WGPU_SKIP_DECLARATIONS)
6414
6415#ifdef __cplusplus
6416} // extern "C"
6417#endif
6418
6419#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1257
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1241
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1250
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1237
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1258
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1207
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1225
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1203
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1271
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1294
WGPUFlags WGPUMapMode
Definition webgpu.h:1267
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1297
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1262
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1295
WGPUFlags WGPUShaderStage
Definition webgpu.h:1278
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1245
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1284
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1285
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1273
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1282
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1299
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1213
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1296
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1217
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1298
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1290
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1233
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1272
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1256
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1229
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1283
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1254
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1255
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1199
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1221
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1425
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1414
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1336
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1359
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1344
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1328
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1403
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1318
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1392
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1378
WGPUIndexFormat
Definition webgpu.h:641
WGPURequestAdapterStatus
Definition webgpu.h:803
WGPUFeatureName
Definition webgpu.h:600
WGPUVertexFormat
Definition webgpu.h:1105
WGPUSType
Definition webgpu.h:824
WGPUBufferBindingType
Definition webgpu.h:420
WGPUDeviceLostReason
Definition webgpu.h:554
WGPUCompareFunction
Definition webgpu.h:473
WGPUCullMode
Definition webgpu.h:543
WGPUTextureDimension
Definition webgpu.h:952
WGPURequestDeviceStatus
Definition webgpu.h:814
WGPUCompilationMessageType
Definition webgpu.h:498
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:532
WGPUTextureViewDimension
Definition webgpu.h:1085
WGPUPrimitiveTopology
Definition webgpu.h:770
WGPUTextureFormat
Definition webgpu.h:963
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1160
WGPUStencilOperation
Definition webgpu.h:867
WGPUAddressMode
Definition webgpu.h:355
WGPUToneMappingMode
Definition webgpu.h:1099
WGPUTextureAspect
Definition webgpu.h:941
WGPUBufferMapState
Definition webgpu.h:437
WGPUFilterMode
Definition webgpu.h:621
WGPUBackendType
Definition webgpu.h:366
WGPUBlendFactor
Definition webgpu.h:382
WGPUSamplerBindingType
Definition webgpu.h:839
WGPULoadOp
Definition webgpu.h:664
WGPUPopErrorScopeStatus
Definition webgpu.h:705
WGPUWaitStatus
Definition webgpu.h:1171
WGPUStorageTextureAccess
Definition webgpu.h:883
WGPUPowerPreference
Definition webgpu.h:721
WGPUPresentMode
Definition webgpu.h:740
WGPUMapAsyncStatus
Definition webgpu.h:674
WGPUBlendOperation
Definition webgpu.h:407
WGPUCompositeAlphaMode
Definition webgpu.h:508
WGPUPredefinedColorSpace
Definition webgpu.h:731
WGPUQueueWorkDoneStatus
Definition webgpu.h:789
WGPUVertexStepMode
Definition webgpu.h:1150
WGPUQueryType
Definition webgpu.h:783
WGPUFeatureLevel
Definition webgpu.h:584
WGPUAdapterType
Definition webgpu.h:347
WGPUInstanceFeatureName
Definition webgpu.h:651
WGPUStatus
Definition webgpu.h:861
WGPUCompilationInfoRequestStatus
Definition webgpu.h:489
WGPUMipmapFilterMode
Definition webgpu.h:685
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:913
WGPUFrontFace
Definition webgpu.h:631
WGPUStoreOp
Definition webgpu.h:900
WGPUErrorFilter
Definition webgpu.h:565
WGPUOptionalBool
Definition webgpu.h:695
WGPUCallbackMode
Definition webgpu.h:447
WGPUTextureSampleType
Definition webgpu.h:1066
WGPUErrorType
Definition webgpu.h:572
@ WGPUIndexFormat_Force32
Definition webgpu.h:648
@ WGPUIndexFormat_Uint16
Definition webgpu.h:646
@ WGPUIndexFormat_Undefined
Definition webgpu.h:645
@ WGPUIndexFormat_Uint32
Definition webgpu.h:647
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:809
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:804
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:810
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:808
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:811
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:607
@ WGPUFeatureName_Subgroups
Definition webgpu.h:617
@ WGPUFeatureName_Force32
Definition webgpu.h:618
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:615
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:602
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:611
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:612
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:614
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:616
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:608
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:605
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:610
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:613
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:603
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:604
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:606
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:609
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:601
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1144
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1134
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1142
@ WGPUVertexFormat_Float32
Definition webgpu.h:1133
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1132
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1120
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1116
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1108
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1110
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1112
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1114
@ WGPUVertexFormat_Force32
Definition webgpu.h:1147
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1107
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1136
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1131
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1137
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1115
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1109
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1140
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1146
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1141
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1118
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1138
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1139
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1127
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1123
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1145
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1125
@ WGPUVertexFormat_Float16
Definition webgpu.h:1130
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1113
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1143
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1122
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1117
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1106
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1111
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1124
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1121
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1119
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1128
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1126
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1135
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1129
@ WGPUSType_Force32
Definition webgpu.h:836
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:831
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:825
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:834
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:832
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:833
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:829
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:827
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:828
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:835
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:826
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:830
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:426
@ WGPUBufferBindingType_Storage
Definition webgpu.h:432
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:430
@ WGPUBufferBindingType_Force32
Definition webgpu.h:434
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:433
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:431
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:561
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:556
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:560
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:562
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:555
@ WGPUCompareFunction_Force32
Definition webgpu.h:486
@ WGPUCompareFunction_Always
Definition webgpu.h:485
@ WGPUCompareFunction_Never
Definition webgpu.h:478
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:483
@ WGPUCompareFunction_Less
Definition webgpu.h:479
@ WGPUCompareFunction_Undefined
Definition webgpu.h:477
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:484
@ WGPUCompareFunction_Equal
Definition webgpu.h:480
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:481
@ WGPUCompareFunction_Greater
Definition webgpu.h:482
@ WGPUCullMode_Force32
Definition webgpu.h:551
@ WGPUCullMode_Undefined
Definition webgpu.h:547
@ WGPUCullMode_Back
Definition webgpu.h:550
@ WGPUCullMode_Front
Definition webgpu.h:549
@ WGPUCullMode_None
Definition webgpu.h:548
@ WGPUTextureDimension_Undefined
Definition webgpu.h:956
@ WGPUTextureDimension_2D
Definition webgpu.h:958
@ WGPUTextureDimension_Force32
Definition webgpu.h:960
@ WGPUTextureDimension_3D
Definition webgpu.h:959
@ WGPUTextureDimension_1D
Definition webgpu.h:957
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:819
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:815
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:820
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:821
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:502
@ WGPUCompilationMessageType_Info
Definition webgpu.h:501
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:500
@ WGPUCompilationMessageType_Error
Definition webgpu.h:499
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:540
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:538
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:537
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:533
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:539
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1093
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1092
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1091
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1095
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1090
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1094
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1089
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1096
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:776
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:777
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:774
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:778
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:775
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:779
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:780
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1059
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1020
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1023
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:985
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:975
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1025
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1035
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1028
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1032
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1018
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:987
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1053
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:991
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1043
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1027
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1055
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1049
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1002
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1021
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:998
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1001
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1057
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1010
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:976
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1060
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1007
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:983
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1033
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1026
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1022
@ WGPUTextureFormat_R32Float
Definition webgpu.h:979
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1024
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:973
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:971
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:986
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1016
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:988
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1034
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:999
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1058
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:993
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1052
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1039
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:980
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1030
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1037
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1015
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:990
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1017
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1019
@ WGPUTextureFormat_Force32
Definition webgpu.h:1063
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1011
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1040
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1048
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:981
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1014
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1003
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1005
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1031
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1044
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:982
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1056
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:995
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1006
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:978
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1050
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:972
@ WGPUTextureFormat_Undefined
Definition webgpu.h:967
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1054
@ WGPUTextureFormat_R16Float
Definition webgpu.h:974
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1038
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:996
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:994
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1062
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1004
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1012
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:984
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1041
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1008
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1051
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1000
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:968
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1009
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1013
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1047
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:977
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:970
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1045
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1061
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:992
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1036
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1029
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:997
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1046
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:989
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:969
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1042
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1161
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1163
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1164
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1165
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1162
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:877
@ WGPUStencilOperation_Undefined
Definition webgpu.h:871
@ WGPUStencilOperation_Replace
Definition webgpu.h:874
@ WGPUStencilOperation_Keep
Definition webgpu.h:872
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:879
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:878
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:876
@ WGPUStencilOperation_Invert
Definition webgpu.h:875
@ WGPUStencilOperation_Force32
Definition webgpu.h:880
@ WGPUStencilOperation_Zero
Definition webgpu.h:873
@ WGPUAddressMode_Repeat
Definition webgpu.h:361
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:362
@ WGPUAddressMode_Undefined
Definition webgpu.h:359
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:360
@ WGPUAddressMode_Force32
Definition webgpu.h:363
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1102
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1100
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1101
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:948
@ WGPUTextureAspect_Force32
Definition webgpu.h:949
@ WGPUTextureAspect_Undefined
Definition webgpu.h:945
@ WGPUTextureAspect_All
Definition webgpu.h:946
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:947
@ WGPUBufferMapState_Pending
Definition webgpu.h:439
@ WGPUBufferMapState_Mapped
Definition webgpu.h:440
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:438
@ WGPUBufferMapState_Force32
Definition webgpu.h:441
@ WGPUFilterMode_Undefined
Definition webgpu.h:625
@ WGPUFilterMode_Force32
Definition webgpu.h:628
@ WGPUFilterMode_Nearest
Definition webgpu.h:626
@ WGPUFilterMode_Linear
Definition webgpu.h:627
@ WGPUBackendType_Vulkan
Definition webgpu.h:376
@ WGPUBackendType_OpenGL
Definition webgpu.h:377
@ WGPUBackendType_Force32
Definition webgpu.h:379
@ WGPUBackendType_OpenGLES
Definition webgpu.h:378
@ WGPUBackendType_WebGPU
Definition webgpu.h:372
@ WGPUBackendType_D3D11
Definition webgpu.h:373
@ WGPUBackendType_D3D12
Definition webgpu.h:374
@ WGPUBackendType_Undefined
Definition webgpu.h:370
@ WGPUBackendType_Null
Definition webgpu.h:371
@ WGPUBackendType_Metal
Definition webgpu.h:375
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:395
@ WGPUBlendFactor_One
Definition webgpu.h:388
@ WGPUBlendFactor_Zero
Definition webgpu.h:387
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:402
@ WGPUBlendFactor_Undefined
Definition webgpu.h:386
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:394
@ WGPUBlendFactor_Force32
Definition webgpu.h:404
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:401
@ WGPUBlendFactor_Constant
Definition webgpu.h:398
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:390
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:397
@ WGPUBlendFactor_Src
Definition webgpu.h:389
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:392
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:391
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:399
@ WGPUBlendFactor_Src1
Definition webgpu.h:400
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:396
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:403
@ WGPUBlendFactor_Dst
Definition webgpu.h:393
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:845
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:851
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:853
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:850
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:849
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:852
@ WGPULoadOp_Load
Definition webgpu.h:669
@ WGPULoadOp_Force32
Definition webgpu.h:671
@ WGPULoadOp_Undefined
Definition webgpu.h:668
@ WGPULoadOp_Clear
Definition webgpu.h:670
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:718
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:709
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:713
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:717
@ WGPUWaitStatus_Error
Definition webgpu.h:1184
@ WGPUWaitStatus_Force32
Definition webgpu.h:1185
@ WGPUWaitStatus_Success
Definition webgpu.h:1175
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1179
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:893
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:889
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:895
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:894
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:897
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:896
@ WGPUPowerPreference_Force32
Definition webgpu.h:728
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:727
@ WGPUPowerPreference_LowPower
Definition webgpu.h:726
@ WGPUPowerPreference_Undefined
Definition webgpu.h:725
@ WGPUPresentMode_Fifo
Definition webgpu.h:750
@ WGPUPresentMode_Force32
Definition webgpu.h:767
@ WGPUPresentMode_Immediate
Definition webgpu.h:761
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:756
@ WGPUPresentMode_Mailbox
Definition webgpu.h:766
@ WGPUPresentMode_Undefined
Definition webgpu.h:744
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:681
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:679
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:680
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:682
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:675
@ WGPUBlendOperation_Undefined
Definition webgpu.h:411
@ WGPUBlendOperation_Max
Definition webgpu.h:416
@ WGPUBlendOperation_Subtract
Definition webgpu.h:413
@ WGPUBlendOperation_Min
Definition webgpu.h:415
@ WGPUBlendOperation_Add
Definition webgpu.h:412
@ WGPUBlendOperation_Force32
Definition webgpu.h:417
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:414
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:512
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:529
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:516
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:524
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:528
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:520
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:733
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:732
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:734
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:799
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:794
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:790
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:800
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1154
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1156
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1155
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1157
@ WGPUQueryType_Occlusion
Definition webgpu.h:784
@ WGPUQueryType_Timestamp
Definition webgpu.h:785
@ WGPUQueryType_Force32
Definition webgpu.h:786
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:588
@ WGPUFeatureLevel_Core
Definition webgpu.h:596
@ WGPUFeatureLevel_Force32
Definition webgpu.h:597
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:592
@ WGPUAdapterType_CPU
Definition webgpu.h:350
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:348
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:349
@ WGPUAdapterType_Unknown
Definition webgpu.h:351
@ WGPUAdapterType_Force32
Definition webgpu.h:352
@ WGPUInstanceFeatureName_TimedWaitAnyEnable
Definition webgpu.h:655
@ WGPUInstanceFeatureName_ShaderSourceSPIRV
Definition webgpu.h:660
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:661
@ WGPUStatus_Force32
Definition webgpu.h:864
@ WGPUStatus_Success
Definition webgpu.h:862
@ WGPUStatus_Error
Definition webgpu.h:863
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:495
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:490
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:494
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:689
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:691
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:692
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:690
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:933
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:937
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:929
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:925
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:917
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:938
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:921
@ WGPUFrontFace_CW
Definition webgpu.h:637
@ WGPUFrontFace_Undefined
Definition webgpu.h:635
@ WGPUFrontFace_CCW
Definition webgpu.h:636
@ WGPUFrontFace_Force32
Definition webgpu.h:638
@ WGPUStoreOp_Discard
Definition webgpu.h:906
@ WGPUStoreOp_Force32
Definition webgpu.h:907
@ WGPUStoreOp_Store
Definition webgpu.h:905
@ WGPUStoreOp_Undefined
Definition webgpu.h:904
@ WGPUErrorFilter_Internal
Definition webgpu.h:568
@ WGPUErrorFilter_Force32
Definition webgpu.h:569
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:567
@ WGPUErrorFilter_Validation
Definition webgpu.h:566
@ WGPUOptionalBool_True
Definition webgpu.h:700
@ WGPUOptionalBool_Force32
Definition webgpu.h:702
@ WGPUOptionalBool_Undefined
Definition webgpu.h:701
@ WGPUOptionalBool_False
Definition webgpu.h:699
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:459
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:469
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:453
@ WGPUCallbackMode_Force32
Definition webgpu.h:470
@ WGPUTextureSampleType_Float
Definition webgpu.h:1077
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1080
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1072
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1076
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1082
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1081
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1079
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1078
@ WGPUErrorType_NoError
Definition webgpu.h:573
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:575
@ WGPUErrorType_Unknown
Definition webgpu.h:577
@ WGPUErrorType_Validation
Definition webgpu.h:574
@ WGPUErrorType_Force32
Definition webgpu.h:578
@ WGPUErrorType_Internal
Definition webgpu.h:576
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:234
struct WGPUSamplerImpl * WGPUSampler
Definition webgpu.h:241
struct WGPUQueueImpl * WGPUQueue
Definition webgpu.h:236
struct WGPUSurfaceImpl * WGPUSurface
Definition webgpu.h:246
struct WGPURenderBundleImpl * WGPURenderBundle
Definition webgpu.h:237
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
Definition webgpu.h:224
struct WGPUBindGroupImpl * WGPUBindGroup
Definition webgpu.h:219
struct WGPUInstanceImpl * WGPUInstance
Definition webgpu.h:233
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
Definition webgpu.h:220
struct WGPUTextureViewImpl * WGPUTextureView
Definition webgpu.h:248
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
Definition webgpu.h:239
struct WGPUShaderModuleImpl * WGPUShaderModule
Definition webgpu.h:242
struct WGPUQuerySetImpl * WGPUQuerySet
Definition webgpu.h:235
struct WGPUCommandBufferImpl * WGPUCommandBuffer
Definition webgpu.h:222
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
Definition webgpu.h:238
struct WGPUDeviceImpl * WGPUDevice
Definition webgpu.h:232
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
Definition webgpu.h:223
struct WGPUTextureImpl * WGPUTexture
Definition webgpu.h:247
struct WGPUComputePipelineImpl * WGPUComputePipeline
Definition webgpu.h:225
struct WGPURenderPipelineImpl * WGPURenderPipeline
Definition webgpu.h:240
struct WGPUAdapterImpl * WGPUAdapter
Definition webgpu.h:218
struct WGPUBufferImpl * WGPUBuffer
Definition webgpu.h:221
struct WGPUFuture WGPUFuture
uint32_t WGPUBool
Definition webgpu.h:208
uint64_t WGPUFlags
Definition webgpu.h:207
struct WGPUStringView WGPUStringView
void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo)
WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits *limits)
void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures *features)
WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallbackInfo callbackInfo)
void wgpuAdapterAddRef(WGPUAdapter adapter)
WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
void wgpuAdapterRelease(WGPUAdapter adapter)
WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo *info)
void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label)
void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupAddRef(WGPUBindGroup bindGroup)
void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label)
WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer)
WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo)
void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
void wgpuBufferAddRef(WGPUBuffer buffer)
WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void *data, size_t size)
void wgpuBufferRelease(WGPUBuffer buffer)
void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
void wgpuBufferUnmap(WGPUBuffer buffer)
WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const *data, size_t size)
void wgpuBufferDestroy(WGPUBuffer buffer)
void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label)
void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label)
void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer)
WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor)
WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const *descriptor)
void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const *descriptor)
void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label)
void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel)
void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel)
void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyBufferInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label)
void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel)
void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel)
WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline)
void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label)
void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)
WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPUSamplerDescriptor const *descriptor)
WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor)
WGPUFuture wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo)
WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)
WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)
void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures *features)
WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo *adapterInfo)
WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)
void wgpuDeviceRelease(WGPUDevice device)
WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo)
WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits *limits)
WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)
WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor)
WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)
WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)
void wgpuDeviceDestroy(WGPUDevice device)
void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label)
WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)
WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)
void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
void wgpuDeviceAddRef(WGPUDevice device)
WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device)
WGPUFuture wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo)
WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature)
void wgpuInstanceProcessEvents(WGPUInstance instance)
void wgpuInstanceRelease(WGPUInstance instance)
WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo)
WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS)
void wgpuInstanceAddRef(WGPUInstance instance)
WGPUStatus wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures *features)
WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor)
void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout)
void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label)
void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout)
void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label)
void wgpuQuerySetDestroy(WGPUQuerySet querySet)
void wgpuQuerySetRelease(WGPUQuerySet querySet)
void wgpuQuerySetAddRef(WGPUQuerySet querySet)
uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet)
WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet)
void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const *destination, void const *data, size_t dataSize, WGPUTexelCopyBufferLayout const *dataLayout, WGPUExtent3D const *writeSize)
void wgpuQueueAddRef(WGPUQueue queue)
void wgpuQueueRelease(WGPUQueue queue)
void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label)
void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size)
WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo)
void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands)
void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel)
WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const *descriptor)
void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel)
void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label)
void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle)
void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label)
void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel)
void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles)
void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel)
void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label)
void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color)
void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label)
void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline)
void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
void wgpuSamplerAddRef(WGPUSampler sampler)
void wgpuSamplerRelease(WGPUSampler sampler)
void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label)
void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule)
WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo)
void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label)
void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures)
void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures)
void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures)
void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities)
void wgpuSurfaceAddRef(WGPUSurface surface)
WGPUStatus wgpuSurfacePresent(WGPUSurface surface)
void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label)
void wgpuSurfaceUnconfigure(WGPUSurface surface)
void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const *config)
WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
void wgpuSurfaceRelease(WGPUSurface surface)
uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
void wgpuTextureDestroy(WGPUTexture texture)
uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
void wgpuTextureRelease(WGPUTexture texture)
WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
uint32_t wgpuTextureGetHeight(WGPUTexture texture)
uint32_t wgpuTextureGetWidth(WGPUTexture texture)
void wgpuTextureAddRef(WGPUTexture texture)
WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPUTextureViewDescriptor const *descriptor)
WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture)
void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label)
uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture)
void wgpuTextureViewRelease(WGPUTextureView textureView)
void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label)
void wgpuTextureViewAddRef(WGPUTextureView textureView)
WGPUStringView device
Definition webgpu.h:1714
WGPUBackendType backendType
Definition webgpu.h:1724
uint32_t deviceID
Definition webgpu.h:1736
WGPUChainedStruct * nextInChain
Definition webgpu.h:1696
uint32_t subgroupMinSize
Definition webgpu.h:1740
uint32_t vendorID
Definition webgpu.h:1732
WGPUStringView description
Definition webgpu.h:1720
WGPUAdapterType adapterType
Definition webgpu.h:1728
uint32_t subgroupMaxSize
Definition webgpu.h:1744
WGPUStringView architecture
Definition webgpu.h:1708
WGPUStringView vendor
Definition webgpu.h:1702
WGPUChainedStruct * nextInChain
Definition webgpu.h:3725
WGPUStringView label
Definition webgpu.h:3731
WGPUBindGroupLayout layout
Definition webgpu.h:3735
WGPUBindGroupEntry const * entries
Definition webgpu.h:3743
uint64_t offset
Definition webgpu.h:1788
WGPUBuffer buffer
Definition webgpu.h:1781
WGPUSampler sampler
Definition webgpu.h:1803
WGPUTextureView textureView
Definition webgpu.h:1810
WGPUChainedStruct * nextInChain
Definition webgpu.h:1768
uint32_t binding
Definition webgpu.h:1774
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4337
WGPUChainedStruct * nextInChain
Definition webgpu.h:4323
WGPUTextureBindingLayout texture
Definition webgpu.h:3787
WGPUShaderStage visibility
Definition webgpu.h:3769
WGPUBufferBindingLayout buffer
Definition webgpu.h:3779
WGPUChainedStruct * nextInChain
Definition webgpu.h:3761
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3791
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3783
WGPUBlendFactor dstFactor
Definition webgpu.h:1850
WGPUBlendFactor srcFactor
Definition webgpu.h:1843
WGPUBlendOperation operation
Definition webgpu.h:1836
WGPUBlendComponent alpha
Definition webgpu.h:3819
WGPUBlendComponent color
Definition webgpu.h:3815
WGPUBufferBindingType type
Definition webgpu.h:1873
WGPUBool hasDynamicOffset
Definition webgpu.h:1877
WGPUChainedStruct * nextInChain
Definition webgpu.h:1866
WGPUBool mappedAtCreation
Definition webgpu.h:1920
WGPUStringView label
Definition webgpu.h:1904
WGPUBufferUsage usage
Definition webgpu.h:1908
WGPUChainedStruct * nextInChain
Definition webgpu.h:1898
WGPUChainedStruct * nextInChain
Definition webgpu.h:1458
WGPUBufferMapCallback callback
Definition webgpu.h:1465
WGPUCallbackMode mode
Definition webgpu.h:1464
struct WGPUChainedStruct * next
Definition webgpu.h:1436
WGPUSType sType
Definition webgpu.h:1437
WGPUBlendState const * blend
Definition webgpu.h:4366
WGPUColorWriteMask writeMask
Definition webgpu.h:4370
WGPUChainedStruct * nextInChain
Definition webgpu.h:4354
WGPUTextureFormat format
Definition webgpu.h:4362
double a
Definition webgpu.h:1957
double b
Definition webgpu.h:1953
double r
Definition webgpu.h:1945
double g
Definition webgpu.h:1949
WGPUChainedStruct * nextInChain
Definition webgpu.h:1974
WGPUChainedStruct * nextInChain
Definition webgpu.h:1995
WGPUCompilationInfoCallback callback
Definition webgpu.h:1489
WGPUChainedStruct * nextInChain
Definition webgpu.h:1482
WGPUChainedStruct * nextInChain
Definition webgpu.h:3837
WGPUCompilationMessage const * messages
Definition webgpu.h:3845
WGPUChainedStruct * nextInChain
Definition webgpu.h:2019
WGPUCompilationMessageType type
Definition webgpu.h:2033
WGPUStringView message
Definition webgpu.h:2027
WGPUStringView label
Definition webgpu.h:3867
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3871
WGPUChainedStruct * nextInChain
Definition webgpu.h:3861
WGPUComputeState compute
Definition webgpu.h:4401
WGPUChainedStruct * nextInChain
Definition webgpu.h:4387
WGPUPipelineLayout layout
Definition webgpu.h:4397
WGPUChainedStruct * nextInChain
Definition webgpu.h:3887
WGPUConstantEntry const * constants
Definition webgpu.h:3905
size_t constantCount
Definition webgpu.h:3901
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3897
WGPUStringView key
Definition webgpu.h:2083
WGPUChainedStruct * nextInChain
Definition webgpu.h:2077
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1513
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1537
WGPUStencilFaceState stencilFront
Definition webgpu.h:3939
uint32_t stencilWriteMask
Definition webgpu.h:3951
WGPUStencilFaceState stencilBack
Definition webgpu.h:3943
WGPUChainedStruct * nextInChain
Definition webgpu.h:3923
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3931
WGPUCompareFunction depthCompare
Definition webgpu.h:3935
uint32_t stencilReadMask
Definition webgpu.h:3947
WGPUTextureFormat format
Definition webgpu.h:3927
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:4021
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:4030
size_t requiredFeatureCount
Definition webgpu.h:4005
WGPUStringView label
Definition webgpu.h:4001
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:4009
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:4017
WGPUChainedStruct * nextInChain
Definition webgpu.h:3995
WGPULimits const * requiredLimits
Definition webgpu.h:4013
WGPUChainedStruct * nextInChain
Definition webgpu.h:1554
WGPUDeviceLostCallback callback
Definition webgpu.h:1561
WGPUCallbackMode mode
Definition webgpu.h:1560
uint32_t width
Definition webgpu.h:2110
uint32_t depthOrArrayLayers
Definition webgpu.h:2118
uint32_t height
Definition webgpu.h:2114
size_t constantCount
Definition webgpu.h:4524
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4520
WGPUChainedStruct * nextInChain
Definition webgpu.h:4510
size_t targetCount
Definition webgpu.h:4532
WGPUConstantEntry const * constants
Definition webgpu.h:4528
WGPUColorTargetState const * targets
Definition webgpu.h:4536
WGPUFuture future
Definition webgpu.h:4058
WGPUBool completed
Definition webgpu.h:4064
uint64_t id
Definition webgpu.h:2141
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:4087
WGPUChainedStruct * nextInChain
Definition webgpu.h:4079
size_t requiredFeatureCount
Definition webgpu.h:4083
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:4091
size_t timedWaitAnyMaxCount
Definition webgpu.h:2161
WGPUChainedStruct * nextInChain
Definition webgpu.h:2155
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2200
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2276
uint32_t maxTextureDimension2D
Definition webgpu.h:2184
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2216
uint32_t maxTextureDimension3D
Definition webgpu.h:2188
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2220
WGPUChainedStruct * nextInChain
Definition webgpu.h:2176
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2204
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2300
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2212
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2280
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2248
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2292
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2240
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2284
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2264
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2244
uint32_t maxVertexAttributes
Definition webgpu.h:2260
uint32_t maxColorAttachments
Definition webgpu.h:2272
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2268
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2296
uint32_t maxTextureDimension1D
Definition webgpu.h:2180
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2208
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2236
uint64_t maxBufferSize
Definition webgpu.h:2256
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2232
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2288
uint32_t maxVertexBuffers
Definition webgpu.h:2252
uint32_t maxTextureArrayLayers
Definition webgpu.h:2192
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2228
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2224
uint32_t maxImmediateSize
Definition webgpu.h:2304
uint32_t maxBindGroups
Definition webgpu.h:2196
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2362
WGPUChainedStruct * nextInChain
Definition webgpu.h:2350
uint32_t y
Definition webgpu.h:2386
uint32_t z
Definition webgpu.h:2390
uint32_t x
Definition webgpu.h:2382
WGPUQuerySet querySet
Definition webgpu.h:2412
uint32_t endOfPassWriteIndex
Definition webgpu.h:2420
WGPUChainedStruct * nextInChain
Definition webgpu.h:2406
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2416
WGPUChainedStruct * nextInChain
Definition webgpu.h:2437
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2451
WGPUChainedStruct * nextInChain
Definition webgpu.h:1578
WGPUCallbackMode mode
Definition webgpu.h:1584
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1585
WGPUFrontFace frontFace
Definition webgpu.h:2491
WGPUChainedStruct * nextInChain
Definition webgpu.h:2473
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2484
WGPUPrimitiveTopology topology
Definition webgpu.h:2480
WGPUCullMode cullMode
Definition webgpu.h:2498
WGPUBool unclippedDepth
Definition webgpu.h:2502
WGPUQueryType type
Definition webgpu.h:2531
WGPUChainedStruct * nextInChain
Definition webgpu.h:2521
WGPUStringView label
Definition webgpu.h:2527
WGPUChainedStruct * nextInChain
Definition webgpu.h:2552
WGPUStringView label
Definition webgpu.h:2558
WGPUCallbackMode mode
Definition webgpu.h:1608
WGPUChainedStruct * nextInChain
Definition webgpu.h:1602
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1609
WGPUChainedStruct * nextInChain
Definition webgpu.h:2573
WGPUStringView label
Definition webgpu.h:2579
WGPUChainedStruct * nextInChain
Definition webgpu.h:2594
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2608
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2612
WGPUTextureView resolveTarget
Definition webgpu.h:4123
WGPUChainedStruct * nextInChain
Definition webgpu.h:4108
WGPUChainedStruct * nextInChain
Definition webgpu.h:2645
WGPUChainedStruct * nextInChain
Definition webgpu.h:4418
WGPUStringView label
Definition webgpu.h:4424
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4436
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4432
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4440
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4444
WGPUChainedStruct chain
Definition webgpu.h:2711
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4578
WGPUChainedStruct * nextInChain
Definition webgpu.h:4556
WGPUMultisampleState multisample
Definition webgpu.h:4582
WGPUFragmentState const * fragment
Definition webgpu.h:4586
WGPUPrimitiveState primitive
Definition webgpu.h:4574
WGPUPipelineLayout layout
Definition webgpu.h:4566
WGPUVertexState vertex
Definition webgpu.h:4570
WGPURequestAdapterCallback callback
Definition webgpu.h:1633
WGPUChainedStruct * nextInChain
Definition webgpu.h:1626
WGPUFeatureLevel featureLevel
Definition webgpu.h:2744
WGPUBool forceFallbackAdapter
Definition webgpu.h:2755
WGPUSurface compatibleSurface
Definition webgpu.h:2769
WGPUBackendType backendType
Definition webgpu.h:2762
WGPUChainedStruct * nextInChain
Definition webgpu.h:2733
WGPUPowerPreference powerPreference
Definition webgpu.h:2748
WGPUChainedStruct chain
Definition webgpu.h:2790
WGPUCallbackMode mode
Definition webgpu.h:1656
WGPUChainedStruct * nextInChain
Definition webgpu.h:1650
WGPURequestDeviceCallback callback
Definition webgpu.h:1657
WGPUChainedStruct * nextInChain
Definition webgpu.h:2814
WGPUSamplerBindingType type
Definition webgpu.h:2821
WGPUFilterMode minFilter
Definition webgpu.h:2877
WGPUAddressMode addressModeU
Definition webgpu.h:2849
WGPUCompareFunction compare
Definition webgpu.h:2904
WGPUAddressMode addressModeW
Definition webgpu.h:2863
uint16_t maxAnisotropy
Definition webgpu.h:2908
WGPUAddressMode addressModeV
Definition webgpu.h:2856
WGPUStringView label
Definition webgpu.h:2842
WGPUFilterMode magFilter
Definition webgpu.h:2870
WGPUChainedStruct * nextInChain
Definition webgpu.h:2836
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2884
WGPUChainedStruct * nextInChain
Definition webgpu.h:2933
WGPUStringView label
Definition webgpu.h:2939
WGPUChainedStruct chain
Definition webgpu.h:2954
uint32_t const * code
Definition webgpu.h:2962
WGPUChainedStruct chain
Definition webgpu.h:2981
WGPUStringView code
Definition webgpu.h:2987
WGPUCompareFunction compare
Definition webgpu.h:3011
WGPUStencilOperation depthFailOp
Definition webgpu.h:3025
WGPUStencilOperation passOp
Definition webgpu.h:3032
WGPUStencilOperation failOp
Definition webgpu.h:3018
WGPUChainedStruct * nextInChain
Definition webgpu.h:3049
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3067
WGPUTextureFormat format
Definition webgpu.h:3060
WGPUStorageTextureAccess access
Definition webgpu.h:3056
size_t length
Definition webgpu.h:190
char const * data
Definition webgpu.h:189
WGPUFeatureName const * features
Definition webgpu.h:3091
WGPUInstanceFeatureName const * features
Definition webgpu.h:3113
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3135
WGPUTextureFormat const * formats
Definition webgpu.h:3169
WGPUChainedStruct * nextInChain
Definition webgpu.h:3152
WGPUPresentMode const * presentModes
Definition webgpu.h:3180
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3191
WGPUTextureUsage usages
Definition webgpu.h:3159
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3222
WGPUChainedStruct chain
Definition webgpu.h:3214
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3218
WGPUTextureUsage usage
Definition webgpu.h:3262
WGPUTextureFormat format
Definition webgpu.h:3256
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3284
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3294
WGPUChainedStruct * nextInChain
Definition webgpu.h:3244
WGPUPresentMode presentMode
Definition webgpu.h:3303
WGPUChainedStruct * nextInChain
Definition webgpu.h:3330
WGPUStringView label
Definition webgpu.h:3338
WGPUChainedStruct chain
Definition webgpu.h:3381
WGPUChainedStruct chain
Definition webgpu.h:3407
WGPUChainedStruct chain
Definition webgpu.h:3440
WGPUChainedStruct chain
Definition webgpu.h:3474
WGPUChainedStruct chain
Definition webgpu.h:3507
WGPUChainedStruct * nextInChain
Definition webgpu.h:3541
WGPUTexture texture
Definition webgpu.h:3548
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3554
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4158
WGPUOrigin3D origin
Definition webgpu.h:4188
WGPUTextureAspect aspect
Definition webgpu.h:4195
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3611
WGPUTextureSampleType sampleType
Definition webgpu.h:3604
WGPUChainedStruct * nextInChain
Definition webgpu.h:3597
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4253
WGPUTextureDimension dimension
Definition webgpu.h:4229
WGPUStringView label
Definition webgpu.h:4218
uint32_t mipLevelCount
Definition webgpu.h:4241
WGPUChainedStruct * nextInChain
Definition webgpu.h:4212
WGPUTextureFormat format
Definition webgpu.h:4237
WGPUTextureUsage usage
Definition webgpu.h:4222
WGPUExtent3D size
Definition webgpu.h:4233
WGPUChainedStruct * nextInChain
Definition webgpu.h:3632
WGPUTextureUsage usage
Definition webgpu.h:3673
WGPUTextureFormat format
Definition webgpu.h:3642
WGPUTextureViewDimension dimension
Definition webgpu.h:3646
WGPUStringView label
Definition webgpu.h:3638
WGPUTextureAspect aspect
Definition webgpu.h:3669
WGPUChainedStruct * nextInChain
Definition webgpu.h:1674
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1675
WGPUVertexFormat format
Definition webgpu.h:3700
WGPUChainedStruct * nextInChain
Definition webgpu.h:3696
uint32_t shaderLocation
Definition webgpu.h:3708
WGPUVertexAttribute const * attributes
Definition webgpu.h:4305
WGPUVertexStepMode stepMode
Definition webgpu.h:4293
WGPUChainedStruct * nextInChain
Definition webgpu.h:4289
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4474
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4490
WGPUConstantEntry const * constants
Definition webgpu.h:4482
size_t constantCount
Definition webgpu.h:4478
size_t bufferCount
Definition webgpu.h:4486
WGPUChainedStruct * nextInChain
Definition webgpu.h:4464