WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
webgpu.h
1
27#ifndef WEBGPU_H_
28#define WEBGPU_H_
29
30#if defined(WGPU_SHARED_LIBRARY)
31# if defined(_WIN32)
32# if defined(WGPU_IMPLEMENTATION)
33# define WGPU_EXPORT __declspec(dllexport)
34# else
35# define WGPU_EXPORT __declspec(dllimport)
36# endif
37# else // defined(_WIN32)
38# if defined(WGPU_IMPLEMENTATION)
39# define WGPU_EXPORT __attribute__((visibility("default")))
40# else
41# define WGPU_EXPORT
42# endif
43# endif // defined(_WIN32)
44#else // defined(WGPU_SHARED_LIBRARY)
45# define WGPU_EXPORT
46#endif // defined(WGPU_SHARED_LIBRARY)
47
48#if !defined(WGPU_OBJECT_ATTRIBUTE)
49#define WGPU_OBJECT_ATTRIBUTE
50#endif
51#if !defined(WGPU_ENUM_ATTRIBUTE)
52#define WGPU_ENUM_ATTRIBUTE
53#endif
54#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
55#define WGPU_STRUCTURE_ATTRIBUTE
56#endif
57#if !defined(WGPU_FUNCTION_ATTRIBUTE)
58#define WGPU_FUNCTION_ATTRIBUTE
59#endif
60#if !defined(WGPU_NULLABLE)
61#define WGPU_NULLABLE
62#endif
63
64#include <stdint.h>
65#include <stddef.h>
66#include <math.h>
67
68#define _wgpu_COMMA ,
69#if defined(__cplusplus)
70# define _wgpu_ENUM_ZERO_INIT(type) type(0)
71# define _wgpu_STRUCT_ZERO_INIT {}
72# if __cplusplus >= 201103L
73# define _wgpu_MAKE_INIT_STRUCT(type, value) (type value)
74# else
75# define _wgpu_MAKE_INIT_STRUCT(type, value) value
76# endif
77#else
78# define _wgpu_ENUM_ZERO_INIT(type) (type)0
79# define _wgpu_STRUCT_ZERO_INIT {0}
80# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
81# define _wgpu_MAKE_INIT_STRUCT(type, value) ((type) value)
82# else
83# define _wgpu_MAKE_INIT_STRUCT(type, value) value
84# endif
85#endif
86
100#define WGPU_TRUE (UINT32_C(1))
107#define WGPU_FALSE (UINT32_C(0))
112#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
117#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
122#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
127#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
132#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
137#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
142#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
147#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
152#define WGPU_STRLEN (SIZE_MAX)
157#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
162#define WGPU_WHOLE_SIZE (UINT64_MAX)
163
193typedef struct WGPUStringView {
194 WGPU_NULLABLE char const * data;
195 size_t length;
196} WGPUStringView WGPU_STRUCTURE_ATTRIBUTE;
197
201#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
202 /*.data=*/NULL _wgpu_COMMA \
203 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
204})
205
206typedef uint64_t WGPUFlags;
207typedef uint32_t WGPUBool;
208
217typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
218typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
219typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
220typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
221typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
222typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
223typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
224typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
231typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
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;
304struct WGPUBlendState;
307struct WGPUComputeState;
310struct WGPUFutureWaitInfo;
325struct WGPUVertexState;
326struct WGPUFragmentState;
328
329// Callback info structure forward declarations
340
348typedef enum WGPUAdapterType {
353 WGPUAdapterType_Force32 = 0x7FFFFFFF
354} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
355
366
382
407
420
437
444
473
489
498
505
537
564
575
576typedef enum WGPUCullMode {
581 WGPUCullMode_None = 0x00000001,
582 WGPUCullMode_Front = 0x00000002,
583 WGPUCullMode_Back = 0x00000003,
584 WGPUCullMode_Force32 = 0x7FFFFFFF
585} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
586
597
598typedef enum WGPUErrorFilter {
602 WGPUErrorFilter_Force32 = 0x7FFFFFFF
603} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
604
605typedef enum WGPUErrorType {
611 WGPUErrorType_Force32 = 0x7FFFFFFF
612} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
613
617typedef enum WGPUFeatureLevel {
630 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
631} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
632
658
659typedef enum WGPUFilterMode {
666 WGPUFilterMode_Force32 = 0x7FFFFFFF
667} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
668
669typedef enum WGPUFrontFace {
674 WGPUFrontFace_CCW = 0x00000001,
675 WGPUFrontFace_CW = 0x00000002,
676 WGPUFrontFace_Force32 = 0x7FFFFFFF
677} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
678
679typedef enum WGPUIndexFormat {
686 WGPUIndexFormat_Force32 = 0x7FFFFFFF
687} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
688
708
709typedef enum WGPULoadOp {
714 WGPULoadOp_Load = 0x00000001,
715 WGPULoadOp_Clear = 0x00000002,
716 WGPULoadOp_Force32 = 0x7FFFFFFF
717} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
718
729
739
740typedef enum WGPUOptionalBool {
747 WGPUOptionalBool_Force32 = 0x7FFFFFFF
748} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
749
765
775
781
814
827
828typedef enum WGPUQueryType {
831 WGPUQueryType_Force32 = 0x7FFFFFFF
832} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
833
847
858
868
885
891typedef enum WGPUStatus {
892 WGPUStatus_Success = 0x00000001,
893 WGPUStatus_Error = 0x00000002,
894 WGPUStatus_Force32 = 0x7FFFFFFF
895} WGPUStatus WGPU_ENUM_ATTRIBUTE;
896
912
929
930typedef enum WGPUStoreOp {
935 WGPUStoreOp_Store = 0x00000001,
937 WGPUStoreOp_Force32 = 0x7FFFFFFF
938} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
939
955
986
997
1008
1009typedef enum WGPUTextureFormat {
1115 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1116} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1117
1136
1150
1156
1157typedef enum WGPUVertexFormat {
1199 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1200} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1201
1211
1215typedef enum WGPUWaitStatus {
1229 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1230} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1231
1241
1258static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1262static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1268static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1272static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1276static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1280static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1284static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1288static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1292static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1296static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1300static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1301
1309static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1310static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1311static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1312static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1313static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1317static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1318
1326static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1327static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1328static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1329
1337static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1338static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1339static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1340static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1341
1349static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1350static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1351static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1352static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1353static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1354static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1355
1358typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1359
1373typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1374
1383typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1384
1391typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1392
1399typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1400
1414typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1415
1433typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1434
1447typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1448
1458typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1459
1469typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1470
1480typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1481
1490typedef struct WGPUChainedStruct {
1493} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1494
1524
1528#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
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_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
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_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
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_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
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_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
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_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
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_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
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
1692
1696#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1697 /*.nextInChain=*/NULL _wgpu_COMMA \
1698 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1699 /*.callback=*/NULL _wgpu_COMMA \
1700 /*.userdata1=*/NULL _wgpu_COMMA \
1701 /*.userdata2=*/NULL _wgpu_COMMA \
1702})
1703
1716
1720#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1721 /*.nextInChain=*/NULL _wgpu_COMMA \
1722 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1723 /*.callback=*/NULL _wgpu_COMMA \
1724 /*.userdata1=*/NULL _wgpu_COMMA \
1725 /*.userdata2=*/NULL _wgpu_COMMA \
1726})
1727
1734
1738#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1739 /*.nextInChain=*/NULL _wgpu_COMMA \
1740 /*.callback=*/NULL _wgpu_COMMA \
1741 /*.userdata1=*/NULL _wgpu_COMMA \
1742 /*.userdata2=*/NULL _wgpu_COMMA \
1743})
1744
1801
1805#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1806 /*.nextInChain=*/NULL _wgpu_COMMA \
1807 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1808 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1809 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1810 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1811 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1812 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1813 /*.vendorID=*/0 _wgpu_COMMA \
1814 /*.deviceID=*/0 _wgpu_COMMA \
1815 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1816 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1817})
1818
1822typedef struct WGPUBindGroupEntry {
1829 uint32_t binding;
1836 WGPU_NULLABLE WGPUBuffer buffer;
1843 uint64_t offset;
1851 uint64_t size;
1858 WGPU_NULLABLE WGPUSampler sampler;
1866} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1867
1871#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1872 /*.nextInChain=*/NULL _wgpu_COMMA \
1873 /*.binding=*/0 _wgpu_COMMA \
1874 /*.buffer=*/NULL _wgpu_COMMA \
1875 /*.offset=*/0 _wgpu_COMMA \
1876 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1877 /*.sampler=*/NULL _wgpu_COMMA \
1878 /*.textureView=*/NULL _wgpu_COMMA \
1879})
1880
1907
1911#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1912 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1913 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1914 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1915})
1916
1938
1942#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1943 /*.nextInChain=*/NULL _wgpu_COMMA \
1944 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1945 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1946 /*.minBindingSize=*/0 _wgpu_COMMA \
1947})
1948
1977
1981#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1982 /*.nextInChain=*/NULL _wgpu_COMMA \
1983 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1984 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1985 /*.size=*/0 _wgpu_COMMA \
1986 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1987})
1988
1996typedef struct WGPUColor {
2000 double r;
2004 double g;
2008 double b;
2012 double a;
2013} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
2014
2018#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
2019 /*.r=*/0. _wgpu_COMMA \
2020 /*.g=*/0. _wgpu_COMMA \
2021 /*.b=*/0. _wgpu_COMMA \
2022 /*.a=*/0. _wgpu_COMMA \
2023})
2024
2037
2041#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
2042 /*.nextInChain=*/NULL _wgpu_COMMA \
2043 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2044})
2045
2058
2062#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2063 /*.nextInChain=*/NULL _wgpu_COMMA \
2064 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2065})
2066
2114
2118#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2119 /*.nextInChain=*/NULL _wgpu_COMMA \
2120 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2121 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2122 /*.lineNum=*/0 _wgpu_COMMA \
2123 /*.linePos=*/0 _wgpu_COMMA \
2124 /*.offset=*/0 _wgpu_COMMA \
2125 /*.length=*/0 _wgpu_COMMA \
2126})
2127
2148
2152#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2153 /*.nextInChain=*/NULL _wgpu_COMMA \
2154 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2155 /*.value=*/0. _wgpu_COMMA \
2156})
2157
2161typedef struct WGPUExtent3D {
2165 uint32_t width;
2169 uint32_t height;
2174} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2175
2179#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2180 /*.width=*/0 _wgpu_COMMA \
2181 /*.height=*/1 _wgpu_COMMA \
2182 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2183})
2184
2190typedef struct WGPUFuture {
2196 uint64_t id;
2197} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2198
2202#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2203 /*.id=*/0 _wgpu_COMMA \
2204})
2205
2218
2222#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2223 /*.nextInChain=*/NULL _wgpu_COMMA \
2224 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2225})
2226
2361
2365#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2366 /*.nextInChain=*/NULL _wgpu_COMMA \
2367 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2368 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2369 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2370 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2371 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2372 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2373 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2374 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2375 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2376 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2377 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2378 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2379 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2380 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2381 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2382 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2383 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2384 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2385 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2386 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2387 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2388 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2389 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2390 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2391 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2392 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2393 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2394 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2395 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2396 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2397 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2398 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2399})
2400
2419
2423#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2424 /*.nextInChain=*/NULL _wgpu_COMMA \
2425 /*.count=*/1 _wgpu_COMMA \
2426 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2427 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2428})
2429
2433typedef struct WGPUOrigin3D {
2437 uint32_t x;
2441 uint32_t y;
2445 uint32_t z;
2446} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2447
2451#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2452 /*.x=*/0 _wgpu_COMMA \
2453 /*.y=*/0 _wgpu_COMMA \
2454 /*.z=*/0 _wgpu_COMMA \
2455})
2456
2477
2481#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2482 /*.nextInChain=*/NULL _wgpu_COMMA \
2483 /*.querySet=*/NULL _wgpu_COMMA \
2484 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2485 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2486})
2487
2512
2516#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2517 /*.nextInChain=*/NULL _wgpu_COMMA \
2518 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2519 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2520 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2521 /*.immediateSize=*/0 _wgpu_COMMA \
2522})
2523
2559
2563#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2564 /*.nextInChain=*/NULL _wgpu_COMMA \
2565 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2566 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2567 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2568 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2569 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2570})
2571
2592
2596#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2597 /*.nextInChain=*/NULL _wgpu_COMMA \
2598 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2599 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2600 /*.count=*/0 _wgpu_COMMA \
2601})
2602
2615
2619#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2620 /*.nextInChain=*/NULL _wgpu_COMMA \
2621 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2622})
2623
2636
2640#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2641 /*.nextInChain=*/NULL _wgpu_COMMA \
2642 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2643})
2644
2681
2685#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2686 /*.nextInChain=*/NULL _wgpu_COMMA \
2687 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2688 /*.colorFormatCount=*/0 _wgpu_COMMA \
2689 /*.colorFormats=*/NULL _wgpu_COMMA \
2690 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2691 /*.sampleCount=*/1 _wgpu_COMMA \
2692 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2693 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2694})
2695
2745
2749#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2750 /*.nextInChain=*/NULL _wgpu_COMMA \
2751 /*.view=*/NULL _wgpu_COMMA \
2752 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2753 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2754 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2755 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2756 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2757 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2758 /*.stencilClearValue=*/0 _wgpu_COMMA \
2759 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2760})
2761
2772
2776#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2777 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2778 /*.next=*/NULL _wgpu_COMMA \
2779 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2780 }) _wgpu_COMMA \
2781 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2782})
2783
2798
2802#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2803 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2804 /*.next=*/NULL _wgpu_COMMA \
2805 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2806 }) _wgpu_COMMA \
2807 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2808})
2809
2823
2827#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2828 /*.nextInChain=*/NULL _wgpu_COMMA \
2829 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2830})
2831
2910
2914#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2915 /*.nextInChain=*/NULL _wgpu_COMMA \
2916 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2917 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2918 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2919 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2920 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2921 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2922 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2923 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2924 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2925 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2926 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2927})
2928
2937 uint32_t codeSize;
2941 uint32_t const * code;
2942} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2943
2947#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2948 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2949 /*.next=*/NULL _wgpu_COMMA \
2950 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2951 }) _wgpu_COMMA \
2952 /*.codeSize=*/0 _wgpu_COMMA \
2953 /*.code=*/NULL _wgpu_COMMA \
2954})
2955
2968
2972#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2973 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2974 /*.next=*/NULL _wgpu_COMMA \
2975 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2976 }) _wgpu_COMMA \
2977 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2978})
2979
3013
3017#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
3018 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3019 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3020 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3021 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3022})
3023
3048
3052#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3053 /*.nextInChain=*/NULL _wgpu_COMMA \
3054 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3055 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3056 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3057})
3058
3071} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3072
3076#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3077 /*.featureCount=*/0 _wgpu_COMMA \
3078 /*.features=*/NULL _wgpu_COMMA \
3079})
3080
3094
3098#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
3099 /*.featureCount=*/0 _wgpu_COMMA \
3100 /*.features=*/NULL _wgpu_COMMA \
3101})
3102
3116
3120#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3121 /*.featureCount=*/0 _wgpu_COMMA \
3122 /*.features=*/NULL _wgpu_COMMA \
3123})
3124
3172
3176#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3177 /*.nextInChain=*/NULL _wgpu_COMMA \
3178 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3179 /*.formatCount=*/0 _wgpu_COMMA \
3180 /*.formats=*/NULL _wgpu_COMMA \
3181 /*.presentModeCount=*/0 _wgpu_COMMA \
3182 /*.presentModes=*/NULL _wgpu_COMMA \
3183 /*.alphaModeCount=*/0 _wgpu_COMMA \
3184 /*.alphaModes=*/NULL _wgpu_COMMA \
3185})
3186
3203
3207#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3208 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3209 /*.next=*/NULL _wgpu_COMMA \
3210 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3211 }) _wgpu_COMMA \
3212 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3213 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3214})
3215
3284
3288#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3289 /*.nextInChain=*/NULL _wgpu_COMMA \
3290 /*.device=*/NULL _wgpu_COMMA \
3291 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3292 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3293 /*.width=*/0 _wgpu_COMMA \
3294 /*.height=*/0 _wgpu_COMMA \
3295 /*.viewFormatCount=*/0 _wgpu_COMMA \
3296 /*.viewFormats=*/NULL _wgpu_COMMA \
3297 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3298 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3299})
3300
3315
3319#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3320 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3321 /*.next=*/NULL _wgpu_COMMA \
3322 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3323 }) _wgpu_COMMA \
3324 /*.window=*/NULL _wgpu_COMMA \
3325})
3326
3341
3345#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3346 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3347 /*.next=*/NULL _wgpu_COMMA \
3348 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3349 }) _wgpu_COMMA \
3350 /*.layer=*/NULL _wgpu_COMMA \
3351})
3352
3373
3377#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3378 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3379 /*.next=*/NULL _wgpu_COMMA \
3380 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3381 }) _wgpu_COMMA \
3382 /*.display=*/NULL _wgpu_COMMA \
3383 /*.surface=*/NULL _wgpu_COMMA \
3384})
3385
3407
3411#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3412 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3413 /*.next=*/NULL _wgpu_COMMA \
3414 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3415 }) _wgpu_COMMA \
3416 /*.hinstance=*/NULL _wgpu_COMMA \
3417 /*.hwnd=*/NULL _wgpu_COMMA \
3418})
3419
3440
3444#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3445 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3446 /*.next=*/NULL _wgpu_COMMA \
3447 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3448 }) _wgpu_COMMA \
3449 /*.connection=*/NULL _wgpu_COMMA \
3450 /*.window=*/0 _wgpu_COMMA \
3451})
3452
3473
3477#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3478 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3479 /*.next=*/NULL _wgpu_COMMA \
3480 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3481 }) _wgpu_COMMA \
3482 /*.display=*/NULL _wgpu_COMMA \
3483 /*.window=*/0 _wgpu_COMMA \
3484})
3485
3508
3512#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3513 /*.nextInChain=*/NULL _wgpu_COMMA \
3514 /*.texture=*/NULL _wgpu_COMMA \
3515 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3516})
3517
3525 uint64_t offset;
3529 uint32_t bytesPerRow;
3534} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3535
3539#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3540 /*.offset=*/0 _wgpu_COMMA \
3541 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3542 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3543})
3544
3569
3573#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3574 /*.nextInChain=*/NULL _wgpu_COMMA \
3575 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3576 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3577 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3578})
3579
3626
3630#define WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzle, { \
3631 /*.r=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3632 /*.g=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3633 /*.b=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3634 /*.a=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3635})
3636
3684
3688#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3689 /*.nextInChain=*/NULL _wgpu_COMMA \
3690 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3691 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3692 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3693 /*.baseMipLevel=*/0 _wgpu_COMMA \
3694 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3695 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3696 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3697 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3698 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3699})
3700
3719
3723#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3724 /*.nextInChain=*/NULL _wgpu_COMMA \
3725 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3726 /*.offset=*/0 _wgpu_COMMA \
3727 /*.shaderLocation=*/0 _wgpu_COMMA \
3728})
3729
3754
3758#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3759 /*.nextInChain=*/NULL _wgpu_COMMA \
3760 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3761 /*.layout=*/NULL _wgpu_COMMA \
3762 /*.entryCount=*/0 _wgpu_COMMA \
3763 /*.entries=*/NULL _wgpu_COMMA \
3764})
3765
3802
3806#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3807 /*.nextInChain=*/NULL _wgpu_COMMA \
3808 /*.binding=*/0 _wgpu_COMMA \
3809 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3810 /*.bindingArraySize=*/0 _wgpu_COMMA \
3811 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3812 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3813 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3814 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3815})
3816
3830
3834#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3835 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3836 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3837})
3838
3856
3860#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3861 /*.nextInChain=*/NULL _wgpu_COMMA \
3862 /*.messageCount=*/0 _wgpu_COMMA \
3863 /*.messages=*/NULL _wgpu_COMMA \
3864})
3865
3882
3886#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3887 /*.nextInChain=*/NULL _wgpu_COMMA \
3888 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3889 /*.timestampWrites=*/NULL _wgpu_COMMA \
3890})
3891
3916
3920#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3921 /*.nextInChain=*/NULL _wgpu_COMMA \
3922 /*.module=*/NULL _wgpu_COMMA \
3923 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3924 /*.constantCount=*/0 _wgpu_COMMA \
3925 /*.constants=*/NULL _wgpu_COMMA \
3926})
3927
3982
3986#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3987 /*.nextInChain=*/NULL _wgpu_COMMA \
3988 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3989 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3990 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3991 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3992 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3993 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3994 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3995 /*.depthBias=*/0 _wgpu_COMMA \
3996 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3997 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3998})
3999
4041
4045#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4046 /*.nextInChain=*/NULL _wgpu_COMMA \
4047 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4048 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4049 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4050 /*.requiredLimits=*/NULL _wgpu_COMMA \
4051 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4052 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4053 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4054})
4055
4075
4079#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
4080 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
4081 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
4082})
4083
4102
4106#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4107 /*.nextInChain=*/NULL _wgpu_COMMA \
4108 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4109 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4110 /*.requiredLimits=*/NULL _wgpu_COMMA \
4111})
4112
4146
4150#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4151 /*.nextInChain=*/NULL _wgpu_COMMA \
4152 /*.view=*/NULL _wgpu_COMMA \
4153 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4154 /*.resolveTarget=*/NULL _wgpu_COMMA \
4155 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4156 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4157 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4158})
4159
4202
4206#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4207 /*.nextInChain=*/NULL _wgpu_COMMA \
4208 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4209 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4210 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4211 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4212 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4213})
4214
4227
4231#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4232 /*.nextInChain=*/NULL _wgpu_COMMA \
4233 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4234})
4235
4254
4258#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4259 /*.nextInChain=*/NULL _wgpu_COMMA \
4260 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4261})
4262
4276
4280#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4281 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4282 /*.buffer=*/NULL _wgpu_COMMA \
4283})
4284
4309
4313#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4314 /*.texture=*/NULL _wgpu_COMMA \
4315 /*.mipLevel=*/0 _wgpu_COMMA \
4316 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4317 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4318})
4319
4330
4334#define WGPU_TEXTURE_COMPONENT_SWIZZLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzleDescriptor, { \
4335 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
4336 /*.next=*/NULL _wgpu_COMMA \
4337 /*.sType=*/WGPUSType_TextureComponentSwizzleDescriptor _wgpu_COMMA \
4338 }) _wgpu_COMMA \
4339 /*.swizzle=*/WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_COMMA \
4340})
4341
4389
4393#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4394 /*.nextInChain=*/NULL _wgpu_COMMA \
4395 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4396 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4397 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4398 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4399 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4400 /*.mipLevelCount=*/1 _wgpu_COMMA \
4401 /*.sampleCount=*/1 _wgpu_COMMA \
4402 /*.viewFormatCount=*/0 _wgpu_COMMA \
4403 /*.viewFormats=*/NULL _wgpu_COMMA \
4404})
4405
4441
4445#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4446 /*.nextInChain=*/NULL _wgpu_COMMA \
4447 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4448 /*.arrayStride=*/0 _wgpu_COMMA \
4449 /*.attributeCount=*/0 _wgpu_COMMA \
4450 /*.attributes=*/NULL _wgpu_COMMA \
4451})
4452
4473
4477#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4478 /*.nextInChain=*/NULL _wgpu_COMMA \
4479 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4480 /*.entryCount=*/0 _wgpu_COMMA \
4481 /*.entries=*/NULL _wgpu_COMMA \
4482})
4483
4506
4510#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4511 /*.nextInChain=*/NULL _wgpu_COMMA \
4512 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4513 /*.blend=*/NULL _wgpu_COMMA \
4514 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4515})
4516
4537
4541#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4542 /*.nextInChain=*/NULL _wgpu_COMMA \
4543 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4544 /*.layout=*/NULL _wgpu_COMMA \
4545 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4546})
4547
4580
4584#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4585 /*.nextInChain=*/NULL _wgpu_COMMA \
4586 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4587 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4588 /*.colorAttachments=*/NULL _wgpu_COMMA \
4589 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4590 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4591 /*.timestampWrites=*/NULL _wgpu_COMMA \
4592})
4593
4626
4630#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4631 /*.nextInChain=*/NULL _wgpu_COMMA \
4632 /*.module=*/NULL _wgpu_COMMA \
4633 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4634 /*.constantCount=*/0 _wgpu_COMMA \
4635 /*.constants=*/NULL _wgpu_COMMA \
4636 /*.bufferCount=*/0 _wgpu_COMMA \
4637 /*.buffers=*/NULL _wgpu_COMMA \
4638})
4639
4672
4676#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4677 /*.nextInChain=*/NULL _wgpu_COMMA \
4678 /*.module=*/NULL _wgpu_COMMA \
4679 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4680 /*.constantCount=*/0 _wgpu_COMMA \
4681 /*.constants=*/NULL _wgpu_COMMA \
4682 /*.targetCount=*/0 _wgpu_COMMA \
4683 /*.targets=*/NULL _wgpu_COMMA \
4684})
4685
4722
4726#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4727 /*.nextInChain=*/NULL _wgpu_COMMA \
4728 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4729 /*.layout=*/NULL _wgpu_COMMA \
4730 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4731 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4732 /*.depthStencil=*/NULL _wgpu_COMMA \
4733 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4734 /*.fragment=*/NULL _wgpu_COMMA \
4735})
4736
4739#ifdef __cplusplus
4740extern "C" {
4741#endif
4742
4743#if !defined(WGPU_SKIP_PROCS)
4744// Global procs
4749typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4754typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4759typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4764typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4769typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4770
4771
4772// Procs of Adapter
4777typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4782typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4787typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4792typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4797typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4802typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4807typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4808
4809// Procs of AdapterInfo
4814typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4815
4816// Procs of BindGroup
4821typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4826typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4831typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4832
4833// Procs of BindGroupLayout
4838typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4843typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4848typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4849
4850// Procs of Buffer
4855typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4860typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4865typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4870typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4875typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4880typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4885typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4890typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4895typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4900typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4905typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4910typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4915typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4916
4917// Procs of CommandBuffer
4922typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4927typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4932typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4933
4934// Procs of CommandEncoder
4939typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4944typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4949typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4954typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4959typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4964typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4969typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4974typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4979typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4984typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4989typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4994typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4999typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5004typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5009typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5014typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5015
5016// Procs of ComputePassEncoder
5021typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5026typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5031typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5036typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5041typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5046typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5051typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5056typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5061typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5066typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5071typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5072
5073// Procs of ComputePipeline
5078typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5083typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5088typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5093typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5094
5095// Procs of Device
5100typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5105typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5110typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5115typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5120typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5125typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5130typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5135typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5140typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5145typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5150typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5155typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5160typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5165typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5170typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5175typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5180typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5185typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5190typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5195typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5200typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5205typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5210typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5215typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5220typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5225typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5226
5227// Procs of Instance
5232typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5237typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5242typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5247typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5252typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5257typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5262typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5267typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5268
5269// Procs of PipelineLayout
5274typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5279typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5284typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5285
5286// Procs of QuerySet
5291typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5296typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5301typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5306typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5311typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5316typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5317
5318// Procs of Queue
5323typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5328typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5333typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5338typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5343typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5348typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5353typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5354
5355// Procs of RenderBundle
5360typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5365typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5370typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5371
5372// Procs of RenderBundleEncoder
5377typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5382typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5387typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5392typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5397typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5402typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5407typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5412typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5417typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5422typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5427typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5432typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5437typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5442typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5447typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5448
5449// Procs of RenderPassEncoder
5454typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5459typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5464typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5469typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5474typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5479typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5484typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5489typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5494typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5499typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5504typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5509typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5514typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5519typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5524typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5529typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5534typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5539typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5544typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5549typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5554typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5559typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5560
5561// Procs of RenderPipeline
5566typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5571typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5576typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5581typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5582
5583// Procs of Sampler
5588typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5593typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5598typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5599
5600// Procs of ShaderModule
5605typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5610typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5615typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5620typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5621
5622// Procs of SupportedFeatures
5627typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5628
5629// Procs of SupportedInstanceFeatures
5634typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5635
5636// Procs of SupportedWGSLLanguageFeatures
5641typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5642
5643// Procs of Surface
5648typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5653typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5658typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5663typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5668typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5673typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5678typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5683typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5684
5685// Procs of SurfaceCapabilities
5690typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5691
5692// Procs of Texture
5697typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5702typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5707typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5712typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5717typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5722typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5727typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5732typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5737typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5742typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5747typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5752typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5757typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5758
5759// Procs of TextureView
5764typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5769typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5774typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5775
5776#endif // !defined(WGPU_SKIP_PROCS)
5777
5778#if !defined(WGPU_SKIP_DECLARATIONS)
5791WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5798WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5805WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5809WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5814WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5815
5837WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5845WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5850WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5851WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5852WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5853WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5854WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5855
5867WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5868
5877WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5878WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5879WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5880
5889WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5890WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5891WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5892
5901WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5919WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5936WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5937WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5938WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5939WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5948WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5969WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5970WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5971WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5992WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5993WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5994WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5995
6004WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6005WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6006WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6007
6020WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6025WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6026WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6027WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6028WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6029WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6030WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6035WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6036WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6037WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6038WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6039WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
6040WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6041WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6042WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6043WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6044
6053WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
6054WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6055WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6056WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6057WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6058WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6059WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6060WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6061WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6062WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6063WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6064
6077WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6078WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6079WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6080WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6081
6094WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6099WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6109WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6114WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6119WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6125WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6130WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6140WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6146WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6151WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6156WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6157WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6165WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6172WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6177WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6182WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6187WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6188WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6193WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6198WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6199WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6200WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6201WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6202
6221WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6225WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6226WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6232WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6233WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6241WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6242
6251WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6252WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6253WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6254
6263WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6264WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6265WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6266WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6267WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6268WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6269
6278WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6279WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6280WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6285WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6286WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6287WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6288WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6289
6298WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6299WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6300WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6301
6310WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6311WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6312WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6313WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6318WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6319WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6320WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6321WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6322WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6323WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6324WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6325WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6326WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6327WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6328WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6329
6338WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6339WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6340WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6341WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6342WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6343WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6344WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6345WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6346WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6347WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6348WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6349WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6354WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6355WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6356WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6357WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6358WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6359WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6360WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6366WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6367WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6368WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6369
6382WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6383WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6384WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6385WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6386
6395WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6396WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6397WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6398
6407WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6408WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6409WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6410WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6411
6423WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6424
6436WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6437
6449WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6450
6468WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6484WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6494WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6502WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6509WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6514WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6515WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6516WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6517
6529WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6530
6543WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6544WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6545WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6546WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6547WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6548WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6549WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6550WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6551WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6552WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6553WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6554WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6555WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6556
6565WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6566WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6567WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6568
6573#endif // !defined(WGPU_SKIP_DECLARATIONS)
6574
6575#ifdef __cplusplus
6576} // extern "C"
6577#endif
6578
6579#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1312
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1296
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1305
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1292
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1313
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1262
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1280
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1258
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1326
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1349
WGPUFlags WGPUMapMode
Definition webgpu.h:1322
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1352
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1317
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1350
WGPUFlags WGPUShaderStage
Definition webgpu.h:1333
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1300
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1339
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1340
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1328
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1337
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1354
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1268
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1351
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1272
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1353
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1345
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1288
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1327
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1311
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1284
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1338
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1309
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1310
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1254
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1276
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1480
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1469
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1391
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1414
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1399
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1383
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1458
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1373
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1447
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1433
WGPUIndexFormat
Definition webgpu.h:679
WGPURequestAdapterStatus
Definition webgpu.h:848
WGPUFeatureName
Definition webgpu.h:633
WGPUVertexFormat
Definition webgpu.h:1157
WGPUSType
Definition webgpu.h:940
WGPUBufferBindingType
Definition webgpu.h:421
WGPUDeviceLostReason
Definition webgpu.h:587
WGPUCompareFunction
Definition webgpu.h:474
WGPUCullMode
Definition webgpu.h:576
WGPUTextureDimension
Definition webgpu.h:998
WGPURequestDeviceStatus
Definition webgpu.h:859
WGPUCompilationMessageType
Definition webgpu.h:499
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:565
WGPUTextureViewDimension
Definition webgpu.h:1137
WGPUPrimitiveTopology
Definition webgpu.h:815
WGPUTextureFormat
Definition webgpu.h:1009
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1232
WGPUStencilOperation
Definition webgpu.h:897
WGPUAddressMode
Definition webgpu.h:356
WGPUToneMappingMode
Definition webgpu.h:1151
WGPUTextureAspect
Definition webgpu.h:987
WGPUBufferMapState
Definition webgpu.h:438
WGPUFilterMode
Definition webgpu.h:659
WGPUBackendType
Definition webgpu.h:367
WGPUBlendFactor
Definition webgpu.h:383
WGPUSamplerBindingType
Definition webgpu.h:869
WGPULoadOp
Definition webgpu.h:709
WGPUPopErrorScopeStatus
Definition webgpu.h:750
WGPUWaitStatus
Definition webgpu.h:1215
WGPUStorageTextureAccess
Definition webgpu.h:913
WGPUPowerPreference
Definition webgpu.h:766
WGPUPresentMode
Definition webgpu.h:785
WGPUMapAsyncStatus
Definition webgpu.h:719
WGPUBlendOperation
Definition webgpu.h:408
WGPUCompositeAlphaMode
Definition webgpu.h:541
WGPUPredefinedColorSpace
Definition webgpu.h:776
WGPUQueueWorkDoneStatus
Definition webgpu.h:834
WGPUComponentSwizzle
Definition webgpu.h:506
WGPUVertexStepMode
Definition webgpu.h:1202
WGPUQueryType
Definition webgpu.h:828
WGPUFeatureLevel
Definition webgpu.h:617
WGPUAdapterType
Definition webgpu.h:348
WGPUInstanceFeatureName
Definition webgpu.h:689
WGPUStatus
Definition webgpu.h:891
WGPUCompilationInfoRequestStatus
Definition webgpu.h:490
WGPUMipmapFilterMode
Definition webgpu.h:730
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:959
WGPUFrontFace
Definition webgpu.h:669
WGPUStoreOp
Definition webgpu.h:930
WGPUErrorFilter
Definition webgpu.h:598
WGPUOptionalBool
Definition webgpu.h:740
WGPUCallbackMode
Definition webgpu.h:448
WGPUTextureSampleType
Definition webgpu.h:1118
WGPUErrorType
Definition webgpu.h:605
@ WGPUIndexFormat_Force32
Definition webgpu.h:686
@ WGPUIndexFormat_Uint16
Definition webgpu.h:684
@ WGPUIndexFormat_Undefined
Definition webgpu.h:683
@ WGPUIndexFormat_Uint32
Definition webgpu.h:685
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:854
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:849
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:855
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:853
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:856
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:640
@ WGPUFeatureName_Subgroups
Definition webgpu.h:651
@ WGPUFeatureName_Force32
Definition webgpu.h:656
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:649
@ WGPUFeatureName_PrimitiveIndex
Definition webgpu.h:654
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:636
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:645
@ WGPUFeatureName_TextureFormatsTier1
Definition webgpu.h:652
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:646
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:648
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:650
@ WGPUFeatureName_TextureComponentSwizzle
Definition webgpu.h:655
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:641
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:638
@ WGPUFeatureName_CoreFeaturesAndLimits
Definition webgpu.h:634
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:644
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:647
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:642
@ WGPUFeatureName_TextureFormatsTier2
Definition webgpu.h:653
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:637
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:639
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:643
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:635
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1196
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1186
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1194
@ WGPUVertexFormat_Float32
Definition webgpu.h:1185
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1184
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1172
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1168
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1160
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1162
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1164
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1166
@ WGPUVertexFormat_Force32
Definition webgpu.h:1199
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1159
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1188
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1183
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1189
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1167
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1161
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1192
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1198
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1193
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1170
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1190
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1191
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1179
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1175
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1197
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1177
@ WGPUVertexFormat_Float16
Definition webgpu.h:1182
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1165
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1195
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1174
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1169
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1158
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1163
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1176
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1173
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1171
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1180
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1178
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1187
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1181
@ WGPUSType_Force32
Definition webgpu.h:953
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:947
@ WGPUSType_TextureComponentSwizzleDescriptor
Definition webgpu.h:952
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:941
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:950
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:948
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:949
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:945
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:943
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:944
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:951
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:942
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:946
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:427
@ WGPUBufferBindingType_Storage
Definition webgpu.h:433
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:431
@ WGPUBufferBindingType_Force32
Definition webgpu.h:435
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:434
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:432
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:594
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:589
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:593
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:595
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:588
@ WGPUCompareFunction_Force32
Definition webgpu.h:487
@ WGPUCompareFunction_Always
Definition webgpu.h:486
@ WGPUCompareFunction_Never
Definition webgpu.h:479
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:484
@ WGPUCompareFunction_Less
Definition webgpu.h:480
@ WGPUCompareFunction_Undefined
Definition webgpu.h:478
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:485
@ WGPUCompareFunction_Equal
Definition webgpu.h:481
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:482
@ WGPUCompareFunction_Greater
Definition webgpu.h:483
@ WGPUCullMode_Force32
Definition webgpu.h:584
@ WGPUCullMode_Undefined
Definition webgpu.h:580
@ WGPUCullMode_Back
Definition webgpu.h:583
@ WGPUCullMode_Front
Definition webgpu.h:582
@ WGPUCullMode_None
Definition webgpu.h:581
@ WGPUTextureDimension_Undefined
Definition webgpu.h:1002
@ WGPUTextureDimension_2D
Definition webgpu.h:1004
@ WGPUTextureDimension_Force32
Definition webgpu.h:1006
@ WGPUTextureDimension_3D
Definition webgpu.h:1005
@ WGPUTextureDimension_1D
Definition webgpu.h:1003
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:864
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:860
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:865
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:866
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:503
@ WGPUCompilationMessageType_Info
Definition webgpu.h:502
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:501
@ WGPUCompilationMessageType_Error
Definition webgpu.h:500
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:573
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:571
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:570
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:566
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:572
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1145
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1144
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1143
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1147
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1142
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1146
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1141
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1148
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:821
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:822
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:819
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:823
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:820
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:824
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:825
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1111
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1072
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1075
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:1035
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:1023
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1077
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1087
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1080
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1084
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1070
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:1037
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1105
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:1041
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1095
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1079
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1107
@ WGPUTextureFormat_RG16Unorm
Definition webgpu.h:1030
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1101
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1054
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1073
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1048
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1053
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1109
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1062
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:1024
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1112
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1059
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:1033
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1085
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1078
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1074
@ WGPUTextureFormat_R32Float
Definition webgpu.h:1027
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1076
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:1021
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:1017
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:1036
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1068
@ WGPUTextureFormat_RGBA16Unorm
Definition webgpu.h:1049
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:1038
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1086
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1051
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1110
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:1043
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1104
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1091
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:1028
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1082
@ WGPUTextureFormat_RG16Snorm
Definition webgpu.h:1031
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1089
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1067
@ WGPUTextureFormat_R16Unorm
Definition webgpu.h:1018
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:1040
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1069
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1071
@ WGPUTextureFormat_Force32
Definition webgpu.h:1115
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1063
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1092
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1100
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:1029
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1066
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1055
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1057
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1083
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1096
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:1032
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1108
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1045
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1058
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:1026
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1102
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:1020
@ WGPUTextureFormat_Undefined
Definition webgpu.h:1013
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1106
@ WGPUTextureFormat_R16Float
Definition webgpu.h:1022
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1090
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1046
@ WGPUTextureFormat_RGBA16Snorm
Definition webgpu.h:1050
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1044
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1114
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1056
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1064
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:1034
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1093
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1060
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1103
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1052
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:1014
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1061
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1065
@ WGPUTextureFormat_R16Snorm
Definition webgpu.h:1019
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1099
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:1025
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:1016
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1097
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1113
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:1042
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1088
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1081
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1047
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1098
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:1039
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:1015
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1094
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1233
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1235
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1236
@ WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout
Definition webgpu.h:1237
@ WGPUWGSLLanguageFeatureName_SubgroupId
Definition webgpu.h:1238
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1239
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1234
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:907
@ WGPUStencilOperation_Undefined
Definition webgpu.h:901
@ WGPUStencilOperation_Replace
Definition webgpu.h:904
@ WGPUStencilOperation_Keep
Definition webgpu.h:902
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:909
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:908
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:906
@ WGPUStencilOperation_Invert
Definition webgpu.h:905
@ WGPUStencilOperation_Force32
Definition webgpu.h:910
@ WGPUStencilOperation_Zero
Definition webgpu.h:903
@ WGPUAddressMode_Repeat
Definition webgpu.h:362
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:363
@ WGPUAddressMode_Undefined
Definition webgpu.h:360
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:361
@ WGPUAddressMode_Force32
Definition webgpu.h:364
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1154
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1152
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1153
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:994
@ WGPUTextureAspect_Force32
Definition webgpu.h:995
@ WGPUTextureAspect_Undefined
Definition webgpu.h:991
@ WGPUTextureAspect_All
Definition webgpu.h:992
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:993
@ WGPUBufferMapState_Pending
Definition webgpu.h:440
@ WGPUBufferMapState_Mapped
Definition webgpu.h:441
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:439
@ WGPUBufferMapState_Force32
Definition webgpu.h:442
@ WGPUFilterMode_Undefined
Definition webgpu.h:663
@ WGPUFilterMode_Force32
Definition webgpu.h:666
@ WGPUFilterMode_Nearest
Definition webgpu.h:664
@ WGPUFilterMode_Linear
Definition webgpu.h:665
@ WGPUBackendType_Vulkan
Definition webgpu.h:377
@ WGPUBackendType_OpenGL
Definition webgpu.h:378
@ WGPUBackendType_Force32
Definition webgpu.h:380
@ WGPUBackendType_OpenGLES
Definition webgpu.h:379
@ WGPUBackendType_WebGPU
Definition webgpu.h:373
@ WGPUBackendType_D3D11
Definition webgpu.h:374
@ WGPUBackendType_D3D12
Definition webgpu.h:375
@ WGPUBackendType_Undefined
Definition webgpu.h:371
@ WGPUBackendType_Null
Definition webgpu.h:372
@ WGPUBackendType_Metal
Definition webgpu.h:376
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:396
@ WGPUBlendFactor_One
Definition webgpu.h:389
@ WGPUBlendFactor_Zero
Definition webgpu.h:388
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:403
@ WGPUBlendFactor_Undefined
Definition webgpu.h:387
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:395
@ WGPUBlendFactor_Force32
Definition webgpu.h:405
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:402
@ WGPUBlendFactor_Constant
Definition webgpu.h:399
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:391
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:398
@ WGPUBlendFactor_Src
Definition webgpu.h:390
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:393
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:392
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:400
@ WGPUBlendFactor_Src1
Definition webgpu.h:401
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:397
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:404
@ WGPUBlendFactor_Dst
Definition webgpu.h:394
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:875
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:881
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:883
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:880
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:879
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:882
@ WGPULoadOp_Load
Definition webgpu.h:714
@ WGPULoadOp_Force32
Definition webgpu.h:716
@ WGPULoadOp_Undefined
Definition webgpu.h:713
@ WGPULoadOp_Clear
Definition webgpu.h:715
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:763
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:754
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:758
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:762
@ WGPUWaitStatus_Error
Definition webgpu.h:1228
@ WGPUWaitStatus_Force32
Definition webgpu.h:1229
@ WGPUWaitStatus_Success
Definition webgpu.h:1219
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1223
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:923
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:919
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:925
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:924
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:927
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:926
@ WGPUPowerPreference_Force32
Definition webgpu.h:773
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:772
@ WGPUPowerPreference_LowPower
Definition webgpu.h:771
@ WGPUPowerPreference_Undefined
Definition webgpu.h:770
@ WGPUPresentMode_Fifo
Definition webgpu.h:795
@ WGPUPresentMode_Force32
Definition webgpu.h:812
@ WGPUPresentMode_Immediate
Definition webgpu.h:806
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:801
@ WGPUPresentMode_Mailbox
Definition webgpu.h:811
@ WGPUPresentMode_Undefined
Definition webgpu.h:789
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:726
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:724
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:725
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:727
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:720
@ WGPUBlendOperation_Undefined
Definition webgpu.h:412
@ WGPUBlendOperation_Max
Definition webgpu.h:417
@ WGPUBlendOperation_Subtract
Definition webgpu.h:414
@ WGPUBlendOperation_Min
Definition webgpu.h:416
@ WGPUBlendOperation_Add
Definition webgpu.h:413
@ WGPUBlendOperation_Force32
Definition webgpu.h:418
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:415
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:545
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:562
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:549
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:557
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:561
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:553
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:778
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:777
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:779
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:844
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:839
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:835
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:845
@ WGPUComponentSwizzle_A
Definition webgpu.h:534
@ WGPUComponentSwizzle_Force32
Definition webgpu.h:535
@ WGPUComponentSwizzle_G
Definition webgpu.h:526
@ WGPUComponentSwizzle_R
Definition webgpu.h:522
@ WGPUComponentSwizzle_B
Definition webgpu.h:530
@ WGPUComponentSwizzle_Zero
Definition webgpu.h:514
@ WGPUComponentSwizzle_One
Definition webgpu.h:518
@ WGPUComponentSwizzle_Undefined
Definition webgpu.h:510
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1206
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1208
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1207
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1209
@ WGPUQueryType_Occlusion
Definition webgpu.h:829
@ WGPUQueryType_Timestamp
Definition webgpu.h:830
@ WGPUQueryType_Force32
Definition webgpu.h:831
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:621
@ WGPUFeatureLevel_Core
Definition webgpu.h:629
@ WGPUFeatureLevel_Force32
Definition webgpu.h:630
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:625
@ WGPUAdapterType_CPU
Definition webgpu.h:351
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:349
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:350
@ WGPUAdapterType_Unknown
Definition webgpu.h:352
@ WGPUAdapterType_Force32
Definition webgpu.h:353
@ WGPUInstanceFeatureName_ShaderSourceSPIRV
Definition webgpu.h:698
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:706
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
Definition webgpu.h:705
@ WGPUInstanceFeatureName_TimedWaitAny
Definition webgpu.h:693
@ WGPUStatus_Force32
Definition webgpu.h:894
@ WGPUStatus_Success
Definition webgpu.h:892
@ WGPUStatus_Error
Definition webgpu.h:893
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:496
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:491
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:495
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:734
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:736
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:737
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:735
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:979
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:983
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:975
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:971
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:963
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:984
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:967
@ WGPUFrontFace_CW
Definition webgpu.h:675
@ WGPUFrontFace_Undefined
Definition webgpu.h:673
@ WGPUFrontFace_CCW
Definition webgpu.h:674
@ WGPUFrontFace_Force32
Definition webgpu.h:676
@ WGPUStoreOp_Discard
Definition webgpu.h:936
@ WGPUStoreOp_Force32
Definition webgpu.h:937
@ WGPUStoreOp_Store
Definition webgpu.h:935
@ WGPUStoreOp_Undefined
Definition webgpu.h:934
@ WGPUErrorFilter_Internal
Definition webgpu.h:601
@ WGPUErrorFilter_Force32
Definition webgpu.h:602
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:600
@ WGPUErrorFilter_Validation
Definition webgpu.h:599
@ WGPUOptionalBool_True
Definition webgpu.h:745
@ WGPUOptionalBool_Force32
Definition webgpu.h:747
@ WGPUOptionalBool_Undefined
Definition webgpu.h:746
@ WGPUOptionalBool_False
Definition webgpu.h:744
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:460
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:470
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:454
@ WGPUCallbackMode_Force32
Definition webgpu.h:471
@ WGPUTextureSampleType_Float
Definition webgpu.h:1129
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1132
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1124
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1128
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1134
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1133
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1131
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1130
@ WGPUErrorType_NoError
Definition webgpu.h:606
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:608
@ WGPUErrorType_Unknown
Definition webgpu.h:610
@ WGPUErrorType_Validation
Definition webgpu.h:607
@ WGPUErrorType_Force32
Definition webgpu.h:611
@ WGPUErrorType_Internal
Definition webgpu.h:609
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)
void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures *features)
WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor)
void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout)
void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label)
void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout)
void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label)
void wgpuQuerySetDestroy(WGPUQuerySet querySet)
void wgpuQuerySetRelease(WGPUQuerySet querySet)
void wgpuQuerySetAddRef(WGPUQuerySet querySet)
uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet)
WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet)
void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const *destination, void const *data, size_t dataSize, WGPUTexelCopyBufferLayout const *dataLayout, WGPUExtent3D const *writeSize)
void wgpuQueueAddRef(WGPUQueue queue)
void wgpuQueueRelease(WGPUQueue queue)
void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label)
void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size)
WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo)
void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands)
void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel)
WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const *descriptor)
void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel)
void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label)
void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle)
void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label)
void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel)
void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles)
void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel)
void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label)
void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color)
void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label)
void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline)
void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
void wgpuSamplerAddRef(WGPUSampler sampler)
void wgpuSamplerRelease(WGPUSampler sampler)
void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label)
void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule)
WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo)
void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label)
void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures)
void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures)
void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures)
void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities)
void wgpuSurfaceAddRef(WGPUSurface surface)
WGPUStatus wgpuSurfacePresent(WGPUSurface surface)
void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label)
void wgpuSurfaceUnconfigure(WGPUSurface surface)
void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const *config)
WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
void wgpuSurfaceRelease(WGPUSurface surface)
uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
void wgpuTextureDestroy(WGPUTexture texture)
uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
void wgpuTextureRelease(WGPUTexture texture)
WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
uint32_t wgpuTextureGetHeight(WGPUTexture texture)
uint32_t wgpuTextureGetWidth(WGPUTexture texture)
void wgpuTextureAddRef(WGPUTexture texture)
WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPUTextureViewDescriptor const *descriptor)
WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture)
void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label)
uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture)
void wgpuTextureViewRelease(WGPUTextureView textureView)
void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label)
void wgpuTextureViewAddRef(WGPUTextureView textureView)
WGPUStringView device
Definition webgpu.h:1769
WGPUBackendType backendType
Definition webgpu.h:1779
uint32_t deviceID
Definition webgpu.h:1791
WGPUChainedStruct * nextInChain
Definition webgpu.h:1751
uint32_t subgroupMinSize
Definition webgpu.h:1795
uint32_t vendorID
Definition webgpu.h:1787
WGPUStringView description
Definition webgpu.h:1775
WGPUAdapterType adapterType
Definition webgpu.h:1783
uint32_t subgroupMaxSize
Definition webgpu.h:1799
WGPUStringView architecture
Definition webgpu.h:1763
WGPUStringView vendor
Definition webgpu.h:1757
WGPUChainedStruct * nextInChain
Definition webgpu.h:3734
WGPUStringView label
Definition webgpu.h:3740
WGPUBindGroupLayout layout
Definition webgpu.h:3744
WGPUBindGroupEntry const * entries
Definition webgpu.h:3752
uint64_t offset
Definition webgpu.h:1843
WGPUBuffer buffer
Definition webgpu.h:1836
WGPUSampler sampler
Definition webgpu.h:1858
WGPUTextureView textureView
Definition webgpu.h:1865
WGPUChainedStruct * nextInChain
Definition webgpu.h:1823
uint32_t binding
Definition webgpu.h:1829
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4471
WGPUChainedStruct * nextInChain
Definition webgpu.h:4457
WGPUTextureBindingLayout texture
Definition webgpu.h:3796
WGPUShaderStage visibility
Definition webgpu.h:3778
WGPUBufferBindingLayout buffer
Definition webgpu.h:3788
WGPUChainedStruct * nextInChain
Definition webgpu.h:3770
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3800
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3792
WGPUBlendFactor dstFactor
Definition webgpu.h:1905
WGPUBlendFactor srcFactor
Definition webgpu.h:1898
WGPUBlendOperation operation
Definition webgpu.h:1891
WGPUBlendComponent alpha
Definition webgpu.h:3828
WGPUBlendComponent color
Definition webgpu.h:3824
WGPUBufferBindingType type
Definition webgpu.h:1928
WGPUBool hasDynamicOffset
Definition webgpu.h:1932
WGPUChainedStruct * nextInChain
Definition webgpu.h:1921
WGPUBool mappedAtCreation
Definition webgpu.h:1975
WGPUStringView label
Definition webgpu.h:1959
WGPUBufferUsage usage
Definition webgpu.h:1963
WGPUChainedStruct * nextInChain
Definition webgpu.h:1953
WGPUChainedStruct * nextInChain
Definition webgpu.h:1513
WGPUBufferMapCallback callback
Definition webgpu.h:1520
WGPUCallbackMode mode
Definition webgpu.h:1519
struct WGPUChainedStruct * next
Definition webgpu.h:1491
WGPUSType sType
Definition webgpu.h:1492
WGPUBlendState const * blend
Definition webgpu.h:4500
WGPUColorWriteMask writeMask
Definition webgpu.h:4504
WGPUChainedStruct * nextInChain
Definition webgpu.h:4488
WGPUTextureFormat format
Definition webgpu.h:4496
double a
Definition webgpu.h:2012
double b
Definition webgpu.h:2008
double r
Definition webgpu.h:2000
double g
Definition webgpu.h:2004
WGPUChainedStruct * nextInChain
Definition webgpu.h:2029
WGPUChainedStruct * nextInChain
Definition webgpu.h:2050
WGPUCompilationInfoCallback callback
Definition webgpu.h:1544
WGPUChainedStruct * nextInChain
Definition webgpu.h:1537
WGPUChainedStruct * nextInChain
Definition webgpu.h:3846
WGPUCompilationMessage const * messages
Definition webgpu.h:3854
WGPUChainedStruct * nextInChain
Definition webgpu.h:2074
WGPUCompilationMessageType type
Definition webgpu.h:2088
WGPUStringView message
Definition webgpu.h:2082
WGPUStringView label
Definition webgpu.h:3876
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3880
WGPUChainedStruct * nextInChain
Definition webgpu.h:3870
WGPUComputeState compute
Definition webgpu.h:4535
WGPUChainedStruct * nextInChain
Definition webgpu.h:4521
WGPUPipelineLayout layout
Definition webgpu.h:4531
WGPUChainedStruct * nextInChain
Definition webgpu.h:3896
WGPUConstantEntry const * constants
Definition webgpu.h:3914
size_t constantCount
Definition webgpu.h:3910
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3906
WGPUStringView key
Definition webgpu.h:2138
WGPUChainedStruct * nextInChain
Definition webgpu.h:2132
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1568
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1592
WGPUStencilFaceState stencilFront
Definition webgpu.h:3948
uint32_t stencilWriteMask
Definition webgpu.h:3960
WGPUStencilFaceState stencilBack
Definition webgpu.h:3952
WGPUChainedStruct * nextInChain
Definition webgpu.h:3932
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3940
WGPUCompareFunction depthCompare
Definition webgpu.h:3944
uint32_t stencilReadMask
Definition webgpu.h:3956
WGPUTextureFormat format
Definition webgpu.h:3936
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:4030
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:4039
size_t requiredFeatureCount
Definition webgpu.h:4014
WGPUStringView label
Definition webgpu.h:4010
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:4018
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:4026
WGPUChainedStruct * nextInChain
Definition webgpu.h:4004
WGPULimits const * requiredLimits
Definition webgpu.h:4022
WGPUChainedStruct * nextInChain
Definition webgpu.h:1609
WGPUDeviceLostCallback callback
Definition webgpu.h:1616
WGPUCallbackMode mode
Definition webgpu.h:1615
uint32_t width
Definition webgpu.h:2165
uint32_t depthOrArrayLayers
Definition webgpu.h:2173
uint32_t height
Definition webgpu.h:2169
size_t constantCount
Definition webgpu.h:4658
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4654
WGPUChainedStruct * nextInChain
Definition webgpu.h:4644
size_t targetCount
Definition webgpu.h:4666
WGPUConstantEntry const * constants
Definition webgpu.h:4662
WGPUColorTargetState const * targets
Definition webgpu.h:4670
WGPUFuture future
Definition webgpu.h:4067
WGPUBool completed
Definition webgpu.h:4073
uint64_t id
Definition webgpu.h:2196
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:4096
WGPUChainedStruct * nextInChain
Definition webgpu.h:4088
size_t requiredFeatureCount
Definition webgpu.h:4092
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:4100
size_t timedWaitAnyMaxCount
Definition webgpu.h:2216
WGPUChainedStruct * nextInChain
Definition webgpu.h:2210
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2255
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2331
uint32_t maxTextureDimension2D
Definition webgpu.h:2239
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2271
uint32_t maxTextureDimension3D
Definition webgpu.h:2243
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2275
WGPUChainedStruct * nextInChain
Definition webgpu.h:2231
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2259
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2355
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2267
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2335
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2303
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2347
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2295
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2339
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2319
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2299
uint32_t maxVertexAttributes
Definition webgpu.h:2315
uint32_t maxColorAttachments
Definition webgpu.h:2327
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2323
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2351
uint32_t maxTextureDimension1D
Definition webgpu.h:2235
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2263
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2291
uint64_t maxBufferSize
Definition webgpu.h:2311
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2287
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2343
uint32_t maxVertexBuffers
Definition webgpu.h:2307
uint32_t maxTextureArrayLayers
Definition webgpu.h:2247
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2283
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2279
uint32_t maxImmediateSize
Definition webgpu.h:2359
uint32_t maxBindGroups
Definition webgpu.h:2251
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2417
WGPUChainedStruct * nextInChain
Definition webgpu.h:2405
uint32_t y
Definition webgpu.h:2441
uint32_t z
Definition webgpu.h:2445
uint32_t x
Definition webgpu.h:2437
WGPUQuerySet querySet
Definition webgpu.h:2467
uint32_t endOfPassWriteIndex
Definition webgpu.h:2475
WGPUChainedStruct * nextInChain
Definition webgpu.h:2461
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2471
WGPUChainedStruct * nextInChain
Definition webgpu.h:2492
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2506
WGPUChainedStruct * nextInChain
Definition webgpu.h:1633
WGPUCallbackMode mode
Definition webgpu.h:1639
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1640
WGPUFrontFace frontFace
Definition webgpu.h:2546
WGPUChainedStruct * nextInChain
Definition webgpu.h:2528
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2539
WGPUPrimitiveTopology topology
Definition webgpu.h:2535
WGPUCullMode cullMode
Definition webgpu.h:2553
WGPUBool unclippedDepth
Definition webgpu.h:2557
WGPUQueryType type
Definition webgpu.h:2586
WGPUChainedStruct * nextInChain
Definition webgpu.h:2576
WGPUStringView label
Definition webgpu.h:2582
WGPUChainedStruct * nextInChain
Definition webgpu.h:2607
WGPUStringView label
Definition webgpu.h:2613
WGPUCallbackMode mode
Definition webgpu.h:1663
WGPUChainedStruct * nextInChain
Definition webgpu.h:1657
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1664
WGPUChainedStruct * nextInChain
Definition webgpu.h:2628
WGPUStringView label
Definition webgpu.h:2634
WGPUChainedStruct * nextInChain
Definition webgpu.h:2649
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2663
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2667
WGPUTextureView resolveTarget
Definition webgpu.h:4132
WGPUChainedStruct * nextInChain
Definition webgpu.h:4117
WGPUChainedStruct * nextInChain
Definition webgpu.h:2700
WGPUChainedStruct * nextInChain
Definition webgpu.h:4552
WGPUStringView label
Definition webgpu.h:4558
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4570
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4566
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4574
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4578
WGPUChainedStruct chain
Definition webgpu.h:2766
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4712
WGPUChainedStruct * nextInChain
Definition webgpu.h:4690
WGPUMultisampleState multisample
Definition webgpu.h:4716
WGPUFragmentState const * fragment
Definition webgpu.h:4720
WGPUPrimitiveState primitive
Definition webgpu.h:4708
WGPUPipelineLayout layout
Definition webgpu.h:4700
WGPUVertexState vertex
Definition webgpu.h:4704
WGPURequestAdapterCallback callback
Definition webgpu.h:1688
WGPUChainedStruct * nextInChain
Definition webgpu.h:1681
WGPUFeatureLevel featureLevel
Definition webgpu.h:4175
WGPUBool forceFallbackAdapter
Definition webgpu.h:4186
WGPUSurface compatibleSurface
Definition webgpu.h:4200
WGPUBackendType backendType
Definition webgpu.h:4193
WGPUChainedStruct * nextInChain
Definition webgpu.h:4164
WGPUPowerPreference powerPreference
Definition webgpu.h:4179
WGPUChainedStruct chain
Definition webgpu.h:2790
WGPUCallbackMode mode
Definition webgpu.h:1711
WGPUChainedStruct * nextInChain
Definition webgpu.h:1705
WGPURequestDeviceCallback callback
Definition webgpu.h:1712
WGPUChainedStruct * nextInChain
Definition webgpu.h:2814
WGPUSamplerBindingType type
Definition webgpu.h:2821
WGPUFilterMode minFilter
Definition webgpu.h:2877
WGPUAddressMode addressModeU
Definition webgpu.h:2849
WGPUCompareFunction compare
Definition webgpu.h:2904
WGPUAddressMode addressModeW
Definition webgpu.h:2863
uint16_t maxAnisotropy
Definition webgpu.h:2908
WGPUAddressMode addressModeV
Definition webgpu.h:2856
WGPUStringView label
Definition webgpu.h:2842
WGPUFilterMode magFilter
Definition webgpu.h:2870
WGPUChainedStruct * nextInChain
Definition webgpu.h:2836
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2884
WGPUChainedStruct * nextInChain
Definition webgpu.h:4219
WGPUStringView label
Definition webgpu.h:4225
WGPUChainedStruct chain
Definition webgpu.h:2933
uint32_t const * code
Definition webgpu.h:2941
WGPUChainedStruct chain
Definition webgpu.h:2960
WGPUStringView code
Definition webgpu.h:2966
WGPUCompareFunction compare
Definition webgpu.h:2990
WGPUStencilOperation depthFailOp
Definition webgpu.h:3004
WGPUStencilOperation passOp
Definition webgpu.h:3011
WGPUStencilOperation failOp
Definition webgpu.h:2997
WGPUChainedStruct * nextInChain
Definition webgpu.h:3028
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3046
WGPUTextureFormat format
Definition webgpu.h:3039
WGPUStorageTextureAccess access
Definition webgpu.h:3035
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:3070
WGPUInstanceFeatureName const * features
Definition webgpu.h:3092
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3114
WGPUTextureFormat const * formats
Definition webgpu.h:3148
WGPUChainedStruct * nextInChain
Definition webgpu.h:3131
WGPUPresentMode const * presentModes
Definition webgpu.h:3159
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3170
WGPUTextureUsage usages
Definition webgpu.h:3138
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3201
WGPUChainedStruct chain
Definition webgpu.h:3193
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3197
WGPUTextureUsage usage
Definition webgpu.h:3241
WGPUTextureFormat format
Definition webgpu.h:3235
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3263
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3273
WGPUChainedStruct * nextInChain
Definition webgpu.h:3223
WGPUPresentMode presentMode
Definition webgpu.h:3282
WGPUChainedStruct * nextInChain
Definition webgpu.h:4244
WGPUStringView label
Definition webgpu.h:4252
WGPUChainedStruct chain
Definition webgpu.h:3333
WGPUChainedStruct chain
Definition webgpu.h:3359
WGPUChainedStruct chain
Definition webgpu.h:3392
WGPUChainedStruct chain
Definition webgpu.h:3426
WGPUChainedStruct chain
Definition webgpu.h:3459
WGPUChainedStruct * nextInChain
Definition webgpu.h:3493
WGPUTexture texture
Definition webgpu.h:3500
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3506
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4270
WGPUOrigin3D origin
Definition webgpu.h:4300
WGPUTextureAspect aspect
Definition webgpu.h:4307
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3563
WGPUTextureSampleType sampleType
Definition webgpu.h:3556
WGPUChainedStruct * nextInChain
Definition webgpu.h:3549
WGPUTextureComponentSwizzle swizzle
Definition webgpu.h:4328
WGPUComponentSwizzle r
Definition webgpu.h:3597
WGPUComponentSwizzle a
Definition webgpu.h:3624
WGPUComponentSwizzle g
Definition webgpu.h:3606
WGPUComponentSwizzle b
Definition webgpu.h:3615
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4387
WGPUTextureDimension dimension
Definition webgpu.h:4363
WGPUStringView label
Definition webgpu.h:4352
uint32_t mipLevelCount
Definition webgpu.h:4375
WGPUChainedStruct * nextInChain
Definition webgpu.h:4346
WGPUTextureFormat format
Definition webgpu.h:4371
WGPUTextureUsage usage
Definition webgpu.h:4356
WGPUExtent3D size
Definition webgpu.h:4367
WGPUChainedStruct * nextInChain
Definition webgpu.h:3641
WGPUTextureUsage usage
Definition webgpu.h:3682
WGPUTextureFormat format
Definition webgpu.h:3651
WGPUTextureViewDimension dimension
Definition webgpu.h:3655
WGPUStringView label
Definition webgpu.h:3647
WGPUTextureAspect aspect
Definition webgpu.h:3678
WGPUChainedStruct * nextInChain
Definition webgpu.h:1729
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1730
WGPUVertexFormat format
Definition webgpu.h:3709
WGPUChainedStruct * nextInChain
Definition webgpu.h:3705
uint32_t shaderLocation
Definition webgpu.h:3717
WGPUVertexAttribute const * attributes
Definition webgpu.h:4439
WGPUVertexStepMode stepMode
Definition webgpu.h:4427
WGPUChainedStruct * nextInChain
Definition webgpu.h:4423
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4608
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4624
WGPUConstantEntry const * constants
Definition webgpu.h:4616
size_t constantCount
Definition webgpu.h:4612
size_t bufferCount
Definition webgpu.h:4620
WGPUChainedStruct * nextInChain
Definition webgpu.h:4598