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
954
985
996
1007
1008typedef enum WGPUTextureFormat {
1114 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1115} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1116
1135
1149
1155
1156typedef enum WGPUVertexFormat {
1198 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1199} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1200
1210
1214typedef enum WGPUWaitStatus {
1228 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1229} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1230
1239
1256static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1260static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1266static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1270static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1274static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1278static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1282static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1286static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1290static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1294static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1298static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1299
1307static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1308static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1309static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1310static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1311static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1315static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1316
1324static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1325static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1326static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1327
1335static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1336static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1337static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1338static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1339
1347static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1348static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1349static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1350static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1351static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1352static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1353
1356typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1357
1371typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1372
1381typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1382
1389typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1390
1397typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1398
1412typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1413
1431typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1432
1445typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1446
1456typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1457
1467typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1468
1478typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1479
1488typedef struct WGPUChainedStruct {
1491} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1492
1522
1526#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1527 /*.nextInChain=*/NULL _wgpu_COMMA \
1528 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1529 /*.callback=*/NULL _wgpu_COMMA \
1530 /*.userdata1=*/NULL _wgpu_COMMA \
1531 /*.userdata2=*/NULL _wgpu_COMMA \
1532})
1533
1546
1550#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1551 /*.nextInChain=*/NULL _wgpu_COMMA \
1552 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1553 /*.callback=*/NULL _wgpu_COMMA \
1554 /*.userdata1=*/NULL _wgpu_COMMA \
1555 /*.userdata2=*/NULL _wgpu_COMMA \
1556})
1557
1570
1574#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1575 /*.nextInChain=*/NULL _wgpu_COMMA \
1576 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1577 /*.callback=*/NULL _wgpu_COMMA \
1578 /*.userdata1=*/NULL _wgpu_COMMA \
1579 /*.userdata2=*/NULL _wgpu_COMMA \
1580})
1581
1594
1598#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1599 /*.nextInChain=*/NULL _wgpu_COMMA \
1600 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1601 /*.callback=*/NULL _wgpu_COMMA \
1602 /*.userdata1=*/NULL _wgpu_COMMA \
1603 /*.userdata2=*/NULL _wgpu_COMMA \
1604})
1605
1618
1622#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1623 /*.nextInChain=*/NULL _wgpu_COMMA \
1624 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1625 /*.callback=*/NULL _wgpu_COMMA \
1626 /*.userdata1=*/NULL _wgpu_COMMA \
1627 /*.userdata2=*/NULL _wgpu_COMMA \
1628})
1629
1642
1646#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1647 /*.nextInChain=*/NULL _wgpu_COMMA \
1648 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1649 /*.callback=*/NULL _wgpu_COMMA \
1650 /*.userdata1=*/NULL _wgpu_COMMA \
1651 /*.userdata2=*/NULL _wgpu_COMMA \
1652})
1653
1666
1670#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1671 /*.nextInChain=*/NULL _wgpu_COMMA \
1672 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1673 /*.callback=*/NULL _wgpu_COMMA \
1674 /*.userdata1=*/NULL _wgpu_COMMA \
1675 /*.userdata2=*/NULL _wgpu_COMMA \
1676})
1677
1690
1694#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1695 /*.nextInChain=*/NULL _wgpu_COMMA \
1696 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1697 /*.callback=*/NULL _wgpu_COMMA \
1698 /*.userdata1=*/NULL _wgpu_COMMA \
1699 /*.userdata2=*/NULL _wgpu_COMMA \
1700})
1701
1714
1718#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1719 /*.nextInChain=*/NULL _wgpu_COMMA \
1720 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1721 /*.callback=*/NULL _wgpu_COMMA \
1722 /*.userdata1=*/NULL _wgpu_COMMA \
1723 /*.userdata2=*/NULL _wgpu_COMMA \
1724})
1725
1732
1736#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1737 /*.nextInChain=*/NULL _wgpu_COMMA \
1738 /*.callback=*/NULL _wgpu_COMMA \
1739 /*.userdata1=*/NULL _wgpu_COMMA \
1740 /*.userdata2=*/NULL _wgpu_COMMA \
1741})
1742
1799
1803#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1804 /*.nextInChain=*/NULL _wgpu_COMMA \
1805 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1806 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1807 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1808 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1809 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1810 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1811 /*.vendorID=*/0 _wgpu_COMMA \
1812 /*.deviceID=*/0 _wgpu_COMMA \
1813 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1814 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1815})
1816
1820typedef struct WGPUBindGroupEntry {
1827 uint32_t binding;
1834 WGPU_NULLABLE WGPUBuffer buffer;
1841 uint64_t offset;
1849 uint64_t size;
1856 WGPU_NULLABLE WGPUSampler sampler;
1864} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1865
1869#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1870 /*.nextInChain=*/NULL _wgpu_COMMA \
1871 /*.binding=*/0 _wgpu_COMMA \
1872 /*.buffer=*/NULL _wgpu_COMMA \
1873 /*.offset=*/0 _wgpu_COMMA \
1874 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1875 /*.sampler=*/NULL _wgpu_COMMA \
1876 /*.textureView=*/NULL _wgpu_COMMA \
1877})
1878
1905
1909#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1910 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1911 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1912 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1913})
1914
1936
1940#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1941 /*.nextInChain=*/NULL _wgpu_COMMA \
1942 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1943 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1944 /*.minBindingSize=*/0 _wgpu_COMMA \
1945})
1946
1975
1979#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1980 /*.nextInChain=*/NULL _wgpu_COMMA \
1981 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1982 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1983 /*.size=*/0 _wgpu_COMMA \
1984 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1985})
1986
1994typedef struct WGPUColor {
1998 double r;
2002 double g;
2006 double b;
2010 double a;
2011} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
2012
2016#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
2017 /*.r=*/0. _wgpu_COMMA \
2018 /*.g=*/0. _wgpu_COMMA \
2019 /*.b=*/0. _wgpu_COMMA \
2020 /*.a=*/0. _wgpu_COMMA \
2021})
2022
2035
2039#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
2040 /*.nextInChain=*/NULL _wgpu_COMMA \
2041 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2042})
2043
2056
2060#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2061 /*.nextInChain=*/NULL _wgpu_COMMA \
2062 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2063})
2064
2112
2116#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2117 /*.nextInChain=*/NULL _wgpu_COMMA \
2118 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2119 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2120 /*.lineNum=*/0 _wgpu_COMMA \
2121 /*.linePos=*/0 _wgpu_COMMA \
2122 /*.offset=*/0 _wgpu_COMMA \
2123 /*.length=*/0 _wgpu_COMMA \
2124})
2125
2146
2150#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2151 /*.nextInChain=*/NULL _wgpu_COMMA \
2152 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2153 /*.value=*/0. _wgpu_COMMA \
2154})
2155
2159typedef struct WGPUExtent3D {
2163 uint32_t width;
2167 uint32_t height;
2172} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2173
2177#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2178 /*.width=*/0 _wgpu_COMMA \
2179 /*.height=*/1 _wgpu_COMMA \
2180 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2181})
2182
2188typedef struct WGPUFuture {
2194 uint64_t id;
2195} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2196
2200#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2201 /*.id=*/0 _wgpu_COMMA \
2202})
2203
2216
2220#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2221 /*.nextInChain=*/NULL _wgpu_COMMA \
2222 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2223})
2224
2359
2363#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2364 /*.nextInChain=*/NULL _wgpu_COMMA \
2365 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2366 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2367 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2368 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2369 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2370 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2371 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2372 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2373 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2374 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2375 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2376 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2377 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2378 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2379 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2380 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2381 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2382 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2383 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2384 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2385 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2386 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2387 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2388 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2389 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2390 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2391 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2392 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2393 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2394 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2395 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2396 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2397})
2398
2417
2421#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2422 /*.nextInChain=*/NULL _wgpu_COMMA \
2423 /*.count=*/1 _wgpu_COMMA \
2424 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2425 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2426})
2427
2431typedef struct WGPUOrigin3D {
2435 uint32_t x;
2439 uint32_t y;
2443 uint32_t z;
2444} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2445
2449#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2450 /*.x=*/0 _wgpu_COMMA \
2451 /*.y=*/0 _wgpu_COMMA \
2452 /*.z=*/0 _wgpu_COMMA \
2453})
2454
2475
2479#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2480 /*.nextInChain=*/NULL _wgpu_COMMA \
2481 /*.querySet=*/NULL _wgpu_COMMA \
2482 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2483 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2484})
2485
2510
2514#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2515 /*.nextInChain=*/NULL _wgpu_COMMA \
2516 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2517 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2518 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2519 /*.immediateSize=*/0 _wgpu_COMMA \
2520})
2521
2557
2561#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2562 /*.nextInChain=*/NULL _wgpu_COMMA \
2563 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2564 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2565 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2566 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2567 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2568})
2569
2590
2594#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2595 /*.nextInChain=*/NULL _wgpu_COMMA \
2596 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2597 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2598 /*.count=*/0 _wgpu_COMMA \
2599})
2600
2613
2617#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2618 /*.nextInChain=*/NULL _wgpu_COMMA \
2619 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2620})
2621
2634
2638#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2639 /*.nextInChain=*/NULL _wgpu_COMMA \
2640 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2641})
2642
2679
2683#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2684 /*.nextInChain=*/NULL _wgpu_COMMA \
2685 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2686 /*.colorFormatCount=*/0 _wgpu_COMMA \
2687 /*.colorFormats=*/NULL _wgpu_COMMA \
2688 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2689 /*.sampleCount=*/1 _wgpu_COMMA \
2690 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2691 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2692})
2693
2743
2747#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2748 /*.nextInChain=*/NULL _wgpu_COMMA \
2749 /*.view=*/NULL _wgpu_COMMA \
2750 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2751 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2752 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2753 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2754 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2755 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2756 /*.stencilClearValue=*/0 _wgpu_COMMA \
2757 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2758})
2759
2770
2774#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2775 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2776 /*.next=*/NULL _wgpu_COMMA \
2777 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2778 }) _wgpu_COMMA \
2779 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2780})
2781
2796
2800#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2801 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2802 /*.next=*/NULL _wgpu_COMMA \
2803 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2804 }) _wgpu_COMMA \
2805 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2806})
2807
2821
2825#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2826 /*.nextInChain=*/NULL _wgpu_COMMA \
2827 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2828})
2829
2908
2912#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2913 /*.nextInChain=*/NULL _wgpu_COMMA \
2914 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2915 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2916 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2917 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2918 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2919 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2920 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2921 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2922 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2923 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2924 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2925})
2926
2935 uint32_t codeSize;
2939 uint32_t const * code;
2940} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2941
2945#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2946 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2947 /*.next=*/NULL _wgpu_COMMA \
2948 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2949 }) _wgpu_COMMA \
2950 /*.codeSize=*/0 _wgpu_COMMA \
2951 /*.code=*/NULL _wgpu_COMMA \
2952})
2953
2966
2970#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2971 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2972 /*.next=*/NULL _wgpu_COMMA \
2973 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2974 }) _wgpu_COMMA \
2975 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2976})
2977
3011
3015#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
3016 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3017 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3018 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3019 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3020})
3021
3046
3050#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3051 /*.nextInChain=*/NULL _wgpu_COMMA \
3052 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3053 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3054 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3055})
3056
3069} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3070
3074#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3075 /*.featureCount=*/0 _wgpu_COMMA \
3076 /*.features=*/NULL _wgpu_COMMA \
3077})
3078
3092
3096#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
3097 /*.featureCount=*/0 _wgpu_COMMA \
3098 /*.features=*/NULL _wgpu_COMMA \
3099})
3100
3114
3118#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3119 /*.featureCount=*/0 _wgpu_COMMA \
3120 /*.features=*/NULL _wgpu_COMMA \
3121})
3122
3170
3174#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3175 /*.nextInChain=*/NULL _wgpu_COMMA \
3176 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3177 /*.formatCount=*/0 _wgpu_COMMA \
3178 /*.formats=*/NULL _wgpu_COMMA \
3179 /*.presentModeCount=*/0 _wgpu_COMMA \
3180 /*.presentModes=*/NULL _wgpu_COMMA \
3181 /*.alphaModeCount=*/0 _wgpu_COMMA \
3182 /*.alphaModes=*/NULL _wgpu_COMMA \
3183})
3184
3201
3205#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3206 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3207 /*.next=*/NULL _wgpu_COMMA \
3208 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3209 }) _wgpu_COMMA \
3210 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3211 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3212})
3213
3282
3286#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3287 /*.nextInChain=*/NULL _wgpu_COMMA \
3288 /*.device=*/NULL _wgpu_COMMA \
3289 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3290 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3291 /*.width=*/0 _wgpu_COMMA \
3292 /*.height=*/0 _wgpu_COMMA \
3293 /*.viewFormatCount=*/0 _wgpu_COMMA \
3294 /*.viewFormats=*/NULL _wgpu_COMMA \
3295 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3296 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3297})
3298
3313
3317#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3318 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3319 /*.next=*/NULL _wgpu_COMMA \
3320 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3321 }) _wgpu_COMMA \
3322 /*.window=*/NULL _wgpu_COMMA \
3323})
3324
3339
3343#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3344 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3345 /*.next=*/NULL _wgpu_COMMA \
3346 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3347 }) _wgpu_COMMA \
3348 /*.layer=*/NULL _wgpu_COMMA \
3349})
3350
3371
3375#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3376 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3377 /*.next=*/NULL _wgpu_COMMA \
3378 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3379 }) _wgpu_COMMA \
3380 /*.display=*/NULL _wgpu_COMMA \
3381 /*.surface=*/NULL _wgpu_COMMA \
3382})
3383
3405
3409#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3410 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3411 /*.next=*/NULL _wgpu_COMMA \
3412 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3413 }) _wgpu_COMMA \
3414 /*.hinstance=*/NULL _wgpu_COMMA \
3415 /*.hwnd=*/NULL _wgpu_COMMA \
3416})
3417
3438
3442#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3443 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3444 /*.next=*/NULL _wgpu_COMMA \
3445 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3446 }) _wgpu_COMMA \
3447 /*.connection=*/NULL _wgpu_COMMA \
3448 /*.window=*/0 _wgpu_COMMA \
3449})
3450
3471
3475#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3476 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3477 /*.next=*/NULL _wgpu_COMMA \
3478 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3479 }) _wgpu_COMMA \
3480 /*.display=*/NULL _wgpu_COMMA \
3481 /*.window=*/0 _wgpu_COMMA \
3482})
3483
3506
3510#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3511 /*.nextInChain=*/NULL _wgpu_COMMA \
3512 /*.texture=*/NULL _wgpu_COMMA \
3513 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3514})
3515
3523 uint64_t offset;
3527 uint32_t bytesPerRow;
3532} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3533
3537#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3538 /*.offset=*/0 _wgpu_COMMA \
3539 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3540 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3541})
3542
3567
3571#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3572 /*.nextInChain=*/NULL _wgpu_COMMA \
3573 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3574 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3575 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3576})
3577
3624
3628#define WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzle, { \
3629 /*.r=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3630 /*.g=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3631 /*.b=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3632 /*.a=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3633})
3634
3682
3686#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3687 /*.nextInChain=*/NULL _wgpu_COMMA \
3688 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3689 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3690 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3691 /*.baseMipLevel=*/0 _wgpu_COMMA \
3692 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3693 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3694 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3695 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3696 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3697})
3698
3717
3721#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3722 /*.nextInChain=*/NULL _wgpu_COMMA \
3723 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3724 /*.offset=*/0 _wgpu_COMMA \
3725 /*.shaderLocation=*/0 _wgpu_COMMA \
3726})
3727
3752
3756#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3757 /*.nextInChain=*/NULL _wgpu_COMMA \
3758 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3759 /*.layout=*/NULL _wgpu_COMMA \
3760 /*.entryCount=*/0 _wgpu_COMMA \
3761 /*.entries=*/NULL _wgpu_COMMA \
3762})
3763
3800
3804#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3805 /*.nextInChain=*/NULL _wgpu_COMMA \
3806 /*.binding=*/0 _wgpu_COMMA \
3807 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3808 /*.bindingArraySize=*/0 _wgpu_COMMA \
3809 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3810 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3811 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3812 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3813})
3814
3828
3832#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3833 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3834 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3835})
3836
3854
3858#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3859 /*.nextInChain=*/NULL _wgpu_COMMA \
3860 /*.messageCount=*/0 _wgpu_COMMA \
3861 /*.messages=*/NULL _wgpu_COMMA \
3862})
3863
3880
3884#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3885 /*.nextInChain=*/NULL _wgpu_COMMA \
3886 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3887 /*.timestampWrites=*/NULL _wgpu_COMMA \
3888})
3889
3914
3918#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3919 /*.nextInChain=*/NULL _wgpu_COMMA \
3920 /*.module=*/NULL _wgpu_COMMA \
3921 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3922 /*.constantCount=*/0 _wgpu_COMMA \
3923 /*.constants=*/NULL _wgpu_COMMA \
3924})
3925
3980
3984#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3985 /*.nextInChain=*/NULL _wgpu_COMMA \
3986 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3987 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3988 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3989 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3990 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3991 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3992 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3993 /*.depthBias=*/0 _wgpu_COMMA \
3994 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3995 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3996})
3997
4039
4043#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4044 /*.nextInChain=*/NULL _wgpu_COMMA \
4045 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4046 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4047 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4048 /*.requiredLimits=*/NULL _wgpu_COMMA \
4049 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4050 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4051 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4052})
4053
4073
4077#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
4078 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
4079 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
4080})
4081
4100
4104#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4105 /*.nextInChain=*/NULL _wgpu_COMMA \
4106 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4107 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4108 /*.requiredLimits=*/NULL _wgpu_COMMA \
4109})
4110
4144
4148#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4149 /*.nextInChain=*/NULL _wgpu_COMMA \
4150 /*.view=*/NULL _wgpu_COMMA \
4151 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4152 /*.resolveTarget=*/NULL _wgpu_COMMA \
4153 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4154 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4155 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4156})
4157
4200
4204#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4205 /*.nextInChain=*/NULL _wgpu_COMMA \
4206 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4207 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4208 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4209 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4210 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4211})
4212
4225
4229#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4230 /*.nextInChain=*/NULL _wgpu_COMMA \
4231 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4232})
4233
4252
4256#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4257 /*.nextInChain=*/NULL _wgpu_COMMA \
4258 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4259})
4260
4274
4278#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4279 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4280 /*.buffer=*/NULL _wgpu_COMMA \
4281})
4282
4307
4311#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4312 /*.texture=*/NULL _wgpu_COMMA \
4313 /*.mipLevel=*/0 _wgpu_COMMA \
4314 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4315 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4316})
4317
4328
4332#define WGPU_TEXTURE_COMPONENT_SWIZZLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzleDescriptor, { \
4333 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
4334 /*.next=*/NULL _wgpu_COMMA \
4335 /*.sType=*/WGPUSType_TextureComponentSwizzleDescriptor _wgpu_COMMA \
4336 }) _wgpu_COMMA \
4337 /*.swizzle=*/WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_COMMA \
4338})
4339
4387
4391#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4392 /*.nextInChain=*/NULL _wgpu_COMMA \
4393 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4394 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4395 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4396 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4397 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4398 /*.mipLevelCount=*/1 _wgpu_COMMA \
4399 /*.sampleCount=*/1 _wgpu_COMMA \
4400 /*.viewFormatCount=*/0 _wgpu_COMMA \
4401 /*.viewFormats=*/NULL _wgpu_COMMA \
4402})
4403
4439
4443#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4444 /*.nextInChain=*/NULL _wgpu_COMMA \
4445 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4446 /*.arrayStride=*/0 _wgpu_COMMA \
4447 /*.attributeCount=*/0 _wgpu_COMMA \
4448 /*.attributes=*/NULL _wgpu_COMMA \
4449})
4450
4471
4475#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4476 /*.nextInChain=*/NULL _wgpu_COMMA \
4477 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4478 /*.entryCount=*/0 _wgpu_COMMA \
4479 /*.entries=*/NULL _wgpu_COMMA \
4480})
4481
4504
4508#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4509 /*.nextInChain=*/NULL _wgpu_COMMA \
4510 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4511 /*.blend=*/NULL _wgpu_COMMA \
4512 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4513})
4514
4535
4539#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4540 /*.nextInChain=*/NULL _wgpu_COMMA \
4541 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4542 /*.layout=*/NULL _wgpu_COMMA \
4543 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4544})
4545
4578
4582#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4583 /*.nextInChain=*/NULL _wgpu_COMMA \
4584 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4585 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4586 /*.colorAttachments=*/NULL _wgpu_COMMA \
4587 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4588 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4589 /*.timestampWrites=*/NULL _wgpu_COMMA \
4590})
4591
4624
4628#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4629 /*.nextInChain=*/NULL _wgpu_COMMA \
4630 /*.module=*/NULL _wgpu_COMMA \
4631 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4632 /*.constantCount=*/0 _wgpu_COMMA \
4633 /*.constants=*/NULL _wgpu_COMMA \
4634 /*.bufferCount=*/0 _wgpu_COMMA \
4635 /*.buffers=*/NULL _wgpu_COMMA \
4636})
4637
4670
4674#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4675 /*.nextInChain=*/NULL _wgpu_COMMA \
4676 /*.module=*/NULL _wgpu_COMMA \
4677 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4678 /*.constantCount=*/0 _wgpu_COMMA \
4679 /*.constants=*/NULL _wgpu_COMMA \
4680 /*.targetCount=*/0 _wgpu_COMMA \
4681 /*.targets=*/NULL _wgpu_COMMA \
4682})
4683
4720
4724#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4725 /*.nextInChain=*/NULL _wgpu_COMMA \
4726 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4727 /*.layout=*/NULL _wgpu_COMMA \
4728 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4729 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4730 /*.depthStencil=*/NULL _wgpu_COMMA \
4731 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4732 /*.fragment=*/NULL _wgpu_COMMA \
4733})
4734
4737#ifdef __cplusplus
4738extern "C" {
4739#endif
4740
4741#if !defined(WGPU_SKIP_PROCS)
4742// Global procs
4747typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4752typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4757typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4762typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4767typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4768
4769
4770// Procs of Adapter
4775typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4780typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4785typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4790typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4795typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4800typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4805typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4806
4807// Procs of AdapterInfo
4812typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4813
4814// Procs of BindGroup
4819typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4824typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4829typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4830
4831// Procs of BindGroupLayout
4836typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4841typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4846typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4847
4848// Procs of Buffer
4853typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4858typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4863typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4868typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4873typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4878typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4883typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4888typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4893typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4898typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4903typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4908typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4913typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4914
4915// Procs of CommandBuffer
4920typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4925typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4930typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4931
4932// Procs of CommandEncoder
4937typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4942typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4947typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4952typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4957typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4962typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4967typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4972typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4977typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4982typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4987typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4992typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4997typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5002typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5007typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5012typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5013
5014// Procs of ComputePassEncoder
5019typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5024typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5029typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5034typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5039typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5044typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5049typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5054typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5059typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5064typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5069typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5070
5071// Procs of ComputePipeline
5076typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5081typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5086typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5091typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5092
5093// Procs of Device
5098typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5103typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5108typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5113typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5118typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5123typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5128typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5133typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5138typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5143typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5148typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5153typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5158typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5163typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5168typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5173typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5178typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5183typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5188typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5193typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5198typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5203typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5208typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5213typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5218typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5223typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5224
5225// Procs of Instance
5230typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5235typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5240typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5245typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5250typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5255typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5260typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5265typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5266
5267// Procs of PipelineLayout
5272typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5277typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5282typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5283
5284// Procs of QuerySet
5289typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5294typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5299typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5304typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5309typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5314typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5315
5316// Procs of Queue
5321typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5326typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5331typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5336typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5341typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5346typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5351typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5352
5353// Procs of RenderBundle
5358typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5363typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5368typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5369
5370// Procs of RenderBundleEncoder
5375typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5380typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5385typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5390typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5395typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5400typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5405typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5410typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5415typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5420typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5425typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5430typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5435typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5440typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5445typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5446
5447// Procs of RenderPassEncoder
5452typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5457typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5462typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5467typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5472typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5477typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5482typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5487typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5492typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5497typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5502typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5507typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5512typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5517typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5522typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5527typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5532typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5537typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5542typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5547typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5552typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5557typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5558
5559// Procs of RenderPipeline
5564typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5569typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5574typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5579typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5580
5581// Procs of Sampler
5586typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5591typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5596typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5597
5598// Procs of ShaderModule
5603typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5608typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5613typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5618typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5619
5620// Procs of SupportedFeatures
5625typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5626
5627// Procs of SupportedInstanceFeatures
5632typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5633
5634// Procs of SupportedWGSLLanguageFeatures
5639typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5640
5641// Procs of Surface
5646typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5651typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5656typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5661typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5666typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5671typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5676typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5681typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5682
5683// Procs of SurfaceCapabilities
5688typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5689
5690// Procs of Texture
5695typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5700typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5705typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5710typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5715typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5720typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5725typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5730typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5735typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5740typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5745typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5750typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5755typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5756
5757// Procs of TextureView
5762typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5767typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5772typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5773
5774#endif // !defined(WGPU_SKIP_PROCS)
5775
5776#if !defined(WGPU_SKIP_DECLARATIONS)
5789WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5796WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5803WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5807WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5812WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5813
5835WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5843WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5848WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5849WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5850WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5851WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5852WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5853
5865WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5866
5875WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5876WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5877WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5878
5887WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5888WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5889WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5890
5899WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5917WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5934WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5935WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5936WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5937WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5946WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5967WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5968WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5969WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5990WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5991WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5992WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5993
6002WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6003WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6004WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6005
6018WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6023WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6024WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6025WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6026WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6027WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6028WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6033WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6034WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6035WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6036WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6037WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
6038WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6039WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6040WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6041WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6042
6051WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
6052WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6053WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6054WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6055WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6056WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6057WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6058WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6059WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6060WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6061WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6062
6075WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6076WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6077WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6078WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6079
6092WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6097WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6107WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6112WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6117WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6123WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6128WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6138WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6144WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6149WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6154WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6155WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6163WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6170WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6175WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6180WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6185WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6186WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6191WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6196WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6197WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6198WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6199WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6200
6219WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6223WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6224WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6230WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6231WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6237WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6238WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6240
6249WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6250WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6251WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6252
6261WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6262WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6263WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6264WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6265WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6266WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6267
6276WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6277WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6278WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6283WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6284WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6285WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6286WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6287
6296WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6297WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6298WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6299
6308WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6309WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6310WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6311WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6316WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6317WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6318WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6319WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6320WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6321WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6322WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6323WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6324WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6325WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6326WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6327
6336WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6337WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6338WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6339WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6340WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6341WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6342WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6343WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6344WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6345WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6346WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6347WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6352WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6353WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6354WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6355WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6356WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6357WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6358WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6364WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6365WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6366WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6367
6380WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6381WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6382WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6383WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6384
6393WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6394WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6395WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6396
6405WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6406WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6407WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6408WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6409
6421WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6422
6434WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6435
6447WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6448
6466WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6482WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6492WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6500WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6507WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6512WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6513WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6514WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6515
6527WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6528
6541WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6542WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6543WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6544WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6545WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6546WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6547WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6548WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6549WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6550WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6551WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6552WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6553WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6554
6563WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6564WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6565WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6566
6571#endif // !defined(WGPU_SKIP_DECLARATIONS)
6572
6573#ifdef __cplusplus
6574} // extern "C"
6575#endif
6576
6577#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1310
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1294
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1303
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1290
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1311
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1260
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1278
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1256
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1324
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1347
WGPUFlags WGPUMapMode
Definition webgpu.h:1320
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1350
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1315
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1348
WGPUFlags WGPUShaderStage
Definition webgpu.h:1331
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1298
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1337
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1338
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1326
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1335
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1352
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1266
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1349
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1270
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1351
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1343
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1286
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1325
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1309
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1282
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1336
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1307
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1308
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1252
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1274
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1478
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1467
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1389
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1412
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1397
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1381
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1456
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1371
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1445
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1431
WGPUIndexFormat
Definition webgpu.h:679
WGPURequestAdapterStatus
Definition webgpu.h:848
WGPUFeatureName
Definition webgpu.h:633
WGPUVertexFormat
Definition webgpu.h:1156
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:997
WGPURequestDeviceStatus
Definition webgpu.h:859
WGPUCompilationMessageType
Definition webgpu.h:499
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:565
WGPUTextureViewDimension
Definition webgpu.h:1136
WGPUPrimitiveTopology
Definition webgpu.h:815
WGPUTextureFormat
Definition webgpu.h:1008
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1231
WGPUStencilOperation
Definition webgpu.h:897
WGPUAddressMode
Definition webgpu.h:356
WGPUToneMappingMode
Definition webgpu.h:1150
WGPUTextureAspect
Definition webgpu.h:986
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:1214
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:1201
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:958
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:1117
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:1195
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1185
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1193
@ WGPUVertexFormat_Float32
Definition webgpu.h:1184
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1183
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1171
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1167
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1159
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1161
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1163
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1165
@ WGPUVertexFormat_Force32
Definition webgpu.h:1198
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1158
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1187
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1182
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1188
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1166
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1160
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1191
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1197
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1192
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1169
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1189
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1190
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1178
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1174
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1196
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1176
@ WGPUVertexFormat_Float16
Definition webgpu.h:1181
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1164
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1194
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1173
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1168
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1157
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1162
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1175
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1172
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1170
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1179
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1177
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1186
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1180
@ WGPUSType_Force32
Definition webgpu.h:952
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:947
@ 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:1001
@ WGPUTextureDimension_2D
Definition webgpu.h:1003
@ WGPUTextureDimension_Force32
Definition webgpu.h:1005
@ WGPUTextureDimension_3D
Definition webgpu.h:1004
@ WGPUTextureDimension_1D
Definition webgpu.h:1002
@ 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:1144
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1143
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1142
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1146
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1141
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1145
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1140
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1147
@ 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:1110
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1071
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1074
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:1034
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:1022
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1076
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1086
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1079
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1083
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1069
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:1036
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1104
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:1040
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1094
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1078
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1106
@ WGPUTextureFormat_RG16Unorm
Definition webgpu.h:1029
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1100
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1053
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1072
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1047
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1052
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1108
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1061
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:1023
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1111
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1058
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:1032
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1084
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1077
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1073
@ WGPUTextureFormat_R32Float
Definition webgpu.h:1026
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1075
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:1020
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:1016
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:1035
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1067
@ WGPUTextureFormat_RGBA16Unorm
Definition webgpu.h:1048
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:1037
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1085
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1050
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1109
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:1042
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1103
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1090
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:1027
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1081
@ WGPUTextureFormat_RG16Snorm
Definition webgpu.h:1030
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1088
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1066
@ WGPUTextureFormat_R16Unorm
Definition webgpu.h:1017
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:1039
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1068
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1070
@ WGPUTextureFormat_Force32
Definition webgpu.h:1114
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1062
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1091
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1099
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:1028
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1065
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1054
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1056
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1082
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1095
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:1031
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1107
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1044
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1057
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:1025
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1101
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:1019
@ WGPUTextureFormat_Undefined
Definition webgpu.h:1012
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1105
@ WGPUTextureFormat_R16Float
Definition webgpu.h:1021
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1089
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1045
@ WGPUTextureFormat_RGBA16Snorm
Definition webgpu.h:1049
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1043
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1113
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1055
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1063
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:1033
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1092
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1059
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1102
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1051
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:1013
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1060
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1064
@ WGPUTextureFormat_R16Snorm
Definition webgpu.h:1018
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1098
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:1024
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:1015
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1096
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1112
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:1041
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1087
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1080
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1046
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1097
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:1038
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:1014
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1093
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1232
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1234
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1235
@ WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout
Definition webgpu.h:1236
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1237
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1233
@ 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:1153
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1151
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1152
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:993
@ WGPUTextureAspect_Force32
Definition webgpu.h:994
@ WGPUTextureAspect_Undefined
Definition webgpu.h:990
@ WGPUTextureAspect_All
Definition webgpu.h:991
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:992
@ 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:1227
@ WGPUWaitStatus_Force32
Definition webgpu.h:1228
@ WGPUWaitStatus_Success
Definition webgpu.h:1218
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1222
@ 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:1205
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1207
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1206
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1208
@ 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:978
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:982
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:974
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:970
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:962
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:983
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:966
@ 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:1128
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1131
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1123
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1127
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1133
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1132
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1130
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1129
@ 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:1767
WGPUBackendType backendType
Definition webgpu.h:1777
uint32_t deviceID
Definition webgpu.h:1789
WGPUChainedStruct * nextInChain
Definition webgpu.h:1749
uint32_t subgroupMinSize
Definition webgpu.h:1793
uint32_t vendorID
Definition webgpu.h:1785
WGPUStringView description
Definition webgpu.h:1773
WGPUAdapterType adapterType
Definition webgpu.h:1781
uint32_t subgroupMaxSize
Definition webgpu.h:1797
WGPUStringView architecture
Definition webgpu.h:1761
WGPUStringView vendor
Definition webgpu.h:1755
WGPUChainedStruct * nextInChain
Definition webgpu.h:3732
WGPUStringView label
Definition webgpu.h:3738
WGPUBindGroupLayout layout
Definition webgpu.h:3742
WGPUBindGroupEntry const * entries
Definition webgpu.h:3750
uint64_t offset
Definition webgpu.h:1841
WGPUBuffer buffer
Definition webgpu.h:1834
WGPUSampler sampler
Definition webgpu.h:1856
WGPUTextureView textureView
Definition webgpu.h:1863
WGPUChainedStruct * nextInChain
Definition webgpu.h:1821
uint32_t binding
Definition webgpu.h:1827
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4469
WGPUChainedStruct * nextInChain
Definition webgpu.h:4455
WGPUTextureBindingLayout texture
Definition webgpu.h:3794
WGPUShaderStage visibility
Definition webgpu.h:3776
WGPUBufferBindingLayout buffer
Definition webgpu.h:3786
WGPUChainedStruct * nextInChain
Definition webgpu.h:3768
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3798
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3790
WGPUBlendFactor dstFactor
Definition webgpu.h:1903
WGPUBlendFactor srcFactor
Definition webgpu.h:1896
WGPUBlendOperation operation
Definition webgpu.h:1889
WGPUBlendComponent alpha
Definition webgpu.h:3826
WGPUBlendComponent color
Definition webgpu.h:3822
WGPUBufferBindingType type
Definition webgpu.h:1926
WGPUBool hasDynamicOffset
Definition webgpu.h:1930
WGPUChainedStruct * nextInChain
Definition webgpu.h:1919
WGPUBool mappedAtCreation
Definition webgpu.h:1973
WGPUStringView label
Definition webgpu.h:1957
WGPUBufferUsage usage
Definition webgpu.h:1961
WGPUChainedStruct * nextInChain
Definition webgpu.h:1951
WGPUChainedStruct * nextInChain
Definition webgpu.h:1511
WGPUBufferMapCallback callback
Definition webgpu.h:1518
WGPUCallbackMode mode
Definition webgpu.h:1517
struct WGPUChainedStruct * next
Definition webgpu.h:1489
WGPUSType sType
Definition webgpu.h:1490
WGPUBlendState const * blend
Definition webgpu.h:4498
WGPUColorWriteMask writeMask
Definition webgpu.h:4502
WGPUChainedStruct * nextInChain
Definition webgpu.h:4486
WGPUTextureFormat format
Definition webgpu.h:4494
double a
Definition webgpu.h:2010
double b
Definition webgpu.h:2006
double r
Definition webgpu.h:1998
double g
Definition webgpu.h:2002
WGPUChainedStruct * nextInChain
Definition webgpu.h:2027
WGPUChainedStruct * nextInChain
Definition webgpu.h:2048
WGPUCompilationInfoCallback callback
Definition webgpu.h:1542
WGPUChainedStruct * nextInChain
Definition webgpu.h:1535
WGPUChainedStruct * nextInChain
Definition webgpu.h:3844
WGPUCompilationMessage const * messages
Definition webgpu.h:3852
WGPUChainedStruct * nextInChain
Definition webgpu.h:2072
WGPUCompilationMessageType type
Definition webgpu.h:2086
WGPUStringView message
Definition webgpu.h:2080
WGPUStringView label
Definition webgpu.h:3874
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3878
WGPUChainedStruct * nextInChain
Definition webgpu.h:3868
WGPUComputeState compute
Definition webgpu.h:4533
WGPUChainedStruct * nextInChain
Definition webgpu.h:4519
WGPUPipelineLayout layout
Definition webgpu.h:4529
WGPUChainedStruct * nextInChain
Definition webgpu.h:3894
WGPUConstantEntry const * constants
Definition webgpu.h:3912
size_t constantCount
Definition webgpu.h:3908
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3904
WGPUStringView key
Definition webgpu.h:2136
WGPUChainedStruct * nextInChain
Definition webgpu.h:2130
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1566
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1590
WGPUStencilFaceState stencilFront
Definition webgpu.h:3946
uint32_t stencilWriteMask
Definition webgpu.h:3958
WGPUStencilFaceState stencilBack
Definition webgpu.h:3950
WGPUChainedStruct * nextInChain
Definition webgpu.h:3930
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3938
WGPUCompareFunction depthCompare
Definition webgpu.h:3942
uint32_t stencilReadMask
Definition webgpu.h:3954
WGPUTextureFormat format
Definition webgpu.h:3934
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:4028
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:4037
size_t requiredFeatureCount
Definition webgpu.h:4012
WGPUStringView label
Definition webgpu.h:4008
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:4016
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:4024
WGPUChainedStruct * nextInChain
Definition webgpu.h:4002
WGPULimits const * requiredLimits
Definition webgpu.h:4020
WGPUChainedStruct * nextInChain
Definition webgpu.h:1607
WGPUDeviceLostCallback callback
Definition webgpu.h:1614
WGPUCallbackMode mode
Definition webgpu.h:1613
uint32_t width
Definition webgpu.h:2163
uint32_t depthOrArrayLayers
Definition webgpu.h:2171
uint32_t height
Definition webgpu.h:2167
size_t constantCount
Definition webgpu.h:4656
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4652
WGPUChainedStruct * nextInChain
Definition webgpu.h:4642
size_t targetCount
Definition webgpu.h:4664
WGPUConstantEntry const * constants
Definition webgpu.h:4660
WGPUColorTargetState const * targets
Definition webgpu.h:4668
WGPUFuture future
Definition webgpu.h:4065
WGPUBool completed
Definition webgpu.h:4071
uint64_t id
Definition webgpu.h:2194
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:4094
WGPUChainedStruct * nextInChain
Definition webgpu.h:4086
size_t requiredFeatureCount
Definition webgpu.h:4090
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:4098
size_t timedWaitAnyMaxCount
Definition webgpu.h:2214
WGPUChainedStruct * nextInChain
Definition webgpu.h:2208
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2253
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2329
uint32_t maxTextureDimension2D
Definition webgpu.h:2237
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2269
uint32_t maxTextureDimension3D
Definition webgpu.h:2241
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2273
WGPUChainedStruct * nextInChain
Definition webgpu.h:2229
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2257
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2353
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2265
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2333
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2301
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2345
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2293
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2337
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2317
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2297
uint32_t maxVertexAttributes
Definition webgpu.h:2313
uint32_t maxColorAttachments
Definition webgpu.h:2325
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2321
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2349
uint32_t maxTextureDimension1D
Definition webgpu.h:2233
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2261
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2289
uint64_t maxBufferSize
Definition webgpu.h:2309
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2285
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2341
uint32_t maxVertexBuffers
Definition webgpu.h:2305
uint32_t maxTextureArrayLayers
Definition webgpu.h:2245
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2281
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2277
uint32_t maxImmediateSize
Definition webgpu.h:2357
uint32_t maxBindGroups
Definition webgpu.h:2249
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2415
WGPUChainedStruct * nextInChain
Definition webgpu.h:2403
uint32_t y
Definition webgpu.h:2439
uint32_t z
Definition webgpu.h:2443
uint32_t x
Definition webgpu.h:2435
WGPUQuerySet querySet
Definition webgpu.h:2465
uint32_t endOfPassWriteIndex
Definition webgpu.h:2473
WGPUChainedStruct * nextInChain
Definition webgpu.h:2459
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2469
WGPUChainedStruct * nextInChain
Definition webgpu.h:2490
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2504
WGPUChainedStruct * nextInChain
Definition webgpu.h:1631
WGPUCallbackMode mode
Definition webgpu.h:1637
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1638
WGPUFrontFace frontFace
Definition webgpu.h:2544
WGPUChainedStruct * nextInChain
Definition webgpu.h:2526
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2537
WGPUPrimitiveTopology topology
Definition webgpu.h:2533
WGPUCullMode cullMode
Definition webgpu.h:2551
WGPUBool unclippedDepth
Definition webgpu.h:2555
WGPUQueryType type
Definition webgpu.h:2584
WGPUChainedStruct * nextInChain
Definition webgpu.h:2574
WGPUStringView label
Definition webgpu.h:2580
WGPUChainedStruct * nextInChain
Definition webgpu.h:2605
WGPUStringView label
Definition webgpu.h:2611
WGPUCallbackMode mode
Definition webgpu.h:1661
WGPUChainedStruct * nextInChain
Definition webgpu.h:1655
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1662
WGPUChainedStruct * nextInChain
Definition webgpu.h:2626
WGPUStringView label
Definition webgpu.h:2632
WGPUChainedStruct * nextInChain
Definition webgpu.h:2647
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2661
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2665
WGPUTextureView resolveTarget
Definition webgpu.h:4130
WGPUChainedStruct * nextInChain
Definition webgpu.h:4115
WGPUChainedStruct * nextInChain
Definition webgpu.h:2698
WGPUChainedStruct * nextInChain
Definition webgpu.h:4550
WGPUStringView label
Definition webgpu.h:4556
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4568
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4564
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4572
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4576
WGPUChainedStruct chain
Definition webgpu.h:2764
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4710
WGPUChainedStruct * nextInChain
Definition webgpu.h:4688
WGPUMultisampleState multisample
Definition webgpu.h:4714
WGPUFragmentState const * fragment
Definition webgpu.h:4718
WGPUPrimitiveState primitive
Definition webgpu.h:4706
WGPUPipelineLayout layout
Definition webgpu.h:4698
WGPUVertexState vertex
Definition webgpu.h:4702
WGPURequestAdapterCallback callback
Definition webgpu.h:1686
WGPUChainedStruct * nextInChain
Definition webgpu.h:1679
WGPUFeatureLevel featureLevel
Definition webgpu.h:4173
WGPUBool forceFallbackAdapter
Definition webgpu.h:4184
WGPUSurface compatibleSurface
Definition webgpu.h:4198
WGPUBackendType backendType
Definition webgpu.h:4191
WGPUChainedStruct * nextInChain
Definition webgpu.h:4162
WGPUPowerPreference powerPreference
Definition webgpu.h:4177
WGPUChainedStruct chain
Definition webgpu.h:2788
WGPUCallbackMode mode
Definition webgpu.h:1709
WGPUChainedStruct * nextInChain
Definition webgpu.h:1703
WGPURequestDeviceCallback callback
Definition webgpu.h:1710
WGPUChainedStruct * nextInChain
Definition webgpu.h:2812
WGPUSamplerBindingType type
Definition webgpu.h:2819
WGPUFilterMode minFilter
Definition webgpu.h:2875
WGPUAddressMode addressModeU
Definition webgpu.h:2847
WGPUCompareFunction compare
Definition webgpu.h:2902
WGPUAddressMode addressModeW
Definition webgpu.h:2861
uint16_t maxAnisotropy
Definition webgpu.h:2906
WGPUAddressMode addressModeV
Definition webgpu.h:2854
WGPUStringView label
Definition webgpu.h:2840
WGPUFilterMode magFilter
Definition webgpu.h:2868
WGPUChainedStruct * nextInChain
Definition webgpu.h:2834
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2882
WGPUChainedStruct * nextInChain
Definition webgpu.h:4217
WGPUStringView label
Definition webgpu.h:4223
WGPUChainedStruct chain
Definition webgpu.h:2931
uint32_t const * code
Definition webgpu.h:2939
WGPUChainedStruct chain
Definition webgpu.h:2958
WGPUStringView code
Definition webgpu.h:2964
WGPUCompareFunction compare
Definition webgpu.h:2988
WGPUStencilOperation depthFailOp
Definition webgpu.h:3002
WGPUStencilOperation passOp
Definition webgpu.h:3009
WGPUStencilOperation failOp
Definition webgpu.h:2995
WGPUChainedStruct * nextInChain
Definition webgpu.h:3026
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3044
WGPUTextureFormat format
Definition webgpu.h:3037
WGPUStorageTextureAccess access
Definition webgpu.h:3033
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:3068
WGPUInstanceFeatureName const * features
Definition webgpu.h:3090
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3112
WGPUTextureFormat const * formats
Definition webgpu.h:3146
WGPUChainedStruct * nextInChain
Definition webgpu.h:3129
WGPUPresentMode const * presentModes
Definition webgpu.h:3157
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3168
WGPUTextureUsage usages
Definition webgpu.h:3136
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3199
WGPUChainedStruct chain
Definition webgpu.h:3191
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3195
WGPUTextureUsage usage
Definition webgpu.h:3239
WGPUTextureFormat format
Definition webgpu.h:3233
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3261
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3271
WGPUChainedStruct * nextInChain
Definition webgpu.h:3221
WGPUPresentMode presentMode
Definition webgpu.h:3280
WGPUChainedStruct * nextInChain
Definition webgpu.h:4242
WGPUStringView label
Definition webgpu.h:4250
WGPUChainedStruct chain
Definition webgpu.h:3331
WGPUChainedStruct chain
Definition webgpu.h:3357
WGPUChainedStruct chain
Definition webgpu.h:3390
WGPUChainedStruct chain
Definition webgpu.h:3424
WGPUChainedStruct chain
Definition webgpu.h:3457
WGPUChainedStruct * nextInChain
Definition webgpu.h:3491
WGPUTexture texture
Definition webgpu.h:3498
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3504
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4268
WGPUOrigin3D origin
Definition webgpu.h:4298
WGPUTextureAspect aspect
Definition webgpu.h:4305
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3561
WGPUTextureSampleType sampleType
Definition webgpu.h:3554
WGPUChainedStruct * nextInChain
Definition webgpu.h:3547
WGPUTextureComponentSwizzle swizzle
Definition webgpu.h:4326
WGPUComponentSwizzle r
Definition webgpu.h:3595
WGPUComponentSwizzle a
Definition webgpu.h:3622
WGPUComponentSwizzle g
Definition webgpu.h:3604
WGPUComponentSwizzle b
Definition webgpu.h:3613
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4385
WGPUTextureDimension dimension
Definition webgpu.h:4361
WGPUStringView label
Definition webgpu.h:4350
uint32_t mipLevelCount
Definition webgpu.h:4373
WGPUChainedStruct * nextInChain
Definition webgpu.h:4344
WGPUTextureFormat format
Definition webgpu.h:4369
WGPUTextureUsage usage
Definition webgpu.h:4354
WGPUExtent3D size
Definition webgpu.h:4365
WGPUChainedStruct * nextInChain
Definition webgpu.h:3639
WGPUTextureUsage usage
Definition webgpu.h:3680
WGPUTextureFormat format
Definition webgpu.h:3649
WGPUTextureViewDimension dimension
Definition webgpu.h:3653
WGPUStringView label
Definition webgpu.h:3645
WGPUTextureAspect aspect
Definition webgpu.h:3676
WGPUChainedStruct * nextInChain
Definition webgpu.h:1727
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1728
WGPUVertexFormat format
Definition webgpu.h:3707
WGPUChainedStruct * nextInChain
Definition webgpu.h:3703
uint32_t shaderLocation
Definition webgpu.h:3715
WGPUVertexAttribute const * attributes
Definition webgpu.h:4437
WGPUVertexStepMode stepMode
Definition webgpu.h:4425
WGPUChainedStruct * nextInChain
Definition webgpu.h:4421
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4606
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4622
WGPUConstantEntry const * constants
Definition webgpu.h:4614
size_t constantCount
Definition webgpu.h:4610
size_t bufferCount
Definition webgpu.h:4618
WGPUChainedStruct * nextInChain
Definition webgpu.h:4596