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
667
668typedef enum WGPUFilterMode {
675 WGPUFilterMode_Force32 = 0x7FFFFFFF
676} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
677
678typedef enum WGPUFrontFace {
683 WGPUFrontFace_CCW = 0x00000001,
684 WGPUFrontFace_CW = 0x00000002,
685 WGPUFrontFace_Force32 = 0x7FFFFFFF
686} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
687
688typedef enum WGPUIndexFormat {
695 WGPUIndexFormat_Force32 = 0x7FFFFFFF
696} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
697
717
718typedef enum WGPULoadOp {
723 WGPULoadOp_Load = 0x00000001,
724 WGPULoadOp_Clear = 0x00000002,
725 WGPULoadOp_Force32 = 0x7FFFFFFF
726} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
727
738
748
749typedef enum WGPUOptionalBool {
756 WGPUOptionalBool_Force32 = 0x7FFFFFFF
757} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
758
774
784
790
823
836
837typedef enum WGPUQueryType {
840 WGPUQueryType_Force32 = 0x7FFFFFFF
841} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
842
856
867
877
894
900typedef enum WGPUStatus {
901 WGPUStatus_Success = 0x00000001,
902 WGPUStatus_Error = 0x00000002,
903 WGPUStatus_Force32 = 0x7FFFFFFF
904} WGPUStatus WGPU_ENUM_ATTRIBUTE;
905
921
938
939typedef enum WGPUStoreOp {
944 WGPUStoreOp_Store = 0x00000001,
946 WGPUStoreOp_Force32 = 0x7FFFFFFF
947} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
948
968
999
1010
1021
1022typedef enum WGPUTextureFormat {
1128 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1129} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1130
1149
1163
1169
1170typedef enum WGPUVertexFormat {
1212 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1213} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1214
1224
1228typedef enum WGPUWaitStatus {
1242 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1243} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1244
1262
1279static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1283static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1289static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1293static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1297static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1301static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1305static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1309static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1313static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1317static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1321static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1322
1330static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1331static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1332static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1333static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1334static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1338static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1339
1347static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1348static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1349static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1350
1358static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1359static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1360static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1361static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1362
1370static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1371static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1372static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1373static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1374static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1375static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1377
1380typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1381
1395typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1396
1405typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1406
1413typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1414
1421typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1422
1440typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1441
1459typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1460
1473typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1474
1484typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1485
1495typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1496
1506typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1507
1516typedef struct WGPUChainedStruct {
1519} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1520
1550
1554#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1555 /*.nextInChain=*/NULL _wgpu_COMMA \
1556 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1557 /*.callback=*/NULL _wgpu_COMMA \
1558 /*.userdata1=*/NULL _wgpu_COMMA \
1559 /*.userdata2=*/NULL _wgpu_COMMA \
1560})
1561
1574
1578#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1579 /*.nextInChain=*/NULL _wgpu_COMMA \
1580 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1581 /*.callback=*/NULL _wgpu_COMMA \
1582 /*.userdata1=*/NULL _wgpu_COMMA \
1583 /*.userdata2=*/NULL _wgpu_COMMA \
1584})
1585
1598
1602#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1603 /*.nextInChain=*/NULL _wgpu_COMMA \
1604 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1605 /*.callback=*/NULL _wgpu_COMMA \
1606 /*.userdata1=*/NULL _wgpu_COMMA \
1607 /*.userdata2=*/NULL _wgpu_COMMA \
1608})
1609
1622
1626#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1627 /*.nextInChain=*/NULL _wgpu_COMMA \
1628 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1629 /*.callback=*/NULL _wgpu_COMMA \
1630 /*.userdata1=*/NULL _wgpu_COMMA \
1631 /*.userdata2=*/NULL _wgpu_COMMA \
1632})
1633
1646
1650#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1651 /*.nextInChain=*/NULL _wgpu_COMMA \
1652 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1653 /*.callback=*/NULL _wgpu_COMMA \
1654 /*.userdata1=*/NULL _wgpu_COMMA \
1655 /*.userdata2=*/NULL _wgpu_COMMA \
1656})
1657
1670
1674#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1675 /*.nextInChain=*/NULL _wgpu_COMMA \
1676 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1677 /*.callback=*/NULL _wgpu_COMMA \
1678 /*.userdata1=*/NULL _wgpu_COMMA \
1679 /*.userdata2=*/NULL _wgpu_COMMA \
1680})
1681
1694
1698#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1699 /*.nextInChain=*/NULL _wgpu_COMMA \
1700 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1701 /*.callback=*/NULL _wgpu_COMMA \
1702 /*.userdata1=*/NULL _wgpu_COMMA \
1703 /*.userdata2=*/NULL _wgpu_COMMA \
1704})
1705
1718
1722#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1723 /*.nextInChain=*/NULL _wgpu_COMMA \
1724 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1725 /*.callback=*/NULL _wgpu_COMMA \
1726 /*.userdata1=*/NULL _wgpu_COMMA \
1727 /*.userdata2=*/NULL _wgpu_COMMA \
1728})
1729
1742
1746#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1747 /*.nextInChain=*/NULL _wgpu_COMMA \
1748 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1749 /*.callback=*/NULL _wgpu_COMMA \
1750 /*.userdata1=*/NULL _wgpu_COMMA \
1751 /*.userdata2=*/NULL _wgpu_COMMA \
1752})
1753
1760
1764#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1765 /*.nextInChain=*/NULL _wgpu_COMMA \
1766 /*.callback=*/NULL _wgpu_COMMA \
1767 /*.userdata1=*/NULL _wgpu_COMMA \
1768 /*.userdata2=*/NULL _wgpu_COMMA \
1769})
1770
1827
1831#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1832 /*.nextInChain=*/NULL _wgpu_COMMA \
1833 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1834 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1835 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1836 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1837 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1838 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1839 /*.vendorID=*/0 _wgpu_COMMA \
1840 /*.deviceID=*/0 _wgpu_COMMA \
1841 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1842 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1843})
1844
1871
1875#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1876 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1877 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1878 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1879})
1880
1902
1906#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1907 /*.nextInChain=*/NULL _wgpu_COMMA \
1908 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1909 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1910 /*.minBindingSize=*/0 _wgpu_COMMA \
1911})
1912
1941
1945#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1946 /*.nextInChain=*/NULL _wgpu_COMMA \
1947 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1948 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1949 /*.size=*/0 _wgpu_COMMA \
1950 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1951})
1952
1960typedef struct WGPUColor {
1964 double r;
1968 double g;
1972 double b;
1976 double a;
1977} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1978
1982#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1983 /*.r=*/0. _wgpu_COMMA \
1984 /*.g=*/0. _wgpu_COMMA \
1985 /*.b=*/0. _wgpu_COMMA \
1986 /*.a=*/0. _wgpu_COMMA \
1987})
1988
2001
2005#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
2006 /*.nextInChain=*/NULL _wgpu_COMMA \
2007 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2008})
2009
2022
2026#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2027 /*.nextInChain=*/NULL _wgpu_COMMA \
2028 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2029})
2030
2057
2061#define WGPU_COMPATIBILITY_MODE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompatibilityModeLimits, { \
2062 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2063 /*.next=*/NULL _wgpu_COMMA \
2064 /*.sType=*/WGPUSType_CompatibilityModeLimits _wgpu_COMMA \
2065 }) _wgpu_COMMA \
2066 /*.maxStorageBuffersInVertexStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2067 /*.maxStorageTexturesInVertexStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2068 /*.maxStorageBuffersInFragmentStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2069 /*.maxStorageTexturesInFragmentStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2070})
2071
2119
2123#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2124 /*.nextInChain=*/NULL _wgpu_COMMA \
2125 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2126 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2127 /*.lineNum=*/0 _wgpu_COMMA \
2128 /*.linePos=*/0 _wgpu_COMMA \
2129 /*.offset=*/0 _wgpu_COMMA \
2130 /*.length=*/0 _wgpu_COMMA \
2131})
2132
2153
2157#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2158 /*.nextInChain=*/NULL _wgpu_COMMA \
2159 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2160 /*.value=*/0. _wgpu_COMMA \
2161})
2162
2166typedef struct WGPUExtent3D {
2170 uint32_t width;
2174 uint32_t height;
2179} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2180
2184#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2185 /*.width=*/0 _wgpu_COMMA \
2186 /*.height=*/1 _wgpu_COMMA \
2187 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2188})
2189
2202
2206#define WGPU_EXTERNAL_TEXTURE_BINDING_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingEntry, { \
2207 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2208 /*.next=*/NULL _wgpu_COMMA \
2209 /*.sType=*/WGPUSType_ExternalTextureBindingEntry _wgpu_COMMA \
2210 }) _wgpu_COMMA \
2211 /*.externalTexture=*/NULL _wgpu_COMMA \
2212})
2213
2222
2226#define WGPU_EXTERNAL_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingLayout, { \
2227 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2228 /*.next=*/NULL _wgpu_COMMA \
2229 /*.sType=*/WGPUSType_ExternalTextureBindingLayout _wgpu_COMMA \
2230 }) _wgpu_COMMA \
2231})
2232
2238typedef struct WGPUFuture {
2244 uint64_t id;
2245} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2246
2250#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2251 /*.id=*/0 _wgpu_COMMA \
2252})
2253
2266
2270#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2271 /*.nextInChain=*/NULL _wgpu_COMMA \
2272 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2273})
2274
2293
2297#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2298 /*.nextInChain=*/NULL _wgpu_COMMA \
2299 /*.count=*/1 _wgpu_COMMA \
2300 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2301 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2302})
2303
2307typedef struct WGPUOrigin3D {
2311 uint32_t x;
2315 uint32_t y;
2319 uint32_t z;
2320} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2321
2325#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2326 /*.x=*/0 _wgpu_COMMA \
2327 /*.y=*/0 _wgpu_COMMA \
2328 /*.z=*/0 _wgpu_COMMA \
2329})
2330
2351
2355#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2356 /*.nextInChain=*/NULL _wgpu_COMMA \
2357 /*.querySet=*/NULL _wgpu_COMMA \
2358 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2359 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2360})
2361
2386
2390#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2391 /*.nextInChain=*/NULL _wgpu_COMMA \
2392 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2393 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2394 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2395 /*.immediateSize=*/0 _wgpu_COMMA \
2396})
2397
2433
2437#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2438 /*.nextInChain=*/NULL _wgpu_COMMA \
2439 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2440 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2441 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2442 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2443 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2444})
2445
2466
2470#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2471 /*.nextInChain=*/NULL _wgpu_COMMA \
2472 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2473 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2474 /*.count=*/0 _wgpu_COMMA \
2475})
2476
2489
2493#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2494 /*.nextInChain=*/NULL _wgpu_COMMA \
2495 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2496})
2497
2510
2514#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2515 /*.nextInChain=*/NULL _wgpu_COMMA \
2516 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2517})
2518
2555
2559#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2560 /*.nextInChain=*/NULL _wgpu_COMMA \
2561 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2562 /*.colorFormatCount=*/0 _wgpu_COMMA \
2563 /*.colorFormats=*/NULL _wgpu_COMMA \
2564 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2565 /*.sampleCount=*/1 _wgpu_COMMA \
2566 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2567 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2568})
2569
2619
2623#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2624 /*.nextInChain=*/NULL _wgpu_COMMA \
2625 /*.view=*/NULL _wgpu_COMMA \
2626 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2627 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2628 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2629 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2630 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2631 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2632 /*.stencilClearValue=*/0 _wgpu_COMMA \
2633 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2634})
2635
2646
2650#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2651 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2652 /*.next=*/NULL _wgpu_COMMA \
2653 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2654 }) _wgpu_COMMA \
2655 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2656})
2657
2672
2676#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2677 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2678 /*.next=*/NULL _wgpu_COMMA \
2679 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2680 }) _wgpu_COMMA \
2681 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2682})
2683
2697
2701#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2702 /*.nextInChain=*/NULL _wgpu_COMMA \
2703 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2704})
2705
2784
2788#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2789 /*.nextInChain=*/NULL _wgpu_COMMA \
2790 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2791 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2792 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2793 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2794 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2795 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2796 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2797 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2798 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2799 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2800 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2801})
2802
2811 uint32_t codeSize;
2815 uint32_t const * code;
2816} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2817
2821#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2822 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2823 /*.next=*/NULL _wgpu_COMMA \
2824 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2825 }) _wgpu_COMMA \
2826 /*.codeSize=*/0 _wgpu_COMMA \
2827 /*.code=*/NULL _wgpu_COMMA \
2828})
2829
2842
2846#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2847 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2848 /*.next=*/NULL _wgpu_COMMA \
2849 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2850 }) _wgpu_COMMA \
2851 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2852})
2853
2887
2891#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2892 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2893 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2894 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2895 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2896})
2897
2922
2926#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
2927 /*.nextInChain=*/NULL _wgpu_COMMA \
2928 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
2929 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2930 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
2931})
2932
2945} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
2946
2950#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
2951 /*.featureCount=*/0 _wgpu_COMMA \
2952 /*.features=*/NULL _wgpu_COMMA \
2953})
2954
2968
2972#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
2973 /*.featureCount=*/0 _wgpu_COMMA \
2974 /*.features=*/NULL _wgpu_COMMA \
2975})
2976
2990
2994#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
2995 /*.featureCount=*/0 _wgpu_COMMA \
2996 /*.features=*/NULL _wgpu_COMMA \
2997})
2998
3046
3050#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3051 /*.nextInChain=*/NULL _wgpu_COMMA \
3052 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3053 /*.formatCount=*/0 _wgpu_COMMA \
3054 /*.formats=*/NULL _wgpu_COMMA \
3055 /*.presentModeCount=*/0 _wgpu_COMMA \
3056 /*.presentModes=*/NULL _wgpu_COMMA \
3057 /*.alphaModeCount=*/0 _wgpu_COMMA \
3058 /*.alphaModes=*/NULL _wgpu_COMMA \
3059})
3060
3077
3081#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3082 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3083 /*.next=*/NULL _wgpu_COMMA \
3084 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3085 }) _wgpu_COMMA \
3086 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3087 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3088})
3089
3158
3162#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3163 /*.nextInChain=*/NULL _wgpu_COMMA \
3164 /*.device=*/NULL _wgpu_COMMA \
3165 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3166 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3167 /*.width=*/0 _wgpu_COMMA \
3168 /*.height=*/0 _wgpu_COMMA \
3169 /*.viewFormatCount=*/0 _wgpu_COMMA \
3170 /*.viewFormats=*/NULL _wgpu_COMMA \
3171 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3172 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3173})
3174
3189
3193#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3194 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3195 /*.next=*/NULL _wgpu_COMMA \
3196 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3197 }) _wgpu_COMMA \
3198 /*.window=*/NULL _wgpu_COMMA \
3199})
3200
3215
3219#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3220 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3221 /*.next=*/NULL _wgpu_COMMA \
3222 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3223 }) _wgpu_COMMA \
3224 /*.layer=*/NULL _wgpu_COMMA \
3225})
3226
3247
3251#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3252 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3253 /*.next=*/NULL _wgpu_COMMA \
3254 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3255 }) _wgpu_COMMA \
3256 /*.display=*/NULL _wgpu_COMMA \
3257 /*.surface=*/NULL _wgpu_COMMA \
3258})
3259
3281
3285#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3286 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3287 /*.next=*/NULL _wgpu_COMMA \
3288 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3289 }) _wgpu_COMMA \
3290 /*.hinstance=*/NULL _wgpu_COMMA \
3291 /*.hwnd=*/NULL _wgpu_COMMA \
3292})
3293
3314
3318#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3319 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3320 /*.next=*/NULL _wgpu_COMMA \
3321 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3322 }) _wgpu_COMMA \
3323 /*.connection=*/NULL _wgpu_COMMA \
3324 /*.window=*/0 _wgpu_COMMA \
3325})
3326
3347
3351#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3352 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3353 /*.next=*/NULL _wgpu_COMMA \
3354 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3355 }) _wgpu_COMMA \
3356 /*.display=*/NULL _wgpu_COMMA \
3357 /*.window=*/0 _wgpu_COMMA \
3358})
3359
3382
3386#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3387 /*.nextInChain=*/NULL _wgpu_COMMA \
3388 /*.texture=*/NULL _wgpu_COMMA \
3389 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3390})
3391
3399 uint64_t offset;
3403 uint32_t bytesPerRow;
3408} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3409
3413#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3414 /*.offset=*/0 _wgpu_COMMA \
3415 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3416 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3417})
3418
3443
3447#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3448 /*.nextInChain=*/NULL _wgpu_COMMA \
3449 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3450 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3451 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3452})
3453
3468
3472#define WGPU_TEXTURE_BINDING_VIEW_DIMENSION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingViewDimension, { \
3473 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3474 /*.next=*/NULL _wgpu_COMMA \
3475 /*.sType=*/WGPUSType_TextureBindingViewDimension _wgpu_COMMA \
3476 }) _wgpu_COMMA \
3477 /*.textureBindingViewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3478})
3479
3526
3530#define WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzle, { \
3531 /*.r=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3532 /*.g=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3533 /*.b=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3534 /*.a=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3535})
3536
3555
3559#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3560 /*.nextInChain=*/NULL _wgpu_COMMA \
3561 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3562 /*.offset=*/0 _wgpu_COMMA \
3563 /*.shaderLocation=*/0 _wgpu_COMMA \
3564})
3565
3569typedef struct WGPUBindGroupEntry {
3576 uint32_t binding;
3583 WGPU_NULLABLE WGPUBuffer buffer;
3590 uint64_t offset;
3598 uint64_t size;
3605 WGPU_NULLABLE WGPUSampler sampler;
3613} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
3614
3618#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
3619 /*.nextInChain=*/NULL _wgpu_COMMA \
3620 /*.binding=*/0 _wgpu_COMMA \
3621 /*.buffer=*/NULL _wgpu_COMMA \
3622 /*.offset=*/0 _wgpu_COMMA \
3623 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
3624 /*.sampler=*/NULL _wgpu_COMMA \
3625 /*.textureView=*/NULL _wgpu_COMMA \
3626})
3627
3664
3668#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3669 /*.nextInChain=*/NULL _wgpu_COMMA \
3670 /*.binding=*/0 _wgpu_COMMA \
3671 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3672 /*.bindingArraySize=*/0 _wgpu_COMMA \
3673 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3674 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3675 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3676 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3677})
3678
3692
3696#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3697 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3698 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3699})
3700
3718
3722#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3723 /*.nextInChain=*/NULL _wgpu_COMMA \
3724 /*.messageCount=*/0 _wgpu_COMMA \
3725 /*.messages=*/NULL _wgpu_COMMA \
3726})
3727
3744
3748#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3749 /*.nextInChain=*/NULL _wgpu_COMMA \
3750 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3751 /*.timestampWrites=*/NULL _wgpu_COMMA \
3752})
3753
3778
3782#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3783 /*.nextInChain=*/NULL _wgpu_COMMA \
3784 /*.module=*/NULL _wgpu_COMMA \
3785 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3786 /*.constantCount=*/0 _wgpu_COMMA \
3787 /*.constants=*/NULL _wgpu_COMMA \
3788})
3789
3844
3848#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3849 /*.nextInChain=*/NULL _wgpu_COMMA \
3850 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3851 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3852 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3853 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3854 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3855 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3856 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3857 /*.depthBias=*/0 _wgpu_COMMA \
3858 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3859 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3860})
3861
3881
3885#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3886 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3887 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
3888})
3889
3908
3912#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
3913 /*.nextInChain=*/NULL _wgpu_COMMA \
3914 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3915 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3916 /*.requiredLimits=*/NULL _wgpu_COMMA \
3917})
3918
4053
4057#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
4058 /*.nextInChain=*/NULL _wgpu_COMMA \
4059 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4060 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4061 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4062 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4063 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4064 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4065 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4066 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4067 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4068 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4069 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4070 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4071 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4072 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4073 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4074 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4075 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4076 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4077 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4078 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
4079 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4080 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4081 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4082 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4083 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4084 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4085 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4086 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4087 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4088 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4089 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4090 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
4091})
4092
4126
4130#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4131 /*.nextInChain=*/NULL _wgpu_COMMA \
4132 /*.view=*/NULL _wgpu_COMMA \
4133 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4134 /*.resolveTarget=*/NULL _wgpu_COMMA \
4135 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4136 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4137 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4138})
4139
4182
4186#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4187 /*.nextInChain=*/NULL _wgpu_COMMA \
4188 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4189 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4190 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4191 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4192 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4193})
4194
4207
4211#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4212 /*.nextInChain=*/NULL _wgpu_COMMA \
4213 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4214})
4215
4234
4238#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4239 /*.nextInChain=*/NULL _wgpu_COMMA \
4240 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4241})
4242
4256
4260#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4261 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4262 /*.buffer=*/NULL _wgpu_COMMA \
4263})
4264
4289
4293#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4294 /*.texture=*/NULL _wgpu_COMMA \
4295 /*.mipLevel=*/0 _wgpu_COMMA \
4296 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4297 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4298})
4299
4310
4314#define WGPU_TEXTURE_COMPONENT_SWIZZLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzleDescriptor, { \
4315 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
4316 /*.next=*/NULL _wgpu_COMMA \
4317 /*.sType=*/WGPUSType_TextureComponentSwizzleDescriptor _wgpu_COMMA \
4318 }) _wgpu_COMMA \
4319 /*.swizzle=*/WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_COMMA \
4320})
4321
4369
4373#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4374 /*.nextInChain=*/NULL _wgpu_COMMA \
4375 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4376 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4377 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4378 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4379 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4380 /*.mipLevelCount=*/1 _wgpu_COMMA \
4381 /*.sampleCount=*/1 _wgpu_COMMA \
4382 /*.viewFormatCount=*/0 _wgpu_COMMA \
4383 /*.viewFormats=*/NULL _wgpu_COMMA \
4384})
4385
4421
4425#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4426 /*.nextInChain=*/NULL _wgpu_COMMA \
4427 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4428 /*.arrayStride=*/0 _wgpu_COMMA \
4429 /*.attributeCount=*/0 _wgpu_COMMA \
4430 /*.attributes=*/NULL _wgpu_COMMA \
4431})
4432
4457
4461#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
4462 /*.nextInChain=*/NULL _wgpu_COMMA \
4463 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4464 /*.layout=*/NULL _wgpu_COMMA \
4465 /*.entryCount=*/0 _wgpu_COMMA \
4466 /*.entries=*/NULL _wgpu_COMMA \
4467})
4468
4489
4493#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4494 /*.nextInChain=*/NULL _wgpu_COMMA \
4495 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4496 /*.entryCount=*/0 _wgpu_COMMA \
4497 /*.entries=*/NULL _wgpu_COMMA \
4498})
4499
4522
4526#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4527 /*.nextInChain=*/NULL _wgpu_COMMA \
4528 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4529 /*.blend=*/NULL _wgpu_COMMA \
4530 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4531})
4532
4553
4557#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4558 /*.nextInChain=*/NULL _wgpu_COMMA \
4559 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4560 /*.layout=*/NULL _wgpu_COMMA \
4561 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4562})
4563
4605
4609#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4610 /*.nextInChain=*/NULL _wgpu_COMMA \
4611 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4612 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4613 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4614 /*.requiredLimits=*/NULL _wgpu_COMMA \
4615 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4616 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4617 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4618})
4619
4652
4656#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4657 /*.nextInChain=*/NULL _wgpu_COMMA \
4658 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4659 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4660 /*.colorAttachments=*/NULL _wgpu_COMMA \
4661 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4662 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4663 /*.timestampWrites=*/NULL _wgpu_COMMA \
4664})
4665
4713
4717#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
4718 /*.nextInChain=*/NULL _wgpu_COMMA \
4719 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4720 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4721 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
4722 /*.baseMipLevel=*/0 _wgpu_COMMA \
4723 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
4724 /*.baseArrayLayer=*/0 _wgpu_COMMA \
4725 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
4726 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4727 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4728})
4729
4762
4766#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4767 /*.nextInChain=*/NULL _wgpu_COMMA \
4768 /*.module=*/NULL _wgpu_COMMA \
4769 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4770 /*.constantCount=*/0 _wgpu_COMMA \
4771 /*.constants=*/NULL _wgpu_COMMA \
4772 /*.bufferCount=*/0 _wgpu_COMMA \
4773 /*.buffers=*/NULL _wgpu_COMMA \
4774})
4775
4808
4812#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4813 /*.nextInChain=*/NULL _wgpu_COMMA \
4814 /*.module=*/NULL _wgpu_COMMA \
4815 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4816 /*.constantCount=*/0 _wgpu_COMMA \
4817 /*.constants=*/NULL _wgpu_COMMA \
4818 /*.targetCount=*/0 _wgpu_COMMA \
4819 /*.targets=*/NULL _wgpu_COMMA \
4820})
4821
4858
4862#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4863 /*.nextInChain=*/NULL _wgpu_COMMA \
4864 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4865 /*.layout=*/NULL _wgpu_COMMA \
4866 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4867 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4868 /*.depthStencil=*/NULL _wgpu_COMMA \
4869 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4870 /*.fragment=*/NULL _wgpu_COMMA \
4871})
4872
4875#ifdef __cplusplus
4876extern "C" {
4877#endif
4878
4879#if !defined(WGPU_SKIP_PROCS)
4880// Global procs
4885typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4890typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4895typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4900typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4905typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4906
4907
4908// Procs of Adapter
4913typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4918typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4923typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4928typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4933typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4938typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4943typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4944
4945// Procs of AdapterInfo
4950typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4951
4952// Procs of BindGroup
4957typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4962typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4967typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4968
4969// Procs of BindGroupLayout
4974typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4979typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4984typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4985
4986// Procs of Buffer
4991typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4996typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5001typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5006typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5011typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5016typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5021typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5026typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5031typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5036typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5041typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5046typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5051typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5052
5053// Procs of CommandBuffer
5058typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5063typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5068typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5069
5070// Procs of CommandEncoder
5075typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5080typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5085typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5090typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5095typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5100typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5105typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5110typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5115typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5120typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5125typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5130typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5135typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5140typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5145typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5150typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5151
5152// Procs of ComputePassEncoder
5157typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5162typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5167typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5172typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5177typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5182typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5187typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5192typedef void (*WGPUProcComputePassEncoderSetImmediates)(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5197typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5202typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5207typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5212typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5213
5214// Procs of ComputePipeline
5219typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5224typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5229typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5234typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5235
5236// Procs of Device
5241typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5246typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5251typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5256typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5261typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5266typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5271typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5276typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5281typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5286typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5291typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5296typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5301typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5306typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5311typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5316typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5321typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5326typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5331typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5336typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5341typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5346typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5351typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5356typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5361typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5366typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5367
5368// Procs of ExternalTexture
5373typedef void (*WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5378typedef void (*WGPUProcExternalTextureAddRef)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5383typedef void (*WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5384
5385// Procs of Instance
5390typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5395typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5400typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5405typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5410typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5415typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5420typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5425typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5426
5427// Procs of PipelineLayout
5432typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5437typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5442typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5443
5444// Procs of QuerySet
5449typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5454typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5459typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5464typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5469typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5474typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5475
5476// Procs of Queue
5481typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5486typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5491typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5496typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5501typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5506typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5511typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5512
5513// Procs of RenderBundle
5518typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5523typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5528typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5529
5530// Procs of RenderBundleEncoder
5535typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5540typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5545typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5550typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5555typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5560typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5565typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5570typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5575typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5580typedef void (*WGPUProcRenderBundleEncoderSetImmediates)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5585typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5590typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5595typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5600typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5605typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5610typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5611
5612// Procs of RenderPassEncoder
5617typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5622typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5627typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5632typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5637typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5642typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5647typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5652typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5657typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5662typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5667typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5672typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5677typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5682typedef void (*WGPUProcRenderPassEncoderSetImmediates)(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5687typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5692typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5697typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5702typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5707typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5712typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5717typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5722typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5727typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5728
5729// Procs of RenderPipeline
5734typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5739typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5744typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5749typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5750
5751// Procs of Sampler
5756typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5761typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5766typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5767
5768// Procs of ShaderModule
5773typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5778typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5783typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5788typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5789
5790// Procs of SupportedFeatures
5795typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5796
5797// Procs of SupportedInstanceFeatures
5802typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5803
5804// Procs of SupportedWGSLLanguageFeatures
5809typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5810
5811// Procs of Surface
5816typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5821typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5826typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5831typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5836typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5841typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5846typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5851typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5852
5853// Procs of SurfaceCapabilities
5858typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5859
5860// Procs of Texture
5865typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5870typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5875typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5880typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5885typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5890typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5895typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5900typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5905typedef WGPUTextureViewDimension (*WGPUProcTextureGetTextureBindingViewDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5910typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5915typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5920typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5925typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5930typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5931
5932// Procs of TextureView
5937typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5942typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5947typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5948
5949#endif // !defined(WGPU_SKIP_PROCS)
5950
5951#if !defined(WGPU_SKIP_DECLARATIONS)
5964WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5971WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5978WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5982WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5987WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5988
6010WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6018WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
6023WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6024WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6025WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6026WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
6027WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
6028
6040WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6041
6050WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6051WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
6052WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
6053
6062WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6063WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
6064WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
6065
6074WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6092WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6109WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6110WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6111WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6112WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6124WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6145WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6146WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6147WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6168WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6169WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6170WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6171
6180WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6181WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6182WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6183
6196WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6201WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6202WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6203WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6204WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6205WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6206WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6211WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6212WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6213WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6214WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6215WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
6216WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6217WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6218WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6219WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6220
6229WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
6230WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6231WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6232WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6233WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6234WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6235WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6236WGPU_EXPORT void wgpuComputePassEncoderSetImmediates(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6237WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6238WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6241
6254WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6255WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6256WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6257WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6258
6271WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6276WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6286WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6291WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6296WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6302WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6307WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6317WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6323WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6328WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6333WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6334WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6342WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6349WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6354WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6359WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6364WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6365WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6370WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6375WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6376WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6377WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6378WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6379
6388WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6389WGPU_EXPORT void wgpuExternalTextureAddRef(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6390WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6391
6410WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6414WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6415WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6421WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6422WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6428WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6429WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6430WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6431
6440WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6441WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6442WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6443
6452WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6453WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6454WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6455WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6456WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6457WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6458
6467WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6468WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6469WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6474WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6475WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6476WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6477WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6478
6487WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6488WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6489WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6490
6499WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6500WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6501WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6502WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6507WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6508WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6509WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6510WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6511WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6512WGPU_EXPORT void wgpuRenderBundleEncoderSetImmediates(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6513WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6514WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6515WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6516WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6517WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6518WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6519
6528WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6529WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6530WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6531WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6532WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6533WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6534WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6535WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6536WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6537WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6538WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6539WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6544WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6545WGPU_EXPORT void wgpuRenderPassEncoderSetImmediates(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6546WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6547WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6548WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6549WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6550WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6551WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6557WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6558WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6559WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6560
6573WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6574WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6575WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6576WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6577
6586WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6587WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6588WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6589
6598WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6599WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6600WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6601WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6602
6614WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6615
6627WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6628
6640WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6641
6659WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6675WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6685WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6693WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6700WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6705WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6706WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6707WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6708
6720WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6721
6734WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6735WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6736WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6737WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6738WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6739WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6740WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6741WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6743WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6744WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6745WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6746WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6747WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6748
6757WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6758WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6759WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6760
6765#endif // !defined(WGPU_SKIP_DECLARATIONS)
6766
6767#ifdef __cplusplus
6768} // extern "C"
6769#endif
6770
6771#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1333
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1317
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1326
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1313
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1334
static const WGPUTextureUsage WGPUTextureUsage_TransientAttachment
Definition webgpu.h:1376
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1283
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1301
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1279
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1347
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1370
WGPUFlags WGPUMapMode
Definition webgpu.h:1343
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1373
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1338
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1371
WGPUFlags WGPUShaderStage
Definition webgpu.h:1354
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1321
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1360
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1361
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1349
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1358
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1375
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1289
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1372
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1293
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1374
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1366
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1309
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1348
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1332
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1305
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1359
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1330
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1331
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1275
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1297
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1506
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1495
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1413
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1440
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1421
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1405
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1484
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1395
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1473
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1459
WGPUIndexFormat
Definition webgpu.h:688
WGPURequestAdapterStatus
Definition webgpu.h:857
WGPUFeatureName
Definition webgpu.h:641
WGPUVertexFormat
Definition webgpu.h:1170
WGPUSType
Definition webgpu.h:949
WGPUBufferBindingType
Definition webgpu.h:429
WGPUDeviceLostReason
Definition webgpu.h:595
WGPUCompareFunction
Definition webgpu.h:482
WGPUCullMode
Definition webgpu.h:584
WGPUTextureDimension
Definition webgpu.h:1011
WGPURequestDeviceStatus
Definition webgpu.h:868
WGPUCompilationMessageType
Definition webgpu.h:507
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:573
WGPUTextureViewDimension
Definition webgpu.h:1150
WGPUPrimitiveTopology
Definition webgpu.h:824
WGPUTextureFormat
Definition webgpu.h:1022
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1245
WGPUStencilOperation
Definition webgpu.h:906
WGPUAddressMode
Definition webgpu.h:364
WGPUToneMappingMode
Definition webgpu.h:1164
WGPUTextureAspect
Definition webgpu.h:1000
WGPUBufferMapState
Definition webgpu.h:446
WGPUFilterMode
Definition webgpu.h:668
WGPUBackendType
Definition webgpu.h:375
WGPUBlendFactor
Definition webgpu.h:391
WGPUSamplerBindingType
Definition webgpu.h:878
WGPULoadOp
Definition webgpu.h:718
WGPUPopErrorScopeStatus
Definition webgpu.h:759
WGPUWaitStatus
Definition webgpu.h:1228
WGPUStorageTextureAccess
Definition webgpu.h:922
WGPUPowerPreference
Definition webgpu.h:775
WGPUPresentMode
Definition webgpu.h:794
WGPUMapAsyncStatus
Definition webgpu.h:728
WGPUBlendOperation
Definition webgpu.h:416
WGPUCompositeAlphaMode
Definition webgpu.h:549
WGPUPredefinedColorSpace
Definition webgpu.h:785
WGPUQueueWorkDoneStatus
Definition webgpu.h:843
WGPUComponentSwizzle
Definition webgpu.h:514
WGPUVertexStepMode
Definition webgpu.h:1215
WGPUQueryType
Definition webgpu.h:837
WGPUFeatureLevel
Definition webgpu.h:625
WGPUAdapterType
Definition webgpu.h:356
WGPUInstanceFeatureName
Definition webgpu.h:698
WGPUStatus
Definition webgpu.h:900
WGPUCompilationInfoRequestStatus
Definition webgpu.h:498
WGPUMipmapFilterMode
Definition webgpu.h:739
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:972
WGPUFrontFace
Definition webgpu.h:678
WGPUStoreOp
Definition webgpu.h:939
WGPUErrorFilter
Definition webgpu.h:606
WGPUOptionalBool
Definition webgpu.h:749
WGPUCallbackMode
Definition webgpu.h:456
WGPUTextureSampleType
Definition webgpu.h:1131
WGPUErrorType
Definition webgpu.h:613
@ WGPUIndexFormat_Force32
Definition webgpu.h:695
@ WGPUIndexFormat_Uint16
Definition webgpu.h:693
@ WGPUIndexFormat_Undefined
Definition webgpu.h:692
@ WGPUIndexFormat_Uint32
Definition webgpu.h:694
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:863
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:858
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:864
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:862
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:865
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:648
@ WGPUFeatureName_Subgroups
Definition webgpu.h:659
@ WGPUFeatureName_Force32
Definition webgpu.h:665
@ 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_SubgroupSizeControl
Definition webgpu.h:664
@ 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:1209
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1199
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1207
@ WGPUVertexFormat_Float32
Definition webgpu.h:1198
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1197
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1185
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1181
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1173
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1175
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1177
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1179
@ WGPUVertexFormat_Force32
Definition webgpu.h:1212
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1172
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1201
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1196
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1202
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1180
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1174
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1205
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1211
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1206
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1183
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1203
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1204
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1192
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1188
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1210
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1190
@ WGPUVertexFormat_Float16
Definition webgpu.h:1195
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1178
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1208
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1187
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1182
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1171
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1176
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1189
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1186
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1184
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1193
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1191
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1200
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1194
@ WGPUSType_Force32
Definition webgpu.h:966
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:956
@ WGPUSType_TextureComponentSwizzleDescriptor
Definition webgpu.h:961
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:950
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:959
@ WGPUSType_TextureBindingViewDimension
Definition webgpu.h:965
@ WGPUSType_ExternalTextureBindingEntry
Definition webgpu.h:963
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:957
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:958
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:954
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:952
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:953
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:960
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:951
@ WGPUSType_CompatibilityModeLimits
Definition webgpu.h:964
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:955
@ WGPUSType_ExternalTextureBindingLayout
Definition webgpu.h:962
@ 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:1015
@ WGPUTextureDimension_2D
Definition webgpu.h:1017
@ WGPUTextureDimension_Force32
Definition webgpu.h:1019
@ WGPUTextureDimension_3D
Definition webgpu.h:1018
@ WGPUTextureDimension_1D
Definition webgpu.h:1016
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:873
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:869
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:874
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:875
@ 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:1158
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1157
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1156
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1160
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1155
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1159
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1154
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1161
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:830
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:831
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:828
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:832
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:829
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:833
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:834
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1124
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1085
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1088
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:1048
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:1036
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1090
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1100
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1093
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1097
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1083
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:1050
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1118
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:1054
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1108
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1092
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1120
@ WGPUTextureFormat_RG16Unorm
Definition webgpu.h:1043
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1114
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1067
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1086
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1061
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1066
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1122
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1075
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:1037
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1125
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1072
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:1046
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1098
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1091
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1087
@ WGPUTextureFormat_R32Float
Definition webgpu.h:1040
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1089
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:1034
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:1030
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:1049
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1081
@ WGPUTextureFormat_RGBA16Unorm
Definition webgpu.h:1062
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:1051
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1099
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1064
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1123
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:1056
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1117
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1104
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:1041
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1095
@ WGPUTextureFormat_RG16Snorm
Definition webgpu.h:1044
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1102
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1080
@ WGPUTextureFormat_R16Unorm
Definition webgpu.h:1031
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:1053
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1082
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1084
@ WGPUTextureFormat_Force32
Definition webgpu.h:1128
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1076
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1105
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1113
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:1042
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1079
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1068
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1070
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1096
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1109
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:1045
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1121
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1058
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1071
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:1039
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1115
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:1033
@ WGPUTextureFormat_Undefined
Definition webgpu.h:1026
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1119
@ WGPUTextureFormat_R16Float
Definition webgpu.h:1035
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1103
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1059
@ WGPUTextureFormat_RGBA16Snorm
Definition webgpu.h:1063
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1057
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1127
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1069
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1077
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:1047
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1106
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1073
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1116
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1065
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:1027
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1074
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1078
@ WGPUTextureFormat_R16Snorm
Definition webgpu.h:1032
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1112
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:1038
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:1029
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1110
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1126
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:1055
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1101
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1094
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1060
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1111
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:1052
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:1028
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1107
@ WGPUWGSLLanguageFeatureName_BufferView
Definition webgpu.h:1257
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1246
@ WGPUWGSLLanguageFeatureName_LinearIndexing
Definition webgpu.h:1255
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1248
@ WGPUWGSLLanguageFeatureName_ImmediateAddressSpace
Definition webgpu.h:1256
@ WGPUWGSLLanguageFeatureName_FragmentDepth
Definition webgpu.h:1259
@ WGPUWGSLLanguageFeatureName_TextureAndSamplerLet
Definition webgpu.h:1252
@ WGPUWGSLLanguageFeatureName_TextureFormatsTier1
Definition webgpu.h:1254
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1249
@ WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout
Definition webgpu.h:1250
@ WGPUWGSLLanguageFeatureName_SubgroupId
Definition webgpu.h:1251
@ WGPUWGSLLanguageFeatureName_SwizzleAssignment
Definition webgpu.h:1258
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1260
@ WGPUWGSLLanguageFeatureName_SubgroupUniformity
Definition webgpu.h:1253
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1247
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:916
@ WGPUStencilOperation_Undefined
Definition webgpu.h:910
@ WGPUStencilOperation_Replace
Definition webgpu.h:913
@ WGPUStencilOperation_Keep
Definition webgpu.h:911
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:918
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:917
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:915
@ WGPUStencilOperation_Invert
Definition webgpu.h:914
@ WGPUStencilOperation_Force32
Definition webgpu.h:919
@ WGPUStencilOperation_Zero
Definition webgpu.h:912
@ 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:1167
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1165
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1166
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:1007
@ WGPUTextureAspect_Force32
Definition webgpu.h:1008
@ WGPUTextureAspect_Undefined
Definition webgpu.h:1004
@ WGPUTextureAspect_All
Definition webgpu.h:1005
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:1006
@ 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:672
@ WGPUFilterMode_Force32
Definition webgpu.h:675
@ WGPUFilterMode_Nearest
Definition webgpu.h:673
@ WGPUFilterMode_Linear
Definition webgpu.h:674
@ 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:884
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:890
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:892
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:889
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:888
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:891
@ WGPULoadOp_Load
Definition webgpu.h:723
@ WGPULoadOp_Force32
Definition webgpu.h:725
@ WGPULoadOp_Undefined
Definition webgpu.h:722
@ WGPULoadOp_Clear
Definition webgpu.h:724
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:772
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:763
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:767
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:771
@ WGPUWaitStatus_Error
Definition webgpu.h:1241
@ WGPUWaitStatus_Force32
Definition webgpu.h:1242
@ WGPUWaitStatus_Success
Definition webgpu.h:1232
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1236
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:932
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:928
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:934
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:933
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:936
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:935
@ WGPUPowerPreference_Force32
Definition webgpu.h:782
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:781
@ WGPUPowerPreference_LowPower
Definition webgpu.h:780
@ WGPUPowerPreference_Undefined
Definition webgpu.h:779
@ WGPUPresentMode_Fifo
Definition webgpu.h:804
@ WGPUPresentMode_Force32
Definition webgpu.h:821
@ WGPUPresentMode_Immediate
Definition webgpu.h:815
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:810
@ WGPUPresentMode_Mailbox
Definition webgpu.h:820
@ WGPUPresentMode_Undefined
Definition webgpu.h:798
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:735
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:733
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:734
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:736
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:729
@ 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:787
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:786
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:788
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:853
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:848
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:844
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:854
@ 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:1219
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1221
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1220
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1222
@ WGPUQueryType_Occlusion
Definition webgpu.h:838
@ WGPUQueryType_Timestamp
Definition webgpu.h:839
@ WGPUQueryType_Force32
Definition webgpu.h:840
@ 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:707
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:715
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
Definition webgpu.h:714
@ WGPUInstanceFeatureName_TimedWaitAny
Definition webgpu.h:702
@ WGPUStatus_Force32
Definition webgpu.h:903
@ WGPUStatus_Success
Definition webgpu.h:901
@ WGPUStatus_Error
Definition webgpu.h:902
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:504
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:499
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:503
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:743
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:745
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:746
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:744
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:992
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:996
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:988
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:984
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:976
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:997
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:980
@ WGPUFrontFace_CW
Definition webgpu.h:684
@ WGPUFrontFace_Undefined
Definition webgpu.h:682
@ WGPUFrontFace_CCW
Definition webgpu.h:683
@ WGPUFrontFace_Force32
Definition webgpu.h:685
@ WGPUStoreOp_Discard
Definition webgpu.h:945
@ WGPUStoreOp_Force32
Definition webgpu.h:946
@ WGPUStoreOp_Store
Definition webgpu.h:944
@ WGPUStoreOp_Undefined
Definition webgpu.h:943
@ 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:754
@ WGPUOptionalBool_Force32
Definition webgpu.h:756
@ WGPUOptionalBool_Undefined
Definition webgpu.h:755
@ WGPUOptionalBool_False
Definition webgpu.h:753
@ 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:1142
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1145
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1137
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1141
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1147
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1146
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1144
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1143
@ 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:1795
WGPUBackendType backendType
Definition webgpu.h:1805
uint32_t deviceID
Definition webgpu.h:1817
WGPUChainedStruct * nextInChain
Definition webgpu.h:1777
uint32_t subgroupMinSize
Definition webgpu.h:1821
uint32_t vendorID
Definition webgpu.h:1813
WGPUStringView description
Definition webgpu.h:1801
WGPUAdapterType adapterType
Definition webgpu.h:1809
uint32_t subgroupMaxSize
Definition webgpu.h:1825
WGPUStringView architecture
Definition webgpu.h:1789
WGPUStringView vendor
Definition webgpu.h:1783
WGPUChainedStruct * nextInChain
Definition webgpu.h:4437
WGPUStringView label
Definition webgpu.h:4443
WGPUBindGroupLayout layout
Definition webgpu.h:4447
WGPUBindGroupEntry const * entries
Definition webgpu.h:4455
uint64_t offset
Definition webgpu.h:3590
WGPUBuffer buffer
Definition webgpu.h:3583
WGPUSampler sampler
Definition webgpu.h:3605
WGPUTextureView textureView
Definition webgpu.h:3612
WGPUChainedStruct * nextInChain
Definition webgpu.h:3570
uint32_t binding
Definition webgpu.h:3576
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4487
WGPUChainedStruct * nextInChain
Definition webgpu.h:4473
WGPUTextureBindingLayout texture
Definition webgpu.h:3658
WGPUShaderStage visibility
Definition webgpu.h:3640
WGPUBufferBindingLayout buffer
Definition webgpu.h:3650
WGPUChainedStruct * nextInChain
Definition webgpu.h:3632
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3662
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3654
WGPUBlendFactor dstFactor
Definition webgpu.h:1869
WGPUBlendFactor srcFactor
Definition webgpu.h:1862
WGPUBlendOperation operation
Definition webgpu.h:1855
WGPUBlendComponent alpha
Definition webgpu.h:3690
WGPUBlendComponent color
Definition webgpu.h:3686
WGPUBufferBindingType type
Definition webgpu.h:1892
WGPUBool hasDynamicOffset
Definition webgpu.h:1896
WGPUChainedStruct * nextInChain
Definition webgpu.h:1885
WGPUBool mappedAtCreation
Definition webgpu.h:1939
WGPUStringView label
Definition webgpu.h:1923
WGPUBufferUsage usage
Definition webgpu.h:1927
WGPUChainedStruct * nextInChain
Definition webgpu.h:1917
WGPUChainedStruct * nextInChain
Definition webgpu.h:1539
WGPUBufferMapCallback callback
Definition webgpu.h:1546
WGPUCallbackMode mode
Definition webgpu.h:1545
struct WGPUChainedStruct * next
Definition webgpu.h:1517
WGPUSType sType
Definition webgpu.h:1518
WGPUBlendState const * blend
Definition webgpu.h:4516
WGPUColorWriteMask writeMask
Definition webgpu.h:4520
WGPUChainedStruct * nextInChain
Definition webgpu.h:4504
WGPUTextureFormat format
Definition webgpu.h:4512
double a
Definition webgpu.h:1976
double b
Definition webgpu.h:1972
double r
Definition webgpu.h:1964
double g
Definition webgpu.h:1968
WGPUChainedStruct * nextInChain
Definition webgpu.h:1993
WGPUChainedStruct * nextInChain
Definition webgpu.h:2014
uint32_t maxStorageBuffersInVertexStage
Definition webgpu.h:2043
uint32_t maxStorageBuffersInFragmentStage
Definition webgpu.h:2051
uint32_t maxStorageTexturesInFragmentStage
Definition webgpu.h:2055
uint32_t maxStorageTexturesInVertexStage
Definition webgpu.h:2047
WGPUChainedStruct chain
Definition webgpu.h:2039
WGPUCompilationInfoCallback callback
Definition webgpu.h:1570
WGPUChainedStruct * nextInChain
Definition webgpu.h:1563
WGPUChainedStruct * nextInChain
Definition webgpu.h:3708
WGPUCompilationMessage const * messages
Definition webgpu.h:3716
WGPUChainedStruct * nextInChain
Definition webgpu.h:2079
WGPUCompilationMessageType type
Definition webgpu.h:2093
WGPUStringView message
Definition webgpu.h:2087
WGPUStringView label
Definition webgpu.h:3738
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3742
WGPUChainedStruct * nextInChain
Definition webgpu.h:3732
WGPUComputeState compute
Definition webgpu.h:4551
WGPUChainedStruct * nextInChain
Definition webgpu.h:4537
WGPUPipelineLayout layout
Definition webgpu.h:4547
WGPUChainedStruct * nextInChain
Definition webgpu.h:3758
WGPUConstantEntry const * constants
Definition webgpu.h:3776
size_t constantCount
Definition webgpu.h:3772
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3768
WGPUStringView key
Definition webgpu.h:2143
WGPUChainedStruct * nextInChain
Definition webgpu.h:2137
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1594
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1618
WGPUStencilFaceState stencilFront
Definition webgpu.h:3810
uint32_t stencilWriteMask
Definition webgpu.h:3822
WGPUStencilFaceState stencilBack
Definition webgpu.h:3814
WGPUChainedStruct * nextInChain
Definition webgpu.h:3794
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3802
WGPUCompareFunction depthCompare
Definition webgpu.h:3806
uint32_t stencilReadMask
Definition webgpu.h:3818
WGPUTextureFormat format
Definition webgpu.h:3798
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:4594
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:4603
size_t requiredFeatureCount
Definition webgpu.h:4578
WGPUStringView label
Definition webgpu.h:4574
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:4582
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:4590
WGPUChainedStruct * nextInChain
Definition webgpu.h:4568
WGPULimits const * requiredLimits
Definition webgpu.h:4586
WGPUChainedStruct * nextInChain
Definition webgpu.h:1635
WGPUDeviceLostCallback callback
Definition webgpu.h:1642
WGPUCallbackMode mode
Definition webgpu.h:1641
uint32_t width
Definition webgpu.h:2170
uint32_t depthOrArrayLayers
Definition webgpu.h:2178
uint32_t height
Definition webgpu.h:2174
WGPUChainedStruct chain
Definition webgpu.h:2196
WGPUExternalTexture externalTexture
Definition webgpu.h:2200
size_t constantCount
Definition webgpu.h:4794
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4790
WGPUChainedStruct * nextInChain
Definition webgpu.h:4780
size_t targetCount
Definition webgpu.h:4802
WGPUConstantEntry const * constants
Definition webgpu.h:4798
WGPUColorTargetState const * targets
Definition webgpu.h:4806
WGPUFuture future
Definition webgpu.h:3873
WGPUBool completed
Definition webgpu.h:3879
uint64_t id
Definition webgpu.h:2244
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:3902
WGPUChainedStruct * nextInChain
Definition webgpu.h:3894
size_t requiredFeatureCount
Definition webgpu.h:3898
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:3906
size_t timedWaitAnyMaxCount
Definition webgpu.h:2264
WGPUChainedStruct * nextInChain
Definition webgpu.h:2258
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:3947
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:4023
uint32_t maxTextureDimension2D
Definition webgpu.h:3931
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:3963
uint32_t maxTextureDimension3D
Definition webgpu.h:3935
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:3967
WGPUChainedStruct * nextInChain
Definition webgpu.h:3923
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:3951
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:4047
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:3959
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:4027
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:3995
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:4039
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:3987
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:4031
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:4011
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:3991
uint32_t maxVertexAttributes
Definition webgpu.h:4007
uint32_t maxColorAttachments
Definition webgpu.h:4019
uint32_t maxInterStageShaderVariables
Definition webgpu.h:4015
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:4043
uint32_t maxTextureDimension1D
Definition webgpu.h:3927
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:3955
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:3983
uint64_t maxBufferSize
Definition webgpu.h:4003
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:3979
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:4035
uint32_t maxVertexBuffers
Definition webgpu.h:3999
uint32_t maxTextureArrayLayers
Definition webgpu.h:3939
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:3975
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:3971
uint32_t maxImmediateSize
Definition webgpu.h:4051
uint32_t maxBindGroups
Definition webgpu.h:3943
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2291
WGPUChainedStruct * nextInChain
Definition webgpu.h:2279
uint32_t y
Definition webgpu.h:2315
uint32_t z
Definition webgpu.h:2319
uint32_t x
Definition webgpu.h:2311
WGPUQuerySet querySet
Definition webgpu.h:2341
uint32_t endOfPassWriteIndex
Definition webgpu.h:2349
WGPUChainedStruct * nextInChain
Definition webgpu.h:2335
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2345
WGPUChainedStruct * nextInChain
Definition webgpu.h:2366
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2380
WGPUChainedStruct * nextInChain
Definition webgpu.h:1659
WGPUCallbackMode mode
Definition webgpu.h:1665
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1666
WGPUFrontFace frontFace
Definition webgpu.h:2420
WGPUChainedStruct * nextInChain
Definition webgpu.h:2402
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2413
WGPUPrimitiveTopology topology
Definition webgpu.h:2409
WGPUCullMode cullMode
Definition webgpu.h:2427
WGPUBool unclippedDepth
Definition webgpu.h:2431
WGPUQueryType type
Definition webgpu.h:2460
WGPUChainedStruct * nextInChain
Definition webgpu.h:2450
WGPUStringView label
Definition webgpu.h:2456
WGPUChainedStruct * nextInChain
Definition webgpu.h:2481
WGPUStringView label
Definition webgpu.h:2487
WGPUCallbackMode mode
Definition webgpu.h:1689
WGPUChainedStruct * nextInChain
Definition webgpu.h:1683
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1690
WGPUChainedStruct * nextInChain
Definition webgpu.h:2502
WGPUStringView label
Definition webgpu.h:2508
WGPUChainedStruct * nextInChain
Definition webgpu.h:2523
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2537
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2541
WGPUTextureView resolveTarget
Definition webgpu.h:4112
WGPUChainedStruct * nextInChain
Definition webgpu.h:4097
WGPUChainedStruct * nextInChain
Definition webgpu.h:2574
WGPUChainedStruct * nextInChain
Definition webgpu.h:4624
WGPUStringView label
Definition webgpu.h:4630
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4642
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4638
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4646
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4650
WGPUChainedStruct chain
Definition webgpu.h:2640
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4848
WGPUChainedStruct * nextInChain
Definition webgpu.h:4826
WGPUMultisampleState multisample
Definition webgpu.h:4852
WGPUFragmentState const * fragment
Definition webgpu.h:4856
WGPUPrimitiveState primitive
Definition webgpu.h:4844
WGPUPipelineLayout layout
Definition webgpu.h:4836
WGPUVertexState vertex
Definition webgpu.h:4840
WGPURequestAdapterCallback callback
Definition webgpu.h:1714
WGPUChainedStruct * nextInChain
Definition webgpu.h:1707
WGPUFeatureLevel featureLevel
Definition webgpu.h:4155
WGPUBool forceFallbackAdapter
Definition webgpu.h:4166
WGPUSurface compatibleSurface
Definition webgpu.h:4180
WGPUBackendType backendType
Definition webgpu.h:4173
WGPUChainedStruct * nextInChain
Definition webgpu.h:4144
WGPUPowerPreference powerPreference
Definition webgpu.h:4159
WGPUChainedStruct chain
Definition webgpu.h:2664
WGPUCallbackMode mode
Definition webgpu.h:1737
WGPUChainedStruct * nextInChain
Definition webgpu.h:1731
WGPURequestDeviceCallback callback
Definition webgpu.h:1738
WGPUChainedStruct * nextInChain
Definition webgpu.h:2688
WGPUSamplerBindingType type
Definition webgpu.h:2695
WGPUFilterMode minFilter
Definition webgpu.h:2751
WGPUAddressMode addressModeU
Definition webgpu.h:2723
WGPUCompareFunction compare
Definition webgpu.h:2778
WGPUAddressMode addressModeW
Definition webgpu.h:2737
uint16_t maxAnisotropy
Definition webgpu.h:2782
WGPUAddressMode addressModeV
Definition webgpu.h:2730
WGPUStringView label
Definition webgpu.h:2716
WGPUFilterMode magFilter
Definition webgpu.h:2744
WGPUChainedStruct * nextInChain
Definition webgpu.h:2710
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2758
WGPUChainedStruct * nextInChain
Definition webgpu.h:4199
WGPUStringView label
Definition webgpu.h:4205
WGPUChainedStruct chain
Definition webgpu.h:2807
uint32_t const * code
Definition webgpu.h:2815
WGPUChainedStruct chain
Definition webgpu.h:2834
WGPUStringView code
Definition webgpu.h:2840
WGPUCompareFunction compare
Definition webgpu.h:2864
WGPUStencilOperation depthFailOp
Definition webgpu.h:2878
WGPUStencilOperation passOp
Definition webgpu.h:2885
WGPUStencilOperation failOp
Definition webgpu.h:2871
WGPUChainedStruct * nextInChain
Definition webgpu.h:2902
WGPUTextureViewDimension viewDimension
Definition webgpu.h:2920
WGPUTextureFormat format
Definition webgpu.h:2913
WGPUStorageTextureAccess access
Definition webgpu.h:2909
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:2944
WGPUInstanceFeatureName const * features
Definition webgpu.h:2966
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:2988
WGPUTextureFormat const * formats
Definition webgpu.h:3022
WGPUChainedStruct * nextInChain
Definition webgpu.h:3005
WGPUPresentMode const * presentModes
Definition webgpu.h:3033
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3044
WGPUTextureUsage usages
Definition webgpu.h:3012
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3075
WGPUChainedStruct chain
Definition webgpu.h:3067
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3071
WGPUTextureUsage usage
Definition webgpu.h:3115
WGPUTextureFormat format
Definition webgpu.h:3109
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3137
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3147
WGPUChainedStruct * nextInChain
Definition webgpu.h:3097
WGPUPresentMode presentMode
Definition webgpu.h:3156
WGPUChainedStruct * nextInChain
Definition webgpu.h:4224
WGPUStringView label
Definition webgpu.h:4232
WGPUChainedStruct chain
Definition webgpu.h:3207
WGPUChainedStruct chain
Definition webgpu.h:3233
WGPUChainedStruct chain
Definition webgpu.h:3266
WGPUChainedStruct chain
Definition webgpu.h:3300
WGPUChainedStruct chain
Definition webgpu.h:3333
WGPUChainedStruct * nextInChain
Definition webgpu.h:3367
WGPUTexture texture
Definition webgpu.h:3374
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3380
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4250
WGPUOrigin3D origin
Definition webgpu.h:4280
WGPUTextureAspect aspect
Definition webgpu.h:4287
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3437
WGPUTextureSampleType sampleType
Definition webgpu.h:3430
WGPUChainedStruct * nextInChain
Definition webgpu.h:3423
WGPUChainedStruct chain
Definition webgpu.h:3462
WGPUTextureViewDimension textureBindingViewDimension
Definition webgpu.h:3466
WGPUTextureComponentSwizzle swizzle
Definition webgpu.h:4308
WGPUComponentSwizzle r
Definition webgpu.h:3497
WGPUComponentSwizzle a
Definition webgpu.h:3524
WGPUComponentSwizzle g
Definition webgpu.h:3506
WGPUComponentSwizzle b
Definition webgpu.h:3515
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4367
WGPUTextureDimension dimension
Definition webgpu.h:4343
WGPUStringView label
Definition webgpu.h:4332
uint32_t mipLevelCount
Definition webgpu.h:4355
WGPUChainedStruct * nextInChain
Definition webgpu.h:4326
WGPUTextureFormat format
Definition webgpu.h:4351
WGPUTextureUsage usage
Definition webgpu.h:4336
WGPUExtent3D size
Definition webgpu.h:4347
WGPUChainedStruct * nextInChain
Definition webgpu.h:4670
WGPUTextureUsage usage
Definition webgpu.h:4711
WGPUTextureFormat format
Definition webgpu.h:4680
WGPUTextureViewDimension dimension
Definition webgpu.h:4684
WGPUStringView label
Definition webgpu.h:4676
WGPUTextureAspect aspect
Definition webgpu.h:4707
WGPUChainedStruct * nextInChain
Definition webgpu.h:1755
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1756
WGPUVertexFormat format
Definition webgpu.h:3545
WGPUChainedStruct * nextInChain
Definition webgpu.h:3541
uint32_t shaderLocation
Definition webgpu.h:3553
WGPUVertexAttribute const * attributes
Definition webgpu.h:4419
WGPUVertexStepMode stepMode
Definition webgpu.h:4407
WGPUChainedStruct * nextInChain
Definition webgpu.h:4403
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4744
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4760
WGPUConstantEntry const * constants
Definition webgpu.h:4752
size_t constantCount
Definition webgpu.h:4748
size_t bufferCount
Definition webgpu.h:4756
WGPUChainedStruct * nextInChain
Definition webgpu.h:4734