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;
264struct WGPUConstantEntry;
265struct WGPUExtent3D;
268struct WGPUFuture;
269struct WGPUInstanceLimits;
270struct WGPULimits;
272struct WGPUOrigin3D;
275struct WGPUPrimitiveState;
301struct WGPUSurfaceTexture;
307struct WGPUBindGroupEntry;
309struct WGPUBlendState;
312struct WGPUComputeState;
315struct WGPUFutureWaitInfo;
331struct WGPUVertexState;
332struct WGPUFragmentState;
334
335// Callback info structure forward declarations
346
354typedef enum WGPUAdapterType {
359 WGPUAdapterType_Force32 = 0x7FFFFFFF
360} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
361
372
388
413
426
443
450
479
495
504
511
543
570
581
582typedef enum WGPUCullMode {
587 WGPUCullMode_None = 0x00000001,
588 WGPUCullMode_Front = 0x00000002,
589 WGPUCullMode_Back = 0x00000003,
590 WGPUCullMode_Force32 = 0x7FFFFFFF
591} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
592
603
604typedef enum WGPUErrorFilter {
608 WGPUErrorFilter_Force32 = 0x7FFFFFFF
609} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
610
611typedef enum WGPUErrorType {
617 WGPUErrorType_Force32 = 0x7FFFFFFF
618} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
619
623typedef enum WGPUFeatureLevel {
636 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
637} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
638
664
665typedef enum WGPUFilterMode {
672 WGPUFilterMode_Force32 = 0x7FFFFFFF
673} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
674
675typedef enum WGPUFrontFace {
680 WGPUFrontFace_CCW = 0x00000001,
681 WGPUFrontFace_CW = 0x00000002,
682 WGPUFrontFace_Force32 = 0x7FFFFFFF
683} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
684
685typedef enum WGPUIndexFormat {
692 WGPUIndexFormat_Force32 = 0x7FFFFFFF
693} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
694
714
715typedef enum WGPULoadOp {
720 WGPULoadOp_Load = 0x00000001,
721 WGPULoadOp_Clear = 0x00000002,
722 WGPULoadOp_Force32 = 0x7FFFFFFF
723} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
724
735
745
746typedef enum WGPUOptionalBool {
753 WGPUOptionalBool_Force32 = 0x7FFFFFFF
754} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
755
771
781
787
820
833
834typedef enum WGPUQueryType {
837 WGPUQueryType_Force32 = 0x7FFFFFFF
838} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
839
853
864
874
891
897typedef enum WGPUStatus {
898 WGPUStatus_Success = 0x00000001,
899 WGPUStatus_Error = 0x00000002,
900 WGPUStatus_Force32 = 0x7FFFFFFF
901} WGPUStatus WGPU_ENUM_ATTRIBUTE;
902
918
935
936typedef enum WGPUStoreOp {
941 WGPUStoreOp_Store = 0x00000001,
943 WGPUStoreOp_Force32 = 0x7FFFFFFF
944} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
945
963
994
1005
1016
1017typedef enum WGPUTextureFormat {
1123 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1124} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1125
1144
1158
1164
1165typedef enum WGPUVertexFormat {
1207 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1208} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1209
1219
1223typedef enum WGPUWaitStatus {
1237 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1238} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1239
1252
1269static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1273static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1279static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1283static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1287static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1291static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1295static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1299static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1303static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1307static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1311static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1312
1320static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1321static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1322static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1323static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1324static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1328static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1329
1337static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1338static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1339static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1340
1348static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1349static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1350static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1351static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1352
1360static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1361static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1362static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1363static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1364static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1365static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1367
1370typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1371
1385typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1386
1395typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1396
1403typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1404
1411typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1412
1430typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1431
1449typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1450
1463typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1464
1474typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1475
1485typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1486
1496typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1497
1506typedef struct WGPUChainedStruct {
1509} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1510
1540
1544#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1545 /*.nextInChain=*/NULL _wgpu_COMMA \
1546 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1547 /*.callback=*/NULL _wgpu_COMMA \
1548 /*.userdata1=*/NULL _wgpu_COMMA \
1549 /*.userdata2=*/NULL _wgpu_COMMA \
1550})
1551
1564
1568#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1569 /*.nextInChain=*/NULL _wgpu_COMMA \
1570 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1571 /*.callback=*/NULL _wgpu_COMMA \
1572 /*.userdata1=*/NULL _wgpu_COMMA \
1573 /*.userdata2=*/NULL _wgpu_COMMA \
1574})
1575
1588
1592#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1593 /*.nextInChain=*/NULL _wgpu_COMMA \
1594 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1595 /*.callback=*/NULL _wgpu_COMMA \
1596 /*.userdata1=*/NULL _wgpu_COMMA \
1597 /*.userdata2=*/NULL _wgpu_COMMA \
1598})
1599
1612
1616#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1617 /*.nextInChain=*/NULL _wgpu_COMMA \
1618 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1619 /*.callback=*/NULL _wgpu_COMMA \
1620 /*.userdata1=*/NULL _wgpu_COMMA \
1621 /*.userdata2=*/NULL _wgpu_COMMA \
1622})
1623
1636
1640#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1641 /*.nextInChain=*/NULL _wgpu_COMMA \
1642 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1643 /*.callback=*/NULL _wgpu_COMMA \
1644 /*.userdata1=*/NULL _wgpu_COMMA \
1645 /*.userdata2=*/NULL _wgpu_COMMA \
1646})
1647
1660
1664#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1665 /*.nextInChain=*/NULL _wgpu_COMMA \
1666 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1667 /*.callback=*/NULL _wgpu_COMMA \
1668 /*.userdata1=*/NULL _wgpu_COMMA \
1669 /*.userdata2=*/NULL _wgpu_COMMA \
1670})
1671
1684
1688#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1689 /*.nextInChain=*/NULL _wgpu_COMMA \
1690 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1691 /*.callback=*/NULL _wgpu_COMMA \
1692 /*.userdata1=*/NULL _wgpu_COMMA \
1693 /*.userdata2=*/NULL _wgpu_COMMA \
1694})
1695
1708
1712#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1713 /*.nextInChain=*/NULL _wgpu_COMMA \
1714 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1715 /*.callback=*/NULL _wgpu_COMMA \
1716 /*.userdata1=*/NULL _wgpu_COMMA \
1717 /*.userdata2=*/NULL _wgpu_COMMA \
1718})
1719
1732
1736#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1737 /*.nextInChain=*/NULL _wgpu_COMMA \
1738 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1739 /*.callback=*/NULL _wgpu_COMMA \
1740 /*.userdata1=*/NULL _wgpu_COMMA \
1741 /*.userdata2=*/NULL _wgpu_COMMA \
1742})
1743
1750
1754#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1755 /*.nextInChain=*/NULL _wgpu_COMMA \
1756 /*.callback=*/NULL _wgpu_COMMA \
1757 /*.userdata1=*/NULL _wgpu_COMMA \
1758 /*.userdata2=*/NULL _wgpu_COMMA \
1759})
1760
1817
1821#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1822 /*.nextInChain=*/NULL _wgpu_COMMA \
1823 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1824 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1825 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1826 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1827 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1828 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1829 /*.vendorID=*/0 _wgpu_COMMA \
1830 /*.deviceID=*/0 _wgpu_COMMA \
1831 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1832 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1833})
1834
1861
1865#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1866 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1867 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1868 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1869})
1870
1892
1896#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1897 /*.nextInChain=*/NULL _wgpu_COMMA \
1898 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1899 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1900 /*.minBindingSize=*/0 _wgpu_COMMA \
1901})
1902
1931
1935#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1936 /*.nextInChain=*/NULL _wgpu_COMMA \
1937 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1938 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1939 /*.size=*/0 _wgpu_COMMA \
1940 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1941})
1942
1950typedef struct WGPUColor {
1954 double r;
1958 double g;
1962 double b;
1966 double a;
1967} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1968
1972#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1973 /*.r=*/0. _wgpu_COMMA \
1974 /*.g=*/0. _wgpu_COMMA \
1975 /*.b=*/0. _wgpu_COMMA \
1976 /*.a=*/0. _wgpu_COMMA \
1977})
1978
1991
1995#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
1996 /*.nextInChain=*/NULL _wgpu_COMMA \
1997 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1998})
1999
2012
2016#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2017 /*.nextInChain=*/NULL _wgpu_COMMA \
2018 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2019})
2020
2068
2072#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2073 /*.nextInChain=*/NULL _wgpu_COMMA \
2074 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2075 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2076 /*.lineNum=*/0 _wgpu_COMMA \
2077 /*.linePos=*/0 _wgpu_COMMA \
2078 /*.offset=*/0 _wgpu_COMMA \
2079 /*.length=*/0 _wgpu_COMMA \
2080})
2081
2102
2106#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2107 /*.nextInChain=*/NULL _wgpu_COMMA \
2108 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2109 /*.value=*/0. _wgpu_COMMA \
2110})
2111
2115typedef struct WGPUExtent3D {
2119 uint32_t width;
2123 uint32_t height;
2128} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2129
2133#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2134 /*.width=*/0 _wgpu_COMMA \
2135 /*.height=*/1 _wgpu_COMMA \
2136 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2137})
2138
2151
2155#define WGPU_EXTERNAL_TEXTURE_BINDING_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingEntry, { \
2156 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2157 /*.next=*/NULL _wgpu_COMMA \
2158 /*.sType=*/WGPUSType_ExternalTextureBindingEntry _wgpu_COMMA \
2159 }) _wgpu_COMMA \
2160 /*.externalTexture=*/NULL _wgpu_COMMA \
2161})
2162
2171
2175#define WGPU_EXTERNAL_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExternalTextureBindingLayout, { \
2176 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2177 /*.next=*/NULL _wgpu_COMMA \
2178 /*.sType=*/WGPUSType_ExternalTextureBindingLayout _wgpu_COMMA \
2179 }) _wgpu_COMMA \
2180})
2181
2187typedef struct WGPUFuture {
2193 uint64_t id;
2194} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2195
2199#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2200 /*.id=*/0 _wgpu_COMMA \
2201})
2202
2215
2219#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2220 /*.nextInChain=*/NULL _wgpu_COMMA \
2221 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2222})
2223
2358
2362#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2363 /*.nextInChain=*/NULL _wgpu_COMMA \
2364 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2365 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2366 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2367 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2368 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2369 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2370 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2371 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2372 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2373 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2374 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2375 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2376 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2377 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2378 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2379 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2380 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2381 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2382 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2383 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2384 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2385 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2386 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2387 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2388 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2389 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2390 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2391 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2392 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2393 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2394 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2395 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2396})
2397
2416
2420#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2421 /*.nextInChain=*/NULL _wgpu_COMMA \
2422 /*.count=*/1 _wgpu_COMMA \
2423 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2424 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2425})
2426
2430typedef struct WGPUOrigin3D {
2434 uint32_t x;
2438 uint32_t y;
2442 uint32_t z;
2443} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2444
2448#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2449 /*.x=*/0 _wgpu_COMMA \
2450 /*.y=*/0 _wgpu_COMMA \
2451 /*.z=*/0 _wgpu_COMMA \
2452})
2453
2474
2478#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2479 /*.nextInChain=*/NULL _wgpu_COMMA \
2480 /*.querySet=*/NULL _wgpu_COMMA \
2481 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2482 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2483})
2484
2509
2513#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2514 /*.nextInChain=*/NULL _wgpu_COMMA \
2515 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2516 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2517 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2518 /*.immediateSize=*/0 _wgpu_COMMA \
2519})
2520
2556
2560#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2561 /*.nextInChain=*/NULL _wgpu_COMMA \
2562 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2563 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2564 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2565 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2566 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2567})
2568
2589
2593#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2594 /*.nextInChain=*/NULL _wgpu_COMMA \
2595 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2596 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2597 /*.count=*/0 _wgpu_COMMA \
2598})
2599
2612
2616#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2617 /*.nextInChain=*/NULL _wgpu_COMMA \
2618 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2619})
2620
2633
2637#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2638 /*.nextInChain=*/NULL _wgpu_COMMA \
2639 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2640})
2641
2678
2682#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2683 /*.nextInChain=*/NULL _wgpu_COMMA \
2684 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2685 /*.colorFormatCount=*/0 _wgpu_COMMA \
2686 /*.colorFormats=*/NULL _wgpu_COMMA \
2687 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2688 /*.sampleCount=*/1 _wgpu_COMMA \
2689 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2690 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2691})
2692
2742
2746#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2747 /*.nextInChain=*/NULL _wgpu_COMMA \
2748 /*.view=*/NULL _wgpu_COMMA \
2749 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2750 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2751 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2752 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2753 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2754 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2755 /*.stencilClearValue=*/0 _wgpu_COMMA \
2756 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2757})
2758
2769
2773#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2774 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2775 /*.next=*/NULL _wgpu_COMMA \
2776 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2777 }) _wgpu_COMMA \
2778 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2779})
2780
2795
2799#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2800 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2801 /*.next=*/NULL _wgpu_COMMA \
2802 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2803 }) _wgpu_COMMA \
2804 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2805})
2806
2820
2824#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2825 /*.nextInChain=*/NULL _wgpu_COMMA \
2826 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2827})
2828
2907
2911#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2912 /*.nextInChain=*/NULL _wgpu_COMMA \
2913 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2914 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2915 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2916 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2917 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2918 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2919 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2920 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2921 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2922 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2923 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2924})
2925
2934 uint32_t codeSize;
2938 uint32_t const * code;
2939} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2940
2944#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2945 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2946 /*.next=*/NULL _wgpu_COMMA \
2947 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2948 }) _wgpu_COMMA \
2949 /*.codeSize=*/0 _wgpu_COMMA \
2950 /*.code=*/NULL _wgpu_COMMA \
2951})
2952
2965
2969#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2970 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2971 /*.next=*/NULL _wgpu_COMMA \
2972 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2973 }) _wgpu_COMMA \
2974 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2975})
2976
3010
3014#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
3015 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3016 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3017 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3018 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
3019})
3020
3045
3049#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3050 /*.nextInChain=*/NULL _wgpu_COMMA \
3051 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3052 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3053 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3054})
3055
3068} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3069
3073#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3074 /*.featureCount=*/0 _wgpu_COMMA \
3075 /*.features=*/NULL _wgpu_COMMA \
3076})
3077
3091
3095#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
3096 /*.featureCount=*/0 _wgpu_COMMA \
3097 /*.features=*/NULL _wgpu_COMMA \
3098})
3099
3113
3117#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3118 /*.featureCount=*/0 _wgpu_COMMA \
3119 /*.features=*/NULL _wgpu_COMMA \
3120})
3121
3169
3173#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3174 /*.nextInChain=*/NULL _wgpu_COMMA \
3175 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3176 /*.formatCount=*/0 _wgpu_COMMA \
3177 /*.formats=*/NULL _wgpu_COMMA \
3178 /*.presentModeCount=*/0 _wgpu_COMMA \
3179 /*.presentModes=*/NULL _wgpu_COMMA \
3180 /*.alphaModeCount=*/0 _wgpu_COMMA \
3181 /*.alphaModes=*/NULL _wgpu_COMMA \
3182})
3183
3200
3204#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3205 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3206 /*.next=*/NULL _wgpu_COMMA \
3207 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3208 }) _wgpu_COMMA \
3209 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3210 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3211})
3212
3281
3285#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3286 /*.nextInChain=*/NULL _wgpu_COMMA \
3287 /*.device=*/NULL _wgpu_COMMA \
3288 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3289 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3290 /*.width=*/0 _wgpu_COMMA \
3291 /*.height=*/0 _wgpu_COMMA \
3292 /*.viewFormatCount=*/0 _wgpu_COMMA \
3293 /*.viewFormats=*/NULL _wgpu_COMMA \
3294 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3295 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3296})
3297
3312
3316#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3317 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3318 /*.next=*/NULL _wgpu_COMMA \
3319 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3320 }) _wgpu_COMMA \
3321 /*.window=*/NULL _wgpu_COMMA \
3322})
3323
3338
3342#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3343 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3344 /*.next=*/NULL _wgpu_COMMA \
3345 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3346 }) _wgpu_COMMA \
3347 /*.layer=*/NULL _wgpu_COMMA \
3348})
3349
3370
3374#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3375 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3376 /*.next=*/NULL _wgpu_COMMA \
3377 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3378 }) _wgpu_COMMA \
3379 /*.display=*/NULL _wgpu_COMMA \
3380 /*.surface=*/NULL _wgpu_COMMA \
3381})
3382
3404
3408#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3409 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3410 /*.next=*/NULL _wgpu_COMMA \
3411 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3412 }) _wgpu_COMMA \
3413 /*.hinstance=*/NULL _wgpu_COMMA \
3414 /*.hwnd=*/NULL _wgpu_COMMA \
3415})
3416
3437
3441#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3442 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3443 /*.next=*/NULL _wgpu_COMMA \
3444 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3445 }) _wgpu_COMMA \
3446 /*.connection=*/NULL _wgpu_COMMA \
3447 /*.window=*/0 _wgpu_COMMA \
3448})
3449
3470
3474#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3475 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3476 /*.next=*/NULL _wgpu_COMMA \
3477 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3478 }) _wgpu_COMMA \
3479 /*.display=*/NULL _wgpu_COMMA \
3480 /*.window=*/0 _wgpu_COMMA \
3481})
3482
3505
3509#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3510 /*.nextInChain=*/NULL _wgpu_COMMA \
3511 /*.texture=*/NULL _wgpu_COMMA \
3512 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3513})
3514
3522 uint64_t offset;
3526 uint32_t bytesPerRow;
3531} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3532
3536#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3537 /*.offset=*/0 _wgpu_COMMA \
3538 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3539 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3540})
3541
3566
3570#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3571 /*.nextInChain=*/NULL _wgpu_COMMA \
3572 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3573 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3574 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3575})
3576
3623
3627#define WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzle, { \
3628 /*.r=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3629 /*.g=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3630 /*.b=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3631 /*.a=*/WGPUComponentSwizzle_Undefined _wgpu_COMMA \
3632})
3633
3681
3685#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3686 /*.nextInChain=*/NULL _wgpu_COMMA \
3687 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3688 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3689 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3690 /*.baseMipLevel=*/0 _wgpu_COMMA \
3691 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3692 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3693 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3694 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3695 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3696})
3697
3716
3720#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3721 /*.nextInChain=*/NULL _wgpu_COMMA \
3722 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3723 /*.offset=*/0 _wgpu_COMMA \
3724 /*.shaderLocation=*/0 _wgpu_COMMA \
3725})
3726
3730typedef struct WGPUBindGroupEntry {
3737 uint32_t binding;
3744 WGPU_NULLABLE WGPUBuffer buffer;
3751 uint64_t offset;
3759 uint64_t size;
3766 WGPU_NULLABLE WGPUSampler sampler;
3774} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
3775
3779#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
3780 /*.nextInChain=*/NULL _wgpu_COMMA \
3781 /*.binding=*/0 _wgpu_COMMA \
3782 /*.buffer=*/NULL _wgpu_COMMA \
3783 /*.offset=*/0 _wgpu_COMMA \
3784 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
3785 /*.sampler=*/NULL _wgpu_COMMA \
3786 /*.textureView=*/NULL _wgpu_COMMA \
3787})
3788
3825
3829#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3830 /*.nextInChain=*/NULL _wgpu_COMMA \
3831 /*.binding=*/0 _wgpu_COMMA \
3832 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3833 /*.bindingArraySize=*/0 _wgpu_COMMA \
3834 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3835 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3836 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3837 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3838})
3839
3853
3857#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3858 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3859 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3860})
3861
3879
3883#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3884 /*.nextInChain=*/NULL _wgpu_COMMA \
3885 /*.messageCount=*/0 _wgpu_COMMA \
3886 /*.messages=*/NULL _wgpu_COMMA \
3887})
3888
3905
3909#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3910 /*.nextInChain=*/NULL _wgpu_COMMA \
3911 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3912 /*.timestampWrites=*/NULL _wgpu_COMMA \
3913})
3914
3939
3943#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3944 /*.nextInChain=*/NULL _wgpu_COMMA \
3945 /*.module=*/NULL _wgpu_COMMA \
3946 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3947 /*.constantCount=*/0 _wgpu_COMMA \
3948 /*.constants=*/NULL _wgpu_COMMA \
3949})
3950
4005
4009#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
4010 /*.nextInChain=*/NULL _wgpu_COMMA \
4011 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4012 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
4013 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
4014 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
4015 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
4016 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
4017 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
4018 /*.depthBias=*/0 _wgpu_COMMA \
4019 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
4020 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
4021})
4022
4064
4068#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
4069 /*.nextInChain=*/NULL _wgpu_COMMA \
4070 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4071 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4072 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4073 /*.requiredLimits=*/NULL _wgpu_COMMA \
4074 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
4075 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
4076 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
4077})
4078
4098
4102#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
4103 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
4104 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
4105})
4106
4125
4129#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4130 /*.nextInChain=*/NULL _wgpu_COMMA \
4131 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4132 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4133 /*.requiredLimits=*/NULL _wgpu_COMMA \
4134})
4135
4169
4173#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4174 /*.nextInChain=*/NULL _wgpu_COMMA \
4175 /*.view=*/NULL _wgpu_COMMA \
4176 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4177 /*.resolveTarget=*/NULL _wgpu_COMMA \
4178 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4179 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4180 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4181})
4182
4225
4229#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4230 /*.nextInChain=*/NULL _wgpu_COMMA \
4231 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4232 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4233 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4234 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4235 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4236})
4237
4250
4254#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4255 /*.nextInChain=*/NULL _wgpu_COMMA \
4256 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4257})
4258
4277
4281#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4282 /*.nextInChain=*/NULL _wgpu_COMMA \
4283 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4284})
4285
4299
4303#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4304 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4305 /*.buffer=*/NULL _wgpu_COMMA \
4306})
4307
4332
4336#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4337 /*.texture=*/NULL _wgpu_COMMA \
4338 /*.mipLevel=*/0 _wgpu_COMMA \
4339 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4340 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4341})
4342
4353
4357#define WGPU_TEXTURE_COMPONENT_SWIZZLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureComponentSwizzleDescriptor, { \
4358 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
4359 /*.next=*/NULL _wgpu_COMMA \
4360 /*.sType=*/WGPUSType_TextureComponentSwizzleDescriptor _wgpu_COMMA \
4361 }) _wgpu_COMMA \
4362 /*.swizzle=*/WGPU_TEXTURE_COMPONENT_SWIZZLE_INIT _wgpu_COMMA \
4363})
4364
4412
4416#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4417 /*.nextInChain=*/NULL _wgpu_COMMA \
4418 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4419 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4420 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4421 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4422 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4423 /*.mipLevelCount=*/1 _wgpu_COMMA \
4424 /*.sampleCount=*/1 _wgpu_COMMA \
4425 /*.viewFormatCount=*/0 _wgpu_COMMA \
4426 /*.viewFormats=*/NULL _wgpu_COMMA \
4427})
4428
4464
4468#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4469 /*.nextInChain=*/NULL _wgpu_COMMA \
4470 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4471 /*.arrayStride=*/0 _wgpu_COMMA \
4472 /*.attributeCount=*/0 _wgpu_COMMA \
4473 /*.attributes=*/NULL _wgpu_COMMA \
4474})
4475
4500
4504#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
4505 /*.nextInChain=*/NULL _wgpu_COMMA \
4506 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4507 /*.layout=*/NULL _wgpu_COMMA \
4508 /*.entryCount=*/0 _wgpu_COMMA \
4509 /*.entries=*/NULL _wgpu_COMMA \
4510})
4511
4532
4536#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4537 /*.nextInChain=*/NULL _wgpu_COMMA \
4538 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4539 /*.entryCount=*/0 _wgpu_COMMA \
4540 /*.entries=*/NULL _wgpu_COMMA \
4541})
4542
4565
4569#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4570 /*.nextInChain=*/NULL _wgpu_COMMA \
4571 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4572 /*.blend=*/NULL _wgpu_COMMA \
4573 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4574})
4575
4596
4600#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4601 /*.nextInChain=*/NULL _wgpu_COMMA \
4602 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4603 /*.layout=*/NULL _wgpu_COMMA \
4604 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4605})
4606
4639
4643#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4644 /*.nextInChain=*/NULL _wgpu_COMMA \
4645 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4646 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4647 /*.colorAttachments=*/NULL _wgpu_COMMA \
4648 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4649 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4650 /*.timestampWrites=*/NULL _wgpu_COMMA \
4651})
4652
4685
4689#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4690 /*.nextInChain=*/NULL _wgpu_COMMA \
4691 /*.module=*/NULL _wgpu_COMMA \
4692 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4693 /*.constantCount=*/0 _wgpu_COMMA \
4694 /*.constants=*/NULL _wgpu_COMMA \
4695 /*.bufferCount=*/0 _wgpu_COMMA \
4696 /*.buffers=*/NULL _wgpu_COMMA \
4697})
4698
4731
4735#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4736 /*.nextInChain=*/NULL _wgpu_COMMA \
4737 /*.module=*/NULL _wgpu_COMMA \
4738 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4739 /*.constantCount=*/0 _wgpu_COMMA \
4740 /*.constants=*/NULL _wgpu_COMMA \
4741 /*.targetCount=*/0 _wgpu_COMMA \
4742 /*.targets=*/NULL _wgpu_COMMA \
4743})
4744
4781
4785#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4786 /*.nextInChain=*/NULL _wgpu_COMMA \
4787 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4788 /*.layout=*/NULL _wgpu_COMMA \
4789 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4790 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4791 /*.depthStencil=*/NULL _wgpu_COMMA \
4792 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4793 /*.fragment=*/NULL _wgpu_COMMA \
4794})
4795
4798#ifdef __cplusplus
4799extern "C" {
4800#endif
4801
4802#if !defined(WGPU_SKIP_PROCS)
4803// Global procs
4808typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4813typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4818typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4823typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4828typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4829
4830
4831// Procs of Adapter
4836typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4841typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4846typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4851typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4856typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4861typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4866typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4867
4868// Procs of AdapterInfo
4873typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4874
4875// Procs of BindGroup
4880typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4885typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4890typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4891
4892// Procs of BindGroupLayout
4897typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4902typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4907typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4908
4909// Procs of Buffer
4914typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4919typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4924typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4929typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4934typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4939typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4944typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4949typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4954typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4959typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4964typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4969typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4974typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4975
4976// Procs of CommandBuffer
4981typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4986typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4991typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4992
4993// Procs of CommandEncoder
4998typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5003typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5008typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5013typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5018typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5023typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5028typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5033typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5038typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5043typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5048typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5053typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5058typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5063typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5068typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5073typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5074
5075// Procs of ComputePassEncoder
5080typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5085typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5090typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5095typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5100typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5105typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5110typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5115typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5120typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5125typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5130typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5131
5132// Procs of ComputePipeline
5137typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5142typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5147typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5152typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5153
5154// Procs of Device
5159typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5164typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5169typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5174typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5179typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5184typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5189typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5194typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5199typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5204typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5209typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5214typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5219typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5224typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5229typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5234typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5239typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5244typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5249typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5254typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5259typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5264typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5269typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5274typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5279typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5284typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5285
5286// Procs of ExternalTexture
5291typedef void (*WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5296typedef void (*WGPUProcExternalTextureAddRef)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5301typedef void (*WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
5302
5303// Procs of Instance
5308typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5313typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5318typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5323typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5328typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5333typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5338typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5343typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5344
5345// Procs of PipelineLayout
5350typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5355typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5360typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5361
5362// Procs of QuerySet
5367typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5372typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5377typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5382typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5387typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5392typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5393
5394// Procs of Queue
5399typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5404typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5409typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5414typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5419typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5424typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5429typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5430
5431// Procs of RenderBundle
5436typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5441typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5446typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5447
5448// Procs of RenderBundleEncoder
5453typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5458typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5463typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5468typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5473typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5478typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5483typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5488typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5493typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5498typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5503typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5508typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5513typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5518typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5523typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5524
5525// Procs of RenderPassEncoder
5530typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5535typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5540typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5545typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5550typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5555typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5560typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5565typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5570typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5575typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5580typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5585typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5590typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5595typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5600typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5605typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5610typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5615typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5620typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5625typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5630typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5635typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5636
5637// Procs of RenderPipeline
5642typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5647typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5652typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5657typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5658
5659// Procs of Sampler
5664typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5669typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5674typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5675
5676// Procs of ShaderModule
5681typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5686typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5691typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5696typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5697
5698// Procs of SupportedFeatures
5703typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5704
5705// Procs of SupportedInstanceFeatures
5710typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5711
5712// Procs of SupportedWGSLLanguageFeatures
5717typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5718
5719// Procs of Surface
5724typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5729typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5734typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5739typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5744typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5749typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5754typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5759typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5760
5761// Procs of SurfaceCapabilities
5766typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5767
5768// Procs of Texture
5773typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5778typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5783typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5788typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5793typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5798typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5803typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5808typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5813typedef WGPUTextureViewDimension (*WGPUProcTextureGetTextureBindingViewDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5818typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5823typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5828typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5833typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5838typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5839
5840// Procs of TextureView
5845typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5850typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5855typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5856
5857#endif // !defined(WGPU_SKIP_PROCS)
5858
5859#if !defined(WGPU_SKIP_DECLARATIONS)
5872WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5879WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5886WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5890WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5895WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5896
5918WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5926WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5931WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5932WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5933WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5934WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5935WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5936
5948WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5949
5958WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5959WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5960WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5961
5970WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5971WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5972WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5973
5982WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6000WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6017WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6018WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6019WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6020WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6032WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6053WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6054WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6055WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6076WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6077WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6078WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
6079
6088WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6089WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6090WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
6091
6104WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6109WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6110WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6111WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6112WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6113WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6114WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
6119WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6120WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6121WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6122WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6123WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
6124WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6125WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6126WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6127WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
6128
6137WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
6138WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6139WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6140WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6141WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6142WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6143WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6144WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6145WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6146WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6147WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6148
6161WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6162WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6163WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6164WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
6165
6178WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6183WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6193WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6198WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6203WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6209WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6214WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6224WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6230WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6235WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6241WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6249WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6256WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6261WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6266WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6271WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6272WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6277WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6282WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6283WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6284WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6285WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6286
6295WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6296WGPU_EXPORT void wgpuExternalTextureAddRef(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6297WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
6298
6317WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6321WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6322WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6328WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6329WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6335WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6336WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6337WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6338
6347WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6348WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6349WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6350
6359WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6360WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6361WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6362WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6363WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6364WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6365
6374WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6375WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6376WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6381WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6382WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6383WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6384WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6385
6394WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6395WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6396WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6397
6406WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6407WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6408WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6409WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6414WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6415WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6416WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6417WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6418WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6419WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6420WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6421WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6422WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6423WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6424WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6425
6434WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6435WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6436WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6437WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6438WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6439WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6440WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6441WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6442WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6443WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6444WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6445WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6450WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6451WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6452WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6453WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6454WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6455WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6456WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6462WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6463WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6464WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6465
6478WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6479WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6480WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6481WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6482
6491WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6492WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6493WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6494
6503WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6504WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6505WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6506WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6507
6519WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6520
6532WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6533
6545WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6546
6564WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6580WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6590WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6598WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6605WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6610WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6611WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6612WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6613
6625WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6626
6639WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6640WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6641WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6642WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6643WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6644WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6645WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6646WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6648WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6649WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6650WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6651WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6652WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6653
6662WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6663WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6664WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6665
6670#endif // !defined(WGPU_SKIP_DECLARATIONS)
6671
6672#ifdef __cplusplus
6673} // extern "C"
6674#endif
6675
6676#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1323
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1307
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1316
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1303
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1324
static const WGPUTextureUsage WGPUTextureUsage_TransientAttachment
Definition webgpu.h:1366
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1273
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1291
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1269
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1337
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1360
WGPUFlags WGPUMapMode
Definition webgpu.h:1333
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1363
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1328
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1361
WGPUFlags WGPUShaderStage
Definition webgpu.h:1344
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1311
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1350
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1351
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1339
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1348
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1365
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1279
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1362
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1283
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1364
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1356
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1299
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1338
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1322
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1295
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1349
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1320
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1321
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1265
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1287
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1496
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1485
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1403
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1430
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1411
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1395
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1474
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1385
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1463
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1449
WGPUIndexFormat
Definition webgpu.h:685
WGPURequestAdapterStatus
Definition webgpu.h:854
WGPUFeatureName
Definition webgpu.h:639
WGPUVertexFormat
Definition webgpu.h:1165
WGPUSType
Definition webgpu.h:946
WGPUBufferBindingType
Definition webgpu.h:427
WGPUDeviceLostReason
Definition webgpu.h:593
WGPUCompareFunction
Definition webgpu.h:480
WGPUCullMode
Definition webgpu.h:582
WGPUTextureDimension
Definition webgpu.h:1006
WGPURequestDeviceStatus
Definition webgpu.h:865
WGPUCompilationMessageType
Definition webgpu.h:505
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:571
WGPUTextureViewDimension
Definition webgpu.h:1145
WGPUPrimitiveTopology
Definition webgpu.h:821
WGPUTextureFormat
Definition webgpu.h:1017
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1240
WGPUStencilOperation
Definition webgpu.h:903
WGPUAddressMode
Definition webgpu.h:362
WGPUToneMappingMode
Definition webgpu.h:1159
WGPUTextureAspect
Definition webgpu.h:995
WGPUBufferMapState
Definition webgpu.h:444
WGPUFilterMode
Definition webgpu.h:665
WGPUBackendType
Definition webgpu.h:373
WGPUBlendFactor
Definition webgpu.h:389
WGPUSamplerBindingType
Definition webgpu.h:875
WGPULoadOp
Definition webgpu.h:715
WGPUPopErrorScopeStatus
Definition webgpu.h:756
WGPUWaitStatus
Definition webgpu.h:1223
WGPUStorageTextureAccess
Definition webgpu.h:919
WGPUPowerPreference
Definition webgpu.h:772
WGPUPresentMode
Definition webgpu.h:791
WGPUMapAsyncStatus
Definition webgpu.h:725
WGPUBlendOperation
Definition webgpu.h:414
WGPUCompositeAlphaMode
Definition webgpu.h:547
WGPUPredefinedColorSpace
Definition webgpu.h:782
WGPUQueueWorkDoneStatus
Definition webgpu.h:840
WGPUComponentSwizzle
Definition webgpu.h:512
WGPUVertexStepMode
Definition webgpu.h:1210
WGPUQueryType
Definition webgpu.h:834
WGPUFeatureLevel
Definition webgpu.h:623
WGPUAdapterType
Definition webgpu.h:354
WGPUInstanceFeatureName
Definition webgpu.h:695
WGPUStatus
Definition webgpu.h:897
WGPUCompilationInfoRequestStatus
Definition webgpu.h:496
WGPUMipmapFilterMode
Definition webgpu.h:736
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:967
WGPUFrontFace
Definition webgpu.h:675
WGPUStoreOp
Definition webgpu.h:936
WGPUErrorFilter
Definition webgpu.h:604
WGPUOptionalBool
Definition webgpu.h:746
WGPUCallbackMode
Definition webgpu.h:454
WGPUTextureSampleType
Definition webgpu.h:1126
WGPUErrorType
Definition webgpu.h:611
@ WGPUIndexFormat_Force32
Definition webgpu.h:692
@ WGPUIndexFormat_Uint16
Definition webgpu.h:690
@ WGPUIndexFormat_Undefined
Definition webgpu.h:689
@ WGPUIndexFormat_Uint32
Definition webgpu.h:691
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:860
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:855
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:861
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:859
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:862
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:646
@ WGPUFeatureName_Subgroups
Definition webgpu.h:657
@ WGPUFeatureName_Force32
Definition webgpu.h:662
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:655
@ WGPUFeatureName_PrimitiveIndex
Definition webgpu.h:660
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:642
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:651
@ WGPUFeatureName_TextureFormatsTier1
Definition webgpu.h:658
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:652
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:654
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:656
@ WGPUFeatureName_TextureComponentSwizzle
Definition webgpu.h:661
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:647
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:644
@ WGPUFeatureName_CoreFeaturesAndLimits
Definition webgpu.h:640
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:650
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:653
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:648
@ WGPUFeatureName_TextureFormatsTier2
Definition webgpu.h:659
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:643
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:645
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:649
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:641
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1204
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1194
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1202
@ WGPUVertexFormat_Float32
Definition webgpu.h:1193
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1192
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1180
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1176
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1168
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1170
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1172
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1174
@ WGPUVertexFormat_Force32
Definition webgpu.h:1207
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1167
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1196
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1191
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1197
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1175
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1169
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1200
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1206
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1201
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1178
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1198
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1199
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1187
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1183
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1205
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1185
@ WGPUVertexFormat_Float16
Definition webgpu.h:1190
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1173
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1203
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1182
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1177
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1166
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1171
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1184
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1181
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1179
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1188
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1186
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1195
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1189
@ WGPUSType_Force32
Definition webgpu.h:961
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:953
@ WGPUSType_TextureComponentSwizzleDescriptor
Definition webgpu.h:958
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:947
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:956
@ WGPUSType_ExternalTextureBindingEntry
Definition webgpu.h:960
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:954
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:955
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:951
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:949
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:950
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:957
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:948
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:952
@ WGPUSType_ExternalTextureBindingLayout
Definition webgpu.h:959
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:433
@ WGPUBufferBindingType_Storage
Definition webgpu.h:439
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:437
@ WGPUBufferBindingType_Force32
Definition webgpu.h:441
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:440
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:438
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:600
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:595
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:599
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:601
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:594
@ WGPUCompareFunction_Force32
Definition webgpu.h:493
@ WGPUCompareFunction_Always
Definition webgpu.h:492
@ WGPUCompareFunction_Never
Definition webgpu.h:485
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:490
@ WGPUCompareFunction_Less
Definition webgpu.h:486
@ WGPUCompareFunction_Undefined
Definition webgpu.h:484
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:491
@ WGPUCompareFunction_Equal
Definition webgpu.h:487
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:488
@ WGPUCompareFunction_Greater
Definition webgpu.h:489
@ WGPUCullMode_Force32
Definition webgpu.h:590
@ WGPUCullMode_Undefined
Definition webgpu.h:586
@ WGPUCullMode_Back
Definition webgpu.h:589
@ WGPUCullMode_Front
Definition webgpu.h:588
@ WGPUCullMode_None
Definition webgpu.h:587
@ WGPUTextureDimension_Undefined
Definition webgpu.h:1010
@ WGPUTextureDimension_2D
Definition webgpu.h:1012
@ WGPUTextureDimension_Force32
Definition webgpu.h:1014
@ WGPUTextureDimension_3D
Definition webgpu.h:1013
@ WGPUTextureDimension_1D
Definition webgpu.h:1011
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:870
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:866
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:871
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:872
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:509
@ WGPUCompilationMessageType_Info
Definition webgpu.h:508
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:507
@ WGPUCompilationMessageType_Error
Definition webgpu.h:506
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:579
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:577
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:576
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:572
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:578
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1153
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1152
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1151
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1155
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1150
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1154
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1149
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1156
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:827
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:828
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:825
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:829
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:826
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:830
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:831
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1119
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1080
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1083
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:1043
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:1031
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1085
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1095
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1088
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1092
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1078
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:1045
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1113
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:1049
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1103
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1087
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1115
@ WGPUTextureFormat_RG16Unorm
Definition webgpu.h:1038
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1109
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1062
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1081
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1056
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1061
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1117
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1070
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:1032
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1120
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1067
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:1041
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1093
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1086
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1082
@ WGPUTextureFormat_R32Float
Definition webgpu.h:1035
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1084
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:1029
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:1025
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:1044
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1076
@ WGPUTextureFormat_RGBA16Unorm
Definition webgpu.h:1057
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:1046
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1094
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1059
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1118
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:1051
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1112
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1099
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:1036
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1090
@ WGPUTextureFormat_RG16Snorm
Definition webgpu.h:1039
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1097
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1075
@ WGPUTextureFormat_R16Unorm
Definition webgpu.h:1026
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:1048
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1077
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1079
@ WGPUTextureFormat_Force32
Definition webgpu.h:1123
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1071
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1100
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1108
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:1037
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1074
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1063
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1065
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1091
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1104
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:1040
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1116
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1053
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1066
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:1034
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1110
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:1028
@ WGPUTextureFormat_Undefined
Definition webgpu.h:1021
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1114
@ WGPUTextureFormat_R16Float
Definition webgpu.h:1030
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1098
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1054
@ WGPUTextureFormat_RGBA16Snorm
Definition webgpu.h:1058
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1052
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1122
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1064
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1072
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:1042
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1101
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1068
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1111
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1060
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:1022
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1069
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1073
@ WGPUTextureFormat_R16Snorm
Definition webgpu.h:1027
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1107
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:1033
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:1024
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1105
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1121
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:1050
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1096
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1089
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1055
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1106
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:1047
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:1023
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1102
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1241
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1243
@ WGPUWGSLLanguageFeatureName_TextureAndSamplerLet
Definition webgpu.h:1247
@ WGPUWGSLLanguageFeatureName_TextureFormatsTier1
Definition webgpu.h:1249
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1244
@ WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout
Definition webgpu.h:1245
@ WGPUWGSLLanguageFeatureName_SubgroupId
Definition webgpu.h:1246
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1250
@ WGPUWGSLLanguageFeatureName_SubgroupUniformity
Definition webgpu.h:1248
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1242
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:913
@ WGPUStencilOperation_Undefined
Definition webgpu.h:907
@ WGPUStencilOperation_Replace
Definition webgpu.h:910
@ WGPUStencilOperation_Keep
Definition webgpu.h:908
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:915
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:914
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:912
@ WGPUStencilOperation_Invert
Definition webgpu.h:911
@ WGPUStencilOperation_Force32
Definition webgpu.h:916
@ WGPUStencilOperation_Zero
Definition webgpu.h:909
@ WGPUAddressMode_Repeat
Definition webgpu.h:368
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:369
@ WGPUAddressMode_Undefined
Definition webgpu.h:366
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:367
@ WGPUAddressMode_Force32
Definition webgpu.h:370
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1162
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1160
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1161
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:1002
@ WGPUTextureAspect_Force32
Definition webgpu.h:1003
@ WGPUTextureAspect_Undefined
Definition webgpu.h:999
@ WGPUTextureAspect_All
Definition webgpu.h:1000
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:1001
@ WGPUBufferMapState_Pending
Definition webgpu.h:446
@ WGPUBufferMapState_Mapped
Definition webgpu.h:447
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:445
@ WGPUBufferMapState_Force32
Definition webgpu.h:448
@ WGPUFilterMode_Undefined
Definition webgpu.h:669
@ WGPUFilterMode_Force32
Definition webgpu.h:672
@ WGPUFilterMode_Nearest
Definition webgpu.h:670
@ WGPUFilterMode_Linear
Definition webgpu.h:671
@ WGPUBackendType_Vulkan
Definition webgpu.h:383
@ WGPUBackendType_OpenGL
Definition webgpu.h:384
@ WGPUBackendType_Force32
Definition webgpu.h:386
@ WGPUBackendType_OpenGLES
Definition webgpu.h:385
@ WGPUBackendType_WebGPU
Definition webgpu.h:379
@ WGPUBackendType_D3D11
Definition webgpu.h:380
@ WGPUBackendType_D3D12
Definition webgpu.h:381
@ WGPUBackendType_Undefined
Definition webgpu.h:377
@ WGPUBackendType_Null
Definition webgpu.h:378
@ WGPUBackendType_Metal
Definition webgpu.h:382
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:402
@ WGPUBlendFactor_One
Definition webgpu.h:395
@ WGPUBlendFactor_Zero
Definition webgpu.h:394
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:409
@ WGPUBlendFactor_Undefined
Definition webgpu.h:393
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:401
@ WGPUBlendFactor_Force32
Definition webgpu.h:411
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:408
@ WGPUBlendFactor_Constant
Definition webgpu.h:405
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:397
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:404
@ WGPUBlendFactor_Src
Definition webgpu.h:396
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:399
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:398
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:406
@ WGPUBlendFactor_Src1
Definition webgpu.h:407
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:403
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:410
@ WGPUBlendFactor_Dst
Definition webgpu.h:400
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:881
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:887
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:889
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:886
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:885
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:888
@ WGPULoadOp_Load
Definition webgpu.h:720
@ WGPULoadOp_Force32
Definition webgpu.h:722
@ WGPULoadOp_Undefined
Definition webgpu.h:719
@ WGPULoadOp_Clear
Definition webgpu.h:721
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:769
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:760
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:764
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:768
@ WGPUWaitStatus_Error
Definition webgpu.h:1236
@ WGPUWaitStatus_Force32
Definition webgpu.h:1237
@ WGPUWaitStatus_Success
Definition webgpu.h:1227
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1231
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:929
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:925
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:931
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:930
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:933
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:932
@ WGPUPowerPreference_Force32
Definition webgpu.h:779
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:778
@ WGPUPowerPreference_LowPower
Definition webgpu.h:777
@ WGPUPowerPreference_Undefined
Definition webgpu.h:776
@ WGPUPresentMode_Fifo
Definition webgpu.h:801
@ WGPUPresentMode_Force32
Definition webgpu.h:818
@ WGPUPresentMode_Immediate
Definition webgpu.h:812
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:807
@ WGPUPresentMode_Mailbox
Definition webgpu.h:817
@ WGPUPresentMode_Undefined
Definition webgpu.h:795
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:732
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:730
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:731
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:733
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:726
@ WGPUBlendOperation_Undefined
Definition webgpu.h:418
@ WGPUBlendOperation_Max
Definition webgpu.h:423
@ WGPUBlendOperation_Subtract
Definition webgpu.h:420
@ WGPUBlendOperation_Min
Definition webgpu.h:422
@ WGPUBlendOperation_Add
Definition webgpu.h:419
@ WGPUBlendOperation_Force32
Definition webgpu.h:424
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:421
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:551
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:568
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:555
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:563
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:567
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:559
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:784
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:783
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:785
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:850
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:845
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:841
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:851
@ WGPUComponentSwizzle_A
Definition webgpu.h:540
@ WGPUComponentSwizzle_Force32
Definition webgpu.h:541
@ WGPUComponentSwizzle_G
Definition webgpu.h:532
@ WGPUComponentSwizzle_R
Definition webgpu.h:528
@ WGPUComponentSwizzle_B
Definition webgpu.h:536
@ WGPUComponentSwizzle_Zero
Definition webgpu.h:520
@ WGPUComponentSwizzle_One
Definition webgpu.h:524
@ WGPUComponentSwizzle_Undefined
Definition webgpu.h:516
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1214
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1216
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1215
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1217
@ WGPUQueryType_Occlusion
Definition webgpu.h:835
@ WGPUQueryType_Timestamp
Definition webgpu.h:836
@ WGPUQueryType_Force32
Definition webgpu.h:837
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:627
@ WGPUFeatureLevel_Core
Definition webgpu.h:635
@ WGPUFeatureLevel_Force32
Definition webgpu.h:636
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:631
@ WGPUAdapterType_CPU
Definition webgpu.h:357
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:355
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:356
@ WGPUAdapterType_Unknown
Definition webgpu.h:358
@ WGPUAdapterType_Force32
Definition webgpu.h:359
@ WGPUInstanceFeatureName_ShaderSourceSPIRV
Definition webgpu.h:704
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:712
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
Definition webgpu.h:711
@ WGPUInstanceFeatureName_TimedWaitAny
Definition webgpu.h:699
@ WGPUStatus_Force32
Definition webgpu.h:900
@ WGPUStatus_Success
Definition webgpu.h:898
@ WGPUStatus_Error
Definition webgpu.h:899
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:502
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:497
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:501
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:740
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:742
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:743
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:741
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:987
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:991
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:983
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:979
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:971
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:992
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:975
@ WGPUFrontFace_CW
Definition webgpu.h:681
@ WGPUFrontFace_Undefined
Definition webgpu.h:679
@ WGPUFrontFace_CCW
Definition webgpu.h:680
@ WGPUFrontFace_Force32
Definition webgpu.h:682
@ WGPUStoreOp_Discard
Definition webgpu.h:942
@ WGPUStoreOp_Force32
Definition webgpu.h:943
@ WGPUStoreOp_Store
Definition webgpu.h:941
@ WGPUStoreOp_Undefined
Definition webgpu.h:940
@ WGPUErrorFilter_Internal
Definition webgpu.h:607
@ WGPUErrorFilter_Force32
Definition webgpu.h:608
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:606
@ WGPUErrorFilter_Validation
Definition webgpu.h:605
@ WGPUOptionalBool_True
Definition webgpu.h:751
@ WGPUOptionalBool_Force32
Definition webgpu.h:753
@ WGPUOptionalBool_Undefined
Definition webgpu.h:752
@ WGPUOptionalBool_False
Definition webgpu.h:750
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:466
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:476
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:460
@ WGPUCallbackMode_Force32
Definition webgpu.h:477
@ WGPUTextureSampleType_Float
Definition webgpu.h:1137
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1140
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1132
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1136
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1142
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1141
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1139
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1138
@ WGPUErrorType_NoError
Definition webgpu.h:612
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:614
@ WGPUErrorType_Unknown
Definition webgpu.h:616
@ WGPUErrorType_Validation
Definition webgpu.h:613
@ WGPUErrorType_Force32
Definition webgpu.h:617
@ WGPUErrorType_Internal
Definition webgpu.h:615
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 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 wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel)
WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const *descriptor)
void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel)
void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label)
void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle)
void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label)
void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel)
void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles)
void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel)
void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label)
void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color)
void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label)
void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline)
void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
void wgpuSamplerAddRef(WGPUSampler sampler)
void wgpuSamplerRelease(WGPUSampler sampler)
void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label)
void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule)
WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo)
void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label)
void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures)
void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures)
void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures)
void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities)
void wgpuSurfaceAddRef(WGPUSurface surface)
WGPUStatus wgpuSurfacePresent(WGPUSurface surface)
void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label)
void wgpuSurfaceUnconfigure(WGPUSurface surface)
void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const *config)
WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
void wgpuSurfaceRelease(WGPUSurface surface)
uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
void wgpuTextureDestroy(WGPUTexture texture)
uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
void wgpuTextureRelease(WGPUTexture texture)
WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
uint32_t wgpuTextureGetHeight(WGPUTexture texture)
uint32_t wgpuTextureGetWidth(WGPUTexture texture)
void wgpuTextureAddRef(WGPUTexture texture)
WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPUTextureViewDescriptor const *descriptor)
WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture)
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:1785
WGPUBackendType backendType
Definition webgpu.h:1795
uint32_t deviceID
Definition webgpu.h:1807
WGPUChainedStruct * nextInChain
Definition webgpu.h:1767
uint32_t subgroupMinSize
Definition webgpu.h:1811
uint32_t vendorID
Definition webgpu.h:1803
WGPUStringView description
Definition webgpu.h:1791
WGPUAdapterType adapterType
Definition webgpu.h:1799
uint32_t subgroupMaxSize
Definition webgpu.h:1815
WGPUStringView architecture
Definition webgpu.h:1779
WGPUStringView vendor
Definition webgpu.h:1773
WGPUChainedStruct * nextInChain
Definition webgpu.h:4480
WGPUStringView label
Definition webgpu.h:4486
WGPUBindGroupLayout layout
Definition webgpu.h:4490
WGPUBindGroupEntry const * entries
Definition webgpu.h:4498
uint64_t offset
Definition webgpu.h:3751
WGPUBuffer buffer
Definition webgpu.h:3744
WGPUSampler sampler
Definition webgpu.h:3766
WGPUTextureView textureView
Definition webgpu.h:3773
WGPUChainedStruct * nextInChain
Definition webgpu.h:3731
uint32_t binding
Definition webgpu.h:3737
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4530
WGPUChainedStruct * nextInChain
Definition webgpu.h:4516
WGPUTextureBindingLayout texture
Definition webgpu.h:3819
WGPUShaderStage visibility
Definition webgpu.h:3801
WGPUBufferBindingLayout buffer
Definition webgpu.h:3811
WGPUChainedStruct * nextInChain
Definition webgpu.h:3793
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3823
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3815
WGPUBlendFactor dstFactor
Definition webgpu.h:1859
WGPUBlendFactor srcFactor
Definition webgpu.h:1852
WGPUBlendOperation operation
Definition webgpu.h:1845
WGPUBlendComponent alpha
Definition webgpu.h:3851
WGPUBlendComponent color
Definition webgpu.h:3847
WGPUBufferBindingType type
Definition webgpu.h:1882
WGPUBool hasDynamicOffset
Definition webgpu.h:1886
WGPUChainedStruct * nextInChain
Definition webgpu.h:1875
WGPUBool mappedAtCreation
Definition webgpu.h:1929
WGPUStringView label
Definition webgpu.h:1913
WGPUBufferUsage usage
Definition webgpu.h:1917
WGPUChainedStruct * nextInChain
Definition webgpu.h:1907
WGPUChainedStruct * nextInChain
Definition webgpu.h:1529
WGPUBufferMapCallback callback
Definition webgpu.h:1536
WGPUCallbackMode mode
Definition webgpu.h:1535
struct WGPUChainedStruct * next
Definition webgpu.h:1507
WGPUSType sType
Definition webgpu.h:1508
WGPUBlendState const * blend
Definition webgpu.h:4559
WGPUColorWriteMask writeMask
Definition webgpu.h:4563
WGPUChainedStruct * nextInChain
Definition webgpu.h:4547
WGPUTextureFormat format
Definition webgpu.h:4555
double a
Definition webgpu.h:1966
double b
Definition webgpu.h:1962
double r
Definition webgpu.h:1954
double g
Definition webgpu.h:1958
WGPUChainedStruct * nextInChain
Definition webgpu.h:1983
WGPUChainedStruct * nextInChain
Definition webgpu.h:2004
WGPUCompilationInfoCallback callback
Definition webgpu.h:1560
WGPUChainedStruct * nextInChain
Definition webgpu.h:1553
WGPUChainedStruct * nextInChain
Definition webgpu.h:3869
WGPUCompilationMessage const * messages
Definition webgpu.h:3877
WGPUChainedStruct * nextInChain
Definition webgpu.h:2028
WGPUCompilationMessageType type
Definition webgpu.h:2042
WGPUStringView message
Definition webgpu.h:2036
WGPUStringView label
Definition webgpu.h:3899
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3903
WGPUChainedStruct * nextInChain
Definition webgpu.h:3893
WGPUComputeState compute
Definition webgpu.h:4594
WGPUChainedStruct * nextInChain
Definition webgpu.h:4580
WGPUPipelineLayout layout
Definition webgpu.h:4590
WGPUChainedStruct * nextInChain
Definition webgpu.h:3919
WGPUConstantEntry const * constants
Definition webgpu.h:3937
size_t constantCount
Definition webgpu.h:3933
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3929
WGPUStringView key
Definition webgpu.h:2092
WGPUChainedStruct * nextInChain
Definition webgpu.h:2086
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1584
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1608
WGPUStencilFaceState stencilFront
Definition webgpu.h:3971
uint32_t stencilWriteMask
Definition webgpu.h:3983
WGPUStencilFaceState stencilBack
Definition webgpu.h:3975
WGPUChainedStruct * nextInChain
Definition webgpu.h:3955
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3963
WGPUCompareFunction depthCompare
Definition webgpu.h:3967
uint32_t stencilReadMask
Definition webgpu.h:3979
WGPUTextureFormat format
Definition webgpu.h:3959
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:4053
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:4062
size_t requiredFeatureCount
Definition webgpu.h:4037
WGPUStringView label
Definition webgpu.h:4033
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:4041
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:4049
WGPUChainedStruct * nextInChain
Definition webgpu.h:4027
WGPULimits const * requiredLimits
Definition webgpu.h:4045
WGPUChainedStruct * nextInChain
Definition webgpu.h:1625
WGPUDeviceLostCallback callback
Definition webgpu.h:1632
WGPUCallbackMode mode
Definition webgpu.h:1631
uint32_t width
Definition webgpu.h:2119
uint32_t depthOrArrayLayers
Definition webgpu.h:2127
uint32_t height
Definition webgpu.h:2123
WGPUChainedStruct chain
Definition webgpu.h:2145
WGPUExternalTexture externalTexture
Definition webgpu.h:2149
size_t constantCount
Definition webgpu.h:4717
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4713
WGPUChainedStruct * nextInChain
Definition webgpu.h:4703
size_t targetCount
Definition webgpu.h:4725
WGPUConstantEntry const * constants
Definition webgpu.h:4721
WGPUColorTargetState const * targets
Definition webgpu.h:4729
WGPUFuture future
Definition webgpu.h:4090
WGPUBool completed
Definition webgpu.h:4096
uint64_t id
Definition webgpu.h:2193
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:4119
WGPUChainedStruct * nextInChain
Definition webgpu.h:4111
size_t requiredFeatureCount
Definition webgpu.h:4115
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:4123
size_t timedWaitAnyMaxCount
Definition webgpu.h:2213
WGPUChainedStruct * nextInChain
Definition webgpu.h:2207
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2252
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2328
uint32_t maxTextureDimension2D
Definition webgpu.h:2236
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2268
uint32_t maxTextureDimension3D
Definition webgpu.h:2240
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2272
WGPUChainedStruct * nextInChain
Definition webgpu.h:2228
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2256
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2352
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2264
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2332
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2300
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2344
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2292
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2336
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2316
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2296
uint32_t maxVertexAttributes
Definition webgpu.h:2312
uint32_t maxColorAttachments
Definition webgpu.h:2324
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2320
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2348
uint32_t maxTextureDimension1D
Definition webgpu.h:2232
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2260
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2288
uint64_t maxBufferSize
Definition webgpu.h:2308
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2284
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2340
uint32_t maxVertexBuffers
Definition webgpu.h:2304
uint32_t maxTextureArrayLayers
Definition webgpu.h:2244
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2280
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2276
uint32_t maxImmediateSize
Definition webgpu.h:2356
uint32_t maxBindGroups
Definition webgpu.h:2248
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2414
WGPUChainedStruct * nextInChain
Definition webgpu.h:2402
uint32_t y
Definition webgpu.h:2438
uint32_t z
Definition webgpu.h:2442
uint32_t x
Definition webgpu.h:2434
WGPUQuerySet querySet
Definition webgpu.h:2464
uint32_t endOfPassWriteIndex
Definition webgpu.h:2472
WGPUChainedStruct * nextInChain
Definition webgpu.h:2458
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2468
WGPUChainedStruct * nextInChain
Definition webgpu.h:2489
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2503
WGPUChainedStruct * nextInChain
Definition webgpu.h:1649
WGPUCallbackMode mode
Definition webgpu.h:1655
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1656
WGPUFrontFace frontFace
Definition webgpu.h:2543
WGPUChainedStruct * nextInChain
Definition webgpu.h:2525
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2536
WGPUPrimitiveTopology topology
Definition webgpu.h:2532
WGPUCullMode cullMode
Definition webgpu.h:2550
WGPUBool unclippedDepth
Definition webgpu.h:2554
WGPUQueryType type
Definition webgpu.h:2583
WGPUChainedStruct * nextInChain
Definition webgpu.h:2573
WGPUStringView label
Definition webgpu.h:2579
WGPUChainedStruct * nextInChain
Definition webgpu.h:2604
WGPUStringView label
Definition webgpu.h:2610
WGPUCallbackMode mode
Definition webgpu.h:1679
WGPUChainedStruct * nextInChain
Definition webgpu.h:1673
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1680
WGPUChainedStruct * nextInChain
Definition webgpu.h:2625
WGPUStringView label
Definition webgpu.h:2631
WGPUChainedStruct * nextInChain
Definition webgpu.h:2646
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2660
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2664
WGPUTextureView resolveTarget
Definition webgpu.h:4155
WGPUChainedStruct * nextInChain
Definition webgpu.h:4140
WGPUChainedStruct * nextInChain
Definition webgpu.h:2697
WGPUChainedStruct * nextInChain
Definition webgpu.h:4611
WGPUStringView label
Definition webgpu.h:4617
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4629
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4625
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4633
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4637
WGPUChainedStruct chain
Definition webgpu.h:2763
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4771
WGPUChainedStruct * nextInChain
Definition webgpu.h:4749
WGPUMultisampleState multisample
Definition webgpu.h:4775
WGPUFragmentState const * fragment
Definition webgpu.h:4779
WGPUPrimitiveState primitive
Definition webgpu.h:4767
WGPUPipelineLayout layout
Definition webgpu.h:4759
WGPUVertexState vertex
Definition webgpu.h:4763
WGPURequestAdapterCallback callback
Definition webgpu.h:1704
WGPUChainedStruct * nextInChain
Definition webgpu.h:1697
WGPUFeatureLevel featureLevel
Definition webgpu.h:4198
WGPUBool forceFallbackAdapter
Definition webgpu.h:4209
WGPUSurface compatibleSurface
Definition webgpu.h:4223
WGPUBackendType backendType
Definition webgpu.h:4216
WGPUChainedStruct * nextInChain
Definition webgpu.h:4187
WGPUPowerPreference powerPreference
Definition webgpu.h:4202
WGPUChainedStruct chain
Definition webgpu.h:2787
WGPUCallbackMode mode
Definition webgpu.h:1727
WGPUChainedStruct * nextInChain
Definition webgpu.h:1721
WGPURequestDeviceCallback callback
Definition webgpu.h:1728
WGPUChainedStruct * nextInChain
Definition webgpu.h:2811
WGPUSamplerBindingType type
Definition webgpu.h:2818
WGPUFilterMode minFilter
Definition webgpu.h:2874
WGPUAddressMode addressModeU
Definition webgpu.h:2846
WGPUCompareFunction compare
Definition webgpu.h:2901
WGPUAddressMode addressModeW
Definition webgpu.h:2860
uint16_t maxAnisotropy
Definition webgpu.h:2905
WGPUAddressMode addressModeV
Definition webgpu.h:2853
WGPUStringView label
Definition webgpu.h:2839
WGPUFilterMode magFilter
Definition webgpu.h:2867
WGPUChainedStruct * nextInChain
Definition webgpu.h:2833
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2881
WGPUChainedStruct * nextInChain
Definition webgpu.h:4242
WGPUStringView label
Definition webgpu.h:4248
WGPUChainedStruct chain
Definition webgpu.h:2930
uint32_t const * code
Definition webgpu.h:2938
WGPUChainedStruct chain
Definition webgpu.h:2957
WGPUStringView code
Definition webgpu.h:2963
WGPUCompareFunction compare
Definition webgpu.h:2987
WGPUStencilOperation depthFailOp
Definition webgpu.h:3001
WGPUStencilOperation passOp
Definition webgpu.h:3008
WGPUStencilOperation failOp
Definition webgpu.h:2994
WGPUChainedStruct * nextInChain
Definition webgpu.h:3025
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3043
WGPUTextureFormat format
Definition webgpu.h:3036
WGPUStorageTextureAccess access
Definition webgpu.h:3032
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:3067
WGPUInstanceFeatureName const * features
Definition webgpu.h:3089
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3111
WGPUTextureFormat const * formats
Definition webgpu.h:3145
WGPUChainedStruct * nextInChain
Definition webgpu.h:3128
WGPUPresentMode const * presentModes
Definition webgpu.h:3156
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3167
WGPUTextureUsage usages
Definition webgpu.h:3135
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3198
WGPUChainedStruct chain
Definition webgpu.h:3190
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3194
WGPUTextureUsage usage
Definition webgpu.h:3238
WGPUTextureFormat format
Definition webgpu.h:3232
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3260
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3270
WGPUChainedStruct * nextInChain
Definition webgpu.h:3220
WGPUPresentMode presentMode
Definition webgpu.h:3279
WGPUChainedStruct * nextInChain
Definition webgpu.h:4267
WGPUStringView label
Definition webgpu.h:4275
WGPUChainedStruct chain
Definition webgpu.h:3330
WGPUChainedStruct chain
Definition webgpu.h:3356
WGPUChainedStruct chain
Definition webgpu.h:3389
WGPUChainedStruct chain
Definition webgpu.h:3423
WGPUChainedStruct chain
Definition webgpu.h:3456
WGPUChainedStruct * nextInChain
Definition webgpu.h:3490
WGPUTexture texture
Definition webgpu.h:3497
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3503
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4293
WGPUOrigin3D origin
Definition webgpu.h:4323
WGPUTextureAspect aspect
Definition webgpu.h:4330
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3560
WGPUTextureSampleType sampleType
Definition webgpu.h:3553
WGPUChainedStruct * nextInChain
Definition webgpu.h:3546
WGPUTextureComponentSwizzle swizzle
Definition webgpu.h:4351
WGPUComponentSwizzle r
Definition webgpu.h:3594
WGPUComponentSwizzle a
Definition webgpu.h:3621
WGPUComponentSwizzle g
Definition webgpu.h:3603
WGPUComponentSwizzle b
Definition webgpu.h:3612
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4410
WGPUTextureDimension dimension
Definition webgpu.h:4386
WGPUStringView label
Definition webgpu.h:4375
uint32_t mipLevelCount
Definition webgpu.h:4398
WGPUChainedStruct * nextInChain
Definition webgpu.h:4369
WGPUTextureFormat format
Definition webgpu.h:4394
WGPUTextureUsage usage
Definition webgpu.h:4379
WGPUExtent3D size
Definition webgpu.h:4390
WGPUChainedStruct * nextInChain
Definition webgpu.h:3638
WGPUTextureUsage usage
Definition webgpu.h:3679
WGPUTextureFormat format
Definition webgpu.h:3648
WGPUTextureViewDimension dimension
Definition webgpu.h:3652
WGPUStringView label
Definition webgpu.h:3644
WGPUTextureAspect aspect
Definition webgpu.h:3675
WGPUChainedStruct * nextInChain
Definition webgpu.h:1745
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1746
WGPUVertexFormat format
Definition webgpu.h:3706
WGPUChainedStruct * nextInChain
Definition webgpu.h:3702
uint32_t shaderLocation
Definition webgpu.h:3714
WGPUVertexAttribute const * attributes
Definition webgpu.h:4462
WGPUVertexStepMode stepMode
Definition webgpu.h:4450
WGPUChainedStruct * nextInChain
Definition webgpu.h:4446
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4667
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4683
WGPUConstantEntry const * constants
Definition webgpu.h:4675
size_t constantCount
Definition webgpu.h:4671
size_t bufferCount
Definition webgpu.h:4679
WGPUChainedStruct * nextInChain
Definition webgpu.h:4657