WebGPU Headers
The WebGPU C API
 
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
webgpu.h
1
27#ifndef WEBGPU_H_
28#define WEBGPU_H_
29
30#if defined(WGPU_SHARED_LIBRARY)
31# if defined(_WIN32)
32# if defined(WGPU_IMPLEMENTATION)
33# define WGPU_EXPORT __declspec(dllexport)
34# else
35# define WGPU_EXPORT __declspec(dllimport)
36# endif
37# else // defined(_WIN32)
38# if defined(WGPU_IMPLEMENTATION)
39# define WGPU_EXPORT __attribute__((visibility("default")))
40# else
41# define WGPU_EXPORT
42# endif
43# endif // defined(_WIN32)
44#else // defined(WGPU_SHARED_LIBRARY)
45# define WGPU_EXPORT
46#endif // defined(WGPU_SHARED_LIBRARY)
47
48#if !defined(WGPU_OBJECT_ATTRIBUTE)
49#define WGPU_OBJECT_ATTRIBUTE
50#endif
51#if !defined(WGPU_ENUM_ATTRIBUTE)
52#define WGPU_ENUM_ATTRIBUTE
53#endif
54#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
55#define WGPU_STRUCTURE_ATTRIBUTE
56#endif
57#if !defined(WGPU_FUNCTION_ATTRIBUTE)
58#define WGPU_FUNCTION_ATTRIBUTE
59#endif
60#if !defined(WGPU_NULLABLE)
61#define WGPU_NULLABLE
62#endif
63
64#include <stdint.h>
65#include <stddef.h>
66#include <math.h>
67
68#define _wgpu_COMMA ,
69#if defined(__cplusplus)
70# define _wgpu_ENUM_ZERO_INIT(type) type(0)
71# define _wgpu_STRUCT_ZERO_INIT {}
72# if __cplusplus >= 201103L
73# define _wgpu_MAKE_INIT_STRUCT(type, value) (type value)
74# else
75# define _wgpu_MAKE_INIT_STRUCT(type, value) value
76# endif
77#else
78# define _wgpu_ENUM_ZERO_INIT(type) (type)0
79# define _wgpu_STRUCT_ZERO_INIT {0}
80# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
81# define _wgpu_MAKE_INIT_STRUCT(type, value) ((type) value)
82# else
83# define _wgpu_MAKE_INIT_STRUCT(type, value) value
84# endif
85#endif
86
100#define WGPU_TRUE (UINT32_C(1))
107#define WGPU_FALSE (UINT32_C(0))
112#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
117#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
122#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
127#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
132#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
137#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
142#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
147#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
152#define WGPU_STRLEN (SIZE_MAX)
157#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
162#define WGPU_WHOLE_SIZE (UINT64_MAX)
163
193typedef struct WGPUStringView {
194 WGPU_NULLABLE char const * data;
195 size_t length;
196} WGPUStringView WGPU_STRUCTURE_ATTRIBUTE;
197
201#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
202 /*.data=*/NULL _wgpu_COMMA \
203 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
204})
205
206typedef uint64_t WGPUFlags;
207typedef uint32_t WGPUBool;
208
217typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
218typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
219typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
220typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
221typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
222typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
223typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
224typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
231typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
232typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
233typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
234typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
235typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
236typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
237typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
238typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
239typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
240typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
241typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
245typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
246typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
247typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
248
251// Structure forward declarations
252struct WGPUAdapterInfo;
253struct WGPUBindGroupEntry;
254struct WGPUBlendComponent;
257struct WGPUColor;
261struct WGPUConstantEntry;
262struct WGPUExtent3D;
263struct WGPUFuture;
264struct WGPUInstanceLimits;
265struct WGPULimits;
267struct WGPUOrigin3D;
270struct WGPUPrimitiveState;
296struct WGPUSurfaceTexture;
303struct WGPUBlendState;
306struct WGPUComputeState;
309struct WGPUFutureWaitInfo;
323struct WGPUVertexState;
324struct WGPUFragmentState;
326
327// Callback info structure forward declarations
338
346typedef enum WGPUAdapterType {
351 WGPUAdapterType_Force32 = 0x7FFFFFFF
352} WGPUAdapterType WGPU_ENUM_ATTRIBUTE;
353
364
380
405
418
435
442
471
487
496
503
530
541
542typedef enum WGPUCullMode {
547 WGPUCullMode_None = 0x00000001,
548 WGPUCullMode_Front = 0x00000002,
549 WGPUCullMode_Back = 0x00000003,
550 WGPUCullMode_Force32 = 0x7FFFFFFF
551} WGPUCullMode WGPU_ENUM_ATTRIBUTE;
552
563
564typedef enum WGPUErrorFilter {
568 WGPUErrorFilter_Force32 = 0x7FFFFFFF
569} WGPUErrorFilter WGPU_ENUM_ATTRIBUTE;
570
571typedef enum WGPUErrorType {
577 WGPUErrorType_Force32 = 0x7FFFFFFF
578} WGPUErrorType WGPU_ENUM_ATTRIBUTE;
579
583typedef enum WGPUFeatureLevel {
596 WGPUFeatureLevel_Force32 = 0x7FFFFFFF
597} WGPUFeatureLevel WGPU_ENUM_ATTRIBUTE;
598
622
623typedef enum WGPUFilterMode {
630 WGPUFilterMode_Force32 = 0x7FFFFFFF
631} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
632
633typedef enum WGPUFrontFace {
638 WGPUFrontFace_CCW = 0x00000001,
639 WGPUFrontFace_CW = 0x00000002,
640 WGPUFrontFace_Force32 = 0x7FFFFFFF
641} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
642
643typedef enum WGPUIndexFormat {
650 WGPUIndexFormat_Force32 = 0x7FFFFFFF
651} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
652
672
673typedef enum WGPULoadOp {
678 WGPULoadOp_Load = 0x00000001,
679 WGPULoadOp_Clear = 0x00000002,
680 WGPULoadOp_Force32 = 0x7FFFFFFF
681} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
682
693
703
704typedef enum WGPUOptionalBool {
711 WGPUOptionalBool_Force32 = 0x7FFFFFFF
712} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
713
729
739
745
778
791
792typedef enum WGPUQueryType {
795 WGPUQueryType_Force32 = 0x7FFFFFFF
796} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
797
811
822
832
849
855typedef enum WGPUStatus {
856 WGPUStatus_Success = 0x00000001,
857 WGPUStatus_Error = 0x00000002,
858 WGPUStatus_Force32 = 0x7FFFFFFF
859} WGPUStatus WGPU_ENUM_ATTRIBUTE;
860
876
893
894typedef enum WGPUStoreOp {
899 WGPUStoreOp_Store = 0x00000001,
901 WGPUStoreOp_Force32 = 0x7FFFFFFF
902} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
903
918
949
960
971
972typedef enum WGPUTextureFormat {
1078 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1079} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1080
1099
1113
1119
1120typedef enum WGPUVertexFormat {
1162 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1163} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1164
1174
1178typedef enum WGPUWaitStatus {
1192 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1193} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1194
1202
1219static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1223static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1229static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1233static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1237static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1241static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1245static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1249static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1253static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1257static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1261static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1262
1270static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1271static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1272static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1273static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1274static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1278static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1279
1287static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1288static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1289static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1290
1298static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1299static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1300static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1301static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1302
1310static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1311static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1312static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1313static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1314static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1315static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1316
1319typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1320
1334typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1335
1344typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1345
1352typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1353
1360typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1361
1375typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1376
1394typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1395
1408typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1409
1419typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1420
1430typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1431
1441typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1442
1451typedef struct WGPUChainedStruct {
1454} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1455
1485
1489#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1490 /*.nextInChain=*/NULL _wgpu_COMMA \
1491 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1492 /*.callback=*/NULL _wgpu_COMMA \
1493 /*.userdata1=*/NULL _wgpu_COMMA \
1494 /*.userdata2=*/NULL _wgpu_COMMA \
1495})
1496
1509
1513#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1514 /*.nextInChain=*/NULL _wgpu_COMMA \
1515 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1516 /*.callback=*/NULL _wgpu_COMMA \
1517 /*.userdata1=*/NULL _wgpu_COMMA \
1518 /*.userdata2=*/NULL _wgpu_COMMA \
1519})
1520
1533
1537#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1538 /*.nextInChain=*/NULL _wgpu_COMMA \
1539 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1540 /*.callback=*/NULL _wgpu_COMMA \
1541 /*.userdata1=*/NULL _wgpu_COMMA \
1542 /*.userdata2=*/NULL _wgpu_COMMA \
1543})
1544
1557
1561#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1562 /*.nextInChain=*/NULL _wgpu_COMMA \
1563 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1564 /*.callback=*/NULL _wgpu_COMMA \
1565 /*.userdata1=*/NULL _wgpu_COMMA \
1566 /*.userdata2=*/NULL _wgpu_COMMA \
1567})
1568
1581
1585#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1586 /*.nextInChain=*/NULL _wgpu_COMMA \
1587 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1588 /*.callback=*/NULL _wgpu_COMMA \
1589 /*.userdata1=*/NULL _wgpu_COMMA \
1590 /*.userdata2=*/NULL _wgpu_COMMA \
1591})
1592
1605
1609#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1610 /*.nextInChain=*/NULL _wgpu_COMMA \
1611 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1612 /*.callback=*/NULL _wgpu_COMMA \
1613 /*.userdata1=*/NULL _wgpu_COMMA \
1614 /*.userdata2=*/NULL _wgpu_COMMA \
1615})
1616
1629
1633#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1634 /*.nextInChain=*/NULL _wgpu_COMMA \
1635 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1636 /*.callback=*/NULL _wgpu_COMMA \
1637 /*.userdata1=*/NULL _wgpu_COMMA \
1638 /*.userdata2=*/NULL _wgpu_COMMA \
1639})
1640
1653
1657#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1658 /*.nextInChain=*/NULL _wgpu_COMMA \
1659 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1660 /*.callback=*/NULL _wgpu_COMMA \
1661 /*.userdata1=*/NULL _wgpu_COMMA \
1662 /*.userdata2=*/NULL _wgpu_COMMA \
1663})
1664
1677
1681#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1682 /*.nextInChain=*/NULL _wgpu_COMMA \
1683 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1684 /*.callback=*/NULL _wgpu_COMMA \
1685 /*.userdata1=*/NULL _wgpu_COMMA \
1686 /*.userdata2=*/NULL _wgpu_COMMA \
1687})
1688
1695
1699#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1700 /*.nextInChain=*/NULL _wgpu_COMMA \
1701 /*.callback=*/NULL _wgpu_COMMA \
1702 /*.userdata1=*/NULL _wgpu_COMMA \
1703 /*.userdata2=*/NULL _wgpu_COMMA \
1704})
1705
1762
1766#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1767 /*.nextInChain=*/NULL _wgpu_COMMA \
1768 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1769 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1770 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1771 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1772 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1773 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1774 /*.vendorID=*/0 _wgpu_COMMA \
1775 /*.deviceID=*/0 _wgpu_COMMA \
1776 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1777 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1778})
1779
1783typedef struct WGPUBindGroupEntry {
1790 uint32_t binding;
1797 WGPU_NULLABLE WGPUBuffer buffer;
1804 uint64_t offset;
1812 uint64_t size;
1819 WGPU_NULLABLE WGPUSampler sampler;
1827} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1828
1832#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1833 /*.nextInChain=*/NULL _wgpu_COMMA \
1834 /*.binding=*/0 _wgpu_COMMA \
1835 /*.buffer=*/NULL _wgpu_COMMA \
1836 /*.offset=*/0 _wgpu_COMMA \
1837 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1838 /*.sampler=*/NULL _wgpu_COMMA \
1839 /*.textureView=*/NULL _wgpu_COMMA \
1840})
1841
1868
1872#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1873 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1874 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1875 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1876})
1877
1899
1903#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1904 /*.nextInChain=*/NULL _wgpu_COMMA \
1905 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1906 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1907 /*.minBindingSize=*/0 _wgpu_COMMA \
1908})
1909
1938
1942#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1943 /*.nextInChain=*/NULL _wgpu_COMMA \
1944 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1945 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1946 /*.size=*/0 _wgpu_COMMA \
1947 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1948})
1949
1957typedef struct WGPUColor {
1961 double r;
1965 double g;
1969 double b;
1973 double a;
1974} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1975
1979#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1980 /*.r=*/0. _wgpu_COMMA \
1981 /*.g=*/0. _wgpu_COMMA \
1982 /*.b=*/0. _wgpu_COMMA \
1983 /*.a=*/0. _wgpu_COMMA \
1984})
1985
1998
2002#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
2003 /*.nextInChain=*/NULL _wgpu_COMMA \
2004 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2005})
2006
2019
2023#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2024 /*.nextInChain=*/NULL _wgpu_COMMA \
2025 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2026})
2027
2075
2079#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2080 /*.nextInChain=*/NULL _wgpu_COMMA \
2081 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2082 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2083 /*.lineNum=*/0 _wgpu_COMMA \
2084 /*.linePos=*/0 _wgpu_COMMA \
2085 /*.offset=*/0 _wgpu_COMMA \
2086 /*.length=*/0 _wgpu_COMMA \
2087})
2088
2109
2113#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2114 /*.nextInChain=*/NULL _wgpu_COMMA \
2115 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2116 /*.value=*/0. _wgpu_COMMA \
2117})
2118
2122typedef struct WGPUExtent3D {
2126 uint32_t width;
2130 uint32_t height;
2135} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2136
2140#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2141 /*.width=*/0 _wgpu_COMMA \
2142 /*.height=*/1 _wgpu_COMMA \
2143 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2144})
2145
2151typedef struct WGPUFuture {
2157 uint64_t id;
2158} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2159
2163#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2164 /*.id=*/0 _wgpu_COMMA \
2165})
2166
2179
2183#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2184 /*.nextInChain=*/NULL _wgpu_COMMA \
2185 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2186})
2187
2322
2326#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2327 /*.nextInChain=*/NULL _wgpu_COMMA \
2328 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2329 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2330 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2331 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2332 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2333 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2334 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2335 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2336 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2337 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2338 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2339 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2340 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2341 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2342 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2343 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2344 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2345 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2346 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2347 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2348 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2349 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2350 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2351 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2352 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2353 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2354 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2355 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2356 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2357 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2358 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2359 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2360})
2361
2380
2384#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2385 /*.nextInChain=*/NULL _wgpu_COMMA \
2386 /*.count=*/1 _wgpu_COMMA \
2387 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2388 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2389})
2390
2394typedef struct WGPUOrigin3D {
2398 uint32_t x;
2402 uint32_t y;
2406 uint32_t z;
2407} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2408
2412#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2413 /*.x=*/0 _wgpu_COMMA \
2414 /*.y=*/0 _wgpu_COMMA \
2415 /*.z=*/0 _wgpu_COMMA \
2416})
2417
2438
2442#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2443 /*.nextInChain=*/NULL _wgpu_COMMA \
2444 /*.querySet=*/NULL _wgpu_COMMA \
2445 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2446 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2447})
2448
2473
2477#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2478 /*.nextInChain=*/NULL _wgpu_COMMA \
2479 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2480 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2481 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2482 /*.immediateSize=*/0 _wgpu_COMMA \
2483})
2484
2520
2524#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2525 /*.nextInChain=*/NULL _wgpu_COMMA \
2526 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2527 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2528 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2529 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2530 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2531})
2532
2553
2557#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2558 /*.nextInChain=*/NULL _wgpu_COMMA \
2559 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2560 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2561 /*.count=*/0 _wgpu_COMMA \
2562})
2563
2576
2580#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2581 /*.nextInChain=*/NULL _wgpu_COMMA \
2582 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2583})
2584
2597
2601#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2602 /*.nextInChain=*/NULL _wgpu_COMMA \
2603 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2604})
2605
2642
2646#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2647 /*.nextInChain=*/NULL _wgpu_COMMA \
2648 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2649 /*.colorFormatCount=*/0 _wgpu_COMMA \
2650 /*.colorFormats=*/NULL _wgpu_COMMA \
2651 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2652 /*.sampleCount=*/1 _wgpu_COMMA \
2653 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2654 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2655})
2656
2706
2710#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2711 /*.nextInChain=*/NULL _wgpu_COMMA \
2712 /*.view=*/NULL _wgpu_COMMA \
2713 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2714 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2715 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2716 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2717 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2718 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2719 /*.stencilClearValue=*/0 _wgpu_COMMA \
2720 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2721})
2722
2733
2737#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2738 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2739 /*.next=*/NULL _wgpu_COMMA \
2740 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2741 }) _wgpu_COMMA \
2742 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2743})
2744
2759
2763#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2764 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2765 /*.next=*/NULL _wgpu_COMMA \
2766 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2767 }) _wgpu_COMMA \
2768 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2769})
2770
2784
2788#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2789 /*.nextInChain=*/NULL _wgpu_COMMA \
2790 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2791})
2792
2871
2875#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2876 /*.nextInChain=*/NULL _wgpu_COMMA \
2877 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2878 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2879 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2880 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2881 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2882 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2883 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2884 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2885 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2886 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2887 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2888})
2889
2898 uint32_t codeSize;
2902 uint32_t const * code;
2903} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2904
2908#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2909 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2910 /*.next=*/NULL _wgpu_COMMA \
2911 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2912 }) _wgpu_COMMA \
2913 /*.codeSize=*/0 _wgpu_COMMA \
2914 /*.code=*/NULL _wgpu_COMMA \
2915})
2916
2929
2933#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2934 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2935 /*.next=*/NULL _wgpu_COMMA \
2936 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2937 }) _wgpu_COMMA \
2938 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2939})
2940
2974
2978#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2979 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2980 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2981 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2982 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2983})
2984
3009
3013#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3014 /*.nextInChain=*/NULL _wgpu_COMMA \
3015 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3016 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3017 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3018})
3019
3032} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3033
3037#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3038 /*.featureCount=*/0 _wgpu_COMMA \
3039 /*.features=*/NULL _wgpu_COMMA \
3040})
3041
3055
3059#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
3060 /*.featureCount=*/0 _wgpu_COMMA \
3061 /*.features=*/NULL _wgpu_COMMA \
3062})
3063
3077
3081#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3082 /*.featureCount=*/0 _wgpu_COMMA \
3083 /*.features=*/NULL _wgpu_COMMA \
3084})
3085
3133
3137#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3138 /*.nextInChain=*/NULL _wgpu_COMMA \
3139 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3140 /*.formatCount=*/0 _wgpu_COMMA \
3141 /*.formats=*/NULL _wgpu_COMMA \
3142 /*.presentModeCount=*/0 _wgpu_COMMA \
3143 /*.presentModes=*/NULL _wgpu_COMMA \
3144 /*.alphaModeCount=*/0 _wgpu_COMMA \
3145 /*.alphaModes=*/NULL _wgpu_COMMA \
3146})
3147
3164
3168#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3169 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3170 /*.next=*/NULL _wgpu_COMMA \
3171 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3172 }) _wgpu_COMMA \
3173 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3174 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3175})
3176
3245
3249#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3250 /*.nextInChain=*/NULL _wgpu_COMMA \
3251 /*.device=*/NULL _wgpu_COMMA \
3252 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3253 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3254 /*.width=*/0 _wgpu_COMMA \
3255 /*.height=*/0 _wgpu_COMMA \
3256 /*.viewFormatCount=*/0 _wgpu_COMMA \
3257 /*.viewFormats=*/NULL _wgpu_COMMA \
3258 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3259 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3260})
3261
3276
3280#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3281 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3282 /*.next=*/NULL _wgpu_COMMA \
3283 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3284 }) _wgpu_COMMA \
3285 /*.window=*/NULL _wgpu_COMMA \
3286})
3287
3302
3306#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3307 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3308 /*.next=*/NULL _wgpu_COMMA \
3309 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3310 }) _wgpu_COMMA \
3311 /*.layer=*/NULL _wgpu_COMMA \
3312})
3313
3334
3338#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3339 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3340 /*.next=*/NULL _wgpu_COMMA \
3341 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3342 }) _wgpu_COMMA \
3343 /*.display=*/NULL _wgpu_COMMA \
3344 /*.surface=*/NULL _wgpu_COMMA \
3345})
3346
3368
3372#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3373 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3374 /*.next=*/NULL _wgpu_COMMA \
3375 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3376 }) _wgpu_COMMA \
3377 /*.hinstance=*/NULL _wgpu_COMMA \
3378 /*.hwnd=*/NULL _wgpu_COMMA \
3379})
3380
3401
3405#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3406 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3407 /*.next=*/NULL _wgpu_COMMA \
3408 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3409 }) _wgpu_COMMA \
3410 /*.connection=*/NULL _wgpu_COMMA \
3411 /*.window=*/0 _wgpu_COMMA \
3412})
3413
3434
3438#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3439 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3440 /*.next=*/NULL _wgpu_COMMA \
3441 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3442 }) _wgpu_COMMA \
3443 /*.display=*/NULL _wgpu_COMMA \
3444 /*.window=*/0 _wgpu_COMMA \
3445})
3446
3469
3473#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3474 /*.nextInChain=*/NULL _wgpu_COMMA \
3475 /*.texture=*/NULL _wgpu_COMMA \
3476 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3477})
3478
3486 uint64_t offset;
3490 uint32_t bytesPerRow;
3495} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3496
3500#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3501 /*.offset=*/0 _wgpu_COMMA \
3502 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3503 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3504})
3505
3530
3534#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3535 /*.nextInChain=*/NULL _wgpu_COMMA \
3536 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3537 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3538 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3539})
3540
3588
3592#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3593 /*.nextInChain=*/NULL _wgpu_COMMA \
3594 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3595 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3596 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3597 /*.baseMipLevel=*/0 _wgpu_COMMA \
3598 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3599 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3600 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3601 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3602 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3603})
3604
3623
3627#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3628 /*.nextInChain=*/NULL _wgpu_COMMA \
3629 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3630 /*.offset=*/0 _wgpu_COMMA \
3631 /*.shaderLocation=*/0 _wgpu_COMMA \
3632})
3633
3658
3662#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3663 /*.nextInChain=*/NULL _wgpu_COMMA \
3664 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3665 /*.layout=*/NULL _wgpu_COMMA \
3666 /*.entryCount=*/0 _wgpu_COMMA \
3667 /*.entries=*/NULL _wgpu_COMMA \
3668})
3669
3706
3710#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3711 /*.nextInChain=*/NULL _wgpu_COMMA \
3712 /*.binding=*/0 _wgpu_COMMA \
3713 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3714 /*.bindingArraySize=*/0 _wgpu_COMMA \
3715 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3716 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3717 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3718 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3719})
3720
3734
3738#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3739 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3740 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3741})
3742
3760
3764#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3765 /*.nextInChain=*/NULL _wgpu_COMMA \
3766 /*.messageCount=*/0 _wgpu_COMMA \
3767 /*.messages=*/NULL _wgpu_COMMA \
3768})
3769
3786
3790#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3791 /*.nextInChain=*/NULL _wgpu_COMMA \
3792 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3793 /*.timestampWrites=*/NULL _wgpu_COMMA \
3794})
3795
3820
3824#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3825 /*.nextInChain=*/NULL _wgpu_COMMA \
3826 /*.module=*/NULL _wgpu_COMMA \
3827 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3828 /*.constantCount=*/0 _wgpu_COMMA \
3829 /*.constants=*/NULL _wgpu_COMMA \
3830})
3831
3886
3890#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3891 /*.nextInChain=*/NULL _wgpu_COMMA \
3892 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3893 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3894 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3895 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3896 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3897 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3898 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3899 /*.depthBias=*/0 _wgpu_COMMA \
3900 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3901 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3902})
3903
3945
3949#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
3950 /*.nextInChain=*/NULL _wgpu_COMMA \
3951 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3952 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3953 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3954 /*.requiredLimits=*/NULL _wgpu_COMMA \
3955 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
3956 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
3957 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
3958})
3959
3979
3983#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3984 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3985 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
3986})
3987
4006
4010#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4011 /*.nextInChain=*/NULL _wgpu_COMMA \
4012 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4013 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4014 /*.requiredLimits=*/NULL _wgpu_COMMA \
4015})
4016
4050
4054#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4055 /*.nextInChain=*/NULL _wgpu_COMMA \
4056 /*.view=*/NULL _wgpu_COMMA \
4057 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4058 /*.resolveTarget=*/NULL _wgpu_COMMA \
4059 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4060 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4061 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4062})
4063
4106
4110#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4111 /*.nextInChain=*/NULL _wgpu_COMMA \
4112 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4113 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4114 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4115 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4116 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4117})
4118
4131
4135#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4136 /*.nextInChain=*/NULL _wgpu_COMMA \
4137 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4138})
4139
4158
4162#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4163 /*.nextInChain=*/NULL _wgpu_COMMA \
4164 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4165})
4166
4180
4184#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4185 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4186 /*.buffer=*/NULL _wgpu_COMMA \
4187})
4188
4213
4217#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4218 /*.texture=*/NULL _wgpu_COMMA \
4219 /*.mipLevel=*/0 _wgpu_COMMA \
4220 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4221 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4222})
4223
4271
4275#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4276 /*.nextInChain=*/NULL _wgpu_COMMA \
4277 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4278 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4279 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4280 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4281 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4282 /*.mipLevelCount=*/1 _wgpu_COMMA \
4283 /*.sampleCount=*/1 _wgpu_COMMA \
4284 /*.viewFormatCount=*/0 _wgpu_COMMA \
4285 /*.viewFormats=*/NULL _wgpu_COMMA \
4286})
4287
4323
4327#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4328 /*.nextInChain=*/NULL _wgpu_COMMA \
4329 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4330 /*.arrayStride=*/0 _wgpu_COMMA \
4331 /*.attributeCount=*/0 _wgpu_COMMA \
4332 /*.attributes=*/NULL _wgpu_COMMA \
4333})
4334
4355
4359#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4360 /*.nextInChain=*/NULL _wgpu_COMMA \
4361 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4362 /*.entryCount=*/0 _wgpu_COMMA \
4363 /*.entries=*/NULL _wgpu_COMMA \
4364})
4365
4388
4392#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4393 /*.nextInChain=*/NULL _wgpu_COMMA \
4394 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4395 /*.blend=*/NULL _wgpu_COMMA \
4396 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4397})
4398
4419
4423#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4424 /*.nextInChain=*/NULL _wgpu_COMMA \
4425 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4426 /*.layout=*/NULL _wgpu_COMMA \
4427 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4428})
4429
4462
4466#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4467 /*.nextInChain=*/NULL _wgpu_COMMA \
4468 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4469 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4470 /*.colorAttachments=*/NULL _wgpu_COMMA \
4471 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4472 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4473 /*.timestampWrites=*/NULL _wgpu_COMMA \
4474})
4475
4508
4512#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4513 /*.nextInChain=*/NULL _wgpu_COMMA \
4514 /*.module=*/NULL _wgpu_COMMA \
4515 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4516 /*.constantCount=*/0 _wgpu_COMMA \
4517 /*.constants=*/NULL _wgpu_COMMA \
4518 /*.bufferCount=*/0 _wgpu_COMMA \
4519 /*.buffers=*/NULL _wgpu_COMMA \
4520})
4521
4554
4558#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4559 /*.nextInChain=*/NULL _wgpu_COMMA \
4560 /*.module=*/NULL _wgpu_COMMA \
4561 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4562 /*.constantCount=*/0 _wgpu_COMMA \
4563 /*.constants=*/NULL _wgpu_COMMA \
4564 /*.targetCount=*/0 _wgpu_COMMA \
4565 /*.targets=*/NULL _wgpu_COMMA \
4566})
4567
4604
4608#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4609 /*.nextInChain=*/NULL _wgpu_COMMA \
4610 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4611 /*.layout=*/NULL _wgpu_COMMA \
4612 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4613 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4614 /*.depthStencil=*/NULL _wgpu_COMMA \
4615 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4616 /*.fragment=*/NULL _wgpu_COMMA \
4617})
4618
4621#ifdef __cplusplus
4622extern "C" {
4623#endif
4624
4625#if !defined(WGPU_SKIP_PROCS)
4626// Global procs
4631typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4636typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4641typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4646typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4651typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4652
4653
4654// Procs of Adapter
4659typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4664typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4669typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4674typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4679typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4684typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4689typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4690
4691// Procs of AdapterInfo
4696typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4697
4698// Procs of BindGroup
4703typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4708typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4713typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4714
4715// Procs of BindGroupLayout
4720typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4725typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4730typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4731
4732// Procs of Buffer
4737typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4742typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4747typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4752typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4757typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4762typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4767typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4772typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4777typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4782typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4787typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4792typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4797typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4798
4799// Procs of CommandBuffer
4804typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4809typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4814typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4815
4816// Procs of CommandEncoder
4821typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4826typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4831typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4836typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4841typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4846typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4851typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4856typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4861typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4866typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4871typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4876typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4881typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4886typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4891typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4896typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4897
4898// Procs of ComputePassEncoder
4903typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4908typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4913typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4918typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4923typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4928typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4933typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4938typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4943typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4948typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4953typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4954
4955// Procs of ComputePipeline
4960typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
4965typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4970typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4975typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4976
4977// Procs of Device
4982typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4987typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4992typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4997typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5002typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5007typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5012typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5017typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5022typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5027typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5032typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5037typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5042typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5047typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5052typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5057typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5062typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5067typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5072typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5077typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5082typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5087typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5092typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5097typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5102typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5107typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5108
5109// Procs of Instance
5114typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5119typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5124typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5129typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5134typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5139typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5144typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5149typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5150
5151// Procs of PipelineLayout
5156typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5161typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5166typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5167
5168// Procs of QuerySet
5173typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5178typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5183typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5188typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5193typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5198typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5199
5200// Procs of Queue
5205typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5210typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5215typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5220typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5225typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5230typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5235typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5236
5237// Procs of RenderBundle
5242typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5247typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5252typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5253
5254// Procs of RenderBundleEncoder
5259typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5264typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5269typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5274typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5279typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5284typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5289typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5294typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5299typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5304typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5309typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5314typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5319typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5324typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5329typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5330
5331// Procs of RenderPassEncoder
5336typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5341typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5346typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5351typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5356typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5361typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5366typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5371typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5376typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5381typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5386typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5391typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5396typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5401typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5406typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5411typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5416typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5421typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5426typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5431typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5436typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5441typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5442
5443// Procs of RenderPipeline
5448typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5453typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5458typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5463typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5464
5465// Procs of Sampler
5470typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5475typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5480typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5481
5482// Procs of ShaderModule
5487typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5492typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5497typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5502typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5503
5504// Procs of SupportedFeatures
5509typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5510
5511// Procs of SupportedInstanceFeatures
5516typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5517
5518// Procs of SupportedWGSLLanguageFeatures
5523typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5524
5525// Procs of Surface
5530typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5535typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5540typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5545typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5550typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5555typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5560typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5565typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5566
5567// Procs of SurfaceCapabilities
5572typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5573
5574// Procs of Texture
5579typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5584typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5589typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5594typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5599typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5604typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5609typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5614typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5619typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5624typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5629typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5634typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5639typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5640
5641// Procs of TextureView
5646typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5651typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5656typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5657
5658#endif // !defined(WGPU_SKIP_PROCS)
5659
5660#if !defined(WGPU_SKIP_DECLARATIONS)
5673WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5680WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5687WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5691WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5696WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5697
5719WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5727WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5732WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5733WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5734WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5735WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5736WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5737
5749WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5750
5759WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5760WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5761WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5762
5771WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5772WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5773WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5774
5783WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5801WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5818WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5819WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5820WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5821WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5830WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5851WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5852WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5853WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5874WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5875WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5876WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5877
5886WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5887WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5888WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5889
5902WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5907WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5908WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5909WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5910WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5911WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5912WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5917WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5918WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5919WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5920WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5921WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5922WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5923WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5924WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5925WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5926
5935WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5936WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5937WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5938WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5939WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5940WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5941WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5942WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5943WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5944WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5945WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5946
5959WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5960WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5961WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5962WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5963
5976WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5981WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5991WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5996WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6001WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6007WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6012WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6022WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6028WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6033WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6038WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6039WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6047WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6054WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6059WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6064WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6069WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6070WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6075WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6080WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6081WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6082WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6083WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6084
6103WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6107WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6108WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6114WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6115WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6121WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6122WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6123WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6124
6133WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6134WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6135WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6136
6145WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6146WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6147WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6148WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6149WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6150WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6151
6160WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6161WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6162WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6167WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6168WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6169WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6170WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6171
6180WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6181WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6182WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6183
6192WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6193WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6194WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6195WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6200WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6201WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6202WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6203WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6204WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6205WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6206WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6207WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6208WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6209WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6210WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6211
6220WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6221WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6222WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6223WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6224WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6225WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6226WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6227WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6228WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6229WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6230WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6231WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6236WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6237WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6238WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6241WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6242WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6248WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6249WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6250WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6251
6264WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6265WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6266WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6267WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6268
6277WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6278WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6279WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6280
6289WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6290WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6291WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6292WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6293
6305WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6306
6318WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6319
6331WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6332
6350WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6366WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6376WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6384WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6391WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6396WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6397WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6398WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6399
6411WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6412
6425WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6426WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6427WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6428WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6429WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6430WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6431WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6432WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6433WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6434WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6435WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6436WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6437WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6438
6447WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6448WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6449WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6450
6455#endif // !defined(WGPU_SKIP_DECLARATIONS)
6456
6457#ifdef __cplusplus
6458} // extern "C"
6459#endif
6460
6461#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1273
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1257
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1266
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1253
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1274
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1223
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1241
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1219
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1287
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1310
WGPUFlags WGPUMapMode
Definition webgpu.h:1283
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1313
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1278
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1311
WGPUFlags WGPUShaderStage
Definition webgpu.h:1294
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1261
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1300
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1301
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1289
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1298
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1315
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1229
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1312
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1233
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1314
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1306
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1249
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1288
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1272
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1245
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1299
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1270
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1271
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1215
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1237
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1441
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1430
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1352
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1375
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1360
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1344
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1419
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1334
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1408
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1394
WGPUIndexFormat
Definition webgpu.h:643
WGPURequestAdapterStatus
Definition webgpu.h:812
WGPUFeatureName
Definition webgpu.h:599
WGPUVertexFormat
Definition webgpu.h:1120
WGPUSType
Definition webgpu.h:904
WGPUBufferBindingType
Definition webgpu.h:419
WGPUDeviceLostReason
Definition webgpu.h:553
WGPUCompareFunction
Definition webgpu.h:472
WGPUCullMode
Definition webgpu.h:542
WGPUTextureDimension
Definition webgpu.h:961
WGPURequestDeviceStatus
Definition webgpu.h:823
WGPUCompilationMessageType
Definition webgpu.h:497
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:531
WGPUTextureViewDimension
Definition webgpu.h:1100
WGPUPrimitiveTopology
Definition webgpu.h:779
WGPUTextureFormat
Definition webgpu.h:972
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1195
WGPUStencilOperation
Definition webgpu.h:861
WGPUAddressMode
Definition webgpu.h:354
WGPUToneMappingMode
Definition webgpu.h:1114
WGPUTextureAspect
Definition webgpu.h:950
WGPUBufferMapState
Definition webgpu.h:436
WGPUFilterMode
Definition webgpu.h:623
WGPUBackendType
Definition webgpu.h:365
WGPUBlendFactor
Definition webgpu.h:381
WGPUSamplerBindingType
Definition webgpu.h:833
WGPULoadOp
Definition webgpu.h:673
WGPUPopErrorScopeStatus
Definition webgpu.h:714
WGPUWaitStatus
Definition webgpu.h:1178
WGPUStorageTextureAccess
Definition webgpu.h:877
WGPUPowerPreference
Definition webgpu.h:730
WGPUPresentMode
Definition webgpu.h:749
WGPUMapAsyncStatus
Definition webgpu.h:683
WGPUBlendOperation
Definition webgpu.h:406
WGPUCompositeAlphaMode
Definition webgpu.h:507
WGPUPredefinedColorSpace
Definition webgpu.h:740
WGPUQueueWorkDoneStatus
Definition webgpu.h:798
WGPUVertexStepMode
Definition webgpu.h:1165
WGPUQueryType
Definition webgpu.h:792
WGPUFeatureLevel
Definition webgpu.h:583
WGPUAdapterType
Definition webgpu.h:346
WGPUInstanceFeatureName
Definition webgpu.h:653
WGPUStatus
Definition webgpu.h:855
WGPUCompilationInfoRequestStatus
Definition webgpu.h:488
WGPUMipmapFilterMode
Definition webgpu.h:694
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:922
WGPUFrontFace
Definition webgpu.h:633
WGPUStoreOp
Definition webgpu.h:894
WGPUErrorFilter
Definition webgpu.h:564
WGPUOptionalBool
Definition webgpu.h:704
WGPUCallbackMode
Definition webgpu.h:446
WGPUTextureSampleType
Definition webgpu.h:1081
WGPUErrorType
Definition webgpu.h:571
@ WGPUIndexFormat_Force32
Definition webgpu.h:650
@ WGPUIndexFormat_Uint16
Definition webgpu.h:648
@ WGPUIndexFormat_Undefined
Definition webgpu.h:647
@ WGPUIndexFormat_Uint32
Definition webgpu.h:649
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:818
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:813
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:819
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:817
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:820
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:606
@ WGPUFeatureName_Subgroups
Definition webgpu.h:617
@ WGPUFeatureName_Force32
Definition webgpu.h:620
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:615
@ WGPUFeatureName_Depth32FloatStencil8
Definition webgpu.h:602
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition webgpu.h:611
@ WGPUFeatureName_TextureFormatsTier1
Definition webgpu.h:618
@ WGPUFeatureName_BGRA8UnormStorage
Definition webgpu.h:612
@ WGPUFeatureName_Float32Blendable
Definition webgpu.h:614
@ WGPUFeatureName_DualSourceBlending
Definition webgpu.h:616
@ WGPUFeatureName_TextureCompressionASTCSliced3D
Definition webgpu.h:607
@ WGPUFeatureName_TextureCompressionBCSliced3D
Definition webgpu.h:604
@ WGPUFeatureName_CoreFeaturesAndLimits
Definition webgpu.h:600
@ WGPUFeatureName_ShaderF16
Definition webgpu.h:610
@ WGPUFeatureName_Float32Filterable
Definition webgpu.h:613
@ WGPUFeatureName_TimestampQuery
Definition webgpu.h:608
@ WGPUFeatureName_TextureFormatsTier2
Definition webgpu.h:619
@ WGPUFeatureName_TextureCompressionBC
Definition webgpu.h:603
@ WGPUFeatureName_TextureCompressionETC2
Definition webgpu.h:605
@ WGPUFeatureName_IndirectFirstInstance
Definition webgpu.h:609
@ WGPUFeatureName_DepthClipControl
Definition webgpu.h:601
@ WGPUVertexFormat_Sint32x4
Definition webgpu.h:1159
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1149
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1157
@ WGPUVertexFormat_Float32
Definition webgpu.h:1148
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1147
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1135
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1131
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1123
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1125
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1127
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1129
@ WGPUVertexFormat_Force32
Definition webgpu.h:1162
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1122
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1151
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1146
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1152
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1130
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1124
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1155
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1161
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1156
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1133
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1153
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1154
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1142
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1138
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1160
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1140
@ WGPUVertexFormat_Float16
Definition webgpu.h:1145
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1128
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1158
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1137
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1132
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1121
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1126
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1139
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1136
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1134
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1143
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1141
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1150
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1144
@ WGPUSType_Force32
Definition webgpu.h:916
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:911
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:905
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:914
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:912
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:913
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:909
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:907
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:908
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:915
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:906
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:910
@ WGPUBufferBindingType_BindingNotUsed
Definition webgpu.h:425
@ WGPUBufferBindingType_Storage
Definition webgpu.h:431
@ WGPUBufferBindingType_Undefined
Definition webgpu.h:429
@ WGPUBufferBindingType_Force32
Definition webgpu.h:433
@ WGPUBufferBindingType_ReadOnlyStorage
Definition webgpu.h:432
@ WGPUBufferBindingType_Uniform
Definition webgpu.h:430
@ WGPUDeviceLostReason_FailedCreation
Definition webgpu.h:560
@ WGPUDeviceLostReason_Destroyed
Definition webgpu.h:555
@ WGPUDeviceLostReason_CallbackCancelled
Definition webgpu.h:559
@ WGPUDeviceLostReason_Force32
Definition webgpu.h:561
@ WGPUDeviceLostReason_Unknown
Definition webgpu.h:554
@ WGPUCompareFunction_Force32
Definition webgpu.h:485
@ WGPUCompareFunction_Always
Definition webgpu.h:484
@ WGPUCompareFunction_Never
Definition webgpu.h:477
@ WGPUCompareFunction_NotEqual
Definition webgpu.h:482
@ WGPUCompareFunction_Less
Definition webgpu.h:478
@ WGPUCompareFunction_Undefined
Definition webgpu.h:476
@ WGPUCompareFunction_GreaterEqual
Definition webgpu.h:483
@ WGPUCompareFunction_Equal
Definition webgpu.h:479
@ WGPUCompareFunction_LessEqual
Definition webgpu.h:480
@ WGPUCompareFunction_Greater
Definition webgpu.h:481
@ WGPUCullMode_Force32
Definition webgpu.h:550
@ WGPUCullMode_Undefined
Definition webgpu.h:546
@ WGPUCullMode_Back
Definition webgpu.h:549
@ WGPUCullMode_Front
Definition webgpu.h:548
@ WGPUCullMode_None
Definition webgpu.h:547
@ WGPUTextureDimension_Undefined
Definition webgpu.h:965
@ WGPUTextureDimension_2D
Definition webgpu.h:967
@ WGPUTextureDimension_Force32
Definition webgpu.h:969
@ WGPUTextureDimension_3D
Definition webgpu.h:968
@ WGPUTextureDimension_1D
Definition webgpu.h:966
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:828
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:824
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:829
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:830
@ WGPUCompilationMessageType_Force32
Definition webgpu.h:501
@ WGPUCompilationMessageType_Info
Definition webgpu.h:500
@ WGPUCompilationMessageType_Warning
Definition webgpu.h:499
@ WGPUCompilationMessageType_Error
Definition webgpu.h:498
@ WGPUCreatePipelineAsyncStatus_Force32
Definition webgpu.h:539
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition webgpu.h:537
@ WGPUCreatePipelineAsyncStatus_CallbackCancelled
Definition webgpu.h:536
@ WGPUCreatePipelineAsyncStatus_Success
Definition webgpu.h:532
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition webgpu.h:538
@ WGPUTextureViewDimension_Cube
Definition webgpu.h:1108
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1107
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1106
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1110
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1105
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1109
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1104
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1111
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:785
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:786
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:783
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:787
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:784
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:788
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:789
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1074
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1035
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1038
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:998
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:986
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1040
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1050
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1043
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1047
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1033
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:1000
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1068
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:1004
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1058
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1042
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1070
@ WGPUTextureFormat_RG16Unorm
Definition webgpu.h:993
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1064
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1017
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1036
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1011
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1016
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1072
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1025
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:987
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1075
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1022
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:996
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1048
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1041
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1037
@ WGPUTextureFormat_R32Float
Definition webgpu.h:990
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1039
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:984
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:980
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:999
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1031
@ WGPUTextureFormat_RGBA16Unorm
Definition webgpu.h:1012
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:1001
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1049
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1014
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1073
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:1006
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1067
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1054
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:991
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1045
@ WGPUTextureFormat_RG16Snorm
Definition webgpu.h:994
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1052
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1030
@ WGPUTextureFormat_R16Unorm
Definition webgpu.h:981
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:1003
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1032
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1034
@ WGPUTextureFormat_Force32
Definition webgpu.h:1078
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1026
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1055
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1063
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:992
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1029
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1018
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1020
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1046
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1059
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:995
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1071
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1008
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1021
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:989
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1065
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:983
@ WGPUTextureFormat_Undefined
Definition webgpu.h:976
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1069
@ WGPUTextureFormat_R16Float
Definition webgpu.h:985
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1053
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1009
@ WGPUTextureFormat_RGBA16Snorm
Definition webgpu.h:1013
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1007
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1077
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1019
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1027
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:997
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1056
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1023
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1066
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1015
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:977
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1024
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1028
@ WGPUTextureFormat_R16Snorm
Definition webgpu.h:982
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1062
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:988
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:979
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1060
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1076
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:1005
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1051
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1044
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1010
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1061
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:1002
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:978
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1057
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1196
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1198
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1199
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1200
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1197
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:871
@ WGPUStencilOperation_Undefined
Definition webgpu.h:865
@ WGPUStencilOperation_Replace
Definition webgpu.h:868
@ WGPUStencilOperation_Keep
Definition webgpu.h:866
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:873
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:872
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:870
@ WGPUStencilOperation_Invert
Definition webgpu.h:869
@ WGPUStencilOperation_Force32
Definition webgpu.h:874
@ WGPUStencilOperation_Zero
Definition webgpu.h:867
@ WGPUAddressMode_Repeat
Definition webgpu.h:360
@ WGPUAddressMode_MirrorRepeat
Definition webgpu.h:361
@ WGPUAddressMode_Undefined
Definition webgpu.h:358
@ WGPUAddressMode_ClampToEdge
Definition webgpu.h:359
@ WGPUAddressMode_Force32
Definition webgpu.h:362
@ WGPUToneMappingMode_Force32
Definition webgpu.h:1117
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1115
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1116
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:957
@ WGPUTextureAspect_Force32
Definition webgpu.h:958
@ WGPUTextureAspect_Undefined
Definition webgpu.h:954
@ WGPUTextureAspect_All
Definition webgpu.h:955
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:956
@ WGPUBufferMapState_Pending
Definition webgpu.h:438
@ WGPUBufferMapState_Mapped
Definition webgpu.h:439
@ WGPUBufferMapState_Unmapped
Definition webgpu.h:437
@ WGPUBufferMapState_Force32
Definition webgpu.h:440
@ WGPUFilterMode_Undefined
Definition webgpu.h:627
@ WGPUFilterMode_Force32
Definition webgpu.h:630
@ WGPUFilterMode_Nearest
Definition webgpu.h:628
@ WGPUFilterMode_Linear
Definition webgpu.h:629
@ WGPUBackendType_Vulkan
Definition webgpu.h:375
@ WGPUBackendType_OpenGL
Definition webgpu.h:376
@ WGPUBackendType_Force32
Definition webgpu.h:378
@ WGPUBackendType_OpenGLES
Definition webgpu.h:377
@ WGPUBackendType_WebGPU
Definition webgpu.h:371
@ WGPUBackendType_D3D11
Definition webgpu.h:372
@ WGPUBackendType_D3D12
Definition webgpu.h:373
@ WGPUBackendType_Undefined
Definition webgpu.h:369
@ WGPUBackendType_Null
Definition webgpu.h:370
@ WGPUBackendType_Metal
Definition webgpu.h:374
@ WGPUBlendFactor_DstAlpha
Definition webgpu.h:394
@ WGPUBlendFactor_One
Definition webgpu.h:387
@ WGPUBlendFactor_Zero
Definition webgpu.h:386
@ WGPUBlendFactor_Src1Alpha
Definition webgpu.h:401
@ WGPUBlendFactor_Undefined
Definition webgpu.h:385
@ WGPUBlendFactor_OneMinusDst
Definition webgpu.h:393
@ WGPUBlendFactor_Force32
Definition webgpu.h:403
@ WGPUBlendFactor_OneMinusSrc1
Definition webgpu.h:400
@ WGPUBlendFactor_Constant
Definition webgpu.h:397
@ WGPUBlendFactor_OneMinusSrc
Definition webgpu.h:389
@ WGPUBlendFactor_SrcAlphaSaturated
Definition webgpu.h:396
@ WGPUBlendFactor_Src
Definition webgpu.h:388
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition webgpu.h:391
@ WGPUBlendFactor_SrcAlpha
Definition webgpu.h:390
@ WGPUBlendFactor_OneMinusConstant
Definition webgpu.h:398
@ WGPUBlendFactor_Src1
Definition webgpu.h:399
@ WGPUBlendFactor_OneMinusDstAlpha
Definition webgpu.h:395
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition webgpu.h:402
@ WGPUBlendFactor_Dst
Definition webgpu.h:392
@ WGPUSamplerBindingType_BindingNotUsed
Definition webgpu.h:839
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:845
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:847
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:844
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:843
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:846
@ WGPULoadOp_Load
Definition webgpu.h:678
@ WGPULoadOp_Force32
Definition webgpu.h:680
@ WGPULoadOp_Undefined
Definition webgpu.h:677
@ WGPULoadOp_Clear
Definition webgpu.h:679
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:727
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:718
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:722
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:726
@ WGPUWaitStatus_Error
Definition webgpu.h:1191
@ WGPUWaitStatus_Force32
Definition webgpu.h:1192
@ WGPUWaitStatus_Success
Definition webgpu.h:1182
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1186
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:887
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:883
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:889
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:888
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:891
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:890
@ WGPUPowerPreference_Force32
Definition webgpu.h:737
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:736
@ WGPUPowerPreference_LowPower
Definition webgpu.h:735
@ WGPUPowerPreference_Undefined
Definition webgpu.h:734
@ WGPUPresentMode_Fifo
Definition webgpu.h:759
@ WGPUPresentMode_Force32
Definition webgpu.h:776
@ WGPUPresentMode_Immediate
Definition webgpu.h:770
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:765
@ WGPUPresentMode_Mailbox
Definition webgpu.h:775
@ WGPUPresentMode_Undefined
Definition webgpu.h:753
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:690
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:688
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:689
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:691
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:684
@ WGPUBlendOperation_Undefined
Definition webgpu.h:410
@ WGPUBlendOperation_Max
Definition webgpu.h:415
@ WGPUBlendOperation_Subtract
Definition webgpu.h:412
@ WGPUBlendOperation_Min
Definition webgpu.h:414
@ WGPUBlendOperation_Add
Definition webgpu.h:411
@ WGPUBlendOperation_Force32
Definition webgpu.h:416
@ WGPUBlendOperation_ReverseSubtract
Definition webgpu.h:413
@ WGPUCompositeAlphaMode_Auto
Definition webgpu.h:511
@ WGPUCompositeAlphaMode_Force32
Definition webgpu.h:528
@ WGPUCompositeAlphaMode_Opaque
Definition webgpu.h:515
@ WGPUCompositeAlphaMode_Unpremultiplied
Definition webgpu.h:523
@ WGPUCompositeAlphaMode_Inherit
Definition webgpu.h:527
@ WGPUCompositeAlphaMode_Premultiplied
Definition webgpu.h:519
@ WGPUPredefinedColorSpace_DisplayP3
Definition webgpu.h:742
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:741
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:743
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:808
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:803
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:799
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:809
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1169
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1171
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1170
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1172
@ WGPUQueryType_Occlusion
Definition webgpu.h:793
@ WGPUQueryType_Timestamp
Definition webgpu.h:794
@ WGPUQueryType_Force32
Definition webgpu.h:795
@ WGPUFeatureLevel_Undefined
Definition webgpu.h:587
@ WGPUFeatureLevel_Core
Definition webgpu.h:595
@ WGPUFeatureLevel_Force32
Definition webgpu.h:596
@ WGPUFeatureLevel_Compatibility
Definition webgpu.h:591
@ WGPUAdapterType_CPU
Definition webgpu.h:349
@ WGPUAdapterType_DiscreteGPU
Definition webgpu.h:347
@ WGPUAdapterType_IntegratedGPU
Definition webgpu.h:348
@ WGPUAdapterType_Unknown
Definition webgpu.h:350
@ WGPUAdapterType_Force32
Definition webgpu.h:351
@ WGPUInstanceFeatureName_ShaderSourceSPIRV
Definition webgpu.h:662
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:670
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
Definition webgpu.h:669
@ WGPUInstanceFeatureName_TimedWaitAny
Definition webgpu.h:657
@ WGPUStatus_Force32
Definition webgpu.h:858
@ WGPUStatus_Success
Definition webgpu.h:856
@ WGPUStatus_Error
Definition webgpu.h:857
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:494
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:489
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:493
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:698
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:700
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:701
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:699
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:942
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:946
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:938
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:934
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:926
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:947
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:930
@ WGPUFrontFace_CW
Definition webgpu.h:639
@ WGPUFrontFace_Undefined
Definition webgpu.h:637
@ WGPUFrontFace_CCW
Definition webgpu.h:638
@ WGPUFrontFace_Force32
Definition webgpu.h:640
@ WGPUStoreOp_Discard
Definition webgpu.h:900
@ WGPUStoreOp_Force32
Definition webgpu.h:901
@ WGPUStoreOp_Store
Definition webgpu.h:899
@ WGPUStoreOp_Undefined
Definition webgpu.h:898
@ WGPUErrorFilter_Internal
Definition webgpu.h:567
@ WGPUErrorFilter_Force32
Definition webgpu.h:568
@ WGPUErrorFilter_OutOfMemory
Definition webgpu.h:566
@ WGPUErrorFilter_Validation
Definition webgpu.h:565
@ WGPUOptionalBool_True
Definition webgpu.h:709
@ WGPUOptionalBool_Force32
Definition webgpu.h:711
@ WGPUOptionalBool_Undefined
Definition webgpu.h:710
@ WGPUOptionalBool_False
Definition webgpu.h:708
@ WGPUCallbackMode_AllowProcessEvents
Definition webgpu.h:458
@ WGPUCallbackMode_AllowSpontaneous
Definition webgpu.h:468
@ WGPUCallbackMode_WaitAnyOnly
Definition webgpu.h:452
@ WGPUCallbackMode_Force32
Definition webgpu.h:469
@ WGPUTextureSampleType_Float
Definition webgpu.h:1092
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1095
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1087
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1091
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1097
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1096
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1094
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1093
@ WGPUErrorType_NoError
Definition webgpu.h:572
@ WGPUErrorType_OutOfMemory
Definition webgpu.h:574
@ WGPUErrorType_Unknown
Definition webgpu.h:576
@ WGPUErrorType_Validation
Definition webgpu.h:573
@ WGPUErrorType_Force32
Definition webgpu.h:577
@ WGPUErrorType_Internal
Definition webgpu.h:575
WGPUInstance wgpuCreateInstance(WGPUInstanceDescriptor const *descriptor)
WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits *limits)
WGPUProc wgpuGetProcAddress(WGPUStringView procName)
void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures *features)
WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature)
struct WGPUPipelineLayoutImpl * WGPUPipelineLayout
Definition webgpu.h:233
struct WGPUSamplerImpl * WGPUSampler
Definition webgpu.h:240
struct WGPUQueueImpl * WGPUQueue
Definition webgpu.h:235
struct WGPUSurfaceImpl * WGPUSurface
Definition webgpu.h:245
struct WGPURenderBundleImpl * WGPURenderBundle
Definition webgpu.h:236
struct WGPUComputePassEncoderImpl * WGPUComputePassEncoder
Definition webgpu.h:223
struct WGPUBindGroupImpl * WGPUBindGroup
Definition webgpu.h:218
struct WGPUInstanceImpl * WGPUInstance
Definition webgpu.h:232
struct WGPUBindGroupLayoutImpl * WGPUBindGroupLayout
Definition webgpu.h:219
struct WGPUTextureViewImpl * WGPUTextureView
Definition webgpu.h:247
struct WGPURenderPassEncoderImpl * WGPURenderPassEncoder
Definition webgpu.h:238
struct WGPUShaderModuleImpl * WGPUShaderModule
Definition webgpu.h:241
struct WGPUQuerySetImpl * WGPUQuerySet
Definition webgpu.h:234
struct WGPUCommandBufferImpl * WGPUCommandBuffer
Definition webgpu.h:221
struct WGPURenderBundleEncoderImpl * WGPURenderBundleEncoder
Definition webgpu.h:237
struct WGPUDeviceImpl * WGPUDevice
Definition webgpu.h:231
struct WGPUCommandEncoderImpl * WGPUCommandEncoder
Definition webgpu.h:222
struct WGPUTextureImpl * WGPUTexture
Definition webgpu.h:246
struct WGPUComputePipelineImpl * WGPUComputePipeline
Definition webgpu.h:224
struct WGPURenderPipelineImpl * WGPURenderPipeline
Definition webgpu.h:239
struct WGPUAdapterImpl * WGPUAdapter
Definition webgpu.h:217
struct WGPUBufferImpl * WGPUBuffer
Definition webgpu.h:220
struct WGPUFuture WGPUFuture
uint32_t WGPUBool
Definition webgpu.h:207
uint64_t WGPUFlags
Definition webgpu.h:206
void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo)
WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits *limits)
void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures *features)
WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallbackInfo callbackInfo)
void wgpuAdapterAddRef(WGPUAdapter adapter)
WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature)
void wgpuAdapterRelease(WGPUAdapter adapter)
WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo *info)
void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label)
void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout)
void wgpuBindGroupAddRef(WGPUBindGroup bindGroup)
void wgpuBindGroupRelease(WGPUBindGroup bindGroup)
void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label)
WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer)
WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer)
WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo)
void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
uint64_t wgpuBufferGetSize(WGPUBuffer buffer)
void wgpuBufferAddRef(WGPUBuffer buffer)
WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void *data, size_t size)
void wgpuBufferRelease(WGPUBuffer buffer)
void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size)
void wgpuBufferUnmap(WGPUBuffer buffer)
WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const *data, size_t size)
void wgpuBufferDestroy(WGPUBuffer buffer)
void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label)
void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label)
void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer)
void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer)
WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor)
WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPUCommandBufferDescriptor const *descriptor)
void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPUComputePassDescriptor const *descriptor)
void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder)
void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label)
void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel)
void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset)
void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel)
void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex)
void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const *source, WGPUTexelCopyTextureInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size)
void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const *source, WGPUTexelCopyBufferInfo const *destination, WGPUExtent3D const *copySize)
void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder)
void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline)
void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label)
void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ)
void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder)
void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel)
void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel)
WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex)
void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline)
void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label)
void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline)
WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor)
WGPUQueue wgpuDeviceGetQueue(WGPUDevice device)
WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPUSamplerDescriptor const *descriptor)
WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor)
WGPUFuture wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo)
WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor)
WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor)
void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures *features)
WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo *adapterInfo)
WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor)
void wgpuDeviceRelease(WGPUDevice device)
WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo)
WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits *limits)
WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor)
WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature)
WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor)
WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor)
WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPUCommandEncoderDescriptor const *descriptor)
void wgpuDeviceDestroy(WGPUDevice device)
void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label)
WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor)
WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor)
void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter)
void wgpuDeviceAddRef(WGPUDevice device)
WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device)
WGPUFuture wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo)
WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature)
void wgpuInstanceProcessEvents(WGPUInstance instance)
void wgpuInstanceRelease(WGPUInstance instance)
WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo)
WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS)
void wgpuInstanceAddRef(WGPUInstance instance)
void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures *features)
WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor)
void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout)
void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label)
void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout)
void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label)
void wgpuQuerySetDestroy(WGPUQuerySet querySet)
void wgpuQuerySetRelease(WGPUQuerySet querySet)
void wgpuQuerySetAddRef(WGPUQuerySet querySet)
uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet)
WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet)
void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const *destination, void const *data, size_t dataSize, WGPUTexelCopyBufferLayout const *dataLayout, WGPUExtent3D const *writeSize)
void wgpuQueueAddRef(WGPUQueue queue)
void wgpuQueueRelease(WGPUQueue queue)
void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label)
void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size)
WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo)
void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands)
void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel)
WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderBundleDescriptor const *descriptor)
void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline)
void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel)
void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label)
void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder)
void wgpuRenderBundleRelease(WGPURenderBundle renderBundle)
void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle)
void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label)
void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel)
void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles)
void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets)
void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline)
void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel)
void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex)
void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label)
void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference)
void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth)
void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset)
void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPUBuffer buffer, uint64_t offset, uint64_t size)
void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder)
void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color)
void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance)
WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex)
void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label)
void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline)
void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline)
void wgpuSamplerAddRef(WGPUSampler sampler)
void wgpuSamplerRelease(WGPUSampler sampler)
void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label)
void wgpuShaderModuleRelease(WGPUShaderModule shaderModule)
void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule)
WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo)
void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label)
void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures)
void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures)
void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures)
void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities)
void wgpuSurfaceAddRef(WGPUSurface surface)
WGPUStatus wgpuSurfacePresent(WGPUSurface surface)
void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label)
void wgpuSurfaceUnconfigure(WGPUSurface surface)
void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const *config)
WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities *capabilities)
void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture *surfaceTexture)
void wgpuSurfaceRelease(WGPUSurface surface)
uint32_t wgpuTextureGetSampleCount(WGPUTexture texture)
WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture)
void wgpuTextureDestroy(WGPUTexture texture)
uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture)
void wgpuTextureRelease(WGPUTexture texture)
WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture)
uint32_t wgpuTextureGetHeight(WGPUTexture texture)
uint32_t wgpuTextureGetWidth(WGPUTexture texture)
void wgpuTextureAddRef(WGPUTexture texture)
WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPUTextureViewDescriptor const *descriptor)
WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture)
void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label)
uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture)
void wgpuTextureViewRelease(WGPUTextureView textureView)
void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label)
void wgpuTextureViewAddRef(WGPUTextureView textureView)
WGPUStringView device
Definition webgpu.h:1730
WGPUBackendType backendType
Definition webgpu.h:1740
uint32_t deviceID
Definition webgpu.h:1752
WGPUChainedStruct * nextInChain
Definition webgpu.h:1712
uint32_t subgroupMinSize
Definition webgpu.h:1756
uint32_t vendorID
Definition webgpu.h:1748
WGPUStringView description
Definition webgpu.h:1736
WGPUAdapterType adapterType
Definition webgpu.h:1744
uint32_t subgroupMaxSize
Definition webgpu.h:1760
WGPUStringView architecture
Definition webgpu.h:1724
WGPUStringView vendor
Definition webgpu.h:1718
WGPUChainedStruct * nextInChain
Definition webgpu.h:3638
WGPUStringView label
Definition webgpu.h:3644
WGPUBindGroupLayout layout
Definition webgpu.h:3648
WGPUBindGroupEntry const * entries
Definition webgpu.h:3656
uint64_t offset
Definition webgpu.h:1804
WGPUBuffer buffer
Definition webgpu.h:1797
WGPUSampler sampler
Definition webgpu.h:1819
WGPUTextureView textureView
Definition webgpu.h:1826
WGPUChainedStruct * nextInChain
Definition webgpu.h:1784
uint32_t binding
Definition webgpu.h:1790
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4353
WGPUChainedStruct * nextInChain
Definition webgpu.h:4339
WGPUTextureBindingLayout texture
Definition webgpu.h:3700
WGPUShaderStage visibility
Definition webgpu.h:3682
WGPUBufferBindingLayout buffer
Definition webgpu.h:3692
WGPUChainedStruct * nextInChain
Definition webgpu.h:3674
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3704
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3696
WGPUBlendFactor dstFactor
Definition webgpu.h:1866
WGPUBlendFactor srcFactor
Definition webgpu.h:1859
WGPUBlendOperation operation
Definition webgpu.h:1852
WGPUBlendComponent alpha
Definition webgpu.h:3732
WGPUBlendComponent color
Definition webgpu.h:3728
WGPUBufferBindingType type
Definition webgpu.h:1889
WGPUBool hasDynamicOffset
Definition webgpu.h:1893
WGPUChainedStruct * nextInChain
Definition webgpu.h:1882
WGPUBool mappedAtCreation
Definition webgpu.h:1936
WGPUStringView label
Definition webgpu.h:1920
WGPUBufferUsage usage
Definition webgpu.h:1924
WGPUChainedStruct * nextInChain
Definition webgpu.h:1914
WGPUChainedStruct * nextInChain
Definition webgpu.h:1474
WGPUBufferMapCallback callback
Definition webgpu.h:1481
WGPUCallbackMode mode
Definition webgpu.h:1480
struct WGPUChainedStruct * next
Definition webgpu.h:1452
WGPUSType sType
Definition webgpu.h:1453
WGPUBlendState const * blend
Definition webgpu.h:4382
WGPUColorWriteMask writeMask
Definition webgpu.h:4386
WGPUChainedStruct * nextInChain
Definition webgpu.h:4370
WGPUTextureFormat format
Definition webgpu.h:4378
double a
Definition webgpu.h:1973
double b
Definition webgpu.h:1969
double r
Definition webgpu.h:1961
double g
Definition webgpu.h:1965
WGPUChainedStruct * nextInChain
Definition webgpu.h:1990
WGPUChainedStruct * nextInChain
Definition webgpu.h:2011
WGPUCompilationInfoCallback callback
Definition webgpu.h:1505
WGPUChainedStruct * nextInChain
Definition webgpu.h:1498
WGPUChainedStruct * nextInChain
Definition webgpu.h:3750
WGPUCompilationMessage const * messages
Definition webgpu.h:3758
WGPUChainedStruct * nextInChain
Definition webgpu.h:2035
WGPUCompilationMessageType type
Definition webgpu.h:2049
WGPUStringView message
Definition webgpu.h:2043
WGPUStringView label
Definition webgpu.h:3780
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3784
WGPUChainedStruct * nextInChain
Definition webgpu.h:3774
WGPUComputeState compute
Definition webgpu.h:4417
WGPUChainedStruct * nextInChain
Definition webgpu.h:4403
WGPUPipelineLayout layout
Definition webgpu.h:4413
WGPUChainedStruct * nextInChain
Definition webgpu.h:3800
WGPUConstantEntry const * constants
Definition webgpu.h:3818
size_t constantCount
Definition webgpu.h:3814
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3810
WGPUStringView key
Definition webgpu.h:2099
WGPUChainedStruct * nextInChain
Definition webgpu.h:2093
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1529
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1553
WGPUStencilFaceState stencilFront
Definition webgpu.h:3852
uint32_t stencilWriteMask
Definition webgpu.h:3864
WGPUStencilFaceState stencilBack
Definition webgpu.h:3856
WGPUChainedStruct * nextInChain
Definition webgpu.h:3836
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3844
WGPUCompareFunction depthCompare
Definition webgpu.h:3848
uint32_t stencilReadMask
Definition webgpu.h:3860
WGPUTextureFormat format
Definition webgpu.h:3840
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:3934
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:3943
size_t requiredFeatureCount
Definition webgpu.h:3918
WGPUStringView label
Definition webgpu.h:3914
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:3922
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:3930
WGPUChainedStruct * nextInChain
Definition webgpu.h:3908
WGPULimits const * requiredLimits
Definition webgpu.h:3926
WGPUChainedStruct * nextInChain
Definition webgpu.h:1570
WGPUDeviceLostCallback callback
Definition webgpu.h:1577
WGPUCallbackMode mode
Definition webgpu.h:1576
uint32_t width
Definition webgpu.h:2126
uint32_t depthOrArrayLayers
Definition webgpu.h:2134
uint32_t height
Definition webgpu.h:2130
size_t constantCount
Definition webgpu.h:4540
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4536
WGPUChainedStruct * nextInChain
Definition webgpu.h:4526
size_t targetCount
Definition webgpu.h:4548
WGPUConstantEntry const * constants
Definition webgpu.h:4544
WGPUColorTargetState const * targets
Definition webgpu.h:4552
WGPUFuture future
Definition webgpu.h:3971
WGPUBool completed
Definition webgpu.h:3977
uint64_t id
Definition webgpu.h:2157
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:4000
WGPUChainedStruct * nextInChain
Definition webgpu.h:3992
size_t requiredFeatureCount
Definition webgpu.h:3996
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:4004
size_t timedWaitAnyMaxCount
Definition webgpu.h:2177
WGPUChainedStruct * nextInChain
Definition webgpu.h:2171
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2216
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2292
uint32_t maxTextureDimension2D
Definition webgpu.h:2200
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2232
uint32_t maxTextureDimension3D
Definition webgpu.h:2204
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2236
WGPUChainedStruct * nextInChain
Definition webgpu.h:2192
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2220
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2316
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2228
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2296
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2264
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2308
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2256
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2300
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2280
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2260
uint32_t maxVertexAttributes
Definition webgpu.h:2276
uint32_t maxColorAttachments
Definition webgpu.h:2288
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2284
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2312
uint32_t maxTextureDimension1D
Definition webgpu.h:2196
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2224
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2252
uint64_t maxBufferSize
Definition webgpu.h:2272
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2248
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2304
uint32_t maxVertexBuffers
Definition webgpu.h:2268
uint32_t maxTextureArrayLayers
Definition webgpu.h:2208
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2244
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2240
uint32_t maxImmediateSize
Definition webgpu.h:2320
uint32_t maxBindGroups
Definition webgpu.h:2212
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2378
WGPUChainedStruct * nextInChain
Definition webgpu.h:2366
uint32_t y
Definition webgpu.h:2402
uint32_t z
Definition webgpu.h:2406
uint32_t x
Definition webgpu.h:2398
WGPUQuerySet querySet
Definition webgpu.h:2428
uint32_t endOfPassWriteIndex
Definition webgpu.h:2436
WGPUChainedStruct * nextInChain
Definition webgpu.h:2422
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2432
WGPUChainedStruct * nextInChain
Definition webgpu.h:2453
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2467
WGPUChainedStruct * nextInChain
Definition webgpu.h:1594
WGPUCallbackMode mode
Definition webgpu.h:1600
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1601
WGPUFrontFace frontFace
Definition webgpu.h:2507
WGPUChainedStruct * nextInChain
Definition webgpu.h:2489
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2500
WGPUPrimitiveTopology topology
Definition webgpu.h:2496
WGPUCullMode cullMode
Definition webgpu.h:2514
WGPUBool unclippedDepth
Definition webgpu.h:2518
WGPUQueryType type
Definition webgpu.h:2547
WGPUChainedStruct * nextInChain
Definition webgpu.h:2537
WGPUStringView label
Definition webgpu.h:2543
WGPUChainedStruct * nextInChain
Definition webgpu.h:2568
WGPUStringView label
Definition webgpu.h:2574
WGPUCallbackMode mode
Definition webgpu.h:1624
WGPUChainedStruct * nextInChain
Definition webgpu.h:1618
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1625
WGPUChainedStruct * nextInChain
Definition webgpu.h:2589
WGPUStringView label
Definition webgpu.h:2595
WGPUChainedStruct * nextInChain
Definition webgpu.h:2610
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2624
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2628
WGPUTextureView resolveTarget
Definition webgpu.h:4036
WGPUChainedStruct * nextInChain
Definition webgpu.h:4021
WGPUChainedStruct * nextInChain
Definition webgpu.h:2661
WGPUChainedStruct * nextInChain
Definition webgpu.h:4434
WGPUStringView label
Definition webgpu.h:4440
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4452
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4448
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4456
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4460
WGPUChainedStruct chain
Definition webgpu.h:2727
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4594
WGPUChainedStruct * nextInChain
Definition webgpu.h:4572
WGPUMultisampleState multisample
Definition webgpu.h:4598
WGPUFragmentState const * fragment
Definition webgpu.h:4602
WGPUPrimitiveState primitive
Definition webgpu.h:4590
WGPUPipelineLayout layout
Definition webgpu.h:4582
WGPUVertexState vertex
Definition webgpu.h:4586
WGPURequestAdapterCallback callback
Definition webgpu.h:1649
WGPUChainedStruct * nextInChain
Definition webgpu.h:1642
WGPUFeatureLevel featureLevel
Definition webgpu.h:4079
WGPUBool forceFallbackAdapter
Definition webgpu.h:4090
WGPUSurface compatibleSurface
Definition webgpu.h:4104
WGPUBackendType backendType
Definition webgpu.h:4097
WGPUChainedStruct * nextInChain
Definition webgpu.h:4068
WGPUPowerPreference powerPreference
Definition webgpu.h:4083
WGPUChainedStruct chain
Definition webgpu.h:2751
WGPUCallbackMode mode
Definition webgpu.h:1672
WGPUChainedStruct * nextInChain
Definition webgpu.h:1666
WGPURequestDeviceCallback callback
Definition webgpu.h:1673
WGPUChainedStruct * nextInChain
Definition webgpu.h:2775
WGPUSamplerBindingType type
Definition webgpu.h:2782
WGPUFilterMode minFilter
Definition webgpu.h:2838
WGPUAddressMode addressModeU
Definition webgpu.h:2810
WGPUCompareFunction compare
Definition webgpu.h:2865
WGPUAddressMode addressModeW
Definition webgpu.h:2824
uint16_t maxAnisotropy
Definition webgpu.h:2869
WGPUAddressMode addressModeV
Definition webgpu.h:2817
WGPUStringView label
Definition webgpu.h:2803
WGPUFilterMode magFilter
Definition webgpu.h:2831
WGPUChainedStruct * nextInChain
Definition webgpu.h:2797
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2845
WGPUChainedStruct * nextInChain
Definition webgpu.h:4123
WGPUStringView label
Definition webgpu.h:4129
WGPUChainedStruct chain
Definition webgpu.h:2894
uint32_t const * code
Definition webgpu.h:2902
WGPUChainedStruct chain
Definition webgpu.h:2921
WGPUStringView code
Definition webgpu.h:2927
WGPUCompareFunction compare
Definition webgpu.h:2951
WGPUStencilOperation depthFailOp
Definition webgpu.h:2965
WGPUStencilOperation passOp
Definition webgpu.h:2972
WGPUStencilOperation failOp
Definition webgpu.h:2958
WGPUChainedStruct * nextInChain
Definition webgpu.h:2989
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3007
WGPUTextureFormat format
Definition webgpu.h:3000
WGPUStorageTextureAccess access
Definition webgpu.h:2996
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:3031
WGPUInstanceFeatureName const * features
Definition webgpu.h:3053
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3075
WGPUTextureFormat const * formats
Definition webgpu.h:3109
WGPUChainedStruct * nextInChain
Definition webgpu.h:3092
WGPUPresentMode const * presentModes
Definition webgpu.h:3120
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3131
WGPUTextureUsage usages
Definition webgpu.h:3099
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3162
WGPUChainedStruct chain
Definition webgpu.h:3154
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3158
WGPUTextureUsage usage
Definition webgpu.h:3202
WGPUTextureFormat format
Definition webgpu.h:3196
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3224
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3234
WGPUChainedStruct * nextInChain
Definition webgpu.h:3184
WGPUPresentMode presentMode
Definition webgpu.h:3243
WGPUChainedStruct * nextInChain
Definition webgpu.h:4148
WGPUStringView label
Definition webgpu.h:4156
WGPUChainedStruct chain
Definition webgpu.h:3294
WGPUChainedStruct chain
Definition webgpu.h:3320
WGPUChainedStruct chain
Definition webgpu.h:3353
WGPUChainedStruct chain
Definition webgpu.h:3387
WGPUChainedStruct chain
Definition webgpu.h:3420
WGPUChainedStruct * nextInChain
Definition webgpu.h:3454
WGPUTexture texture
Definition webgpu.h:3461
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3467
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4174
WGPUOrigin3D origin
Definition webgpu.h:4204
WGPUTextureAspect aspect
Definition webgpu.h:4211
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3524
WGPUTextureSampleType sampleType
Definition webgpu.h:3517
WGPUChainedStruct * nextInChain
Definition webgpu.h:3510
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4269
WGPUTextureDimension dimension
Definition webgpu.h:4245
WGPUStringView label
Definition webgpu.h:4234
uint32_t mipLevelCount
Definition webgpu.h:4257
WGPUChainedStruct * nextInChain
Definition webgpu.h:4228
WGPUTextureFormat format
Definition webgpu.h:4253
WGPUTextureUsage usage
Definition webgpu.h:4238
WGPUExtent3D size
Definition webgpu.h:4249
WGPUChainedStruct * nextInChain
Definition webgpu.h:3545
WGPUTextureUsage usage
Definition webgpu.h:3586
WGPUTextureFormat format
Definition webgpu.h:3555
WGPUTextureViewDimension dimension
Definition webgpu.h:3559
WGPUStringView label
Definition webgpu.h:3551
WGPUTextureAspect aspect
Definition webgpu.h:3582
WGPUChainedStruct * nextInChain
Definition webgpu.h:1690
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1691
WGPUVertexFormat format
Definition webgpu.h:3613
WGPUChainedStruct * nextInChain
Definition webgpu.h:3609
uint32_t shaderLocation
Definition webgpu.h:3621
WGPUVertexAttribute const * attributes
Definition webgpu.h:4321
WGPUVertexStepMode stepMode
Definition webgpu.h:4309
WGPUChainedStruct * nextInChain
Definition webgpu.h:4305
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4490
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4506
WGPUConstantEntry const * constants
Definition webgpu.h:4498
size_t constantCount
Definition webgpu.h:4494
size_t bufferCount
Definition webgpu.h:4502
WGPUChainedStruct * nextInChain
Definition webgpu.h:4480