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_STRLEN (SIZE_MAX)
157#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
162#define WGPU_WHOLE_SIZE (UINT64_MAX)
163
193typedef struct WGPUStringView {
194 WGPU_NULLABLE char const * data;
195 size_t length;
196} WGPUStringView WGPU_STRUCTURE_ATTRIBUTE;
197
201#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
202 /*.data=*/NULL _wgpu_COMMA \
203 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
204})
205
206typedef uint64_t WGPUFlags;
207typedef uint32_t WGPUBool;
208
217typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
218typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
219typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
220typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
221typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
222typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
223typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
224typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
231typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
232typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
233typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
234typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
235typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
236typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
237typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
238typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
239typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
240typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
241typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
245typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
246typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
247typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
248
251// Structure forward declarations
252struct WGPUAdapterInfo;
253struct WGPUBindGroupEntry;
254struct WGPUBlendComponent;
257struct WGPUColor;
261struct WGPUConstantEntry;
262struct WGPUExtent3D;
263struct WGPUFuture;
264struct WGPUInstanceLimits;
265struct WGPULimits;
267struct WGPUOrigin3D;
270struct WGPUPrimitiveState;
296struct WGPUSurfaceTexture;
303struct WGPUBlendState;
306struct WGPUComputeState;
309struct WGPUFutureWaitInfo;
323struct WGPUVertexState;
324struct WGPUFragmentState;
326
327// Callback info structure forward declarations
338
346typedef enum WGPUAdapterType {
351 WGPUAdapterType_Force32 = 0x7FFFFFFF
352} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
353
364
380
405
418
435
442
471
487
496
503
530
541
542typedef enum WGPUCullMode {
547 WGPUCullMode_None = 0x00000001,
548 WGPUCullMode_Front = 0x00000002,
549 WGPUCullMode_Back = 0x00000003,
550 WGPUCullMode_Force32 = 0x7FFFFFFF
551} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
552
563
564typedef enum WGPUErrorFilter {
568 WGPUErrorFilter_Force32 = 0x7FFFFFFF
569} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
570
571typedef enum WGPUErrorType {
577 WGPUErrorType_Force32 = 0x7FFFFFFF
578} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
579
583typedef enum WGPUFeatureLevel {
596 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
597} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
598
619
620typedef enum WGPUFilterMode {
627 WGPUFilterMode_Force32 = 0x7FFFFFFF
628} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
629
630typedef enum WGPUFrontFace {
635 WGPUFrontFace_CCW = 0x00000001,
636 WGPUFrontFace_CW = 0x00000002,
637 WGPUFrontFace_Force32 = 0x7FFFFFFF
638} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
639
640typedef enum WGPUIndexFormat {
647 WGPUIndexFormat_Force32 = 0x7FFFFFFF
648} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
649
669
670typedef enum WGPULoadOp {
675 WGPULoadOp_Load = 0x00000001,
676 WGPULoadOp_Clear = 0x00000002,
677 WGPULoadOp_Force32 = 0x7FFFFFFF
678} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
679
690
700
701typedef enum WGPUOptionalBool {
708 WGPUOptionalBool_Force32 = 0x7FFFFFFF
709} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
710
726
736
742
775
788
789typedef enum WGPUQueryType {
792 WGPUQueryType_Force32 = 0x7FFFFFFF
793} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
794
808
819
829
846
852typedef enum WGPUStatus {
853 WGPUStatus_Success = 0x00000001,
854 WGPUStatus_Error = 0x00000002,
855 WGPUStatus_Force32 = 0x7FFFFFFF
856} WGPUStatus WGPU_ENUM_ATTRIBUTE;
857
873
890
891typedef enum WGPUStoreOp {
896 WGPUStoreOp_Store = 0x00000001,
898 WGPUStoreOp_Force32 = 0x7FFFFFFF
899} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
900
915
946
957
968
969typedef enum WGPUTextureFormat {
1069 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1070} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1071
1090
1104
1110
1111typedef enum WGPUVertexFormat {
1153 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1154} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1155
1165
1169typedef enum WGPUWaitStatus {
1183 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1184} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1185
1193
1210static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1214static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1220static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1224static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1228static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1232static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1236static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1240static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1244static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1248static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1252static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1253
1261static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1262static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1263static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1264static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1265static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1269static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1270
1278static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1279static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1280static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1281
1289static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1290static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1291static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1292static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1293
1301static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1302static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1303static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1304static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1305static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1306static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1307
1310typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1311
1325typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1326
1335typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1336
1343typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1344
1351typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1352
1366typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1367
1385typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1386
1399typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1400
1410typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1411
1421typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1422
1432typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1433
1442typedef struct WGPUChainedStruct {
1445} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1446
1476
1480#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1481 /*.nextInChain=*/NULL _wgpu_COMMA \
1482 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1483 /*.callback=*/NULL _wgpu_COMMA \
1484 /*.userdata1=*/NULL _wgpu_COMMA \
1485 /*.userdata2=*/NULL _wgpu_COMMA \
1486})
1487
1500
1504#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1505 /*.nextInChain=*/NULL _wgpu_COMMA \
1506 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1507 /*.callback=*/NULL _wgpu_COMMA \
1508 /*.userdata1=*/NULL _wgpu_COMMA \
1509 /*.userdata2=*/NULL _wgpu_COMMA \
1510})
1511
1524
1528#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1529 /*.nextInChain=*/NULL _wgpu_COMMA \
1530 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1531 /*.callback=*/NULL _wgpu_COMMA \
1532 /*.userdata1=*/NULL _wgpu_COMMA \
1533 /*.userdata2=*/NULL _wgpu_COMMA \
1534})
1535
1548
1552#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1553 /*.nextInChain=*/NULL _wgpu_COMMA \
1554 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1555 /*.callback=*/NULL _wgpu_COMMA \
1556 /*.userdata1=*/NULL _wgpu_COMMA \
1557 /*.userdata2=*/NULL _wgpu_COMMA \
1558})
1559
1572
1576#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1577 /*.nextInChain=*/NULL _wgpu_COMMA \
1578 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1579 /*.callback=*/NULL _wgpu_COMMA \
1580 /*.userdata1=*/NULL _wgpu_COMMA \
1581 /*.userdata2=*/NULL _wgpu_COMMA \
1582})
1583
1596
1600#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1601 /*.nextInChain=*/NULL _wgpu_COMMA \
1602 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1603 /*.callback=*/NULL _wgpu_COMMA \
1604 /*.userdata1=*/NULL _wgpu_COMMA \
1605 /*.userdata2=*/NULL _wgpu_COMMA \
1606})
1607
1620
1624#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1625 /*.nextInChain=*/NULL _wgpu_COMMA \
1626 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1627 /*.callback=*/NULL _wgpu_COMMA \
1628 /*.userdata1=*/NULL _wgpu_COMMA \
1629 /*.userdata2=*/NULL _wgpu_COMMA \
1630})
1631
1644
1648#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1649 /*.nextInChain=*/NULL _wgpu_COMMA \
1650 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1651 /*.callback=*/NULL _wgpu_COMMA \
1652 /*.userdata1=*/NULL _wgpu_COMMA \
1653 /*.userdata2=*/NULL _wgpu_COMMA \
1654})
1655
1668
1672#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1673 /*.nextInChain=*/NULL _wgpu_COMMA \
1674 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1675 /*.callback=*/NULL _wgpu_COMMA \
1676 /*.userdata1=*/NULL _wgpu_COMMA \
1677 /*.userdata2=*/NULL _wgpu_COMMA \
1678})
1679
1686
1690#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1691 /*.nextInChain=*/NULL _wgpu_COMMA \
1692 /*.callback=*/NULL _wgpu_COMMA \
1693 /*.userdata1=*/NULL _wgpu_COMMA \
1694 /*.userdata2=*/NULL _wgpu_COMMA \
1695})
1696
1753
1757#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1758 /*.nextInChain=*/NULL _wgpu_COMMA \
1759 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1760 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1761 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1762 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1763 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1764 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1765 /*.vendorID=*/0 _wgpu_COMMA \
1766 /*.deviceID=*/0 _wgpu_COMMA \
1767 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1768 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1769})
1770
1774typedef struct WGPUBindGroupEntry {
1781 uint32_t binding;
1788 WGPU_NULLABLE WGPUBuffer buffer;
1795 uint64_t offset;
1803 uint64_t size;
1810 WGPU_NULLABLE WGPUSampler sampler;
1818} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1819
1823#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1824 /*.nextInChain=*/NULL _wgpu_COMMA \
1825 /*.binding=*/0 _wgpu_COMMA \
1826 /*.buffer=*/NULL _wgpu_COMMA \
1827 /*.offset=*/0 _wgpu_COMMA \
1828 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1829 /*.sampler=*/NULL _wgpu_COMMA \
1830 /*.textureView=*/NULL _wgpu_COMMA \
1831})
1832
1859
1863#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1864 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1865 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1866 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1867})
1868
1890
1894#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1895 /*.nextInChain=*/NULL _wgpu_COMMA \
1896 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1897 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1898 /*.minBindingSize=*/0 _wgpu_COMMA \
1899})
1900
1929
1933#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1934 /*.nextInChain=*/NULL _wgpu_COMMA \
1935 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1936 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1937 /*.size=*/0 _wgpu_COMMA \
1938 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1939})
1940
1948typedef struct WGPUColor {
1952 double r;
1956 double g;
1960 double b;
1964 double a;
1965} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1966
1970#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1971 /*.r=*/0. _wgpu_COMMA \
1972 /*.g=*/0. _wgpu_COMMA \
1973 /*.b=*/0. _wgpu_COMMA \
1974 /*.a=*/0. _wgpu_COMMA \
1975})
1976
1989
1993#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1994 /*.nextInChain=*/NULL _wgpu_COMMA \
1995 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1996})
1997
2010
2014#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2015 /*.nextInChain=*/NULL _wgpu_COMMA \
2016 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2017})
2018
2066
2070#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2071 /*.nextInChain=*/NULL _wgpu_COMMA \
2072 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2073 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2074 /*.lineNum=*/0 _wgpu_COMMA \
2075 /*.linePos=*/0 _wgpu_COMMA \
2076 /*.offset=*/0 _wgpu_COMMA \
2077 /*.length=*/0 _wgpu_COMMA \
2078})
2079
2100
2104#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2105 /*.nextInChain=*/NULL _wgpu_COMMA \
2106 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2107 /*.value=*/0. _wgpu_COMMA \
2108})
2109
2113typedef struct WGPUExtent3D {
2117 uint32_t width;
2121 uint32_t height;
2126} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2127
2131#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2132 /*.width=*/0 _wgpu_COMMA \
2133 /*.height=*/1 _wgpu_COMMA \
2134 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2135})
2136
2142typedef struct WGPUFuture {
2148 uint64_t id;
2149} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2150
2154#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2155 /*.id=*/0 _wgpu_COMMA \
2156})
2157
2170
2174#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2175 /*.nextInChain=*/NULL _wgpu_COMMA \
2176 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2177})
2178
2313
2317#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2318 /*.nextInChain=*/NULL _wgpu_COMMA \
2319 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2320 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2321 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2322 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2323 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2324 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2325 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2326 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2327 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2328 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2329 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2330 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2331 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2332 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2333 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2334 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2335 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2336 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2337 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2338 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2339 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2340 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2341 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2342 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2343 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2344 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2345 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2346 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2347 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2348 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2349 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2350 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2351})
2352
2371
2375#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2376 /*.nextInChain=*/NULL _wgpu_COMMA \
2377 /*.count=*/1 _wgpu_COMMA \
2378 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2379 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2380})
2381
2385typedef struct WGPUOrigin3D {
2389 uint32_t x;
2393 uint32_t y;
2397 uint32_t z;
2398} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2399
2403#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2404 /*.x=*/0 _wgpu_COMMA \
2405 /*.y=*/0 _wgpu_COMMA \
2406 /*.z=*/0 _wgpu_COMMA \
2407})
2408
2429
2433#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2434 /*.nextInChain=*/NULL _wgpu_COMMA \
2435 /*.querySet=*/NULL _wgpu_COMMA \
2436 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2437 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2438})
2439
2464
2468#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2469 /*.nextInChain=*/NULL _wgpu_COMMA \
2470 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2471 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2472 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2473 /*.immediateSize=*/0 _wgpu_COMMA \
2474})
2475
2511
2515#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2516 /*.nextInChain=*/NULL _wgpu_COMMA \
2517 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2518 /*.stripIndexFormat=*/_wgpu_ENUM_ZERO_INIT(WGPUIndexFormat) _wgpu_COMMA \
2519 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2520 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2521 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2522})
2523
2544
2548#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2549 /*.nextInChain=*/NULL _wgpu_COMMA \
2550 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2551 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2552 /*.count=*/0 _wgpu_COMMA \
2553})
2554
2567
2571#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2572 /*.nextInChain=*/NULL _wgpu_COMMA \
2573 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2574})
2575
2588
2592#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2593 /*.nextInChain=*/NULL _wgpu_COMMA \
2594 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2595})
2596
2633
2637#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2638 /*.nextInChain=*/NULL _wgpu_COMMA \
2639 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2640 /*.colorFormatCount=*/0 _wgpu_COMMA \
2641 /*.colorFormats=*/NULL _wgpu_COMMA \
2642 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2643 /*.sampleCount=*/1 _wgpu_COMMA \
2644 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2645 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2646})
2647
2697
2701#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2702 /*.nextInChain=*/NULL _wgpu_COMMA \
2703 /*.view=*/NULL _wgpu_COMMA \
2704 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2705 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2706 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2707 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2708 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2709 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2710 /*.stencilClearValue=*/0 _wgpu_COMMA \
2711 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2712})
2713
2724
2728#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2729 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2730 /*.next=*/NULL _wgpu_COMMA \
2731 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2732 }) _wgpu_COMMA \
2733 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2734})
2735
2750
2754#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2755 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2756 /*.next=*/NULL _wgpu_COMMA \
2757 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2758 }) _wgpu_COMMA \
2759 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2760})
2761
2775
2779#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2780 /*.nextInChain=*/NULL _wgpu_COMMA \
2781 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2782})
2783
2862
2866#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2867 /*.nextInChain=*/NULL _wgpu_COMMA \
2868 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2869 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2870 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2871 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2872 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2873 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2874 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2875 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2876 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2877 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2878 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2879})
2880
2889 uint32_t codeSize;
2893 uint32_t const * code;
2894} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2895
2899#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2900 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2901 /*.next=*/NULL _wgpu_COMMA \
2902 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2903 }) _wgpu_COMMA \
2904 /*.codeSize=*/0 _wgpu_COMMA \
2905 /*.code=*/NULL _wgpu_COMMA \
2906})
2907
2920
2924#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2925 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2926 /*.next=*/NULL _wgpu_COMMA \
2927 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2928 }) _wgpu_COMMA \
2929 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2930})
2931
2965
2969#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2970 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2971 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2972 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2973 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2974})
2975
3000
3004#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3005 /*.nextInChain=*/NULL _wgpu_COMMA \
3006 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3007 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3008 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3009})
3010
3023} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3024
3028#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3029 /*.featureCount=*/0 _wgpu_COMMA \
3030 /*.features=*/NULL _wgpu_COMMA \
3031})
3032
3046
3050#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
3051 /*.featureCount=*/0 _wgpu_COMMA \
3052 /*.features=*/NULL _wgpu_COMMA \
3053})
3054
3068
3072#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3073 /*.featureCount=*/0 _wgpu_COMMA \
3074 /*.features=*/NULL _wgpu_COMMA \
3075})
3076
3124
3128#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3129 /*.nextInChain=*/NULL _wgpu_COMMA \
3130 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3131 /*.formatCount=*/0 _wgpu_COMMA \
3132 /*.formats=*/NULL _wgpu_COMMA \
3133 /*.presentModeCount=*/0 _wgpu_COMMA \
3134 /*.presentModes=*/NULL _wgpu_COMMA \
3135 /*.alphaModeCount=*/0 _wgpu_COMMA \
3136 /*.alphaModes=*/NULL _wgpu_COMMA \
3137})
3138
3155
3159#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3160 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3161 /*.next=*/NULL _wgpu_COMMA \
3162 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3163 }) _wgpu_COMMA \
3164 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3165 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3166})
3167
3236
3240#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3241 /*.nextInChain=*/NULL _wgpu_COMMA \
3242 /*.device=*/NULL _wgpu_COMMA \
3243 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3244 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3245 /*.width=*/0 _wgpu_COMMA \
3246 /*.height=*/0 _wgpu_COMMA \
3247 /*.viewFormatCount=*/0 _wgpu_COMMA \
3248 /*.viewFormats=*/NULL _wgpu_COMMA \
3249 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3250 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3251})
3252
3267
3271#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3272 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3273 /*.next=*/NULL _wgpu_COMMA \
3274 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3275 }) _wgpu_COMMA \
3276 /*.window=*/NULL _wgpu_COMMA \
3277})
3278
3293
3297#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3298 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3299 /*.next=*/NULL _wgpu_COMMA \
3300 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3301 }) _wgpu_COMMA \
3302 /*.layer=*/NULL _wgpu_COMMA \
3303})
3304
3325
3329#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3330 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3331 /*.next=*/NULL _wgpu_COMMA \
3332 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3333 }) _wgpu_COMMA \
3334 /*.display=*/NULL _wgpu_COMMA \
3335 /*.surface=*/NULL _wgpu_COMMA \
3336})
3337
3359
3363#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3364 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3365 /*.next=*/NULL _wgpu_COMMA \
3366 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3367 }) _wgpu_COMMA \
3368 /*.hinstance=*/NULL _wgpu_COMMA \
3369 /*.hwnd=*/NULL _wgpu_COMMA \
3370})
3371
3392
3396#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3397 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3398 /*.next=*/NULL _wgpu_COMMA \
3399 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3400 }) _wgpu_COMMA \
3401 /*.connection=*/NULL _wgpu_COMMA \
3402 /*.window=*/0 _wgpu_COMMA \
3403})
3404
3425
3429#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3430 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3431 /*.next=*/NULL _wgpu_COMMA \
3432 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3433 }) _wgpu_COMMA \
3434 /*.display=*/NULL _wgpu_COMMA \
3435 /*.window=*/0 _wgpu_COMMA \
3436})
3437
3460
3464#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3465 /*.nextInChain=*/NULL _wgpu_COMMA \
3466 /*.texture=*/NULL _wgpu_COMMA \
3467 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3468})
3469
3477 uint64_t offset;
3481 uint32_t bytesPerRow;
3486} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3487
3491#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3492 /*.offset=*/0 _wgpu_COMMA \
3493 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3494 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3495})
3496
3521
3525#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3526 /*.nextInChain=*/NULL _wgpu_COMMA \
3527 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3528 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3529 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3530})
3531
3579
3583#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3584 /*.nextInChain=*/NULL _wgpu_COMMA \
3585 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3586 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3587 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3588 /*.baseMipLevel=*/0 _wgpu_COMMA \
3589 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3590 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3591 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3592 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3593 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3594})
3595
3614
3618#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3619 /*.nextInChain=*/NULL _wgpu_COMMA \
3620 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3621 /*.offset=*/0 _wgpu_COMMA \
3622 /*.shaderLocation=*/0 _wgpu_COMMA \
3623})
3624
3649
3653#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3654 /*.nextInChain=*/NULL _wgpu_COMMA \
3655 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3656 /*.layout=*/NULL _wgpu_COMMA \
3657 /*.entryCount=*/0 _wgpu_COMMA \
3658 /*.entries=*/NULL _wgpu_COMMA \
3659})
3660
3697
3701#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3702 /*.nextInChain=*/NULL _wgpu_COMMA \
3703 /*.binding=*/0 _wgpu_COMMA \
3704 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3705 /*.bindingArraySize=*/0 _wgpu_COMMA \
3706 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3707 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3708 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3709 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3710})
3711
3725
3729#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3730 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3731 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3732})
3733
3751
3755#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3756 /*.nextInChain=*/NULL _wgpu_COMMA \
3757 /*.messageCount=*/0 _wgpu_COMMA \
3758 /*.messages=*/NULL _wgpu_COMMA \
3759})
3760
3777
3781#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3782 /*.nextInChain=*/NULL _wgpu_COMMA \
3783 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3784 /*.timestampWrites=*/NULL _wgpu_COMMA \
3785})
3786
3811
3815#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3816 /*.nextInChain=*/NULL _wgpu_COMMA \
3817 /*.module=*/NULL _wgpu_COMMA \
3818 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3819 /*.constantCount=*/0 _wgpu_COMMA \
3820 /*.constants=*/NULL _wgpu_COMMA \
3821})
3822
3877
3881#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3882 /*.nextInChain=*/NULL _wgpu_COMMA \
3883 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3884 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3885 /*.depthCompare=*/_wgpu_ENUM_ZERO_INIT(WGPUCompareFunction) _wgpu_COMMA \
3886 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3887 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3888 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3889 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3890 /*.depthBias=*/0 _wgpu_COMMA \
3891 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3892 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3893})
3894
3936
3940#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
3941 /*.nextInChain=*/NULL _wgpu_COMMA \
3942 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3943 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3944 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3945 /*.requiredLimits=*/NULL _wgpu_COMMA \
3946 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
3947 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
3948 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
3949})
3950
3970
3974#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3975 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3976 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
3977})
3978
3997
4001#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4002 /*.nextInChain=*/NULL _wgpu_COMMA \
4003 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4004 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4005 /*.requiredLimits=*/NULL _wgpu_COMMA \
4006})
4007
4041
4045#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4046 /*.nextInChain=*/NULL _wgpu_COMMA \
4047 /*.view=*/NULL _wgpu_COMMA \
4048 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4049 /*.resolveTarget=*/NULL _wgpu_COMMA \
4050 /*.loadOp=*/_wgpu_ENUM_ZERO_INIT(WGPULoadOp) _wgpu_COMMA \
4051 /*.storeOp=*/_wgpu_ENUM_ZERO_INIT(WGPUStoreOp) _wgpu_COMMA \
4052 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4053})
4054
4097
4101#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4102 /*.nextInChain=*/NULL _wgpu_COMMA \
4103 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4104 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4105 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4106 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4107 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4108})
4109
4122
4126#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4127 /*.nextInChain=*/NULL _wgpu_COMMA \
4128 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4129})
4130
4149
4153#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4154 /*.nextInChain=*/NULL _wgpu_COMMA \
4155 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4156})
4157
4171
4175#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4176 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4177 /*.buffer=*/NULL _wgpu_COMMA \
4178})
4179
4204
4208#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4209 /*.texture=*/NULL _wgpu_COMMA \
4210 /*.mipLevel=*/0 _wgpu_COMMA \
4211 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4212 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4213})
4214
4262
4266#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4267 /*.nextInChain=*/NULL _wgpu_COMMA \
4268 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4269 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4270 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4271 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4272 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4273 /*.mipLevelCount=*/1 _wgpu_COMMA \
4274 /*.sampleCount=*/1 _wgpu_COMMA \
4275 /*.viewFormatCount=*/0 _wgpu_COMMA \
4276 /*.viewFormats=*/NULL _wgpu_COMMA \
4277})
4278
4314
4318#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4319 /*.nextInChain=*/NULL _wgpu_COMMA \
4320 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4321 /*.arrayStride=*/0 _wgpu_COMMA \
4322 /*.attributeCount=*/0 _wgpu_COMMA \
4323 /*.attributes=*/NULL _wgpu_COMMA \
4324})
4325
4346
4350#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4351 /*.nextInChain=*/NULL _wgpu_COMMA \
4352 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4353 /*.entryCount=*/0 _wgpu_COMMA \
4354 /*.entries=*/NULL _wgpu_COMMA \
4355})
4356
4379
4383#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4384 /*.nextInChain=*/NULL _wgpu_COMMA \
4385 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4386 /*.blend=*/NULL _wgpu_COMMA \
4387 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4388})
4389
4410
4414#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4415 /*.nextInChain=*/NULL _wgpu_COMMA \
4416 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4417 /*.layout=*/NULL _wgpu_COMMA \
4418 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4419})
4420
4453
4457#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4458 /*.nextInChain=*/NULL _wgpu_COMMA \
4459 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4460 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4461 /*.colorAttachments=*/NULL _wgpu_COMMA \
4462 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4463 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4464 /*.timestampWrites=*/NULL _wgpu_COMMA \
4465})
4466
4499
4503#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4504 /*.nextInChain=*/NULL _wgpu_COMMA \
4505 /*.module=*/NULL _wgpu_COMMA \
4506 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4507 /*.constantCount=*/0 _wgpu_COMMA \
4508 /*.constants=*/NULL _wgpu_COMMA \
4509 /*.bufferCount=*/0 _wgpu_COMMA \
4510 /*.buffers=*/NULL _wgpu_COMMA \
4511})
4512
4545
4549#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4550 /*.nextInChain=*/NULL _wgpu_COMMA \
4551 /*.module=*/NULL _wgpu_COMMA \
4552 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4553 /*.constantCount=*/0 _wgpu_COMMA \
4554 /*.constants=*/NULL _wgpu_COMMA \
4555 /*.targetCount=*/0 _wgpu_COMMA \
4556 /*.targets=*/NULL _wgpu_COMMA \
4557})
4558
4595
4599#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4600 /*.nextInChain=*/NULL _wgpu_COMMA \
4601 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4602 /*.layout=*/NULL _wgpu_COMMA \
4603 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4604 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4605 /*.depthStencil=*/NULL _wgpu_COMMA \
4606 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4607 /*.fragment=*/NULL _wgpu_COMMA \
4608})
4609
4612#ifdef __cplusplus
4613extern "C" {
4614#endif
4615
4616#if !defined(WGPU_SKIP_PROCS)
4617// Global procs
4622typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4627typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4632typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4637typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4642typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4643
4644
4645// Procs of Adapter
4650typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4655typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4660typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4665typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4670typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4675typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4680typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4681
4682// Procs of AdapterInfo
4687typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4688
4689// Procs of BindGroup
4694typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4699typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4704typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4705
4706// Procs of BindGroupLayout
4711typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4716typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4721typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4722
4723// Procs of Buffer
4728typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4733typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4738typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4743typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4748typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4753typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4758typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4763typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4768typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4773typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4778typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4783typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4788typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4789
4790// Procs of CommandBuffer
4795typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4800typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4805typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4806
4807// Procs of CommandEncoder
4812typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4817typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4822typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4827typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4832typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4837typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4842typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4847typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4852typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4857typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4862typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4867typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4872typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4877typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4882typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4887typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4888
4889// Procs of ComputePassEncoder
4894typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4899typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4904typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4909typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4914typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4919typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4924typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4929typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4934typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4939typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4944typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4945
4946// Procs of ComputePipeline
4951typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
4956typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4961typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4966typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4967
4968// Procs of Device
4973typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4978typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4983typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4988typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4993typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4998typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5003typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5008typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5013typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5018typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5023typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5028typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5033typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5038typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5043typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5048typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5053typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5058typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5063typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5068typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5073typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5078typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5083typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5088typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5093typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5098typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5099
5100// Procs of Instance
5105typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5110typedef WGPUStatus (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5115typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5120typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5125typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5130typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5135typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5140typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5141
5142// Procs of PipelineLayout
5147typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5152typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5157typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5158
5159// Procs of QuerySet
5164typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5169typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5174typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5179typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5184typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5189typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5190
5191// Procs of Queue
5196typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5201typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5206typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5211typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5216typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5221typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5226typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5227
5228// Procs of RenderBundle
5233typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5238typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5243typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5244
5245// Procs of RenderBundleEncoder
5250typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5255typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5260typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5265typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5270typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5275typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5280typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5285typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5290typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5295typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5300typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5305typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5310typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5315typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5320typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5321
5322// Procs of RenderPassEncoder
5327typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5332typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5337typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5342typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5347typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5352typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5357typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5362typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5367typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5372typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5377typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5382typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5387typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5392typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5397typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5402typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5407typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5412typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5417typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5422typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5427typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5432typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5433
5434// Procs of RenderPipeline
5439typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5444typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5449typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5454typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5455
5456// Procs of Sampler
5461typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5466typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5471typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5472
5473// Procs of ShaderModule
5478typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5483typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5488typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5493typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5494
5495// Procs of SupportedFeatures
5500typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5501
5502// Procs of SupportedInstanceFeatures
5507typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5508
5509// Procs of SupportedWGSLLanguageFeatures
5514typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5515
5516// Procs of Surface
5521typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5526typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5531typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5536typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5541typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5546typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5551typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5556typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5557
5558// Procs of SurfaceCapabilities
5563typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5564
5565// Procs of Texture
5570typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5575typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5580typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5585typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5590typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5595typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5600typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5605typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5610typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5615typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5620typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5625typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5630typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5631
5632// Procs of TextureView
5637typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5642typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5647typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5648
5649#endif // !defined(WGPU_SKIP_PROCS)
5650
5651#if !defined(WGPU_SKIP_DECLARATIONS)
5664WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5671WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5678WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5682WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5687WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5688
5710WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5718WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5723WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5724WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5725WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5726WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5727WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5728
5740WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5741
5750WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5751WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5752WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5753
5762WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5763WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5764WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5765
5774WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5792WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5809WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5810WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5811WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5812WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5821WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5842WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5843WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5844WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5865WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5866WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5867WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5868
5877WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5878WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5879WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5880
5893WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5898WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5899WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5900WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5901WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5902WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5903WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5908WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5909WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5910WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5911WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5912WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5913WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5914WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5915WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5916WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5917
5926WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5927WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5928WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5929WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5930WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5931WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5932WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5933WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5934WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5935WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5936WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5937
5950WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5951WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5952WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5953WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5954
5967WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5972WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5982WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5987WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5992WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5998WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6003WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6013WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6019WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6024WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6029WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6030WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6038WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6045WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6050WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6055WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6060WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6061WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6066WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6071WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6072WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6073WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6074WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6075
6094WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6099WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6105WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6106WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6112WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6113WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6114WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6115
6124WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6125WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6126WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6127
6136WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6137WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6138WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6139WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6140WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6141WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6142
6151WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6152WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6153WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6158WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6159WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6160WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6161WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6162
6171WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6172WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6173WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6174
6183WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6184WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6185WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6186WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6191WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6192WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6193WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6194WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6195WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6196WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6197WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6198WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6199WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6200WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6201WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6202
6211WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6212WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6213WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6214WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6215WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6216WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6217WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6218WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6219WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6220WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6221WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6222WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6227WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6228WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6229WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6230WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6231WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6232WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6233WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6241WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6242
6255WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6256WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6257WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6258WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6259
6268WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6269WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6270WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6271
6280WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6281WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6282WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6283WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6284
6296WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6297
6309WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6310
6322WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6323
6341WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6357WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6367WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6375WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6382WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6387WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6388WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6389WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6390
6402WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6403
6416WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6417WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6418WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6419WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6420WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6421WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6422WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6423WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6424WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6425WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6426WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6427WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6428WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6429
6438WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6439WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6440WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6441
6446#endif // !defined(WGPU_SKIP_DECLARATIONS)
6447
6448#ifdef __cplusplus
6449} // extern "C"
6450#endif
6451
6452#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1264
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1248
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1257
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1244
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1265
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1214
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1232
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1210
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1278
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1301
WGPUFlags WGPUMapMode
Definition webgpu.h:1274
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1304
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1269
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1302
WGPUFlags WGPUShaderStage
Definition webgpu.h:1285
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1252
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1291
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1292
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1280
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1289
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1306
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1220
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1303
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1224
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1305
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1297
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1240
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1279
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1263
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1236
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1290
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1261
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1262
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1206
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1228
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1432
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1421
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1343
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1366
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1351
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1335
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1410
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1325
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1399
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1385
WGPUIndexFormat
Definition webgpu.h:640
WGPURequestAdapterStatus
Definition webgpu.h:809
WGPUFeatureName
Definition webgpu.h:599
WGPUVertexFormat
Definition webgpu.h:1111
WGPUSType
Definition webgpu.h:901
WGPUBufferBindingType
Definition webgpu.h:419
WGPUDeviceLostReason
Definition webgpu.h:553
WGPUCompareFunction
Definition webgpu.h:472
WGPUCullMode
Definition webgpu.h:542
WGPUTextureDimension
Definition webgpu.h:958
WGPURequestDeviceStatus
Definition webgpu.h:820
WGPUCompilationMessageType
Definition webgpu.h:497
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:531
WGPUTextureViewDimension
Definition webgpu.h:1091
WGPUPrimitiveTopology
Definition webgpu.h:776
WGPUTextureFormat
Definition webgpu.h:969
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1186
WGPUStencilOperation
Definition webgpu.h:858
WGPUAddressMode
Definition webgpu.h:354
WGPUToneMappingMode
Definition webgpu.h:1105
WGPUTextureAspect
Definition webgpu.h:947
WGPUBufferMapState
Definition webgpu.h:436
WGPUFilterMode
Definition webgpu.h:620
WGPUBackendType
Definition webgpu.h:365
WGPUBlendFactor
Definition webgpu.h:381
WGPUSamplerBindingType
Definition webgpu.h:830
WGPULoadOp
Definition webgpu.h:670
WGPUPopErrorScopeStatus
Definition webgpu.h:711
WGPUWaitStatus
Definition webgpu.h:1169
WGPUStorageTextureAccess
Definition webgpu.h:874
WGPUPowerPreference
Definition webgpu.h:727
WGPUPresentMode
Definition webgpu.h:746
WGPUMapAsyncStatus
Definition webgpu.h:680
WGPUBlendOperation
Definition webgpu.h:406
WGPUCompositeAlphaMode
Definition webgpu.h:507
WGPUPredefinedColorSpace
Definition webgpu.h:737
WGPUQueueWorkDoneStatus
Definition webgpu.h:795
WGPUVertexStepMode
Definition webgpu.h:1156
WGPUQueryType
Definition webgpu.h:789
WGPUFeatureLevel
Definition webgpu.h:583
WGPUAdapterType
Definition webgpu.h:346
WGPUInstanceFeatureName
Definition webgpu.h:650
WGPUStatus
Definition webgpu.h:852
WGPUCompilationInfoRequestStatus
Definition webgpu.h:488
WGPUMipmapFilterMode
Definition webgpu.h:691
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:919
WGPUFrontFace
Definition webgpu.h:630
WGPUStoreOp
Definition webgpu.h:891
WGPUErrorFilter
Definition webgpu.h:564
WGPUOptionalBool
Definition webgpu.h:701
WGPUCallbackMode
Definition webgpu.h:446
WGPUTextureSampleType
Definition webgpu.h:1072
WGPUErrorType
Definition webgpu.h:571
@ WGPUIndexFormat_Force32
Definition webgpu.h:647
@ WGPUIndexFormat_Uint16
Definition webgpu.h:645
@ WGPUIndexFormat_Undefined
Definition webgpu.h:644
@ WGPUIndexFormat_Uint32
Definition webgpu.h:646
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:815
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:810
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:816
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:814
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:817
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:606
@ WGPUFeatureName_Subgroups
Definition webgpu.h:616
@ WGPUFeatureName_Force32
Definition webgpu.h:617
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:614
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:601
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:610
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:611
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:613
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:615
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:607
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:604
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:609
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:612
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:602
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:603
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:605
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:608
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:600
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1150
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1140
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1148
@ WGPUVertexFormat_Float32
Definition webgpu.h:1139
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1138
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1126
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1122
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1114
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1116
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1118
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1120
@ WGPUVertexFormat_Force32
Definition webgpu.h:1153
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1113
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1142
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1137
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1143
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1121
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1115
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1146
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1152
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1147
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1124
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1144
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1145
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1133
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1129
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1151
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1131
@ WGPUVertexFormat_Float16
Definition webgpu.h:1136
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1119
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1149
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1128
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1123
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1112
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1117
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1130
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1127
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1125
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1134
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1132
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1141
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1135
@ WGPUSType_Force32
Definition webgpu.h:913
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:908
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:902
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:911
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:909
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:910
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:906
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:904
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:905
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:912
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:903
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:907
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:425
@ WGPUBufferBindingType_Storage
Definition webgpu.h:431
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:429
@ WGPUBufferBindingType_Force32
Definition webgpu.h:433
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:432
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:430
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:560
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:555
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:559
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:561
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:554
@ WGPUCompareFunction_Force32
Definition webgpu.h:485
@ WGPUCompareFunction_Always
Definition webgpu.h:484
@ WGPUCompareFunction_Never
Definition webgpu.h:477
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:482
@ WGPUCompareFunction_Less
Definition webgpu.h:478
@ WGPUCompareFunction_Undefined
Definition webgpu.h:476
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:483
@ WGPUCompareFunction_Equal
Definition webgpu.h:479
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:480
@ WGPUCompareFunction_Greater
Definition webgpu.h:481
@ WGPUCullMode_Force32
Definition webgpu.h:550
@ WGPUCullMode_Undefined
Definition webgpu.h:546
@ WGPUCullMode_Back
Definition webgpu.h:549
@ WGPUCullMode_Front
Definition webgpu.h:548
@ WGPUCullMode_None
Definition webgpu.h:547
@ WGPUTextureDimension_Undefined
Definition webgpu.h:962
@ WGPUTextureDimension_2D
Definition webgpu.h:964
@ WGPUTextureDimension_Force32
Definition webgpu.h:966
@ WGPUTextureDimension_3D
Definition webgpu.h:965
@ WGPUTextureDimension_1D
Definition webgpu.h:963
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:825
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:821
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:826
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:827
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:501
@ WGPUCompilationMessageType_Info
Definition webgpu.h:500
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:499
@ WGPUCompilationMessageType_Error
Definition webgpu.h:498
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:539
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:537
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:536
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:532
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:538
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1099
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1098
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1097
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1101
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1096
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1100
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1095
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1102
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:782
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:783
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:780
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:784
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:781
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:785
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:786
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1065
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1026
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1029
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:991
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:981
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1031
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1041
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1034
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1038
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1024
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:993
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1059
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:997
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1049
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1033
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1061
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1055
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1008
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1027
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1004
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1007
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1063
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1016
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:982
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1066
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1013
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:989
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1039
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1032
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1028
@ WGPUTextureFormat_R32Float
Definition webgpu.h:985
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1030
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:979
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:977
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:992
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1022
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:994
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1040
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1005
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1064
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:999
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1058
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1045
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:986
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1036
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1043
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1021
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:996
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1023
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1025
@ WGPUTextureFormat_Force32
Definition webgpu.h:1069
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1017
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1046
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1054
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:987
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1020
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1009
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1011
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1037
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1050
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:988
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1062
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1001
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1012
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:984
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1056
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:978
@ WGPUTextureFormat_Undefined
Definition webgpu.h:973
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1060
@ WGPUTextureFormat_R16Float
Definition webgpu.h:980
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1044
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1002
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1000
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1068
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1010
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1018
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:990
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1047
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1014
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1057
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1006
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:974
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1015
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1019
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1053
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:983
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:976
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1051
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1067
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:998
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1042
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1035
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1003
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1052
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:995
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:975
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1048
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1187
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1189
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1190
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1191
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1188
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:868
@ WGPUStencilOperation_Undefined
Definition webgpu.h:862
@ WGPUStencilOperation_Replace
Definition webgpu.h:865
@ WGPUStencilOperation_Keep
Definition webgpu.h:863
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:870
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:869
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:867
@ WGPUStencilOperation_Invert
Definition webgpu.h:866
@ WGPUStencilOperation_Force32
Definition webgpu.h:871
@ WGPUStencilOperation_Zero
Definition webgpu.h:864
@ WGPUAddressMode_Repeat
Definition webgpu.h:360
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:361
@ WGPUAddressMode_Undefined
Definition webgpu.h:358
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:359
@ WGPUAddressMode_Force32
Definition webgpu.h:362
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1108
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1106
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1107
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:954
@ WGPUTextureAspect_Force32
Definition webgpu.h:955
@ WGPUTextureAspect_Undefined
Definition webgpu.h:951
@ WGPUTextureAspect_All
Definition webgpu.h:952
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:953
@ WGPUBufferMapState_Pending
Definition webgpu.h:438
@ WGPUBufferMapState_Mapped
Definition webgpu.h:439
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:437
@ WGPUBufferMapState_Force32
Definition webgpu.h:440
@ WGPUFilterMode_Undefined
Definition webgpu.h:624
@ WGPUFilterMode_Force32
Definition webgpu.h:627
@ WGPUFilterMode_Nearest
Definition webgpu.h:625
@ WGPUFilterMode_Linear
Definition webgpu.h:626
@ WGPUBackendType_Vulkan
Definition webgpu.h:375
@ WGPUBackendType_OpenGL
Definition webgpu.h:376
@ WGPUBackendType_Force32
Definition webgpu.h:378
@ WGPUBackendType_OpenGLES
Definition webgpu.h:377
@ WGPUBackendType_WebGPU
Definition webgpu.h:371
@ WGPUBackendType_D3D11
Definition webgpu.h:372
@ WGPUBackendType_D3D12
Definition webgpu.h:373
@ WGPUBackendType_Undefined
Definition webgpu.h:369
@ WGPUBackendType_Null
Definition webgpu.h:370
@ WGPUBackendType_Metal
Definition webgpu.h:374
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:394
@ WGPUBlendFactor_One
Definition webgpu.h:387
@ WGPUBlendFactor_Zero
Definition webgpu.h:386
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:401
@ WGPUBlendFactor_Undefined
Definition webgpu.h:385
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:393
@ WGPUBlendFactor_Force32
Definition webgpu.h:403
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:400
@ WGPUBlendFactor_Constant
Definition webgpu.h:397
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:389
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:396
@ WGPUBlendFactor_Src
Definition webgpu.h:388
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:391
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:390
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:398
@ WGPUBlendFactor_Src1
Definition webgpu.h:399
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:395
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:402
@ WGPUBlendFactor_Dst
Definition webgpu.h:392
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:836
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:842
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:844
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:841
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:840
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:843
@ WGPULoadOp_Load
Definition webgpu.h:675
@ WGPULoadOp_Force32
Definition webgpu.h:677
@ WGPULoadOp_Undefined
Definition webgpu.h:674
@ WGPULoadOp_Clear
Definition webgpu.h:676
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:724
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:715
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:719
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:723
@ WGPUWaitStatus_Error
Definition webgpu.h:1182
@ WGPUWaitStatus_Force32
Definition webgpu.h:1183
@ WGPUWaitStatus_Success
Definition webgpu.h:1173
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1177
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:884
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:880
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:886
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:885
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:888
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:887
@ WGPUPowerPreference_Force32
Definition webgpu.h:734
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:733
@ WGPUPowerPreference_LowPower
Definition webgpu.h:732
@ WGPUPowerPreference_Undefined
Definition webgpu.h:731
@ WGPUPresentMode_Fifo
Definition webgpu.h:756
@ WGPUPresentMode_Force32
Definition webgpu.h:773
@ WGPUPresentMode_Immediate
Definition webgpu.h:767
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:762
@ WGPUPresentMode_Mailbox
Definition webgpu.h:772
@ WGPUPresentMode_Undefined
Definition webgpu.h:750
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:687
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:685
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:686
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:688
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:681
@ WGPUBlendOperation_Undefined
Definition webgpu.h:410
@ WGPUBlendOperation_Max
Definition webgpu.h:415
@ WGPUBlendOperation_Subtract
Definition webgpu.h:412
@ WGPUBlendOperation_Min
Definition webgpu.h:414
@ WGPUBlendOperation_Add
Definition webgpu.h:411
@ WGPUBlendOperation_Force32
Definition webgpu.h:416
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:413
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:511
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:528
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:515
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:523
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:527
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:519
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:739
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:738
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:740
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:805
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:800
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:796
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:806
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1160
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1162
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1161
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1163
@ WGPUQueryType_Occlusion
Definition webgpu.h:790
@ WGPUQueryType_Timestamp
Definition webgpu.h:791
@ WGPUQueryType_Force32
Definition webgpu.h:792
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:587
@ WGPUFeatureLevel_Core
Definition webgpu.h:595
@ WGPUFeatureLevel_Force32
Definition webgpu.h:596
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:591
@ WGPUAdapterType_CPU
Definition webgpu.h:349
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:347
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:348
@ WGPUAdapterType_Unknown
Definition webgpu.h:350
@ WGPUAdapterType_Force32
Definition webgpu.h:351
@ WGPUInstanceFeatureName_TimedWaitAnyEnable
Definition webgpu.h:654
@ WGPUInstanceFeatureName_ShaderSourceSPIRV
Definition webgpu.h:659
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:667
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
Definition webgpu.h:666
@ WGPUStatus_Force32
Definition webgpu.h:855
@ WGPUStatus_Success
Definition webgpu.h:853
@ WGPUStatus_Error
Definition webgpu.h:854
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:494
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:489
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:493
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:695
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:697
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:698
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:696
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:939
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:943
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:935
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:931
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:923
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:944
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:927
@ WGPUFrontFace_CW
Definition webgpu.h:636
@ WGPUFrontFace_Undefined
Definition webgpu.h:634
@ WGPUFrontFace_CCW
Definition webgpu.h:635
@ WGPUFrontFace_Force32
Definition webgpu.h:637
@ WGPUStoreOp_Discard
Definition webgpu.h:897
@ WGPUStoreOp_Force32
Definition webgpu.h:898
@ WGPUStoreOp_Store
Definition webgpu.h:896
@ WGPUStoreOp_Undefined
Definition webgpu.h:895
@ WGPUErrorFilter_Internal
Definition webgpu.h:567
@ WGPUErrorFilter_Force32
Definition webgpu.h:568
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:566
@ WGPUErrorFilter_Validation
Definition webgpu.h:565
@ WGPUOptionalBool_True
Definition webgpu.h:706
@ WGPUOptionalBool_Force32
Definition webgpu.h:708
@ WGPUOptionalBool_Undefined
Definition webgpu.h:707
@ WGPUOptionalBool_False
Definition webgpu.h:705
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:458
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:468
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:452
@ WGPUCallbackMode_Force32
Definition webgpu.h:469
@ WGPUTextureSampleType_Float
Definition webgpu.h:1083
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1086
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1078
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1082
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1088
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1087
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1085
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1084
@ WGPUErrorType_NoError
Definition webgpu.h:572
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:574
@ WGPUErrorType_Unknown
Definition webgpu.h:576
@ WGPUErrorType_Validation
Definition webgpu.h:573
@ WGPUErrorType_Force32
Definition webgpu.h:577
@ WGPUErrorType_Internal
Definition webgpu.h:575
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:233
struct WGPUSamplerImpl * WGPUSampler
Definition webgpu.h:240
struct WGPUQueueImpl * WGPUQueue
Definition webgpu.h:235
struct WGPUSurfaceImpl * WGPUSurface
Definition webgpu.h:245
struct WGPURenderBundleImpl * WGPURenderBundle
Definition webgpu.h:236
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
Definition webgpu.h:223
struct WGPUBindGroupImpl * WGPUBindGroup
Definition webgpu.h:218
struct WGPUInstanceImpl * WGPUInstance
Definition webgpu.h:232
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
Definition webgpu.h:219
struct WGPUTextureViewImpl * WGPUTextureView
Definition webgpu.h:247
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
Definition webgpu.h:238
struct WGPUShaderModuleImpl * WGPUShaderModule
Definition webgpu.h:241
struct WGPUQuerySetImpl * WGPUQuerySet
Definition webgpu.h:234
struct WGPUCommandBufferImpl * WGPUCommandBuffer
Definition webgpu.h:221
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
Definition webgpu.h:237
struct WGPUDeviceImpl * WGPUDevice
Definition webgpu.h:231
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
Definition webgpu.h:222
struct WGPUTextureImpl * WGPUTexture
Definition webgpu.h:246
struct WGPUComputePipelineImpl * WGPUComputePipeline
Definition webgpu.h:224
struct WGPURenderPipelineImpl * WGPURenderPipeline
Definition webgpu.h:239
struct WGPUAdapterImpl * WGPUAdapter
Definition webgpu.h:217
struct WGPUBufferImpl * WGPUBuffer
Definition webgpu.h:220
struct WGPUFuture WGPUFuture
uint32_t WGPUBool
Definition webgpu.h:207
uint64_t WGPUFlags
Definition webgpu.h:206
void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo)
WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits *limits)
void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures *features)
WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallbackInfo callbackInfo)
void wgpuAdapterAddRef(WGPUAdapter adapter)
WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
void wgpuAdapterRelease(WGPUAdapter adapter)
WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo *info)
void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label)
void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupAddRef(WGPUBindGroup bindGroup)
void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label)
WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer)
WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo)
void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
void wgpuBufferAddRef(WGPUBuffer buffer)
WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void *data, size_t size)
void wgpuBufferRelease(WGPUBuffer buffer)
void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
void wgpuBufferUnmap(WGPUBuffer buffer)
WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const *data, size_t size)
void wgpuBufferDestroy(WGPUBuffer buffer)
void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label)
void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label)
void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer)
WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor)
WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const *descriptor)
void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const *descriptor)
void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label)
void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel)
void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel)
void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyBufferInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label)
void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel)
void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel)
WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline)
void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label)
void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)
WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPUSamplerDescriptor const *descriptor)
WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor)
WGPUFuture wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo)
WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)
WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)
void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures *features)
WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo *adapterInfo)
WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)
void wgpuDeviceRelease(WGPUDevice device)
WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo)
WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits *limits)
WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)
WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor)
WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)
WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)
void wgpuDeviceDestroy(WGPUDevice device)
void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label)
WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)
WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)
void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
void wgpuDeviceAddRef(WGPUDevice device)
WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device)
WGPUFuture wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo)
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:1721
WGPUBackendType backendType
Definition webgpu.h:1731
uint32_t deviceID
Definition webgpu.h:1743
WGPUChainedStruct * nextInChain
Definition webgpu.h:1703
uint32_t subgroupMinSize
Definition webgpu.h:1747
uint32_t vendorID
Definition webgpu.h:1739
WGPUStringView description
Definition webgpu.h:1727
WGPUAdapterType adapterType
Definition webgpu.h:1735
uint32_t subgroupMaxSize
Definition webgpu.h:1751
WGPUStringView architecture
Definition webgpu.h:1715
WGPUStringView vendor
Definition webgpu.h:1709
WGPUChainedStruct * nextInChain
Definition webgpu.h:3629
WGPUStringView label
Definition webgpu.h:3635
WGPUBindGroupLayout layout
Definition webgpu.h:3639
WGPUBindGroupEntry const * entries
Definition webgpu.h:3647
uint64_t offset
Definition webgpu.h:1795
WGPUBuffer buffer
Definition webgpu.h:1788
WGPUSampler sampler
Definition webgpu.h:1810
WGPUTextureView textureView
Definition webgpu.h:1817
WGPUChainedStruct * nextInChain
Definition webgpu.h:1775
uint32_t binding
Definition webgpu.h:1781
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4344
WGPUChainedStruct * nextInChain
Definition webgpu.h:4330
WGPUTextureBindingLayout texture
Definition webgpu.h:3691
WGPUShaderStage visibility
Definition webgpu.h:3673
WGPUBufferBindingLayout buffer
Definition webgpu.h:3683
WGPUChainedStruct * nextInChain
Definition webgpu.h:3665
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3695
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3687
WGPUBlendFactor dstFactor
Definition webgpu.h:1857
WGPUBlendFactor srcFactor
Definition webgpu.h:1850
WGPUBlendOperation operation
Definition webgpu.h:1843
WGPUBlendComponent alpha
Definition webgpu.h:3723
WGPUBlendComponent color
Definition webgpu.h:3719
WGPUBufferBindingType type
Definition webgpu.h:1880
WGPUBool hasDynamicOffset
Definition webgpu.h:1884
WGPUChainedStruct * nextInChain
Definition webgpu.h:1873
WGPUBool mappedAtCreation
Definition webgpu.h:1927
WGPUStringView label
Definition webgpu.h:1911
WGPUBufferUsage usage
Definition webgpu.h:1915
WGPUChainedStruct * nextInChain
Definition webgpu.h:1905
WGPUChainedStruct * nextInChain
Definition webgpu.h:1465
WGPUBufferMapCallback callback
Definition webgpu.h:1472
WGPUCallbackMode mode
Definition webgpu.h:1471
struct WGPUChainedStruct * next
Definition webgpu.h:1443
WGPUSType sType
Definition webgpu.h:1444
WGPUBlendState const * blend
Definition webgpu.h:4373
WGPUColorWriteMask writeMask
Definition webgpu.h:4377
WGPUChainedStruct * nextInChain
Definition webgpu.h:4361
WGPUTextureFormat format
Definition webgpu.h:4369
double a
Definition webgpu.h:1964
double b
Definition webgpu.h:1960
double r
Definition webgpu.h:1952
double g
Definition webgpu.h:1956
WGPUChainedStruct * nextInChain
Definition webgpu.h:1981
WGPUChainedStruct * nextInChain
Definition webgpu.h:2002
WGPUCompilationInfoCallback callback
Definition webgpu.h:1496
WGPUChainedStruct * nextInChain
Definition webgpu.h:1489
WGPUChainedStruct * nextInChain
Definition webgpu.h:3741
WGPUCompilationMessage const * messages
Definition webgpu.h:3749
WGPUChainedStruct * nextInChain
Definition webgpu.h:2026
WGPUCompilationMessageType type
Definition webgpu.h:2040
WGPUStringView message
Definition webgpu.h:2034
WGPUStringView label
Definition webgpu.h:3771
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3775
WGPUChainedStruct * nextInChain
Definition webgpu.h:3765
WGPUComputeState compute
Definition webgpu.h:4408
WGPUChainedStruct * nextInChain
Definition webgpu.h:4394
WGPUPipelineLayout layout
Definition webgpu.h:4404
WGPUChainedStruct * nextInChain
Definition webgpu.h:3791
WGPUConstantEntry const * constants
Definition webgpu.h:3809
size_t constantCount
Definition webgpu.h:3805
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3801
WGPUStringView key
Definition webgpu.h:2090
WGPUChainedStruct * nextInChain
Definition webgpu.h:2084
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1520
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1544
WGPUStencilFaceState stencilFront
Definition webgpu.h:3843
uint32_t stencilWriteMask
Definition webgpu.h:3855
WGPUStencilFaceState stencilBack
Definition webgpu.h:3847
WGPUChainedStruct * nextInChain
Definition webgpu.h:3827
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3835
WGPUCompareFunction depthCompare
Definition webgpu.h:3839
uint32_t stencilReadMask
Definition webgpu.h:3851
WGPUTextureFormat format
Definition webgpu.h:3831
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:3925
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:3934
size_t requiredFeatureCount
Definition webgpu.h:3909
WGPUStringView label
Definition webgpu.h:3905
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:3913
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:3921
WGPUChainedStruct * nextInChain
Definition webgpu.h:3899
WGPULimits const * requiredLimits
Definition webgpu.h:3917
WGPUChainedStruct * nextInChain
Definition webgpu.h:1561
WGPUDeviceLostCallback callback
Definition webgpu.h:1568
WGPUCallbackMode mode
Definition webgpu.h:1567
uint32_t width
Definition webgpu.h:2117
uint32_t depthOrArrayLayers
Definition webgpu.h:2125
uint32_t height
Definition webgpu.h:2121
size_t constantCount
Definition webgpu.h:4531
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4527
WGPUChainedStruct * nextInChain
Definition webgpu.h:4517
size_t targetCount
Definition webgpu.h:4539
WGPUConstantEntry const * constants
Definition webgpu.h:4535
WGPUColorTargetState const * targets
Definition webgpu.h:4543
WGPUFuture future
Definition webgpu.h:3962
WGPUBool completed
Definition webgpu.h:3968
uint64_t id
Definition webgpu.h:2148
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:3991
WGPUChainedStruct * nextInChain
Definition webgpu.h:3983
size_t requiredFeatureCount
Definition webgpu.h:3987
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:3995
size_t timedWaitAnyMaxCount
Definition webgpu.h:2168
WGPUChainedStruct * nextInChain
Definition webgpu.h:2162
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2207
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2283
uint32_t maxTextureDimension2D
Definition webgpu.h:2191
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2223
uint32_t maxTextureDimension3D
Definition webgpu.h:2195
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2227
WGPUChainedStruct * nextInChain
Definition webgpu.h:2183
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2211
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2307
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2219
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2287
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2255
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2299
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2247
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2291
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2271
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2251
uint32_t maxVertexAttributes
Definition webgpu.h:2267
uint32_t maxColorAttachments
Definition webgpu.h:2279
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2275
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2303
uint32_t maxTextureDimension1D
Definition webgpu.h:2187
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2215
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2243
uint64_t maxBufferSize
Definition webgpu.h:2263
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2239
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2295
uint32_t maxVertexBuffers
Definition webgpu.h:2259
uint32_t maxTextureArrayLayers
Definition webgpu.h:2199
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2235
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2231
uint32_t maxImmediateSize
Definition webgpu.h:2311
uint32_t maxBindGroups
Definition webgpu.h:2203
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2369
WGPUChainedStruct * nextInChain
Definition webgpu.h:2357
uint32_t y
Definition webgpu.h:2393
uint32_t z
Definition webgpu.h:2397
uint32_t x
Definition webgpu.h:2389
WGPUQuerySet querySet
Definition webgpu.h:2419
uint32_t endOfPassWriteIndex
Definition webgpu.h:2427
WGPUChainedStruct * nextInChain
Definition webgpu.h:2413
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2423
WGPUChainedStruct * nextInChain
Definition webgpu.h:2444
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2458
WGPUChainedStruct * nextInChain
Definition webgpu.h:1585
WGPUCallbackMode mode
Definition webgpu.h:1591
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1592
WGPUFrontFace frontFace
Definition webgpu.h:2498
WGPUChainedStruct * nextInChain
Definition webgpu.h:2480
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2491
WGPUPrimitiveTopology topology
Definition webgpu.h:2487
WGPUCullMode cullMode
Definition webgpu.h:2505
WGPUBool unclippedDepth
Definition webgpu.h:2509
WGPUQueryType type
Definition webgpu.h:2538
WGPUChainedStruct * nextInChain
Definition webgpu.h:2528
WGPUStringView label
Definition webgpu.h:2534
WGPUChainedStruct * nextInChain
Definition webgpu.h:2559
WGPUStringView label
Definition webgpu.h:2565
WGPUCallbackMode mode
Definition webgpu.h:1615
WGPUChainedStruct * nextInChain
Definition webgpu.h:1609
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1616
WGPUChainedStruct * nextInChain
Definition webgpu.h:2580
WGPUStringView label
Definition webgpu.h:2586
WGPUChainedStruct * nextInChain
Definition webgpu.h:2601
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2615
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2619
WGPUTextureView resolveTarget
Definition webgpu.h:4027
WGPUChainedStruct * nextInChain
Definition webgpu.h:4012
WGPUChainedStruct * nextInChain
Definition webgpu.h:2652
WGPUChainedStruct * nextInChain
Definition webgpu.h:4425
WGPUStringView label
Definition webgpu.h:4431
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4443
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4439
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4447
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4451
WGPUChainedStruct chain
Definition webgpu.h:2718
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4585
WGPUChainedStruct * nextInChain
Definition webgpu.h:4563
WGPUMultisampleState multisample
Definition webgpu.h:4589
WGPUFragmentState const * fragment
Definition webgpu.h:4593
WGPUPrimitiveState primitive
Definition webgpu.h:4581
WGPUPipelineLayout layout
Definition webgpu.h:4573
WGPUVertexState vertex
Definition webgpu.h:4577
WGPURequestAdapterCallback callback
Definition webgpu.h:1640
WGPUChainedStruct * nextInChain
Definition webgpu.h:1633
WGPUFeatureLevel featureLevel
Definition webgpu.h:4070
WGPUBool forceFallbackAdapter
Definition webgpu.h:4081
WGPUSurface compatibleSurface
Definition webgpu.h:4095
WGPUBackendType backendType
Definition webgpu.h:4088
WGPUChainedStruct * nextInChain
Definition webgpu.h:4059
WGPUPowerPreference powerPreference
Definition webgpu.h:4074
WGPUChainedStruct chain
Definition webgpu.h:2742
WGPUCallbackMode mode
Definition webgpu.h:1663
WGPUChainedStruct * nextInChain
Definition webgpu.h:1657
WGPURequestDeviceCallback callback
Definition webgpu.h:1664
WGPUChainedStruct * nextInChain
Definition webgpu.h:2766
WGPUSamplerBindingType type
Definition webgpu.h:2773
WGPUFilterMode minFilter
Definition webgpu.h:2829
WGPUAddressMode addressModeU
Definition webgpu.h:2801
WGPUCompareFunction compare
Definition webgpu.h:2856
WGPUAddressMode addressModeW
Definition webgpu.h:2815
uint16_t maxAnisotropy
Definition webgpu.h:2860
WGPUAddressMode addressModeV
Definition webgpu.h:2808
WGPUStringView label
Definition webgpu.h:2794
WGPUFilterMode magFilter
Definition webgpu.h:2822
WGPUChainedStruct * nextInChain
Definition webgpu.h:2788
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2836
WGPUChainedStruct * nextInChain
Definition webgpu.h:4114
WGPUStringView label
Definition webgpu.h:4120
WGPUChainedStruct chain
Definition webgpu.h:2885
uint32_t const * code
Definition webgpu.h:2893
WGPUChainedStruct chain
Definition webgpu.h:2912
WGPUStringView code
Definition webgpu.h:2918
WGPUCompareFunction compare
Definition webgpu.h:2942
WGPUStencilOperation depthFailOp
Definition webgpu.h:2956
WGPUStencilOperation passOp
Definition webgpu.h:2963
WGPUStencilOperation failOp
Definition webgpu.h:2949
WGPUChainedStruct * nextInChain
Definition webgpu.h:2980
WGPUTextureViewDimension viewDimension
Definition webgpu.h:2998
WGPUTextureFormat format
Definition webgpu.h:2991
WGPUStorageTextureAccess access
Definition webgpu.h:2987
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:3022
WGPUInstanceFeatureName const * features
Definition webgpu.h:3044
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3066
WGPUTextureFormat const * formats
Definition webgpu.h:3100
WGPUChainedStruct * nextInChain
Definition webgpu.h:3083
WGPUPresentMode const * presentModes
Definition webgpu.h:3111
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3122
WGPUTextureUsage usages
Definition webgpu.h:3090
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3153
WGPUChainedStruct chain
Definition webgpu.h:3145
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3149
WGPUTextureUsage usage
Definition webgpu.h:3193
WGPUTextureFormat format
Definition webgpu.h:3187
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3215
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3225
WGPUChainedStruct * nextInChain
Definition webgpu.h:3175
WGPUPresentMode presentMode
Definition webgpu.h:3234
WGPUChainedStruct * nextInChain
Definition webgpu.h:4139
WGPUStringView label
Definition webgpu.h:4147
WGPUChainedStruct chain
Definition webgpu.h:3285
WGPUChainedStruct chain
Definition webgpu.h:3311
WGPUChainedStruct chain
Definition webgpu.h:3344
WGPUChainedStruct chain
Definition webgpu.h:3378
WGPUChainedStruct chain
Definition webgpu.h:3411
WGPUChainedStruct * nextInChain
Definition webgpu.h:3445
WGPUTexture texture
Definition webgpu.h:3452
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3458
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4165
WGPUOrigin3D origin
Definition webgpu.h:4195
WGPUTextureAspect aspect
Definition webgpu.h:4202
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3515
WGPUTextureSampleType sampleType
Definition webgpu.h:3508
WGPUChainedStruct * nextInChain
Definition webgpu.h:3501
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4260
WGPUTextureDimension dimension
Definition webgpu.h:4236
WGPUStringView label
Definition webgpu.h:4225
uint32_t mipLevelCount
Definition webgpu.h:4248
WGPUChainedStruct * nextInChain
Definition webgpu.h:4219
WGPUTextureFormat format
Definition webgpu.h:4244
WGPUTextureUsage usage
Definition webgpu.h:4229
WGPUExtent3D size
Definition webgpu.h:4240
WGPUChainedStruct * nextInChain
Definition webgpu.h:3536
WGPUTextureUsage usage
Definition webgpu.h:3577
WGPUTextureFormat format
Definition webgpu.h:3546
WGPUTextureViewDimension dimension
Definition webgpu.h:3550
WGPUStringView label
Definition webgpu.h:3542
WGPUTextureAspect aspect
Definition webgpu.h:3573
WGPUChainedStruct * nextInChain
Definition webgpu.h:1681
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1682
WGPUVertexFormat format
Definition webgpu.h:3604
WGPUChainedStruct * nextInChain
Definition webgpu.h:3600
uint32_t shaderLocation
Definition webgpu.h:3612
WGPUVertexAttribute const * attributes
Definition webgpu.h:4312
WGPUVertexStepMode stepMode
Definition webgpu.h:4300
WGPUChainedStruct * nextInChain
Definition webgpu.h:4296
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4481
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4497
WGPUConstantEntry const * constants
Definition webgpu.h:4489
size_t constantCount
Definition webgpu.h:4485
size_t bufferCount
Definition webgpu.h:4493
WGPUChainedStruct * nextInChain
Definition webgpu.h:4471