WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
webgpu.h
1
27#ifndef WEBGPU_H_
28#define WEBGPU_H_
29
30#if defined(WGPU_SHARED_LIBRARY)
31# if defined(_WIN32)
32# if defined(WGPU_IMPLEMENTATION)
33# define WGPU_EXPORT __declspec(dllexport)
34# else
35# define WGPU_EXPORT __declspec(dllimport)
36# endif
37# else // defined(_WIN32)
38# if defined(WGPU_IMPLEMENTATION)
39# define WGPU_EXPORT __attribute__((visibility("default")))
40# else
41# define WGPU_EXPORT
42# endif
43# endif // defined(_WIN32)
44#else // defined(WGPU_SHARED_LIBRARY)
45# define WGPU_EXPORT
46#endif // defined(WGPU_SHARED_LIBRARY)
47
48#if !defined(WGPU_OBJECT_ATTRIBUTE)
49#define WGPU_OBJECT_ATTRIBUTE
50#endif
51#if !defined(WGPU_ENUM_ATTRIBUTE)
52#define WGPU_ENUM_ATTRIBUTE
53#endif
54#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
55#define WGPU_STRUCTURE_ATTRIBUTE
56#endif
57#if !defined(WGPU_FUNCTION_ATTRIBUTE)
58#define WGPU_FUNCTION_ATTRIBUTE
59#endif
60#if !defined(WGPU_NULLABLE)
61#define WGPU_NULLABLE
62#endif
63
64#include <stdint.h>
65#include <stddef.h>
66#include <math.h>
67
68#define _wgpu_COMMA ,
69#if defined(__cplusplus)
70# define _wgpu_ENUM_ZERO_INIT(type) type(0)
71# define _wgpu_STRUCT_ZERO_INIT {}
72# if __cplusplus >= 201103L
73# define _wgpu_MAKE_INIT_STRUCT(type, value) (type value)
74# else
75# define _wgpu_MAKE_INIT_STRUCT(type, value) value
76# endif
77#else
78# define _wgpu_ENUM_ZERO_INIT(type) (type)0
79# define _wgpu_STRUCT_ZERO_INIT {0}
80# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
81# define _wgpu_MAKE_INIT_STRUCT(type, value) ((type) value)
82# else
83# define _wgpu_MAKE_INIT_STRUCT(type, value) value
84# endif
85#endif
86
100#define WGPU_TRUE (UINT32_C(1))
107#define WGPU_FALSE (UINT32_C(0))
112#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
117#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
122#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
127#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
132#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
137#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
142#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
147#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
152#define WGPU_STRLEN (SIZE_MAX)
157#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
162#define WGPU_WHOLE_SIZE (UINT64_MAX)
163
193typedef struct WGPUStringView {
194 WGPU_NULLABLE char const * data;
195 size_t length;
196} WGPUStringView WGPU_STRUCTURE_ATTRIBUTE;
197
201#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
202 /*.data=*/NULL _wgpu_COMMA \
203 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
204})
205
206typedef uint64_t WGPUFlags;
207typedef uint32_t WGPUBool;
208
217typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
218typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
219typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
220typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
221typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
222typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
223typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
224typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
231typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
235typedef struct WGPUExternalTextureImpl* WGPUExternalTexture WGPU_OBJECT_ATTRIBUTE;
236typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
237typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
238typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
239typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
240typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
241typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
242typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
243typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
244typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
245typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
249typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
250typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
251typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
252
255// Structure forward declarations
256struct WGPUAdapterInfo;
257struct WGPUBlendComponent;
260struct WGPUColor;
265struct WGPUConstantEntry;
266struct WGPUExtent3D;
269struct WGPUFuture;
270struct WGPUInstanceLimits;
272struct WGPUOrigin3D;
275struct WGPUPrimitiveState;
301struct WGPUSurfaceTexture;
307struct WGPUBindGroupEntry;
309struct WGPUBlendState;
312struct WGPUComputeState;
314struct WGPUFutureWaitInfo;
316struct WGPULimits;
333struct WGPUVertexState;
334struct WGPUFragmentState;
336
337// Callback info structure forward declarations
348
356typedef enum WGPUAdapterType {
361 WGPUAdapterType_Force32 = 0x7FFFFFFF
362} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
363
374
390
415
428
445
452
481
497
506
513
545
572
583
584typedef enum WGPUCullMode {
589 WGPUCullMode_None = 0x00000001,
590 WGPUCullMode_Front = 0x00000002,
591 WGPUCullMode_Back = 0x00000003,
592 WGPUCullMode_Force32 = 0x7FFFFFFF
593} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
594
605
606typedef enum WGPUErrorFilter {
610 WGPUErrorFilter_Force32 = 0x7FFFFFFF
611} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
612
613typedef enum WGPUErrorType {
619 WGPUErrorType_Force32 = 0x7FFFFFFF
620} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
621
625typedef enum WGPUFeatureLevel {
638 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
639} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
640
666
667typedef enum WGPUFilterMode {
674 WGPUFilterMode_Force32 = 0x7FFFFFFF
675} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
676
677typedef enum WGPUFrontFace {
682 WGPUFrontFace_CCW = 0x00000001,
683 WGPUFrontFace_CW = 0x00000002,
684 WGPUFrontFace_Force32 = 0x7FFFFFFF
685} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
686
687typedef enum WGPUIndexFormat {
694 WGPUIndexFormat_Force32 = 0x7FFFFFFF
695} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
696
716
717typedef enum WGPULoadOp {
722 WGPULoadOp_Load = 0x00000001,
723 WGPULoadOp_Clear = 0x00000002,
724 WGPULoadOp_Force32 = 0x7FFFFFFF
725} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
726
737
747
748typedef enum WGPUOptionalBool {
755 WGPUOptionalBool_Force32 = 0x7FFFFFFF
756} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
757
773
783
789
822
835
836typedef enum WGPUQueryType {
839 WGPUQueryType_Force32 = 0x7FFFFFFF
840} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
841
855
866
876
893
899typedef enum WGPUStatus {
900 WGPUStatus_Success = 0x00000001,
901 WGPUStatus_Error = 0x00000002,
902 WGPUStatus_Force32 = 0x7FFFFFFF
903} WGPUStatus WGPU_ENUM_ATTRIBUTE;
904
920
937
938typedef enum WGPUStoreOp {
943 WGPUStoreOp_Store = 0x00000001,
945 WGPUStoreOp_Force32 = 0x7FFFFFFF
946} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
947
967
998
1009
1020
1021typedef enum WGPUTextureFormat {
1127 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1128} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1129
1148
1162
1168
1169typedef enum WGPUVertexFormat {
1211 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1212} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1213
1223
1227typedef enum WGPUWaitStatus {
1241 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1242} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1243
1258
1275static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1279static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1285static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1289static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1293static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1297static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1301static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1305static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1309static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1313static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1317static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1318
1326static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1327static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1328static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1329static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1330static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1334static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1335
1343static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1344static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1345static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1346
1354static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1355static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1356static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1357static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1358
1366static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1367static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1368static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1369static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1370static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1371static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1373
1376typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1377
1391typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1392
1401typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1402
1409typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1410
1417typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1418
1436typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1437
1455typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1456
1469typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1470
1480typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1481
1491typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1492
1502typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1503
1512typedef struct WGPUChainedStruct {
1515} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1516
1546
1550#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
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_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
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_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
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_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
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_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
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_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
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_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
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_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
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
1738
1742#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1743 /*.nextInChain=*/NULL _wgpu_COMMA \
1744 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1745 /*.callback=*/NULL _wgpu_COMMA \
1746 /*.userdata1=*/NULL _wgpu_COMMA \
1747 /*.userdata2=*/NULL _wgpu_COMMA \
1748})
1749
1756
1760#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1761 /*.nextInChain=*/NULL _wgpu_COMMA \
1762 /*.callback=*/NULL _wgpu_COMMA \
1763 /*.userdata1=*/NULL _wgpu_COMMA \
1764 /*.userdata2=*/NULL _wgpu_COMMA \
1765})
1766
1823
1827#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1828 /*.nextInChain=*/NULL _wgpu_COMMA \
1829 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1830 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1831 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1832 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1833 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1834 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1835 /*.vendorID=*/0 _wgpu_COMMA \
1836 /*.deviceID=*/0 _wgpu_COMMA \
1837 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1838 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1839})
1840
1867
1871#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1872 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1873 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1874 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1875})
1876
1898
1902#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1903 /*.nextInChain=*/NULL _wgpu_COMMA \
1904 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1905 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1906 /*.minBindingSize=*/0 _wgpu_COMMA \
1907})
1908
1937
1941#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1942 /*.nextInChain=*/NULL _wgpu_COMMA \
1943 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1944 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1945 /*.size=*/0 _wgpu_COMMA \
1946 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1947})
1948
1956typedef struct WGPUColor {
1960 double r;
1964 double g;
1968 double b;
1972 double a;
1973} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1974
1978#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1979 /*.r=*/0. _wgpu_COMMA \
1980 /*.g=*/0. _wgpu_COMMA \
1981 /*.b=*/0. _wgpu_COMMA \
1982 /*.a=*/0. _wgpu_COMMA \
1983})
1984
1997
2001#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
2002 /*.nextInChain=*/NULL _wgpu_COMMA \
2003 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2004})
2005
2018
2022#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2023 /*.nextInChain=*/NULL _wgpu_COMMA \
2024 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2025})
2026
2053
2057#define WGPU_COMPATIBILITY_MODE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompatibilityModeLimits, { \
2058 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2059 /*.next=*/NULL _wgpu_COMMA \
2060 /*.sType=*/WGPUSType_CompatibilityModeLimits _wgpu_COMMA \
2061 }) _wgpu_COMMA \
2062 /*.maxStorageBuffersInVertexStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2063 /*.maxStorageTexturesInVertexStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2064 /*.maxStorageBuffersInFragmentStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2065 /*.maxStorageTexturesInFragmentStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2066})
2067
2115
2119#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2120 /*.nextInChain=*/NULL _wgpu_COMMA \
2121 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2122 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2123 /*.lineNum=*/0 _wgpu_COMMA \
2124 /*.linePos=*/0 _wgpu_COMMA \
2125 /*.offset=*/0 _wgpu_COMMA \
2126 /*.length=*/0 _wgpu_COMMA \
2127})
2128
2149
2153#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2154 /*.nextInChain=*/NULL _wgpu_COMMA \
2155 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2156 /*.value=*/0. _wgpu_COMMA \
2157})
2158
2162typedef struct WGPUExtent3D {
2166 uint32_t width;
2170 uint32_t height;
2175} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2176
2180#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2181 /*.width=*/0 _wgpu_COMMA \
2182 /*.height=*/1 _wgpu_COMMA \
2183 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2184})
2185
2198
2202#define WGPU_EXTERNAL_TEXTURE_BINDING_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingEntry, { \
2203 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2204 /*.next=*/NULL _wgpu_COMMA \
2205 /*.sType=*/WGPUSType_ExternalTextureBindingEntry _wgpu_COMMA \
2206 }) _wgpu_COMMA \
2207 /*.externalTexture=*/NULL _wgpu_COMMA \
2208})
2209
2218
2222#define WGPU_EXTERNAL_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingLayout, { \
2223 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2224 /*.next=*/NULL _wgpu_COMMA \
2225 /*.sType=*/WGPUSType_ExternalTextureBindingLayout _wgpu_COMMA \
2226 }) _wgpu_COMMA \
2227})
2228
2234typedef struct WGPUFuture {
2240 uint64_t id;
2241} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2242
2246#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2247 /*.id=*/0 _wgpu_COMMA \
2248})
2249
2262
2266#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2267 /*.nextInChain=*/NULL _wgpu_COMMA \
2268 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2269})
2270
2289
2293#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2294 /*.nextInChain=*/NULL _wgpu_COMMA \
2295 /*.count=*/1 _wgpu_COMMA \
2296 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2297 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2298})
2299
2303typedef struct WGPUOrigin3D {
2307 uint32_t x;
2311 uint32_t y;
2315 uint32_t z;
2316} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2317
2321#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2322 /*.x=*/0 _wgpu_COMMA \
2323 /*.y=*/0 _wgpu_COMMA \
2324 /*.z=*/0 _wgpu_COMMA \
2325})
2326
2347
2351#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2352 /*.nextInChain=*/NULL _wgpu_COMMA \
2353 /*.querySet=*/NULL _wgpu_COMMA \
2354 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2355 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2356})
2357
2382
2386#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2387 /*.nextInChain=*/NULL _wgpu_COMMA \
2388 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2389 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2390 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2391 /*.immediateSize=*/0 _wgpu_COMMA \
2392})
2393
2429
2433#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2434 /*.nextInChain=*/NULL _wgpu_COMMA \
2435 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2436 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2437 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2438 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2439 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2440})
2441
2462
2466#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2467 /*.nextInChain=*/NULL _wgpu_COMMA \
2468 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2469 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2470 /*.count=*/0 _wgpu_COMMA \
2471})
2472
2485
2489#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2490 /*.nextInChain=*/NULL _wgpu_COMMA \
2491 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2492})
2493
2506
2510#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2511 /*.nextInChain=*/NULL _wgpu_COMMA \
2512 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2513})
2514
2551
2555#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2556 /*.nextInChain=*/NULL _wgpu_COMMA \
2557 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2558 /*.colorFormatCount=*/0 _wgpu_COMMA \
2559 /*.colorFormats=*/NULL _wgpu_COMMA \
2560 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2561 /*.sampleCount=*/1 _wgpu_COMMA \
2562 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2563 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2564})
2565
2615
2619#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2620 /*.nextInChain=*/NULL _wgpu_COMMA \
2621 /*.view=*/NULL _wgpu_COMMA \
2622 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2623 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2624 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2625 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2626 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2627 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2628 /*.stencilClearValue=*/0 _wgpu_COMMA \
2629 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2630})
2631
2642
2646#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2647 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2648 /*.next=*/NULL _wgpu_COMMA \
2649 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2650 }) _wgpu_COMMA \
2651 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2652})
2653
2668
2672#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2673 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2674 /*.next=*/NULL _wgpu_COMMA \
2675 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2676 }) _wgpu_COMMA \
2677 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2678})
2679
2693
2697#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2698 /*.nextInChain=*/NULL _wgpu_COMMA \
2699 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2700})
2701
2780
2784#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2785 /*.nextInChain=*/NULL _wgpu_COMMA \
2786 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2787 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2788 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2789 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2790 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2791 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2792 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2793 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2794 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2795 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2796 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2797})
2798
2807 uint32_t codeSize;
2811 uint32_t const * code;
2812} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2813
2817#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2818 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2819 /*.next=*/NULL _wgpu_COMMA \
2820 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2821 }) _wgpu_COMMA \
2822 /*.codeSize=*/0 _wgpu_COMMA \
2823 /*.code=*/NULL _wgpu_COMMA \
2824})
2825
2838
2842#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2843 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2844 /*.next=*/NULL _wgpu_COMMA \
2845 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2846 }) _wgpu_COMMA \
2847 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2848})
2849
2883
2887#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2888 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2889 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2890 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2891 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2892})
2893
2918
2922#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
2923 /*.nextInChain=*/NULL _wgpu_COMMA \
2924 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
2925 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2926 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
2927})
2928
2941} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
2942
2946#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
2947 /*.featureCount=*/0 _wgpu_COMMA \
2948 /*.features=*/NULL _wgpu_COMMA \
2949})
2950
2964
2968#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
2969 /*.featureCount=*/0 _wgpu_COMMA \
2970 /*.features=*/NULL _wgpu_COMMA \
2971})
2972
2986
2990#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
2991 /*.featureCount=*/0 _wgpu_COMMA \
2992 /*.features=*/NULL _wgpu_COMMA \
2993})
2994
3042
3046#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3047 /*.nextInChain=*/NULL _wgpu_COMMA \
3048 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3049 /*.formatCount=*/0 _wgpu_COMMA \
3050 /*.formats=*/NULL _wgpu_COMMA \
3051 /*.presentModeCount=*/0 _wgpu_COMMA \
3052 /*.presentModes=*/NULL _wgpu_COMMA \
3053 /*.alphaModeCount=*/0 _wgpu_COMMA \
3054 /*.alphaModes=*/NULL _wgpu_COMMA \
3055})
3056
3073
3077#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3078 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3079 /*.next=*/NULL _wgpu_COMMA \
3080 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3081 }) _wgpu_COMMA \
3082 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3083 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3084})
3085
3154
3158#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3159 /*.nextInChain=*/NULL _wgpu_COMMA \
3160 /*.device=*/NULL _wgpu_COMMA \
3161 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3162 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3163 /*.width=*/0 _wgpu_COMMA \
3164 /*.height=*/0 _wgpu_COMMA \
3165 /*.viewFormatCount=*/0 _wgpu_COMMA \
3166 /*.viewFormats=*/NULL _wgpu_COMMA \
3167 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3168 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3169})
3170
3185
3189#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3190 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3191 /*.next=*/NULL _wgpu_COMMA \
3192 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3193 }) _wgpu_COMMA \
3194 /*.window=*/NULL _wgpu_COMMA \
3195})
3196
3211
3215#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3216 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3217 /*.next=*/NULL _wgpu_COMMA \
3218 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3219 }) _wgpu_COMMA \
3220 /*.layer=*/NULL _wgpu_COMMA \
3221})
3222
3243
3247#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3248 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3249 /*.next=*/NULL _wgpu_COMMA \
3250 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3251 }) _wgpu_COMMA \
3252 /*.display=*/NULL _wgpu_COMMA \
3253 /*.surface=*/NULL _wgpu_COMMA \
3254})
3255
3277
3281#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3282 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3283 /*.next=*/NULL _wgpu_COMMA \
3284 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3285 }) _wgpu_COMMA \
3286 /*.hinstance=*/NULL _wgpu_COMMA \
3287 /*.hwnd=*/NULL _wgpu_COMMA \
3288})
3289
3310
3314#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3315 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3316 /*.next=*/NULL _wgpu_COMMA \
3317 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3318 }) _wgpu_COMMA \
3319 /*.connection=*/NULL _wgpu_COMMA \
3320 /*.window=*/0 _wgpu_COMMA \
3321})
3322
3343
3347#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3348 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3349 /*.next=*/NULL _wgpu_COMMA \
3350 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3351 }) _wgpu_COMMA \
3352 /*.display=*/NULL _wgpu_COMMA \
3353 /*.window=*/0 _wgpu_COMMA \
3354})
3355
3378
3382#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3383 /*.nextInChain=*/NULL _wgpu_COMMA \
3384 /*.texture=*/NULL _wgpu_COMMA \
3385 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3386})
3387
3395 uint64_t offset;
3399 uint32_t bytesPerRow;
3404} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3405
3409#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3410 /*.offset=*/0 _wgpu_COMMA \
3411 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3412 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3413})
3414
3439
3443#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3444 /*.nextInChain=*/NULL _wgpu_COMMA \
3445 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3446 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3447 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3448})
3449
3464
3468#define WGPU_TEXTURE_BINDING_VIEW_DIMENSION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingViewDimension, { \
3469 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3470 /*.next=*/NULL _wgpu_COMMA \
3471 /*.sType=*/WGPUSType_TextureBindingViewDimension _wgpu_COMMA \
3472 }) _wgpu_COMMA \
3473 /*.textureBindingViewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3474})
3475
3522
3526#define WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzle, { \
3527 /*.r=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3528 /*.g=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3529 /*.b=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3530 /*.a=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3531})
3532
3551
3555#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3556 /*.nextInChain=*/NULL _wgpu_COMMA \
3557 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3558 /*.offset=*/0 _wgpu_COMMA \
3559 /*.shaderLocation=*/0 _wgpu_COMMA \
3560})
3561
3565typedef struct WGPUBindGroupEntry {
3572 uint32_t binding;
3579 WGPU_NULLABLE WGPUBuffer buffer;
3586 uint64_t offset;
3594 uint64_t size;
3601 WGPU_NULLABLE WGPUSampler sampler;
3609} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
3610
3614#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
3615 /*.nextInChain=*/NULL _wgpu_COMMA \
3616 /*.binding=*/0 _wgpu_COMMA \
3617 /*.buffer=*/NULL _wgpu_COMMA \
3618 /*.offset=*/0 _wgpu_COMMA \
3619 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
3620 /*.sampler=*/NULL _wgpu_COMMA \
3621 /*.textureView=*/NULL _wgpu_COMMA \
3622})
3623
3660
3664#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3665 /*.nextInChain=*/NULL _wgpu_COMMA \
3666 /*.binding=*/0 _wgpu_COMMA \
3667 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3668 /*.bindingArraySize=*/0 _wgpu_COMMA \
3669 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3670 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3671 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3672 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3673})
3674
3688
3692#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3693 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3694 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3695})
3696
3714
3718#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3719 /*.nextInChain=*/NULL _wgpu_COMMA \
3720 /*.messageCount=*/0 _wgpu_COMMA \
3721 /*.messages=*/NULL _wgpu_COMMA \
3722})
3723
3740
3744#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3745 /*.nextInChain=*/NULL _wgpu_COMMA \
3746 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3747 /*.timestampWrites=*/NULL _wgpu_COMMA \
3748})
3749
3774
3778#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3779 /*.nextInChain=*/NULL _wgpu_COMMA \
3780 /*.module=*/NULL _wgpu_COMMA \
3781 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3782 /*.constantCount=*/0 _wgpu_COMMA \
3783 /*.constants=*/NULL _wgpu_COMMA \
3784})
3785
3840
3844#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3845 /*.nextInChain=*/NULL _wgpu_COMMA \
3846 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3847 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3848 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3849 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3850 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3851 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3852 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3853 /*.depthBias=*/0 _wgpu_COMMA \
3854 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3855 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3856})
3857
3877
3881#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3882 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3883 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
3884})
3885
3904
3908#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
3909 /*.nextInChain=*/NULL _wgpu_COMMA \
3910 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3911 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3912 /*.requiredLimits=*/NULL _wgpu_COMMA \
3913})
3914
4049
4053#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
4054 /*.nextInChain=*/NULL _wgpu_COMMA \
4055 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4056 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4057 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4058 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4059 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4060 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4061 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4062 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4063 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4064 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4065 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4066 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4067 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4068 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4069 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4070 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4071 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4072 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4073 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4074 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4075 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4076 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4077 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4078 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4079 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4080 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4081 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4082 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4083 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4084 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4085 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4086 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4087})
4088
4122
4126#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4127 /*.nextInChain=*/NULL _wgpu_COMMA \
4128 /*.view=*/NULL _wgpu_COMMA \
4129 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4130 /*.resolveTarget=*/NULL _wgpu_COMMA \
4131 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4132 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4133 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4134})
4135
4178
4182#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4183 /*.nextInChain=*/NULL _wgpu_COMMA \
4184 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4185 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4186 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4187 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4188 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4189})
4190
4203
4207#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4208 /*.nextInChain=*/NULL _wgpu_COMMA \
4209 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4210})
4211
4230
4234#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4235 /*.nextInChain=*/NULL _wgpu_COMMA \
4236 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4237})
4238
4252
4256#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4257 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4258 /*.buffer=*/NULL _wgpu_COMMA \
4259})
4260
4285
4289#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4290 /*.texture=*/NULL _wgpu_COMMA \
4291 /*.mipLevel=*/0 _wgpu_COMMA \
4292 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4293 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4294})
4295
4306
4310#define WGPU_TEXTURE_COMPONENT_SWIZZLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzleDescriptor, { \
4311 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
4312 /*.next=*/NULL _wgpu_COMMA \
4313 /*.sType=*/WGPUSType_TextureComponentSwizzleDescriptor _wgpu_COMMA \
4314 }) _wgpu_COMMA \
4315 /*.swizzle=*/WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_COMMA \
4316})
4317
4365
4369#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4370 /*.nextInChain=*/NULL _wgpu_COMMA \
4371 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4372 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4373 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4374 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4375 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4376 /*.mipLevelCount=*/1 _wgpu_COMMA \
4377 /*.sampleCount=*/1 _wgpu_COMMA \
4378 /*.viewFormatCount=*/0 _wgpu_COMMA \
4379 /*.viewFormats=*/NULL _wgpu_COMMA \
4380})
4381
4417
4421#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4422 /*.nextInChain=*/NULL _wgpu_COMMA \
4423 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4424 /*.arrayStride=*/0 _wgpu_COMMA \
4425 /*.attributeCount=*/0 _wgpu_COMMA \
4426 /*.attributes=*/NULL _wgpu_COMMA \
4427})
4428
4453
4457#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
4458 /*.nextInChain=*/NULL _wgpu_COMMA \
4459 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4460 /*.layout=*/NULL _wgpu_COMMA \
4461 /*.entryCount=*/0 _wgpu_COMMA \
4462 /*.entries=*/NULL _wgpu_COMMA \
4463})
4464
4485
4489#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4490 /*.nextInChain=*/NULL _wgpu_COMMA \
4491 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4492 /*.entryCount=*/0 _wgpu_COMMA \
4493 /*.entries=*/NULL _wgpu_COMMA \
4494})
4495
4518
4522#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4523 /*.nextInChain=*/NULL _wgpu_COMMA \
4524 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4525 /*.blend=*/NULL _wgpu_COMMA \
4526 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4527})
4528
4549
4553#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4554 /*.nextInChain=*/NULL _wgpu_COMMA \
4555 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4556 /*.layout=*/NULL _wgpu_COMMA \
4557 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4558})
4559
4601
4605#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4606 /*.nextInChain=*/NULL _wgpu_COMMA \
4607 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4608 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4609 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4610 /*.requiredLimits=*/NULL _wgpu_COMMA \
4611 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4612 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4613 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4614})
4615
4648
4652#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4653 /*.nextInChain=*/NULL _wgpu_COMMA \
4654 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4655 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4656 /*.colorAttachments=*/NULL _wgpu_COMMA \
4657 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4658 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4659 /*.timestampWrites=*/NULL _wgpu_COMMA \
4660})
4661
4709
4713#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
4714 /*.nextInChain=*/NULL _wgpu_COMMA \
4715 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4716 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4717 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
4718 /*.baseMipLevel=*/0 _wgpu_COMMA \
4719 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
4720 /*.baseArrayLayer=*/0 _wgpu_COMMA \
4721 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
4722 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4723 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4724})
4725
4758
4762#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4763 /*.nextInChain=*/NULL _wgpu_COMMA \
4764 /*.module=*/NULL _wgpu_COMMA \
4765 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4766 /*.constantCount=*/0 _wgpu_COMMA \
4767 /*.constants=*/NULL _wgpu_COMMA \
4768 /*.bufferCount=*/0 _wgpu_COMMA \
4769 /*.buffers=*/NULL _wgpu_COMMA \
4770})
4771
4804
4808#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4809 /*.nextInChain=*/NULL _wgpu_COMMA \
4810 /*.module=*/NULL _wgpu_COMMA \
4811 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4812 /*.constantCount=*/0 _wgpu_COMMA \
4813 /*.constants=*/NULL _wgpu_COMMA \
4814 /*.targetCount=*/0 _wgpu_COMMA \
4815 /*.targets=*/NULL _wgpu_COMMA \
4816})
4817
4854
4858#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4859 /*.nextInChain=*/NULL _wgpu_COMMA \
4860 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4861 /*.layout=*/NULL _wgpu_COMMA \
4862 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4863 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4864 /*.depthStencil=*/NULL _wgpu_COMMA \
4865 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4866 /*.fragment=*/NULL _wgpu_COMMA \
4867})
4868
4871#ifdef __cplusplus
4872extern "C" {
4873#endif
4874
4875#if !defined(WGPU_SKIP_PROCS)
4876// Global procs
4881typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4886typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4891typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4896typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4901typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4902
4903
4904// Procs of Adapter
4909typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4914typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4919typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4924typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4929typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4934typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4939typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4940
4941// Procs of AdapterInfo
4946typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4947
4948// Procs of BindGroup
4953typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4958typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4963typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4964
4965// Procs of BindGroupLayout
4970typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4975typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4980typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4981
4982// Procs of Buffer
4987typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4992typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4997typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5002typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5007typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5012typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5017typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5022typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5027typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5032typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5037typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5042typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5047typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5048
5049// Procs of CommandBuffer
5054typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5059typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5064typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5065
5066// Procs of CommandEncoder
5071typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5076typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5081typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5086typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5091typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5096typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5101typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5106typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5111typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5116typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5121typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5126typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5131typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5136typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5141typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5146typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5147
5148// Procs of ComputePassEncoder
5153typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5158typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5163typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5168typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5173typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5178typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5183typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5188typedef void (*WGPUProcComputePassEncoderSetImmediates)(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5193typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5198typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5203typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5208typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5209
5210// Procs of ComputePipeline
5215typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5220typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5225typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5230typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5231
5232// Procs of Device
5237typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5242typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5247typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5252typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5257typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5262typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5267typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5272typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5277typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5282typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5287typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5292typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5297typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5302typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5307typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5312typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5317typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5322typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5327typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5332typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5337typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5342typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5347typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5352typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5357typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5362typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5363
5364// Procs of ExternalTexture
5369typedef void (*WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5374typedef void (*WGPUProcExternalTextureAddRef)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5379typedef void (*WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5380
5381// Procs of Instance
5386typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5391typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5396typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5401typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5406typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5411typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5416typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5421typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5422
5423// Procs of PipelineLayout
5428typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5433typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5438typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5439
5440// Procs of QuerySet
5445typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5450typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5455typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5460typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5465typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5470typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5471
5472// Procs of Queue
5477typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5482typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5487typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5492typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5497typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5502typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5507typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5508
5509// Procs of RenderBundle
5514typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5519typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5524typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5525
5526// Procs of RenderBundleEncoder
5531typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5536typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5541typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5546typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5551typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5556typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5561typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5566typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5571typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5576typedef void (*WGPUProcRenderBundleEncoderSetImmediates)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5581typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5586typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5591typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5596typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5601typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5606typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5607
5608// Procs of RenderPassEncoder
5613typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5618typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5623typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5628typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5633typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5638typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5643typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5648typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5653typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5658typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5663typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5668typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5673typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5678typedef void (*WGPUProcRenderPassEncoderSetImmediates)(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5683typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5688typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5693typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5698typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5703typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5708typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5713typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5718typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5723typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5724
5725// Procs of RenderPipeline
5730typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5735typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5740typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5745typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5746
5747// Procs of Sampler
5752typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5757typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5762typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5763
5764// Procs of ShaderModule
5769typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5774typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5779typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5784typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5785
5786// Procs of SupportedFeatures
5791typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5792
5793// Procs of SupportedInstanceFeatures
5798typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5799
5800// Procs of SupportedWGSLLanguageFeatures
5805typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5806
5807// Procs of Surface
5812typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5817typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5822typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5827typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5832typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5837typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5842typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5847typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5848
5849// Procs of SurfaceCapabilities
5854typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5855
5856// Procs of Texture
5861typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5866typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5871typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5876typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5881typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5886typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5891typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5896typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5901typedef WGPUTextureViewDimension (*WGPUProcTextureGetTextureBindingViewDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5906typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5911typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5916typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5921typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5926typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5927
5928// Procs of TextureView
5933typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5938typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5943typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5944
5945#endif // !defined(WGPU_SKIP_PROCS)
5946
5947#if !defined(WGPU_SKIP_DECLARATIONS)
5960WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5967WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5974WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5978WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5983WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5984
6006WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6014WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
6019WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6020WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6021WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6022WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
6023WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
6024
6036WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6037
6046WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6047WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
6048WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
6049
6058WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6059WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
6060WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
6061
6070WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6088WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6105WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6106WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6107WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6108WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6120WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6141WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6142WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6143WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6164WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6165WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6166WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6167
6176WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6177WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6178WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6179
6192WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6197WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6198WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6199WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6200WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6201WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6202WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6207WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6208WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6209WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6210WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6211WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
6212WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6213WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6214WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6215WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6216
6225WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
6226WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6227WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6228WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6229WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6230WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6231WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6232WGPU_EXPORT void wgpuComputePassEncoderSetImmediates(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6233WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6234WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6235WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6236WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6237
6250WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6251WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6252WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6253WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6254
6267WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6272WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6282WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6287WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6292WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6298WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6303WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6313WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6319WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6324WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6329WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6330WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6338WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6345WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6350WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6355WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6360WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6361WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6366WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6371WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6372WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6373WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6374WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6375
6384WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6385WGPU_EXPORT void wgpuExternalTextureAddRef(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6386WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6387
6406WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6410WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6411WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6417WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6418WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6424WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6425WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6426WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6427
6436WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6437WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6438WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6439
6448WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6449WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6450WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6451WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6452WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6453WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6454
6463WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6464WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6465WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6470WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6471WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6472WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6473WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6474
6483WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6484WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6485WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6486
6495WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6496WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6497WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6498WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6503WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6504WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6505WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6506WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6507WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6508WGPU_EXPORT void wgpuRenderBundleEncoderSetImmediates(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6509WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6510WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6511WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6512WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6513WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6514WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6515
6524WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6525WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6526WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6527WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6528WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6529WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6530WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6531WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6532WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6533WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6534WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6535WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6540WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6541WGPU_EXPORT void wgpuRenderPassEncoderSetImmediates(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6542WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6543WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6544WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6545WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6546WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6547WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6553WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6554WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6555WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6556
6569WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6570WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6571WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6572WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6573
6582WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6583WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6584WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6585
6594WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6595WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6596WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6597WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6598
6610WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6611
6623WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6624
6636WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6637
6655WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6671WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6681WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6689WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6696WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6701WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6702WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6703WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6704
6716WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6717
6730WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6731WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6732WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6733WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6734WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6735WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6736WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6737WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6739WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6740WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6741WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6742WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6743WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6744
6753WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6754WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6755WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6756
6761#endif // !defined(WGPU_SKIP_DECLARATIONS)
6762
6763#ifdef __cplusplus
6764} // extern "C"
6765#endif
6766
6767#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1329
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1313
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1322
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1309
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1330
static const WGPUTextureUsage WGPUTextureUsage_TransientAttachment
Definition webgpu.h:1372
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1279
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1297
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1275
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1343
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1366
WGPUFlags WGPUMapMode
Definition webgpu.h:1339
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1369
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1334
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1367
WGPUFlags WGPUShaderStage
Definition webgpu.h:1350
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1317
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1356
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1357
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1345
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1354
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1371
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1285
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1368
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1289
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1370
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1362
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1305
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1344
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1328
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1301
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1355
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1326
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1327
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1271
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1293
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1502
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1491
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1409
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1436
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1417
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1401
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1480
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1391
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1469
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1455
WGPUIndexFormat
Definition webgpu.h:687
WGPURequestAdapterStatus
Definition webgpu.h:856
WGPUFeatureName
Definition webgpu.h:641
WGPUVertexFormat
Definition webgpu.h:1169
WGPUSType
Definition webgpu.h:948
WGPUBufferBindingType
Definition webgpu.h:429
WGPUDeviceLostReason
Definition webgpu.h:595
WGPUCompareFunction
Definition webgpu.h:482
WGPUCullMode
Definition webgpu.h:584
WGPUTextureDimension
Definition webgpu.h:1010
WGPURequestDeviceStatus
Definition webgpu.h:867
WGPUCompilationMessageType
Definition webgpu.h:507
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:573
WGPUTextureViewDimension
Definition webgpu.h:1149
WGPUPrimitiveTopology
Definition webgpu.h:823
WGPUTextureFormat
Definition webgpu.h:1021
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1244
WGPUStencilOperation
Definition webgpu.h:905
WGPUAddressMode
Definition webgpu.h:364
WGPUToneMappingMode
Definition webgpu.h:1163
WGPUTextureAspect
Definition webgpu.h:999
WGPUBufferMapState
Definition webgpu.h:446
WGPUFilterMode
Definition webgpu.h:667
WGPUBackendType
Definition webgpu.h:375
WGPUBlendFactor
Definition webgpu.h:391
WGPUSamplerBindingType
Definition webgpu.h:877
WGPULoadOp
Definition webgpu.h:717
WGPUPopErrorScopeStatus
Definition webgpu.h:758
WGPUWaitStatus
Definition webgpu.h:1227
WGPUStorageTextureAccess
Definition webgpu.h:921
WGPUPowerPreference
Definition webgpu.h:774
WGPUPresentMode
Definition webgpu.h:793
WGPUMapAsyncStatus
Definition webgpu.h:727
WGPUBlendOperation
Definition webgpu.h:416
WGPUCompositeAlphaMode
Definition webgpu.h:549
WGPUPredefinedColorSpace
Definition webgpu.h:784
WGPUQueueWorkDoneStatus
Definition webgpu.h:842
WGPUComponentSwizzle
Definition webgpu.h:514
WGPUVertexStepMode
Definition webgpu.h:1214
WGPUQueryType
Definition webgpu.h:836
WGPUFeatureLevel
Definition webgpu.h:625
WGPUAdapterType
Definition webgpu.h:356
WGPUInstanceFeatureName
Definition webgpu.h:697
WGPUStatus
Definition webgpu.h:899
WGPUCompilationInfoRequestStatus
Definition webgpu.h:498
WGPUMipmapFilterMode
Definition webgpu.h:738
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:971
WGPUFrontFace
Definition webgpu.h:677
WGPUStoreOp
Definition webgpu.h:938
WGPUErrorFilter
Definition webgpu.h:606
WGPUOptionalBool
Definition webgpu.h:748
WGPUCallbackMode
Definition webgpu.h:456
WGPUTextureSampleType
Definition webgpu.h:1130
WGPUErrorType
Definition webgpu.h:613
@ WGPUIndexFormat_Force32
Definition webgpu.h:694
@ WGPUIndexFormat_Uint16
Definition webgpu.h:692
@ WGPUIndexFormat_Undefined
Definition webgpu.h:691
@ WGPUIndexFormat_Uint32
Definition webgpu.h:693
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:862
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:857
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:863
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:861
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:864
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:648
@ WGPUFeatureName_Subgroups
Definition webgpu.h:659
@ WGPUFeatureName_Force32
Definition webgpu.h:664
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:657
@ WGPUFeatureName_PrimitiveIndex
Definition webgpu.h:662
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:644
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:653
@ WGPUFeatureName_TextureFormatsTier1
Definition webgpu.h:660
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:654
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:656
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:658
@ WGPUFeatureName_TextureComponentSwizzle
Definition webgpu.h:663
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:649
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:646
@ WGPUFeatureName_CoreFeaturesAndLimits
Definition webgpu.h:642
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:652
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:655
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:650
@ WGPUFeatureName_TextureFormatsTier2
Definition webgpu.h:661
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:645
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:647
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:651
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:643
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1208
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1198
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1206
@ WGPUVertexFormat_Float32
Definition webgpu.h:1197
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1196
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1184
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1180
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1172
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1174
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1176
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1178
@ WGPUVertexFormat_Force32
Definition webgpu.h:1211
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1171
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1200
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1195
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1201
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1179
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1173
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1204
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1210
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1205
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1182
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1202
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1203
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1191
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1187
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1209
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1189
@ WGPUVertexFormat_Float16
Definition webgpu.h:1194
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1177
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1207
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1186
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1181
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1170
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1175
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1188
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1185
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1183
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1192
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1190
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1199
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1193
@ WGPUSType_Force32
Definition webgpu.h:965
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:955
@ WGPUSType_TextureComponentSwizzleDescriptor
Definition webgpu.h:960
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:949
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:958
@ WGPUSType_TextureBindingViewDimension
Definition webgpu.h:964
@ WGPUSType_ExternalTextureBindingEntry
Definition webgpu.h:962
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:956
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:957
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:953
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:951
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:952
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:959
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:950
@ WGPUSType_CompatibilityModeLimits
Definition webgpu.h:963
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:954
@ WGPUSType_ExternalTextureBindingLayout
Definition webgpu.h:961
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:435
@ WGPUBufferBindingType_Storage
Definition webgpu.h:441
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:439
@ WGPUBufferBindingType_Force32
Definition webgpu.h:443
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:442
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:440
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:602
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:597
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:601
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:603
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:596
@ WGPUCompareFunction_Force32
Definition webgpu.h:495
@ WGPUCompareFunction_Always
Definition webgpu.h:494
@ WGPUCompareFunction_Never
Definition webgpu.h:487
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:492
@ WGPUCompareFunction_Less
Definition webgpu.h:488
@ WGPUCompareFunction_Undefined
Definition webgpu.h:486
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:493
@ WGPUCompareFunction_Equal
Definition webgpu.h:489
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:490
@ WGPUCompareFunction_Greater
Definition webgpu.h:491
@ WGPUCullMode_Force32
Definition webgpu.h:592
@ WGPUCullMode_Undefined
Definition webgpu.h:588
@ WGPUCullMode_Back
Definition webgpu.h:591
@ WGPUCullMode_Front
Definition webgpu.h:590
@ WGPUCullMode_None
Definition webgpu.h:589
@ WGPUTextureDimension_Undefined
Definition webgpu.h:1014
@ WGPUTextureDimension_2D
Definition webgpu.h:1016
@ WGPUTextureDimension_Force32
Definition webgpu.h:1018
@ WGPUTextureDimension_3D
Definition webgpu.h:1017
@ WGPUTextureDimension_1D
Definition webgpu.h:1015
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:872
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:868
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:873
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:874
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:511
@ WGPUCompilationMessageType_Info
Definition webgpu.h:510
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:509
@ WGPUCompilationMessageType_Error
Definition webgpu.h:508
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:581
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:579
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:578
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:574
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:580
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1157
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1156
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1155
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1159
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1154
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1158
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1153
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1160
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:829
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:830
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:827
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:831
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:828
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:832
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:833
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1123
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1084
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1087
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:1047
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:1035
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1089
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1099
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1092
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1096
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1082
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:1049
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1117
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:1053
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1107
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1091
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1119
@ WGPUTextureFormat_RG16Unorm
Definition webgpu.h:1042
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1113
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1066
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1085
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1060
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1065
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1121
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1074
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:1036
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1124
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1071
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:1045
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1097
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1090
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1086
@ WGPUTextureFormat_R32Float
Definition webgpu.h:1039
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1088
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:1033
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:1029
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:1048
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1080
@ WGPUTextureFormat_RGBA16Unorm
Definition webgpu.h:1061
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:1050
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1098
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1063
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1122
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:1055
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1116
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1103
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:1040
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1094
@ WGPUTextureFormat_RG16Snorm
Definition webgpu.h:1043
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1101
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1079
@ WGPUTextureFormat_R16Unorm
Definition webgpu.h:1030
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:1052
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1081
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1083
@ WGPUTextureFormat_Force32
Definition webgpu.h:1127
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1075
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1104
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1112
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:1041
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1078
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1067
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1069
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1095
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1108
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:1044
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1120
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1057
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1070
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:1038
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1114
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:1032
@ WGPUTextureFormat_Undefined
Definition webgpu.h:1025
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1118
@ WGPUTextureFormat_R16Float
Definition webgpu.h:1034
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1102
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1058
@ WGPUTextureFormat_RGBA16Snorm
Definition webgpu.h:1062
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1056
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1126
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1068
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1076
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:1046
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1105
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1072
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1115
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1064
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:1026
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1073
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1077
@ WGPUTextureFormat_R16Snorm
Definition webgpu.h:1031
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1111
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:1037
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:1028
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1109
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1125
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:1054
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1100
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1093
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1059
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1110
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:1051
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:1027
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1106
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1245
@ WGPUWGSLLanguageFeatureName_LinearIndexing
Definition webgpu.h:1254
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1247
@ WGPUWGSLLanguageFeatureName_ImmediateAddressSpace
Definition webgpu.h:1255
@ WGPUWGSLLanguageFeatureName_TextureAndSamplerLet
Definition webgpu.h:1251
@ WGPUWGSLLanguageFeatureName_TextureFormatsTier1
Definition webgpu.h:1253
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1248
@ WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout
Definition webgpu.h:1249
@ WGPUWGSLLanguageFeatureName_SubgroupId
Definition webgpu.h:1250
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1256
@ WGPUWGSLLanguageFeatureName_SubgroupUniformity
Definition webgpu.h:1252
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1246
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:915
@ WGPUStencilOperation_Undefined
Definition webgpu.h:909
@ WGPUStencilOperation_Replace
Definition webgpu.h:912
@ WGPUStencilOperation_Keep
Definition webgpu.h:910
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:917
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:916
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:914
@ WGPUStencilOperation_Invert
Definition webgpu.h:913
@ WGPUStencilOperation_Force32
Definition webgpu.h:918
@ WGPUStencilOperation_Zero
Definition webgpu.h:911
@ WGPUAddressMode_Repeat
Definition webgpu.h:370
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:371
@ WGPUAddressMode_Undefined
Definition webgpu.h:368
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:369
@ WGPUAddressMode_Force32
Definition webgpu.h:372
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1166
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1164
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1165
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:1006
@ WGPUTextureAspect_Force32
Definition webgpu.h:1007
@ WGPUTextureAspect_Undefined
Definition webgpu.h:1003
@ WGPUTextureAspect_All
Definition webgpu.h:1004
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:1005
@ WGPUBufferMapState_Pending
Definition webgpu.h:448
@ WGPUBufferMapState_Mapped
Definition webgpu.h:449
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:447
@ WGPUBufferMapState_Force32
Definition webgpu.h:450
@ WGPUFilterMode_Undefined
Definition webgpu.h:671
@ WGPUFilterMode_Force32
Definition webgpu.h:674
@ WGPUFilterMode_Nearest
Definition webgpu.h:672
@ WGPUFilterMode_Linear
Definition webgpu.h:673
@ WGPUBackendType_Vulkan
Definition webgpu.h:385
@ WGPUBackendType_OpenGL
Definition webgpu.h:386
@ WGPUBackendType_Force32
Definition webgpu.h:388
@ WGPUBackendType_OpenGLES
Definition webgpu.h:387
@ WGPUBackendType_WebGPU
Definition webgpu.h:381
@ WGPUBackendType_D3D11
Definition webgpu.h:382
@ WGPUBackendType_D3D12
Definition webgpu.h:383
@ WGPUBackendType_Undefined
Definition webgpu.h:379
@ WGPUBackendType_Null
Definition webgpu.h:380
@ WGPUBackendType_Metal
Definition webgpu.h:384
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:404
@ WGPUBlendFactor_One
Definition webgpu.h:397
@ WGPUBlendFactor_Zero
Definition webgpu.h:396
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:411
@ WGPUBlendFactor_Undefined
Definition webgpu.h:395
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:403
@ WGPUBlendFactor_Force32
Definition webgpu.h:413
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:410
@ WGPUBlendFactor_Constant
Definition webgpu.h:407
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:399
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:406
@ WGPUBlendFactor_Src
Definition webgpu.h:398
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:401
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:400
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:408
@ WGPUBlendFactor_Src1
Definition webgpu.h:409
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:405
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:412
@ WGPUBlendFactor_Dst
Definition webgpu.h:402
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:883
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:889
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:891
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:888
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:887
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:890
@ WGPULoadOp_Load
Definition webgpu.h:722
@ WGPULoadOp_Force32
Definition webgpu.h:724
@ WGPULoadOp_Undefined
Definition webgpu.h:721
@ WGPULoadOp_Clear
Definition webgpu.h:723
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:771
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:762
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:766
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:770
@ WGPUWaitStatus_Error
Definition webgpu.h:1240
@ WGPUWaitStatus_Force32
Definition webgpu.h:1241
@ WGPUWaitStatus_Success
Definition webgpu.h:1231
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1235
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:931
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:927
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:933
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:932
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:935
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:934
@ WGPUPowerPreference_Force32
Definition webgpu.h:781
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:780
@ WGPUPowerPreference_LowPower
Definition webgpu.h:779
@ WGPUPowerPreference_Undefined
Definition webgpu.h:778
@ WGPUPresentMode_Fifo
Definition webgpu.h:803
@ WGPUPresentMode_Force32
Definition webgpu.h:820
@ WGPUPresentMode_Immediate
Definition webgpu.h:814
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:809
@ WGPUPresentMode_Mailbox
Definition webgpu.h:819
@ WGPUPresentMode_Undefined
Definition webgpu.h:797
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:734
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:732
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:733
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:735
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:728
@ WGPUBlendOperation_Undefined
Definition webgpu.h:420
@ WGPUBlendOperation_Max
Definition webgpu.h:425
@ WGPUBlendOperation_Subtract
Definition webgpu.h:422
@ WGPUBlendOperation_Min
Definition webgpu.h:424
@ WGPUBlendOperation_Add
Definition webgpu.h:421
@ WGPUBlendOperation_Force32
Definition webgpu.h:426
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:423
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:553
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:570
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:557
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:565
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:569
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:561
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:786
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:785
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:787
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:852
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:847
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:843
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:853
@ WGPUComponentSwizzle_A
Definition webgpu.h:542
@ WGPUComponentSwizzle_Force32
Definition webgpu.h:543
@ WGPUComponentSwizzle_G
Definition webgpu.h:534
@ WGPUComponentSwizzle_R
Definition webgpu.h:530
@ WGPUComponentSwizzle_B
Definition webgpu.h:538
@ WGPUComponentSwizzle_Zero
Definition webgpu.h:522
@ WGPUComponentSwizzle_One
Definition webgpu.h:526
@ WGPUComponentSwizzle_Undefined
Definition webgpu.h:518
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1218
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1220
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1219
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1221
@ WGPUQueryType_Occlusion
Definition webgpu.h:837
@ WGPUQueryType_Timestamp
Definition webgpu.h:838
@ WGPUQueryType_Force32
Definition webgpu.h:839
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:629
@ WGPUFeatureLevel_Core
Definition webgpu.h:637
@ WGPUFeatureLevel_Force32
Definition webgpu.h:638
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:633
@ WGPUAdapterType_CPU
Definition webgpu.h:359
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:357
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:358
@ WGPUAdapterType_Unknown
Definition webgpu.h:360
@ WGPUAdapterType_Force32
Definition webgpu.h:361
@ WGPUInstanceFeatureName_ShaderSourceSPIRV
Definition webgpu.h:706
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:714
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
Definition webgpu.h:713
@ WGPUInstanceFeatureName_TimedWaitAny
Definition webgpu.h:701
@ WGPUStatus_Force32
Definition webgpu.h:902
@ WGPUStatus_Success
Definition webgpu.h:900
@ WGPUStatus_Error
Definition webgpu.h:901
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:504
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:499
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:503
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:742
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:744
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:745
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:743
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:991
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:995
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:987
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:983
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:975
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:996
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:979
@ WGPUFrontFace_CW
Definition webgpu.h:683
@ WGPUFrontFace_Undefined
Definition webgpu.h:681
@ WGPUFrontFace_CCW
Definition webgpu.h:682
@ WGPUFrontFace_Force32
Definition webgpu.h:684
@ WGPUStoreOp_Discard
Definition webgpu.h:944
@ WGPUStoreOp_Force32
Definition webgpu.h:945
@ WGPUStoreOp_Store
Definition webgpu.h:943
@ WGPUStoreOp_Undefined
Definition webgpu.h:942
@ WGPUErrorFilter_Internal
Definition webgpu.h:609
@ WGPUErrorFilter_Force32
Definition webgpu.h:610
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:608
@ WGPUErrorFilter_Validation
Definition webgpu.h:607
@ WGPUOptionalBool_True
Definition webgpu.h:753
@ WGPUOptionalBool_Force32
Definition webgpu.h:755
@ WGPUOptionalBool_Undefined
Definition webgpu.h:754
@ WGPUOptionalBool_False
Definition webgpu.h:752
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:468
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:478
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:462
@ WGPUCallbackMode_Force32
Definition webgpu.h:479
@ WGPUTextureSampleType_Float
Definition webgpu.h:1141
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1144
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1136
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1140
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1146
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1145
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1143
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1142
@ WGPUErrorType_NoError
Definition webgpu.h:614
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:616
@ WGPUErrorType_Unknown
Definition webgpu.h:618
@ WGPUErrorType_Validation
Definition webgpu.h:615
@ WGPUErrorType_Force32
Definition webgpu.h:619
@ WGPUErrorType_Internal
Definition webgpu.h:617
WGPUInstance wgpuCreateInstance(WGPUInstanceDescriptor const *descriptor)
WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits *limits)
WGPUProc wgpuGetProcAddress(WGPUStringView procName)
void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures *features)
WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature)
struct WGPUPipelineLayoutImpl * WGPUPipelineLayout
Definition webgpu.h:237
struct WGPUSamplerImpl * WGPUSampler
Definition webgpu.h:244
struct WGPUExternalTextureImpl * WGPUExternalTexture
Definition webgpu.h:235
struct WGPUQueueImpl * WGPUQueue
Definition webgpu.h:239
struct WGPUSurfaceImpl * WGPUSurface
Definition webgpu.h:249
struct WGPURenderBundleImpl * WGPURenderBundle
Definition webgpu.h:240
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
Definition webgpu.h:223
struct WGPUBindGroupImpl * WGPUBindGroup
Definition webgpu.h:218
struct WGPUInstanceImpl * WGPUInstance
Definition webgpu.h:236
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
Definition webgpu.h:219
struct WGPUTextureViewImpl * WGPUTextureView
Definition webgpu.h:251
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
Definition webgpu.h:242
struct WGPUShaderModuleImpl * WGPUShaderModule
Definition webgpu.h:245
struct WGPUQuerySetImpl * WGPUQuerySet
Definition webgpu.h:238
struct WGPUCommandBufferImpl * WGPUCommandBuffer
Definition webgpu.h:221
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
Definition webgpu.h:241
struct WGPUDeviceImpl * WGPUDevice
Definition webgpu.h:231
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
Definition webgpu.h:222
struct WGPUTextureImpl * WGPUTexture
Definition webgpu.h:250
struct WGPUComputePipelineImpl * WGPUComputePipeline
Definition webgpu.h:224
struct WGPURenderPipelineImpl * WGPURenderPipeline
Definition webgpu.h:243
struct WGPUAdapterImpl * WGPUAdapter
Definition webgpu.h:217
struct WGPUBufferImpl * WGPUBuffer
Definition webgpu.h:220
struct WGPUFuture WGPUFuture
uint32_t WGPUBool
Definition webgpu.h:207
uint64_t WGPUFlags
Definition webgpu.h:206
void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo)
WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits *limits)
void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures *features)
WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallbackInfo callbackInfo)
void wgpuAdapterAddRef(WGPUAdapter adapter)
WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
void wgpuAdapterRelease(WGPUAdapter adapter)
WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo *info)
void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label)
void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupAddRef(WGPUBindGroup bindGroup)
void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label)
WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer)
WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo)
void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
void wgpuBufferAddRef(WGPUBuffer buffer)
WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void *data, size_t size)
void wgpuBufferRelease(WGPUBuffer buffer)
void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
void wgpuBufferUnmap(WGPUBuffer buffer)
WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const *data, size_t size)
void wgpuBufferDestroy(WGPUBuffer buffer)
void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label)
void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label)
void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer)
WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor)
WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const *descriptor)
void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const *descriptor)
void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label)
void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel)
void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel)
void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyBufferInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label)
void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel)
void wgpuComputePassEncoderSetImmediates(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const *data, size_t size)
void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel)
WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline)
void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label)
void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)
WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPUSamplerDescriptor const *descriptor)
WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor)
WGPUFuture wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo)
WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)
WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)
void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures *features)
WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo *adapterInfo)
WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)
void wgpuDeviceRelease(WGPUDevice device)
WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo)
WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits *limits)
WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)
WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor)
WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)
WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)
void wgpuDeviceDestroy(WGPUDevice device)
void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label)
WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)
WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)
void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
void wgpuDeviceAddRef(WGPUDevice device)
WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device)
WGPUFuture wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo)
void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture)
void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, WGPUStringView label)
void wgpuExternalTextureAddRef(WGPUExternalTexture externalTexture)
WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature)
void wgpuInstanceProcessEvents(WGPUInstance instance)
void wgpuInstanceRelease(WGPUInstance instance)
WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo)
WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS)
void wgpuInstanceAddRef(WGPUInstance instance)
void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures *features)
WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor)
void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout)
void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label)
void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout)
void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label)
void wgpuQuerySetDestroy(WGPUQuerySet querySet)
void wgpuQuerySetRelease(WGPUQuerySet querySet)
void wgpuQuerySetAddRef(WGPUQuerySet querySet)
uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet)
WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet)
void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const *destination, void const *data, size_t dataSize, WGPUTexelCopyBufferLayout const *dataLayout, WGPUExtent3D const *writeSize)
void wgpuQueueAddRef(WGPUQueue queue)
void wgpuQueueRelease(WGPUQueue queue)
void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label)
void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size)
WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo)
void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands)
void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderBundleEncoderSetImmediates(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const *data, size_t size)
void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel)
WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const *descriptor)
void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel)
void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label)
void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle)
void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label)
void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel)
void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles)
void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel)
void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label)
void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderSetImmediates(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const *data, size_t size)
void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color)
void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label)
void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline)
void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
void wgpuSamplerAddRef(WGPUSampler sampler)
void wgpuSamplerRelease(WGPUSampler sampler)
void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label)
void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule)
WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo)
void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label)
void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures)
void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures)
void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures)
void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities)
void wgpuSurfaceAddRef(WGPUSurface surface)
WGPUStatus wgpuSurfacePresent(WGPUSurface surface)
void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label)
void wgpuSurfaceUnconfigure(WGPUSurface surface)
void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const *config)
WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
void wgpuSurfaceRelease(WGPUSurface surface)
uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
void wgpuTextureDestroy(WGPUTexture texture)
uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
void wgpuTextureRelease(WGPUTexture texture)
WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
uint32_t wgpuTextureGetHeight(WGPUTexture texture)
uint32_t wgpuTextureGetWidth(WGPUTexture texture)
void wgpuTextureAddRef(WGPUTexture texture)
WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPUTextureViewDescriptor const *descriptor)
WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture)
WGPUTextureViewDimension wgpuTextureGetTextureBindingViewDimension(WGPUTexture texture)
void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label)
uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture)
void wgpuTextureViewRelease(WGPUTextureView textureView)
void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label)
void wgpuTextureViewAddRef(WGPUTextureView textureView)
WGPUStringView device
Definition webgpu.h:1791
WGPUBackendType backendType
Definition webgpu.h:1801
uint32_t deviceID
Definition webgpu.h:1813
WGPUChainedStruct * nextInChain
Definition webgpu.h:1773
uint32_t subgroupMinSize
Definition webgpu.h:1817
uint32_t vendorID
Definition webgpu.h:1809
WGPUStringView description
Definition webgpu.h:1797
WGPUAdapterType adapterType
Definition webgpu.h:1805
uint32_t subgroupMaxSize
Definition webgpu.h:1821
WGPUStringView architecture
Definition webgpu.h:1785
WGPUStringView vendor
Definition webgpu.h:1779
WGPUChainedStruct * nextInChain
Definition webgpu.h:4433
WGPUStringView label
Definition webgpu.h:4439
WGPUBindGroupLayout layout
Definition webgpu.h:4443
WGPUBindGroupEntry const * entries
Definition webgpu.h:4451
uint64_t offset
Definition webgpu.h:3586
WGPUBuffer buffer
Definition webgpu.h:3579
WGPUSampler sampler
Definition webgpu.h:3601
WGPUTextureView textureView
Definition webgpu.h:3608
WGPUChainedStruct * nextInChain
Definition webgpu.h:3566
uint32_t binding
Definition webgpu.h:3572
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4483
WGPUChainedStruct * nextInChain
Definition webgpu.h:4469
WGPUTextureBindingLayout texture
Definition webgpu.h:3654
WGPUShaderStage visibility
Definition webgpu.h:3636
WGPUBufferBindingLayout buffer
Definition webgpu.h:3646
WGPUChainedStruct * nextInChain
Definition webgpu.h:3628
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3658
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3650
WGPUBlendFactor dstFactor
Definition webgpu.h:1865
WGPUBlendFactor srcFactor
Definition webgpu.h:1858
WGPUBlendOperation operation
Definition webgpu.h:1851
WGPUBlendComponent alpha
Definition webgpu.h:3686
WGPUBlendComponent color
Definition webgpu.h:3682
WGPUBufferBindingType type
Definition webgpu.h:1888
WGPUBool hasDynamicOffset
Definition webgpu.h:1892
WGPUChainedStruct * nextInChain
Definition webgpu.h:1881
WGPUBool mappedAtCreation
Definition webgpu.h:1935
WGPUStringView label
Definition webgpu.h:1919
WGPUBufferUsage usage
Definition webgpu.h:1923
WGPUChainedStruct * nextInChain
Definition webgpu.h:1913
WGPUChainedStruct * nextInChain
Definition webgpu.h:1535
WGPUBufferMapCallback callback
Definition webgpu.h:1542
WGPUCallbackMode mode
Definition webgpu.h:1541
struct WGPUChainedStruct * next
Definition webgpu.h:1513
WGPUSType sType
Definition webgpu.h:1514
WGPUBlendState const * blend
Definition webgpu.h:4512
WGPUColorWriteMask writeMask
Definition webgpu.h:4516
WGPUChainedStruct * nextInChain
Definition webgpu.h:4500
WGPUTextureFormat format
Definition webgpu.h:4508
double a
Definition webgpu.h:1972
double b
Definition webgpu.h:1968
double r
Definition webgpu.h:1960
double g
Definition webgpu.h:1964
WGPUChainedStruct * nextInChain
Definition webgpu.h:1989
WGPUChainedStruct * nextInChain
Definition webgpu.h:2010
uint32_t maxStorageBuffersInVertexStage
Definition webgpu.h:2039
uint32_t maxStorageBuffersInFragmentStage
Definition webgpu.h:2047
uint32_t maxStorageTexturesInFragmentStage
Definition webgpu.h:2051
uint32_t maxStorageTexturesInVertexStage
Definition webgpu.h:2043
WGPUChainedStruct chain
Definition webgpu.h:2035
WGPUCompilationInfoCallback callback
Definition webgpu.h:1566
WGPUChainedStruct * nextInChain
Definition webgpu.h:1559
WGPUChainedStruct * nextInChain
Definition webgpu.h:3704
WGPUCompilationMessage const * messages
Definition webgpu.h:3712
WGPUChainedStruct * nextInChain
Definition webgpu.h:2075
WGPUCompilationMessageType type
Definition webgpu.h:2089
WGPUStringView message
Definition webgpu.h:2083
WGPUStringView label
Definition webgpu.h:3734
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3738
WGPUChainedStruct * nextInChain
Definition webgpu.h:3728
WGPUComputeState compute
Definition webgpu.h:4547
WGPUChainedStruct * nextInChain
Definition webgpu.h:4533
WGPUPipelineLayout layout
Definition webgpu.h:4543
WGPUChainedStruct * nextInChain
Definition webgpu.h:3754
WGPUConstantEntry const * constants
Definition webgpu.h:3772
size_t constantCount
Definition webgpu.h:3768
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3764
WGPUStringView key
Definition webgpu.h:2139
WGPUChainedStruct * nextInChain
Definition webgpu.h:2133
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1590
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1614
WGPUStencilFaceState stencilFront
Definition webgpu.h:3806
uint32_t stencilWriteMask
Definition webgpu.h:3818
WGPUStencilFaceState stencilBack
Definition webgpu.h:3810
WGPUChainedStruct * nextInChain
Definition webgpu.h:3790
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3798
WGPUCompareFunction depthCompare
Definition webgpu.h:3802
uint32_t stencilReadMask
Definition webgpu.h:3814
WGPUTextureFormat format
Definition webgpu.h:3794
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:4590
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:4599
size_t requiredFeatureCount
Definition webgpu.h:4574
WGPUStringView label
Definition webgpu.h:4570
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:4578
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:4586
WGPUChainedStruct * nextInChain
Definition webgpu.h:4564
WGPULimits const * requiredLimits
Definition webgpu.h:4582
WGPUChainedStruct * nextInChain
Definition webgpu.h:1631
WGPUDeviceLostCallback callback
Definition webgpu.h:1638
WGPUCallbackMode mode
Definition webgpu.h:1637
uint32_t width
Definition webgpu.h:2166
uint32_t depthOrArrayLayers
Definition webgpu.h:2174
uint32_t height
Definition webgpu.h:2170
WGPUChainedStruct chain
Definition webgpu.h:2192
WGPUExternalTexture externalTexture
Definition webgpu.h:2196
size_t constantCount
Definition webgpu.h:4790
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4786
WGPUChainedStruct * nextInChain
Definition webgpu.h:4776
size_t targetCount
Definition webgpu.h:4798
WGPUConstantEntry const * constants
Definition webgpu.h:4794
WGPUColorTargetState const * targets
Definition webgpu.h:4802
WGPUFuture future
Definition webgpu.h:3869
WGPUBool completed
Definition webgpu.h:3875
uint64_t id
Definition webgpu.h:2240
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:3898
WGPUChainedStruct * nextInChain
Definition webgpu.h:3890
size_t requiredFeatureCount
Definition webgpu.h:3894
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:3902
size_t timedWaitAnyMaxCount
Definition webgpu.h:2260
WGPUChainedStruct * nextInChain
Definition webgpu.h:2254
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:3943
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:4019
uint32_t maxTextureDimension2D
Definition webgpu.h:3927
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:3959
uint32_t maxTextureDimension3D
Definition webgpu.h:3931
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:3963
WGPUChainedStruct * nextInChain
Definition webgpu.h:3919
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:3947
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:4043
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:3955
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:4023
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:3991
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:4035
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:3983
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:4027
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:4007
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:3987
uint32_t maxVertexAttributes
Definition webgpu.h:4003
uint32_t maxColorAttachments
Definition webgpu.h:4015
uint32_t maxInterStageShaderVariables
Definition webgpu.h:4011
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:4039
uint32_t maxTextureDimension1D
Definition webgpu.h:3923
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:3951
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:3979
uint64_t maxBufferSize
Definition webgpu.h:3999
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:3975
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:4031
uint32_t maxVertexBuffers
Definition webgpu.h:3995
uint32_t maxTextureArrayLayers
Definition webgpu.h:3935
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:3971
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:3967
uint32_t maxImmediateSize
Definition webgpu.h:4047
uint32_t maxBindGroups
Definition webgpu.h:3939
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2287
WGPUChainedStruct * nextInChain
Definition webgpu.h:2275
uint32_t y
Definition webgpu.h:2311
uint32_t z
Definition webgpu.h:2315
uint32_t x
Definition webgpu.h:2307
WGPUQuerySet querySet
Definition webgpu.h:2337
uint32_t endOfPassWriteIndex
Definition webgpu.h:2345
WGPUChainedStruct * nextInChain
Definition webgpu.h:2331
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2341
WGPUChainedStruct * nextInChain
Definition webgpu.h:2362
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2376
WGPUChainedStruct * nextInChain
Definition webgpu.h:1655
WGPUCallbackMode mode
Definition webgpu.h:1661
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1662
WGPUFrontFace frontFace
Definition webgpu.h:2416
WGPUChainedStruct * nextInChain
Definition webgpu.h:2398
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2409
WGPUPrimitiveTopology topology
Definition webgpu.h:2405
WGPUCullMode cullMode
Definition webgpu.h:2423
WGPUBool unclippedDepth
Definition webgpu.h:2427
WGPUQueryType type
Definition webgpu.h:2456
WGPUChainedStruct * nextInChain
Definition webgpu.h:2446
WGPUStringView label
Definition webgpu.h:2452
WGPUChainedStruct * nextInChain
Definition webgpu.h:2477
WGPUStringView label
Definition webgpu.h:2483
WGPUCallbackMode mode
Definition webgpu.h:1685
WGPUChainedStruct * nextInChain
Definition webgpu.h:1679
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1686
WGPUChainedStruct * nextInChain
Definition webgpu.h:2498
WGPUStringView label
Definition webgpu.h:2504
WGPUChainedStruct * nextInChain
Definition webgpu.h:2519
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2533
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2537
WGPUTextureView resolveTarget
Definition webgpu.h:4108
WGPUChainedStruct * nextInChain
Definition webgpu.h:4093
WGPUChainedStruct * nextInChain
Definition webgpu.h:2570
WGPUChainedStruct * nextInChain
Definition webgpu.h:4620
WGPUStringView label
Definition webgpu.h:4626
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4638
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4634
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4642
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4646
WGPUChainedStruct chain
Definition webgpu.h:2636
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4844
WGPUChainedStruct * nextInChain
Definition webgpu.h:4822
WGPUMultisampleState multisample
Definition webgpu.h:4848
WGPUFragmentState const * fragment
Definition webgpu.h:4852
WGPUPrimitiveState primitive
Definition webgpu.h:4840
WGPUPipelineLayout layout
Definition webgpu.h:4832
WGPUVertexState vertex
Definition webgpu.h:4836
WGPURequestAdapterCallback callback
Definition webgpu.h:1710
WGPUChainedStruct * nextInChain
Definition webgpu.h:1703
WGPUFeatureLevel featureLevel
Definition webgpu.h:4151
WGPUBool forceFallbackAdapter
Definition webgpu.h:4162
WGPUSurface compatibleSurface
Definition webgpu.h:4176
WGPUBackendType backendType
Definition webgpu.h:4169
WGPUChainedStruct * nextInChain
Definition webgpu.h:4140
WGPUPowerPreference powerPreference
Definition webgpu.h:4155
WGPUChainedStruct chain
Definition webgpu.h:2660
WGPUCallbackMode mode
Definition webgpu.h:1733
WGPUChainedStruct * nextInChain
Definition webgpu.h:1727
WGPURequestDeviceCallback callback
Definition webgpu.h:1734
WGPUChainedStruct * nextInChain
Definition webgpu.h:2684
WGPUSamplerBindingType type
Definition webgpu.h:2691
WGPUFilterMode minFilter
Definition webgpu.h:2747
WGPUAddressMode addressModeU
Definition webgpu.h:2719
WGPUCompareFunction compare
Definition webgpu.h:2774
WGPUAddressMode addressModeW
Definition webgpu.h:2733
uint16_t maxAnisotropy
Definition webgpu.h:2778
WGPUAddressMode addressModeV
Definition webgpu.h:2726
WGPUStringView label
Definition webgpu.h:2712
WGPUFilterMode magFilter
Definition webgpu.h:2740
WGPUChainedStruct * nextInChain
Definition webgpu.h:2706
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2754
WGPUChainedStruct * nextInChain
Definition webgpu.h:4195
WGPUStringView label
Definition webgpu.h:4201
WGPUChainedStruct chain
Definition webgpu.h:2803
uint32_t const * code
Definition webgpu.h:2811
WGPUChainedStruct chain
Definition webgpu.h:2830
WGPUStringView code
Definition webgpu.h:2836
WGPUCompareFunction compare
Definition webgpu.h:2860
WGPUStencilOperation depthFailOp
Definition webgpu.h:2874
WGPUStencilOperation passOp
Definition webgpu.h:2881
WGPUStencilOperation failOp
Definition webgpu.h:2867
WGPUChainedStruct * nextInChain
Definition webgpu.h:2898
WGPUTextureViewDimension viewDimension
Definition webgpu.h:2916
WGPUTextureFormat format
Definition webgpu.h:2909
WGPUStorageTextureAccess access
Definition webgpu.h:2905
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:2940
WGPUInstanceFeatureName const * features
Definition webgpu.h:2962
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:2984
WGPUTextureFormat const * formats
Definition webgpu.h:3018
WGPUChainedStruct * nextInChain
Definition webgpu.h:3001
WGPUPresentMode const * presentModes
Definition webgpu.h:3029
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3040
WGPUTextureUsage usages
Definition webgpu.h:3008
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3071
WGPUChainedStruct chain
Definition webgpu.h:3063
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3067
WGPUTextureUsage usage
Definition webgpu.h:3111
WGPUTextureFormat format
Definition webgpu.h:3105
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3133
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3143
WGPUChainedStruct * nextInChain
Definition webgpu.h:3093
WGPUPresentMode presentMode
Definition webgpu.h:3152
WGPUChainedStruct * nextInChain
Definition webgpu.h:4220
WGPUStringView label
Definition webgpu.h:4228
WGPUChainedStruct chain
Definition webgpu.h:3203
WGPUChainedStruct chain
Definition webgpu.h:3229
WGPUChainedStruct chain
Definition webgpu.h:3262
WGPUChainedStruct chain
Definition webgpu.h:3296
WGPUChainedStruct chain
Definition webgpu.h:3329
WGPUChainedStruct * nextInChain
Definition webgpu.h:3363
WGPUTexture texture
Definition webgpu.h:3370
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3376
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4246
WGPUOrigin3D origin
Definition webgpu.h:4276
WGPUTextureAspect aspect
Definition webgpu.h:4283
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3433
WGPUTextureSampleType sampleType
Definition webgpu.h:3426
WGPUChainedStruct * nextInChain
Definition webgpu.h:3419
WGPUChainedStruct chain
Definition webgpu.h:3458
WGPUTextureViewDimension textureBindingViewDimension
Definition webgpu.h:3462
WGPUTextureComponentSwizzle swizzle
Definition webgpu.h:4304
WGPUComponentSwizzle r
Definition webgpu.h:3493
WGPUComponentSwizzle a
Definition webgpu.h:3520
WGPUComponentSwizzle g
Definition webgpu.h:3502
WGPUComponentSwizzle b
Definition webgpu.h:3511
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4363
WGPUTextureDimension dimension
Definition webgpu.h:4339
WGPUStringView label
Definition webgpu.h:4328
uint32_t mipLevelCount
Definition webgpu.h:4351
WGPUChainedStruct * nextInChain
Definition webgpu.h:4322
WGPUTextureFormat format
Definition webgpu.h:4347
WGPUTextureUsage usage
Definition webgpu.h:4332
WGPUExtent3D size
Definition webgpu.h:4343
WGPUChainedStruct * nextInChain
Definition webgpu.h:4666
WGPUTextureUsage usage
Definition webgpu.h:4707
WGPUTextureFormat format
Definition webgpu.h:4676
WGPUTextureViewDimension dimension
Definition webgpu.h:4680
WGPUStringView label
Definition webgpu.h:4672
WGPUTextureAspect aspect
Definition webgpu.h:4703
WGPUChainedStruct * nextInChain
Definition webgpu.h:1751
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1752
WGPUVertexFormat format
Definition webgpu.h:3541
WGPUChainedStruct * nextInChain
Definition webgpu.h:3537
uint32_t shaderLocation
Definition webgpu.h:3549
WGPUVertexAttribute const * attributes
Definition webgpu.h:4415
WGPUVertexStepMode stepMode
Definition webgpu.h:4403
WGPUChainedStruct * nextInChain
Definition webgpu.h:4399
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4740
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4756
WGPUConstantEntry const * constants
Definition webgpu.h:4748
size_t constantCount
Definition webgpu.h:4744
size_t bufferCount
Definition webgpu.h:4752
WGPUChainedStruct * nextInChain
Definition webgpu.h:4730