WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
webgpu.h
1
27#ifndef WEBGPU_H_
28#define WEBGPU_H_
29
30#if defined(WGPU_SHARED_LIBRARY)
31# if defined(_WIN32)
32# if defined(WGPU_IMPLEMENTATION)
33# define WGPU_EXPORT __declspec(dllexport)
34# else
35# define WGPU_EXPORT __declspec(dllimport)
36# endif
37# else // defined(_WIN32)
38# if defined(WGPU_IMPLEMENTATION)
39# define WGPU_EXPORT __attribute__((visibility("default")))
40# else
41# define WGPU_EXPORT
42# endif
43# endif // defined(_WIN32)
44#else // defined(WGPU_SHARED_LIBRARY)
45# define WGPU_EXPORT
46#endif // defined(WGPU_SHARED_LIBRARY)
47
48#if !defined(WGPU_OBJECT_ATTRIBUTE)
49#define WGPU_OBJECT_ATTRIBUTE
50#endif
51#if !defined(WGPU_ENUM_ATTRIBUTE)
52#define WGPU_ENUM_ATTRIBUTE
53#endif
54#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
55#define WGPU_STRUCTURE_ATTRIBUTE
56#endif
57#if !defined(WGPU_FUNCTION_ATTRIBUTE)
58#define WGPU_FUNCTION_ATTRIBUTE
59#endif
60#if !defined(WGPU_NULLABLE)
61#define WGPU_NULLABLE
62#endif
63
64#include <stdint.h>
65#include <stddef.h>
66#include <math.h>
67
68#define _wgpu_COMMA ,
69#if defined(__cplusplus)
70# define _wgpu_ENUM_ZERO_INIT(type) type(0)
71# define _wgpu_STRUCT_ZERO_INIT {}
72# if __cplusplus >= 201103L
73# define _wgpu_MAKE_INIT_STRUCT(type, value) (type value)
74# else
75# define _wgpu_MAKE_INIT_STRUCT(type, value) value
76# endif
77#else
78# define _wgpu_ENUM_ZERO_INIT(type) (type)0
79# define _wgpu_STRUCT_ZERO_INIT {0}
80# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
81# define _wgpu_MAKE_INIT_STRUCT(type, value) ((type) value)
82# else
83# define _wgpu_MAKE_INIT_STRUCT(type, value) value
84# endif
85#endif
86
100#define WGPU_TRUE (UINT32_C(1))
107#define WGPU_FALSE (UINT32_C(0))
112#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED (UINT32_MAX)
117#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
122#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
127#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
132#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
137#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
142#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
147#define WGPU_QUERY_SET_INDEX_UNDEFINED (UINT32_MAX)
152#define WGPU_STRLEN (SIZE_MAX)
157#define WGPU_WHOLE_MAP_SIZE (SIZE_MAX)
162#define WGPU_WHOLE_SIZE (UINT64_MAX)
163
193typedef struct WGPUStringView {
194 WGPU_NULLABLE char const * data;
195 size_t length;
196} WGPUStringView WGPU_STRUCTURE_ATTRIBUTE;
197
201#define WGPU_STRING_VIEW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStringView, { \
202 /*.data=*/NULL _wgpu_COMMA \
203 /*.length=*/WGPU_STRLEN _wgpu_COMMA \
204})
205
206typedef uint64_t WGPUFlags;
207typedef uint32_t WGPUBool;
208
217typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
218typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
219typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
220typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
221typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
222typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
223typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
224typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
231typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
232typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
233typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
234typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
235typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
236typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
237typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
238typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
239typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
240typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
241typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
245typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
246typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
247typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
248
251// Structure forward declarations
252struct WGPUAdapterInfo;
253struct WGPUBindGroupEntry;
254struct WGPUBlendComponent;
257struct WGPUColor;
261struct WGPUConstantEntry;
262struct WGPUExtent3D;
263struct WGPUFuture;
264struct WGPUInstanceLimits;
265struct WGPULimits;
267struct WGPUOrigin3D;
270struct WGPUPrimitiveState;
296struct WGPUSurfaceTexture;
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
623
624typedef enum WGPUFilterMode {
631 WGPUFilterMode_Force32 = 0x7FFFFFFF
632} WGPUFilterMode WGPU_ENUM_ATTRIBUTE;
633
634typedef enum WGPUFrontFace {
639 WGPUFrontFace_CCW = 0x00000001,
640 WGPUFrontFace_CW = 0x00000002,
641 WGPUFrontFace_Force32 = 0x7FFFFFFF
642} WGPUFrontFace WGPU_ENUM_ATTRIBUTE;
643
644typedef enum WGPUIndexFormat {
651 WGPUIndexFormat_Force32 = 0x7FFFFFFF
652} WGPUIndexFormat WGPU_ENUM_ATTRIBUTE;
653
673
674typedef enum WGPULoadOp {
679 WGPULoadOp_Load = 0x00000001,
680 WGPULoadOp_Clear = 0x00000002,
681 WGPULoadOp_Force32 = 0x7FFFFFFF
682} WGPULoadOp WGPU_ENUM_ATTRIBUTE;
683
694
704
705typedef enum WGPUOptionalBool {
712 WGPUOptionalBool_Force32 = 0x7FFFFFFF
713} WGPUOptionalBool WGPU_ENUM_ATTRIBUTE;
714
730
740
746
779
792
793typedef enum WGPUQueryType {
796 WGPUQueryType_Force32 = 0x7FFFFFFF
797} WGPUQueryType WGPU_ENUM_ATTRIBUTE;
798
812
823
833
850
856typedef enum WGPUStatus {
857 WGPUStatus_Success = 0x00000001,
858 WGPUStatus_Error = 0x00000002,
859 WGPUStatus_Force32 = 0x7FFFFFFF
860} WGPUStatus WGPU_ENUM_ATTRIBUTE;
861
877
894
895typedef enum WGPUStoreOp {
900 WGPUStoreOp_Store = 0x00000001,
902 WGPUStoreOp_Force32 = 0x7FFFFFFF
903} WGPUStoreOp WGPU_ENUM_ATTRIBUTE;
904
919
950
961
972
973typedef enum WGPUTextureFormat {
1079 WGPUTextureFormat_Force32 = 0x7FFFFFFF
1080} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
1081
1100
1114
1120
1121typedef enum WGPUVertexFormat {
1163 WGPUVertexFormat_Force32 = 0x7FFFFFFF
1164} WGPUVertexFormat WGPU_ENUM_ATTRIBUTE;
1165
1175
1179typedef enum WGPUWaitStatus {
1193 WGPUWaitStatus_Force32 = 0x7FFFFFFF
1194} WGPUWaitStatus WGPU_ENUM_ATTRIBUTE;
1195
1203
1220static const WGPUBufferUsage WGPUBufferUsage_None = 0x0000000000000000;
1224static const WGPUBufferUsage WGPUBufferUsage_MapRead = 0x0000000000000001;
1230static const WGPUBufferUsage WGPUBufferUsage_MapWrite = 0x0000000000000002;
1234static const WGPUBufferUsage WGPUBufferUsage_CopySrc = 0x0000000000000004;
1238static const WGPUBufferUsage WGPUBufferUsage_CopyDst = 0x0000000000000008;
1242static const WGPUBufferUsage WGPUBufferUsage_Index = 0x0000000000000010;
1246static const WGPUBufferUsage WGPUBufferUsage_Vertex = 0x0000000000000020;
1250static const WGPUBufferUsage WGPUBufferUsage_Uniform = 0x0000000000000040;
1254static const WGPUBufferUsage WGPUBufferUsage_Storage = 0x0000000000000080;
1258static const WGPUBufferUsage WGPUBufferUsage_Indirect = 0x0000000000000100;
1262static const WGPUBufferUsage WGPUBufferUsage_QueryResolve = 0x0000000000000200;
1263
1271static const WGPUColorWriteMask WGPUColorWriteMask_None = 0x0000000000000000;
1272static const WGPUColorWriteMask WGPUColorWriteMask_Red = 0x0000000000000001;
1273static const WGPUColorWriteMask WGPUColorWriteMask_Green = 0x0000000000000002;
1274static const WGPUColorWriteMask WGPUColorWriteMask_Blue = 0x0000000000000004;
1275static const WGPUColorWriteMask WGPUColorWriteMask_Alpha = 0x0000000000000008;
1279static const WGPUColorWriteMask WGPUColorWriteMask_All = 0x000000000000000F;
1280
1288static const WGPUMapMode WGPUMapMode_None = 0x0000000000000000;
1289static const WGPUMapMode WGPUMapMode_Read = 0x0000000000000001;
1290static const WGPUMapMode WGPUMapMode_Write = 0x0000000000000002;
1291
1299static const WGPUShaderStage WGPUShaderStage_None = 0x0000000000000000;
1300static const WGPUShaderStage WGPUShaderStage_Vertex = 0x0000000000000001;
1301static const WGPUShaderStage WGPUShaderStage_Fragment = 0x0000000000000002;
1302static const WGPUShaderStage WGPUShaderStage_Compute = 0x0000000000000004;
1303
1311static const WGPUTextureUsage WGPUTextureUsage_None = 0x0000000000000000;
1312static const WGPUTextureUsage WGPUTextureUsage_CopySrc = 0x0000000000000001;
1313static const WGPUTextureUsage WGPUTextureUsage_CopyDst = 0x0000000000000002;
1314static const WGPUTextureUsage WGPUTextureUsage_TextureBinding = 0x0000000000000004;
1315static const WGPUTextureUsage WGPUTextureUsage_StorageBinding = 0x0000000000000008;
1316static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment = 0x0000000000000010;
1317
1320typedef void (*WGPUProc)(void) WGPU_FUNCTION_ATTRIBUTE;
1321
1335typedef void (*WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1336
1345typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1346
1353typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1354
1361typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1362
1376typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1377
1395typedef void (*WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1396
1409typedef void (*WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1410
1420typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1421
1431typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1432
1442typedef void (*WGPUUncapturedErrorCallback)(WGPUDevice const * device, WGPUErrorType type, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
1443
1452typedef struct WGPUChainedStruct {
1455} WGPUChainedStruct WGPU_STRUCTURE_ATTRIBUTE;
1456
1486
1490#define WGPU_BUFFER_MAP_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferMapCallbackInfo, { \
1491 /*.nextInChain=*/NULL _wgpu_COMMA \
1492 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1493 /*.callback=*/NULL _wgpu_COMMA \
1494 /*.userdata1=*/NULL _wgpu_COMMA \
1495 /*.userdata2=*/NULL _wgpu_COMMA \
1496})
1497
1510
1514#define WGPU_COMPILATION_INFO_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfoCallbackInfo, { \
1515 /*.nextInChain=*/NULL _wgpu_COMMA \
1516 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1517 /*.callback=*/NULL _wgpu_COMMA \
1518 /*.userdata1=*/NULL _wgpu_COMMA \
1519 /*.userdata2=*/NULL _wgpu_COMMA \
1520})
1521
1534
1538#define WGPU_CREATE_COMPUTE_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateComputePipelineAsyncCallbackInfo, { \
1539 /*.nextInChain=*/NULL _wgpu_COMMA \
1540 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1541 /*.callback=*/NULL _wgpu_COMMA \
1542 /*.userdata1=*/NULL _wgpu_COMMA \
1543 /*.userdata2=*/NULL _wgpu_COMMA \
1544})
1545
1558
1562#define WGPU_CREATE_RENDER_PIPELINE_ASYNC_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCreateRenderPipelineAsyncCallbackInfo, { \
1563 /*.nextInChain=*/NULL _wgpu_COMMA \
1564 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1565 /*.callback=*/NULL _wgpu_COMMA \
1566 /*.userdata1=*/NULL _wgpu_COMMA \
1567 /*.userdata2=*/NULL _wgpu_COMMA \
1568})
1569
1582
1586#define WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceLostCallbackInfo, { \
1587 /*.nextInChain=*/NULL _wgpu_COMMA \
1588 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1589 /*.callback=*/NULL _wgpu_COMMA \
1590 /*.userdata1=*/NULL _wgpu_COMMA \
1591 /*.userdata2=*/NULL _wgpu_COMMA \
1592})
1593
1606
1610#define WGPU_POP_ERROR_SCOPE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPopErrorScopeCallbackInfo, { \
1611 /*.nextInChain=*/NULL _wgpu_COMMA \
1612 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1613 /*.callback=*/NULL _wgpu_COMMA \
1614 /*.userdata1=*/NULL _wgpu_COMMA \
1615 /*.userdata2=*/NULL _wgpu_COMMA \
1616})
1617
1630
1634#define WGPU_QUEUE_WORK_DONE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueWorkDoneCallbackInfo, { \
1635 /*.nextInChain=*/NULL _wgpu_COMMA \
1636 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1637 /*.callback=*/NULL _wgpu_COMMA \
1638 /*.userdata1=*/NULL _wgpu_COMMA \
1639 /*.userdata2=*/NULL _wgpu_COMMA \
1640})
1641
1654
1658#define WGPU_REQUEST_ADAPTER_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterCallbackInfo, { \
1659 /*.nextInChain=*/NULL _wgpu_COMMA \
1660 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1661 /*.callback=*/NULL _wgpu_COMMA \
1662 /*.userdata1=*/NULL _wgpu_COMMA \
1663 /*.userdata2=*/NULL _wgpu_COMMA \
1664})
1665
1678
1682#define WGPU_REQUEST_DEVICE_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestDeviceCallbackInfo, { \
1683 /*.nextInChain=*/NULL _wgpu_COMMA \
1684 /*.mode=*/_wgpu_ENUM_ZERO_INIT(WGPUCallbackMode) _wgpu_COMMA \
1685 /*.callback=*/NULL _wgpu_COMMA \
1686 /*.userdata1=*/NULL _wgpu_COMMA \
1687 /*.userdata2=*/NULL _wgpu_COMMA \
1688})
1689
1696
1700#define WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUUncapturedErrorCallbackInfo, { \
1701 /*.nextInChain=*/NULL _wgpu_COMMA \
1702 /*.callback=*/NULL _wgpu_COMMA \
1703 /*.userdata1=*/NULL _wgpu_COMMA \
1704 /*.userdata2=*/NULL _wgpu_COMMA \
1705})
1706
1763
1767#define WGPU_ADAPTER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterInfo, { \
1768 /*.nextInChain=*/NULL _wgpu_COMMA \
1769 /*.vendor=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1770 /*.architecture=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1771 /*.device=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1772 /*.description=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1773 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
1774 /*.adapterType=*/_wgpu_ENUM_ZERO_INIT(WGPUAdapterType) _wgpu_COMMA \
1775 /*.vendorID=*/0 _wgpu_COMMA \
1776 /*.deviceID=*/0 _wgpu_COMMA \
1777 /*.subgroupMinSize=*/0 _wgpu_COMMA \
1778 /*.subgroupMaxSize=*/0 _wgpu_COMMA \
1779})
1780
1784typedef struct WGPUBindGroupEntry {
1791 uint32_t binding;
1798 WGPU_NULLABLE WGPUBuffer buffer;
1805 uint64_t offset;
1813 uint64_t size;
1820 WGPU_NULLABLE WGPUSampler sampler;
1828} WGPUBindGroupEntry WGPU_STRUCTURE_ATTRIBUTE;
1829
1833#define WGPU_BIND_GROUP_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupEntry, { \
1834 /*.nextInChain=*/NULL _wgpu_COMMA \
1835 /*.binding=*/0 _wgpu_COMMA \
1836 /*.buffer=*/NULL _wgpu_COMMA \
1837 /*.offset=*/0 _wgpu_COMMA \
1838 /*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
1839 /*.sampler=*/NULL _wgpu_COMMA \
1840 /*.textureView=*/NULL _wgpu_COMMA \
1841})
1842
1869
1873#define WGPU_BLEND_COMPONENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendComponent, { \
1874 /*.operation=*/WGPUBlendOperation_Undefined _wgpu_COMMA \
1875 /*.srcFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1876 /*.dstFactor=*/WGPUBlendFactor_Undefined _wgpu_COMMA \
1877})
1878
1900
1904#define WGPU_BUFFER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferBindingLayout, { \
1905 /*.nextInChain=*/NULL _wgpu_COMMA \
1906 /*.type=*/WGPUBufferBindingType_Undefined _wgpu_COMMA \
1907 /*.hasDynamicOffset=*/WGPU_FALSE _wgpu_COMMA \
1908 /*.minBindingSize=*/0 _wgpu_COMMA \
1909})
1910
1939
1943#define WGPU_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBufferDescriptor, { \
1944 /*.nextInChain=*/NULL _wgpu_COMMA \
1945 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
1946 /*.usage=*/WGPUBufferUsage_None _wgpu_COMMA \
1947 /*.size=*/0 _wgpu_COMMA \
1948 /*.mappedAtCreation=*/WGPU_FALSE _wgpu_COMMA \
1949})
1950
1958typedef struct WGPUColor {
1962 double r;
1966 double g;
1970 double b;
1974 double a;
1975} WGPUColor WGPU_STRUCTURE_ATTRIBUTE;
1976
1980#define WGPU_COLOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColor, { \
1981 /*.r=*/0. _wgpu_COMMA \
1982 /*.g=*/0. _wgpu_COMMA \
1983 /*.b=*/0. _wgpu_COMMA \
1984 /*.a=*/0. _wgpu_COMMA \
1985})
1986
1999
2003#define WGPU_COMMAND_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandBufferDescriptor, { \
2004 /*.nextInChain=*/NULL _wgpu_COMMA \
2005 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2006})
2007
2020
2024#define WGPU_COMMAND_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCommandEncoderDescriptor, { \
2025 /*.nextInChain=*/NULL _wgpu_COMMA \
2026 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2027})
2028
2076
2080#define WGPU_COMPILATION_MESSAGE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationMessage, { \
2081 /*.nextInChain=*/NULL _wgpu_COMMA \
2082 /*.message=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2083 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUCompilationMessageType) _wgpu_COMMA \
2084 /*.lineNum=*/0 _wgpu_COMMA \
2085 /*.linePos=*/0 _wgpu_COMMA \
2086 /*.offset=*/0 _wgpu_COMMA \
2087 /*.length=*/0 _wgpu_COMMA \
2088})
2089
2110
2114#define WGPU_CONSTANT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUConstantEntry, { \
2115 /*.nextInChain=*/NULL _wgpu_COMMA \
2116 /*.key=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2117 /*.value=*/0. _wgpu_COMMA \
2118})
2119
2123typedef struct WGPUExtent3D {
2127 uint32_t width;
2131 uint32_t height;
2136} WGPUExtent3D WGPU_STRUCTURE_ATTRIBUTE;
2137
2141#define WGPU_EXTENT_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUExtent3D, { \
2142 /*.width=*/0 _wgpu_COMMA \
2143 /*.height=*/1 _wgpu_COMMA \
2144 /*.depthOrArrayLayers=*/1 _wgpu_COMMA \
2145})
2146
2152typedef struct WGPUFuture {
2158 uint64_t id;
2159} WGPUFuture WGPU_STRUCTURE_ATTRIBUTE;
2160
2164#define WGPU_FUTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFuture, { \
2165 /*.id=*/0 _wgpu_COMMA \
2166})
2167
2180
2184#define WGPU_INSTANCE_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceLimits, { \
2185 /*.nextInChain=*/NULL _wgpu_COMMA \
2186 /*.timedWaitAnyMaxCount=*/0 _wgpu_COMMA \
2187})
2188
2323
2327#define WGPU_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPULimits, { \
2328 /*.nextInChain=*/NULL _wgpu_COMMA \
2329 /*.maxTextureDimension1D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2330 /*.maxTextureDimension2D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2331 /*.maxTextureDimension3D=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2332 /*.maxTextureArrayLayers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2333 /*.maxBindGroups=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2334 /*.maxBindGroupsPlusVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2335 /*.maxBindingsPerBindGroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2336 /*.maxDynamicUniformBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2337 /*.maxDynamicStorageBuffersPerPipelineLayout=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2338 /*.maxSampledTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2339 /*.maxSamplersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2340 /*.maxStorageBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2341 /*.maxStorageTexturesPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2342 /*.maxUniformBuffersPerShaderStage=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2343 /*.maxUniformBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2344 /*.maxStorageBufferBindingSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2345 /*.minUniformBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2346 /*.minStorageBufferOffsetAlignment=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2347 /*.maxVertexBuffers=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2348 /*.maxBufferSize=*/WGPU_LIMIT_U64_UNDEFINED _wgpu_COMMA \
2349 /*.maxVertexAttributes=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2350 /*.maxVertexBufferArrayStride=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2351 /*.maxInterStageShaderVariables=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2352 /*.maxColorAttachments=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2353 /*.maxColorAttachmentBytesPerSample=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2354 /*.maxComputeWorkgroupStorageSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2355 /*.maxComputeInvocationsPerWorkgroup=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2356 /*.maxComputeWorkgroupSizeX=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2357 /*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2358 /*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2359 /*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2360 /*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2361})
2362
2381
2385#define WGPU_MULTISAMPLE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUMultisampleState, { \
2386 /*.nextInChain=*/NULL _wgpu_COMMA \
2387 /*.count=*/1 _wgpu_COMMA \
2388 /*.mask=*/0xFFFFFFFF _wgpu_COMMA \
2389 /*.alphaToCoverageEnabled=*/WGPU_FALSE _wgpu_COMMA \
2390})
2391
2395typedef struct WGPUOrigin3D {
2399 uint32_t x;
2403 uint32_t y;
2407 uint32_t z;
2408} WGPUOrigin3D WGPU_STRUCTURE_ATTRIBUTE;
2409
2413#define WGPU_ORIGIN_3D_INIT _wgpu_MAKE_INIT_STRUCT(WGPUOrigin3D, { \
2414 /*.x=*/0 _wgpu_COMMA \
2415 /*.y=*/0 _wgpu_COMMA \
2416 /*.z=*/0 _wgpu_COMMA \
2417})
2418
2439
2443#define WGPU_PASS_TIMESTAMP_WRITES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPassTimestampWrites, { \
2444 /*.nextInChain=*/NULL _wgpu_COMMA \
2445 /*.querySet=*/NULL _wgpu_COMMA \
2446 /*.beginningOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2447 /*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
2448})
2449
2474
2478#define WGPU_PIPELINE_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutDescriptor, { \
2479 /*.nextInChain=*/NULL _wgpu_COMMA \
2480 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2481 /*.bindGroupLayoutCount=*/0 _wgpu_COMMA \
2482 /*.bindGroupLayouts=*/NULL _wgpu_COMMA \
2483 /*.immediateSize=*/0 _wgpu_COMMA \
2484})
2485
2521
2525#define WGPU_PRIMITIVE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPrimitiveState, { \
2526 /*.nextInChain=*/NULL _wgpu_COMMA \
2527 /*.topology=*/WGPUPrimitiveTopology_Undefined _wgpu_COMMA \
2528 /*.stripIndexFormat=*/WGPUIndexFormat_Undefined _wgpu_COMMA \
2529 /*.frontFace=*/WGPUFrontFace_Undefined _wgpu_COMMA \
2530 /*.cullMode=*/WGPUCullMode_Undefined _wgpu_COMMA \
2531 /*.unclippedDepth=*/WGPU_FALSE _wgpu_COMMA \
2532})
2533
2554
2558#define WGPU_QUERY_SET_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQuerySetDescriptor, { \
2559 /*.nextInChain=*/NULL _wgpu_COMMA \
2560 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2561 /*.type=*/_wgpu_ENUM_ZERO_INIT(WGPUQueryType) _wgpu_COMMA \
2562 /*.count=*/0 _wgpu_COMMA \
2563})
2564
2577
2581#define WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUQueueDescriptor, { \
2582 /*.nextInChain=*/NULL _wgpu_COMMA \
2583 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2584})
2585
2598
2602#define WGPU_RENDER_BUNDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleDescriptor, { \
2603 /*.nextInChain=*/NULL _wgpu_COMMA \
2604 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2605})
2606
2643
2647#define WGPU_RENDER_BUNDLE_ENCODER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderBundleEncoderDescriptor, { \
2648 /*.nextInChain=*/NULL _wgpu_COMMA \
2649 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2650 /*.colorFormatCount=*/0 _wgpu_COMMA \
2651 /*.colorFormats=*/NULL _wgpu_COMMA \
2652 /*.depthStencilFormat=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
2653 /*.sampleCount=*/1 _wgpu_COMMA \
2654 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2655 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2656})
2657
2707
2711#define WGPU_RENDER_PASS_DEPTH_STENCIL_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDepthStencilAttachment, { \
2712 /*.nextInChain=*/NULL _wgpu_COMMA \
2713 /*.view=*/NULL _wgpu_COMMA \
2714 /*.depthLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2715 /*.depthStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2716 /*.depthClearValue=*/WGPU_DEPTH_CLEAR_VALUE_UNDEFINED _wgpu_COMMA \
2717 /*.depthReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2718 /*.stencilLoadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
2719 /*.stencilStoreOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
2720 /*.stencilClearValue=*/0 _wgpu_COMMA \
2721 /*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
2722})
2723
2734
2738#define WGPU_RENDER_PASS_MAX_DRAW_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassMaxDrawCount, { \
2739 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2740 /*.next=*/NULL _wgpu_COMMA \
2741 /*.sType=*/WGPUSType_RenderPassMaxDrawCount _wgpu_COMMA \
2742 }) _wgpu_COMMA \
2743 /*.maxDrawCount=*/50000000 _wgpu_COMMA \
2744})
2745
2760
2764#define WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterWebXROptions, { \
2765 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2766 /*.next=*/NULL _wgpu_COMMA \
2767 /*.sType=*/WGPUSType_RequestAdapterWebXROptions _wgpu_COMMA \
2768 }) _wgpu_COMMA \
2769 /*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
2770})
2771
2785
2789#define WGPU_SAMPLER_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerBindingLayout, { \
2790 /*.nextInChain=*/NULL _wgpu_COMMA \
2791 /*.type=*/WGPUSamplerBindingType_Undefined _wgpu_COMMA \
2792})
2793
2872
2876#define WGPU_SAMPLER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSamplerDescriptor, { \
2877 /*.nextInChain=*/NULL _wgpu_COMMA \
2878 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2879 /*.addressModeU=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2880 /*.addressModeV=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2881 /*.addressModeW=*/WGPUAddressMode_Undefined _wgpu_COMMA \
2882 /*.magFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2883 /*.minFilter=*/WGPUFilterMode_Undefined _wgpu_COMMA \
2884 /*.mipmapFilter=*/WGPUMipmapFilterMode_Undefined _wgpu_COMMA \
2885 /*.lodMinClamp=*/0.f _wgpu_COMMA \
2886 /*.lodMaxClamp=*/32.f _wgpu_COMMA \
2887 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2888 /*.maxAnisotropy=*/1 _wgpu_COMMA \
2889})
2890
2899 uint32_t codeSize;
2903 uint32_t const * code;
2904} WGPUShaderSourceSPIRV WGPU_STRUCTURE_ATTRIBUTE;
2905
2909#define WGPU_SHADER_SOURCE_SPIRV_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceSPIRV, { \
2910 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2911 /*.next=*/NULL _wgpu_COMMA \
2912 /*.sType=*/WGPUSType_ShaderSourceSPIRV _wgpu_COMMA \
2913 }) _wgpu_COMMA \
2914 /*.codeSize=*/0 _wgpu_COMMA \
2915 /*.code=*/NULL _wgpu_COMMA \
2916})
2917
2930
2934#define WGPU_SHADER_SOURCE_WGSL_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderSourceWGSL, { \
2935 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
2936 /*.next=*/NULL _wgpu_COMMA \
2937 /*.sType=*/WGPUSType_ShaderSourceWGSL _wgpu_COMMA \
2938 }) _wgpu_COMMA \
2939 /*.code=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
2940})
2941
2975
2979#define WGPU_STENCIL_FACE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStencilFaceState, { \
2980 /*.compare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
2981 /*.failOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2982 /*.depthFailOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2983 /*.passOp=*/WGPUStencilOperation_Undefined _wgpu_COMMA \
2984})
2985
3010
3014#define WGPU_STORAGE_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUStorageTextureBindingLayout, { \
3015 /*.nextInChain=*/NULL _wgpu_COMMA \
3016 /*.access=*/WGPUStorageTextureAccess_Undefined _wgpu_COMMA \
3017 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3018 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3019})
3020
3033} WGPUSupportedFeatures WGPU_STRUCTURE_ATTRIBUTE;
3034
3038#define WGPU_SUPPORTED_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedFeatures, { \
3039 /*.featureCount=*/0 _wgpu_COMMA \
3040 /*.features=*/NULL _wgpu_COMMA \
3041})
3042
3056
3060#define WGPU_SUPPORTED_INSTANCE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedInstanceFeatures, { \
3061 /*.featureCount=*/0 _wgpu_COMMA \
3062 /*.features=*/NULL _wgpu_COMMA \
3063})
3064
3078
3082#define WGPU_SUPPORTED_WGSL_LANGUAGE_FEATURES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSupportedWGSLLanguageFeatures, { \
3083 /*.featureCount=*/0 _wgpu_COMMA \
3084 /*.features=*/NULL _wgpu_COMMA \
3085})
3086
3134
3138#define WGPU_SURFACE_CAPABILITIES_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceCapabilities, { \
3139 /*.nextInChain=*/NULL _wgpu_COMMA \
3140 /*.usages=*/WGPUTextureUsage_None _wgpu_COMMA \
3141 /*.formatCount=*/0 _wgpu_COMMA \
3142 /*.formats=*/NULL _wgpu_COMMA \
3143 /*.presentModeCount=*/0 _wgpu_COMMA \
3144 /*.presentModes=*/NULL _wgpu_COMMA \
3145 /*.alphaModeCount=*/0 _wgpu_COMMA \
3146 /*.alphaModes=*/NULL _wgpu_COMMA \
3147})
3148
3165
3169#define WGPU_SURFACE_COLOR_MANAGEMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceColorManagement, { \
3170 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3171 /*.next=*/NULL _wgpu_COMMA \
3172 /*.sType=*/WGPUSType_SurfaceColorManagement _wgpu_COMMA \
3173 }) _wgpu_COMMA \
3174 /*.colorSpace=*/_wgpu_ENUM_ZERO_INIT(WGPUPredefinedColorSpace) _wgpu_COMMA \
3175 /*.toneMappingMode=*/_wgpu_ENUM_ZERO_INIT(WGPUToneMappingMode) _wgpu_COMMA \
3176})
3177
3246
3250#define WGPU_SURFACE_CONFIGURATION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceConfiguration, { \
3251 /*.nextInChain=*/NULL _wgpu_COMMA \
3252 /*.device=*/NULL _wgpu_COMMA \
3253 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3254 /*.usage=*/WGPUTextureUsage_RenderAttachment _wgpu_COMMA \
3255 /*.width=*/0 _wgpu_COMMA \
3256 /*.height=*/0 _wgpu_COMMA \
3257 /*.viewFormatCount=*/0 _wgpu_COMMA \
3258 /*.viewFormats=*/NULL _wgpu_COMMA \
3259 /*.alphaMode=*/WGPUCompositeAlphaMode_Auto _wgpu_COMMA \
3260 /*.presentMode=*/WGPUPresentMode_Undefined _wgpu_COMMA \
3261})
3262
3277
3281#define WGPU_SURFACE_SOURCE_ANDROID_NATIVE_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceAndroidNativeWindow, { \
3282 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3283 /*.next=*/NULL _wgpu_COMMA \
3284 /*.sType=*/WGPUSType_SurfaceSourceAndroidNativeWindow _wgpu_COMMA \
3285 }) _wgpu_COMMA \
3286 /*.window=*/NULL _wgpu_COMMA \
3287})
3288
3303
3307#define WGPU_SURFACE_SOURCE_METAL_LAYER_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceMetalLayer, { \
3308 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3309 /*.next=*/NULL _wgpu_COMMA \
3310 /*.sType=*/WGPUSType_SurfaceSourceMetalLayer _wgpu_COMMA \
3311 }) _wgpu_COMMA \
3312 /*.layer=*/NULL _wgpu_COMMA \
3313})
3314
3335
3339#define WGPU_SURFACE_SOURCE_WAYLAND_SURFACE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWaylandSurface, { \
3340 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3341 /*.next=*/NULL _wgpu_COMMA \
3342 /*.sType=*/WGPUSType_SurfaceSourceWaylandSurface _wgpu_COMMA \
3343 }) _wgpu_COMMA \
3344 /*.display=*/NULL _wgpu_COMMA \
3345 /*.surface=*/NULL _wgpu_COMMA \
3346})
3347
3369
3373#define WGPU_SURFACE_SOURCE_WINDOWS_HWND_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceWindowsHWND, { \
3374 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3375 /*.next=*/NULL _wgpu_COMMA \
3376 /*.sType=*/WGPUSType_SurfaceSourceWindowsHWND _wgpu_COMMA \
3377 }) _wgpu_COMMA \
3378 /*.hinstance=*/NULL _wgpu_COMMA \
3379 /*.hwnd=*/NULL _wgpu_COMMA \
3380})
3381
3402
3406#define WGPU_SURFACE_SOURCE_XCB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXCBWindow, { \
3407 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3408 /*.next=*/NULL _wgpu_COMMA \
3409 /*.sType=*/WGPUSType_SurfaceSourceXCBWindow _wgpu_COMMA \
3410 }) _wgpu_COMMA \
3411 /*.connection=*/NULL _wgpu_COMMA \
3412 /*.window=*/0 _wgpu_COMMA \
3413})
3414
3435
3439#define WGPU_SURFACE_SOURCE_XLIB_WINDOW_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceSourceXlibWindow, { \
3440 /*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
3441 /*.next=*/NULL _wgpu_COMMA \
3442 /*.sType=*/WGPUSType_SurfaceSourceXlibWindow _wgpu_COMMA \
3443 }) _wgpu_COMMA \
3444 /*.display=*/NULL _wgpu_COMMA \
3445 /*.window=*/0 _wgpu_COMMA \
3446})
3447
3470
3474#define WGPU_SURFACE_TEXTURE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceTexture, { \
3475 /*.nextInChain=*/NULL _wgpu_COMMA \
3476 /*.texture=*/NULL _wgpu_COMMA \
3477 /*.status=*/_wgpu_ENUM_ZERO_INIT(WGPUSurfaceGetCurrentTextureStatus) _wgpu_COMMA \
3478})
3479
3487 uint64_t offset;
3491 uint32_t bytesPerRow;
3496} WGPUTexelCopyBufferLayout WGPU_STRUCTURE_ATTRIBUTE;
3497
3501#define WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferLayout, { \
3502 /*.offset=*/0 _wgpu_COMMA \
3503 /*.bytesPerRow=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3504 /*.rowsPerImage=*/WGPU_COPY_STRIDE_UNDEFINED _wgpu_COMMA \
3505})
3506
3531
3535#define WGPU_TEXTURE_BINDING_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingLayout, { \
3536 /*.nextInChain=*/NULL _wgpu_COMMA \
3537 /*.sampleType=*/WGPUTextureSampleType_Undefined _wgpu_COMMA \
3538 /*.viewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3539 /*.multisampled=*/WGPU_FALSE _wgpu_COMMA \
3540})
3541
3589
3593#define WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureViewDescriptor, { \
3594 /*.nextInChain=*/NULL _wgpu_COMMA \
3595 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3596 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3597 /*.dimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
3598 /*.baseMipLevel=*/0 _wgpu_COMMA \
3599 /*.mipLevelCount=*/WGPU_MIP_LEVEL_COUNT_UNDEFINED _wgpu_COMMA \
3600 /*.baseArrayLayer=*/0 _wgpu_COMMA \
3601 /*.arrayLayerCount=*/WGPU_ARRAY_LAYER_COUNT_UNDEFINED _wgpu_COMMA \
3602 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
3603 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
3604})
3605
3624
3628#define WGPU_VERTEX_ATTRIBUTE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexAttribute, { \
3629 /*.nextInChain=*/NULL _wgpu_COMMA \
3630 /*.format=*/_wgpu_ENUM_ZERO_INIT(WGPUVertexFormat) _wgpu_COMMA \
3631 /*.offset=*/0 _wgpu_COMMA \
3632 /*.shaderLocation=*/0 _wgpu_COMMA \
3633})
3634
3659
3663#define WGPU_BIND_GROUP_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupDescriptor, { \
3664 /*.nextInChain=*/NULL _wgpu_COMMA \
3665 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3666 /*.layout=*/NULL _wgpu_COMMA \
3667 /*.entryCount=*/0 _wgpu_COMMA \
3668 /*.entries=*/NULL _wgpu_COMMA \
3669})
3670
3707
3711#define WGPU_BIND_GROUP_LAYOUT_ENTRY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutEntry, { \
3712 /*.nextInChain=*/NULL _wgpu_COMMA \
3713 /*.binding=*/0 _wgpu_COMMA \
3714 /*.visibility=*/WGPUShaderStage_None _wgpu_COMMA \
3715 /*.bindingArraySize=*/0 _wgpu_COMMA \
3716 /*.buffer=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3717 /*.sampler=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3718 /*.texture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3719 /*.storageTexture=*/_wgpu_STRUCT_ZERO_INIT _wgpu_COMMA \
3720})
3721
3735
3739#define WGPU_BLEND_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBlendState, { \
3740 /*.color=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3741 /*.alpha=*/WGPU_BLEND_COMPONENT_INIT _wgpu_COMMA \
3742})
3743
3761
3765#define WGPU_COMPILATION_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUCompilationInfo, { \
3766 /*.nextInChain=*/NULL _wgpu_COMMA \
3767 /*.messageCount=*/0 _wgpu_COMMA \
3768 /*.messages=*/NULL _wgpu_COMMA \
3769})
3770
3787
3791#define WGPU_COMPUTE_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePassDescriptor, { \
3792 /*.nextInChain=*/NULL _wgpu_COMMA \
3793 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3794 /*.timestampWrites=*/NULL _wgpu_COMMA \
3795})
3796
3821
3825#define WGPU_COMPUTE_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputeState, { \
3826 /*.nextInChain=*/NULL _wgpu_COMMA \
3827 /*.module=*/NULL _wgpu_COMMA \
3828 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3829 /*.constantCount=*/0 _wgpu_COMMA \
3830 /*.constants=*/NULL _wgpu_COMMA \
3831})
3832
3887
3891#define WGPU_DEPTH_STENCIL_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDepthStencilState, { \
3892 /*.nextInChain=*/NULL _wgpu_COMMA \
3893 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
3894 /*.depthWriteEnabled=*/WGPUOptionalBool_Undefined _wgpu_COMMA \
3895 /*.depthCompare=*/WGPUCompareFunction_Undefined _wgpu_COMMA \
3896 /*.stencilFront=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3897 /*.stencilBack=*/WGPU_STENCIL_FACE_STATE_INIT _wgpu_COMMA \
3898 /*.stencilReadMask=*/0xFFFFFFFF _wgpu_COMMA \
3899 /*.stencilWriteMask=*/0xFFFFFFFF _wgpu_COMMA \
3900 /*.depthBias=*/0 _wgpu_COMMA \
3901 /*.depthBiasSlopeScale=*/0.f _wgpu_COMMA \
3902 /*.depthBiasClamp=*/0.f _wgpu_COMMA \
3903})
3904
3946
3950#define WGPU_DEVICE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDeviceDescriptor, { \
3951 /*.nextInChain=*/NULL _wgpu_COMMA \
3952 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
3953 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
3954 /*.requiredFeatures=*/NULL _wgpu_COMMA \
3955 /*.requiredLimits=*/NULL _wgpu_COMMA \
3956 /*.defaultQueue=*/WGPU_QUEUE_DESCRIPTOR_INIT _wgpu_COMMA \
3957 /*.deviceLostCallbackInfo=*/WGPU_DEVICE_LOST_CALLBACK_INFO_INIT _wgpu_COMMA \
3958 /*.uncapturedErrorCallbackInfo=*/WGPU_UNCAPTURED_ERROR_CALLBACK_INFO_INIT _wgpu_COMMA \
3959})
3960
3980
3984#define WGPU_FUTURE_WAIT_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFutureWaitInfo, { \
3985 /*.future=*/WGPU_FUTURE_INIT _wgpu_COMMA \
3986 /*.completed=*/WGPU_FALSE _wgpu_COMMA \
3987})
3988
4007
4011#define WGPU_INSTANCE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUInstanceDescriptor, { \
4012 /*.nextInChain=*/NULL _wgpu_COMMA \
4013 /*.requiredFeatureCount=*/0 _wgpu_COMMA \
4014 /*.requiredFeatures=*/NULL _wgpu_COMMA \
4015 /*.requiredLimits=*/NULL _wgpu_COMMA \
4016})
4017
4051
4055#define WGPU_RENDER_PASS_COLOR_ATTACHMENT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassColorAttachment, { \
4056 /*.nextInChain=*/NULL _wgpu_COMMA \
4057 /*.view=*/NULL _wgpu_COMMA \
4058 /*.depthSlice=*/WGPU_DEPTH_SLICE_UNDEFINED _wgpu_COMMA \
4059 /*.resolveTarget=*/NULL _wgpu_COMMA \
4060 /*.loadOp=*/WGPULoadOp_Undefined _wgpu_COMMA \
4061 /*.storeOp=*/WGPUStoreOp_Undefined _wgpu_COMMA \
4062 /*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
4063})
4064
4107
4111#define WGPU_REQUEST_ADAPTER_OPTIONS_INIT _wgpu_MAKE_INIT_STRUCT(WGPURequestAdapterOptions, { \
4112 /*.nextInChain=*/NULL _wgpu_COMMA \
4113 /*.featureLevel=*/WGPUFeatureLevel_Undefined _wgpu_COMMA \
4114 /*.powerPreference=*/WGPUPowerPreference_Undefined _wgpu_COMMA \
4115 /*.forceFallbackAdapter=*/WGPU_FALSE _wgpu_COMMA \
4116 /*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
4117 /*.compatibleSurface=*/NULL _wgpu_COMMA \
4118})
4119
4132
4136#define WGPU_SHADER_MODULE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUShaderModuleDescriptor, { \
4137 /*.nextInChain=*/NULL _wgpu_COMMA \
4138 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4139})
4140
4159
4163#define WGPU_SURFACE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSurfaceDescriptor, { \
4164 /*.nextInChain=*/NULL _wgpu_COMMA \
4165 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4166})
4167
4181
4185#define WGPU_TEXEL_COPY_BUFFER_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyBufferInfo, { \
4186 /*.layout=*/WGPU_TEXEL_COPY_BUFFER_LAYOUT_INIT _wgpu_COMMA \
4187 /*.buffer=*/NULL _wgpu_COMMA \
4188})
4189
4214
4218#define WGPU_TEXEL_COPY_TEXTURE_INFO_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTexelCopyTextureInfo, { \
4219 /*.texture=*/NULL _wgpu_COMMA \
4220 /*.mipLevel=*/0 _wgpu_COMMA \
4221 /*.origin=*/WGPU_ORIGIN_3D_INIT _wgpu_COMMA \
4222 /*.aspect=*/WGPUTextureAspect_Undefined _wgpu_COMMA \
4223})
4224
4272
4276#define WGPU_TEXTURE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureDescriptor, { \
4277 /*.nextInChain=*/NULL _wgpu_COMMA \
4278 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4279 /*.usage=*/WGPUTextureUsage_None _wgpu_COMMA \
4280 /*.dimension=*/WGPUTextureDimension_Undefined _wgpu_COMMA \
4281 /*.size=*/WGPU_EXTENT_3D_INIT _wgpu_COMMA \
4282 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4283 /*.mipLevelCount=*/1 _wgpu_COMMA \
4284 /*.sampleCount=*/1 _wgpu_COMMA \
4285 /*.viewFormatCount=*/0 _wgpu_COMMA \
4286 /*.viewFormats=*/NULL _wgpu_COMMA \
4287})
4288
4324
4328#define WGPU_VERTEX_BUFFER_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexBufferLayout, { \
4329 /*.nextInChain=*/NULL _wgpu_COMMA \
4330 /*.stepMode=*/WGPUVertexStepMode_Undefined _wgpu_COMMA \
4331 /*.arrayStride=*/0 _wgpu_COMMA \
4332 /*.attributeCount=*/0 _wgpu_COMMA \
4333 /*.attributes=*/NULL _wgpu_COMMA \
4334})
4335
4356
4360#define WGPU_BIND_GROUP_LAYOUT_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDescriptor, { \
4361 /*.nextInChain=*/NULL _wgpu_COMMA \
4362 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4363 /*.entryCount=*/0 _wgpu_COMMA \
4364 /*.entries=*/NULL _wgpu_COMMA \
4365})
4366
4389
4393#define WGPU_COLOR_TARGET_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorTargetState, { \
4394 /*.nextInChain=*/NULL _wgpu_COMMA \
4395 /*.format=*/WGPUTextureFormat_Undefined _wgpu_COMMA \
4396 /*.blend=*/NULL _wgpu_COMMA \
4397 /*.writeMask=*/WGPUColorWriteMask_All _wgpu_COMMA \
4398})
4399
4420
4424#define WGPU_COMPUTE_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUComputePipelineDescriptor, { \
4425 /*.nextInChain=*/NULL _wgpu_COMMA \
4426 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4427 /*.layout=*/NULL _wgpu_COMMA \
4428 /*.compute=*/WGPU_COMPUTE_STATE_INIT _wgpu_COMMA \
4429})
4430
4463
4467#define WGPU_RENDER_PASS_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptor, { \
4468 /*.nextInChain=*/NULL _wgpu_COMMA \
4469 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4470 /*.colorAttachmentCount=*/0 _wgpu_COMMA \
4471 /*.colorAttachments=*/NULL _wgpu_COMMA \
4472 /*.depthStencilAttachment=*/NULL _wgpu_COMMA \
4473 /*.occlusionQuerySet=*/NULL _wgpu_COMMA \
4474 /*.timestampWrites=*/NULL _wgpu_COMMA \
4475})
4476
4509
4513#define WGPU_VERTEX_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUVertexState, { \
4514 /*.nextInChain=*/NULL _wgpu_COMMA \
4515 /*.module=*/NULL _wgpu_COMMA \
4516 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4517 /*.constantCount=*/0 _wgpu_COMMA \
4518 /*.constants=*/NULL _wgpu_COMMA \
4519 /*.bufferCount=*/0 _wgpu_COMMA \
4520 /*.buffers=*/NULL _wgpu_COMMA \
4521})
4522
4555
4559#define WGPU_FRAGMENT_STATE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUFragmentState, { \
4560 /*.nextInChain=*/NULL _wgpu_COMMA \
4561 /*.module=*/NULL _wgpu_COMMA \
4562 /*.entryPoint=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4563 /*.constantCount=*/0 _wgpu_COMMA \
4564 /*.constants=*/NULL _wgpu_COMMA \
4565 /*.targetCount=*/0 _wgpu_COMMA \
4566 /*.targets=*/NULL _wgpu_COMMA \
4567})
4568
4605
4609#define WGPU_RENDER_PIPELINE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPipelineDescriptor, { \
4610 /*.nextInChain=*/NULL _wgpu_COMMA \
4611 /*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
4612 /*.layout=*/NULL _wgpu_COMMA \
4613 /*.vertex=*/WGPU_VERTEX_STATE_INIT _wgpu_COMMA \
4614 /*.primitive=*/WGPU_PRIMITIVE_STATE_INIT _wgpu_COMMA \
4615 /*.depthStencil=*/NULL _wgpu_COMMA \
4616 /*.multisample=*/WGPU_MULTISAMPLE_STATE_INIT _wgpu_COMMA \
4617 /*.fragment=*/NULL _wgpu_COMMA \
4618})
4619
4622#ifdef __cplusplus
4623extern "C" {
4624#endif
4625
4626#if !defined(WGPU_SKIP_PROCS)
4627// Global procs
4632typedef WGPUInstance (*WGPUProcCreateInstance)(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4637typedef void (*WGPUProcGetInstanceFeatures)(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4642typedef WGPUStatus (*WGPUProcGetInstanceLimits)(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4647typedef WGPUBool (*WGPUProcHasInstanceFeature)(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4652typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
4653
4654
4655// Procs of Adapter
4660typedef void (*WGPUProcAdapterGetFeatures)(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
4665typedef WGPUStatus (*WGPUProcAdapterGetInfo)(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
4670typedef WGPUStatus (*WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
4675typedef WGPUBool (*WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
4680typedef WGPUFuture (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4685typedef void (*WGPUProcAdapterAddRef)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4690typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
4691
4692// Procs of AdapterInfo
4697typedef void (*WGPUProcAdapterInfoFreeMembers)(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
4698
4699// Procs of BindGroup
4704typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4709typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4714typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
4715
4716// Procs of BindGroupLayout
4721typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4726typedef void (*WGPUProcBindGroupLayoutAddRef)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4731typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
4732
4733// Procs of Buffer
4738typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4743typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4748typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4753typedef WGPUBufferMapState (*WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4758typedef uint64_t (*WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4763typedef WGPUBufferUsage (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4768typedef WGPUFuture (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
4773typedef WGPUStatus (*WGPUProcBufferReadMappedRange)(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4778typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4783typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4788typedef WGPUStatus (*WGPUProcBufferWriteMappedRange)(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
4793typedef void (*WGPUProcBufferAddRef)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4798typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
4799
4800// Procs of CommandBuffer
4805typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4810typedef void (*WGPUProcCommandBufferAddRef)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4815typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
4816
4817// Procs of CommandEncoder
4822typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4827typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4832typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4837typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
4842typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4847typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4852typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
4857typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4862typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4867typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4872typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4877typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
4882typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4887typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
4892typedef void (*WGPUProcCommandEncoderAddRef)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4897typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
4898
4899// Procs of ComputePassEncoder
4904typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
4909typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
4914typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4919typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
4924typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4929typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
4934typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
4939typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4944typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
4949typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4954typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
4955
4956// Procs of ComputePipeline
4961typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
4966typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
4971typedef void (*WGPUProcComputePipelineAddRef)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4976typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
4977
4978// Procs of Device
4983typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4988typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4993typedef WGPU_NULLABLE WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
4998typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5003typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5008typedef WGPUFuture (*WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5013typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5018typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5023typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5028typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5033typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5038typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5043typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5048typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5053typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5058typedef WGPUStatus (*WGPUProcDeviceGetAdapterInfo)(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5063typedef void (*WGPUProcDeviceGetFeatures)(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5068typedef WGPUStatus (*WGPUProcDeviceGetLimits)(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5073typedef WGPUFuture (*WGPUProcDeviceGetLostFuture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5078typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5083typedef WGPUBool (*WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5088typedef WGPUFuture (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5093typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
5098typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5103typedef void (*WGPUProcDeviceAddRef)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5108typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
5109
5110// Procs of Instance
5115typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5120typedef void (*WGPUProcInstanceGetWGSLLanguageFeatures)(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5125typedef WGPUBool (*WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5130typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5135typedef WGPUFuture (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5140typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
5145typedef void (*WGPUProcInstanceAddRef)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5150typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
5151
5152// Procs of PipelineLayout
5157typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5162typedef void (*WGPUProcPipelineLayoutAddRef)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5167typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
5168
5169// Procs of QuerySet
5174typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5179typedef uint32_t (*WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5184typedef WGPUQueryType (*WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5189typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5194typedef void (*WGPUProcQuerySetAddRef)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5199typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
5200
5201// Procs of Queue
5206typedef WGPUFuture (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5211typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5216typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
5221typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5226typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
5231typedef void (*WGPUProcQueueAddRef)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5236typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
5237
5238// Procs of RenderBundle
5243typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5248typedef void (*WGPUProcRenderBundleAddRef)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5253typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
5254
5255// Procs of RenderBundleEncoder
5260typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5265typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5270typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5275typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5280typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5285typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5290typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5295typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5300typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5305typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5310typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5315typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5320typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5325typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5330typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
5331
5332// Procs of RenderPassEncoder
5337typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5342typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5347typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
5352typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5357typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5362typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5367typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5372typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
5377typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5382typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5387typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5392typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5397typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
5402typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5407typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5412typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5417typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
5422typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
5427typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5432typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
5437typedef void (*WGPUProcRenderPassEncoderAddRef)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5442typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5443
5444// Procs of RenderPipeline
5449typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5454typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5459typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5464typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
5465
5466// Procs of Sampler
5471typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5476typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5481typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
5482
5483// Procs of ShaderModule
5488typedef WGPUFuture (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5493typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5498typedef void (*WGPUProcShaderModuleAddRef)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5503typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
5504
5505// Procs of SupportedFeatures
5510typedef void (*WGPUProcSupportedFeaturesFreeMembers)(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
5511
5512// Procs of SupportedInstanceFeatures
5517typedef void (*WGPUProcSupportedInstanceFeaturesFreeMembers)(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
5518
5519// Procs of SupportedWGSLLanguageFeatures
5524typedef void (*WGPUProcSupportedWGSLLanguageFeaturesFreeMembers)(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
5525
5526// Procs of Surface
5531typedef void (*WGPUProcSurfaceConfigure)(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
5536typedef WGPUStatus (*WGPUProcSurfaceGetCapabilities)(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
5541typedef void (*WGPUProcSurfaceGetCurrentTexture)(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
5546typedef WGPUStatus (*WGPUProcSurfacePresent)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5551typedef void (*WGPUProcSurfaceSetLabel)(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5556typedef void (*WGPUProcSurfaceUnconfigure)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5561typedef void (*WGPUProcSurfaceAddRef)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5566typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
5567
5568// Procs of SurfaceCapabilities
5573typedef void (*WGPUProcSurfaceCapabilitiesFreeMembers)(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
5574
5575// Procs of Texture
5580typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5585typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5590typedef uint32_t (*WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5595typedef WGPUTextureDimension (*WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5600typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5605typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5610typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5615typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5620typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5625typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5630typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5635typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5640typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
5641
5642// Procs of TextureView
5647typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5652typedef void (*WGPUProcTextureViewAddRef)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5657typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
5658
5659#endif // !defined(WGPU_SKIP_PROCS)
5660
5661#if !defined(WGPU_SKIP_DECLARATIONS)
5674WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5681WGPU_EXPORT void wgpuGetInstanceFeatures(WGPUSupportedInstanceFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5688WGPU_EXPORT WGPUStatus wgpuGetInstanceLimits(WGPUInstanceLimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5692WGPU_EXPORT WGPUBool wgpuHasInstanceFeature(WGPUInstanceFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5697WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPUStringView procName) WGPU_FUNCTION_ATTRIBUTE;
5698
5720WGPU_EXPORT void wgpuAdapterGetFeatures(WGPUAdapter adapter, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
5728WGPU_EXPORT WGPUStatus wgpuAdapterGetInfo(WGPUAdapter adapter, WGPUAdapterInfo * info) WGPU_FUNCTION_ATTRIBUTE;
5733WGPU_EXPORT WGPUStatus wgpuAdapterGetLimits(WGPUAdapter adapter, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
5734WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
5735WGPU_EXPORT WGPUFuture wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5736WGPU_EXPORT void wgpuAdapterAddRef(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5737WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
5738
5750WGPU_EXPORT void wgpuAdapterInfoFreeMembers(WGPUAdapterInfo adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
5751
5760WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5761WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5762WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
5763
5772WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5773WGPU_EXPORT void wgpuBindGroupLayoutAddRef(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5774WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
5775
5784WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5802WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5819WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5820WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5821WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5822WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5831WGPU_EXPORT WGPUFuture wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapMode mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
5852WGPU_EXPORT WGPUStatus wgpuBufferReadMappedRange(WGPUBuffer buffer, size_t offset, void * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5853WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5854WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5875WGPU_EXPORT WGPUStatus wgpuBufferWriteMappedRange(WGPUBuffer buffer, size_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
5876WGPU_EXPORT void wgpuBufferAddRef(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5877WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
5878
5887WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5888WGPU_EXPORT void wgpuCommandBufferAddRef(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5889WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
5890
5903WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5908WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5909WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5910WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
5911WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyBufferInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5912WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyBufferInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5913WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUTexelCopyTextureInfo const * source, WGPUTexelCopyTextureInfo const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
5918WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5919WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5920WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5921WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5922WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
5923WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5924WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
5925WGPU_EXPORT void wgpuCommandEncoderAddRef(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5926WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
5927
5936WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
5937WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
5938WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5939WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
5940WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5941WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
5942WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
5943WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5944WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
5945WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5946WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
5947
5960WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
5961WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
5962WGPU_EXPORT void wgpuComputePipelineAddRef(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5963WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
5964
5977WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5982WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5992WGPU_EXPORT WGPU_NULLABLE WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
5997WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6002WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6008WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6013WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6023WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6029WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6034WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6039WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6040WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6048WGPU_EXPORT WGPUStatus wgpuDeviceGetAdapterInfo(WGPUDevice device, WGPUAdapterInfo * adapterInfo) WGPU_FUNCTION_ATTRIBUTE;
6055WGPU_EXPORT void wgpuDeviceGetFeatures(WGPUDevice device, WGPUSupportedFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6060WGPU_EXPORT WGPUStatus wgpuDeviceGetLimits(WGPUDevice device, WGPULimits * limits) WGPU_FUNCTION_ATTRIBUTE;
6065WGPU_EXPORT WGPUFuture wgpuDeviceGetLostFuture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6070WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6071WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6076WGPU_EXPORT WGPUFuture wgpuDevicePopErrorScope(WGPUDevice device, WGPUPopErrorScopeCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6081WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
6082WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6083WGPU_EXPORT void wgpuDeviceAddRef(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6084WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
6085
6104WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6108WGPU_EXPORT void wgpuInstanceGetWGSLLanguageFeatures(WGPUInstance instance, WGPUSupportedWGSLLanguageFeatures * features) WGPU_FUNCTION_ATTRIBUTE;
6109WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLLanguageFeatureName feature) WGPU_FUNCTION_ATTRIBUTE;
6115WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6116WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6122WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPU_NULLABLE WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
6123WGPU_EXPORT void wgpuInstanceAddRef(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6124WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
6125
6134WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6135WGPU_EXPORT void wgpuPipelineLayoutAddRef(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6136WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
6137
6146WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6147WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6148WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6149WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6150WGPU_EXPORT void wgpuQuerySetAddRef(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6151WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
6152
6161WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6162WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6163WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
6168WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
6169WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUTexelCopyTextureInfo const * destination, void const * data, size_t dataSize, WGPUTexelCopyBufferLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
6170WGPU_EXPORT void wgpuQueueAddRef(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6171WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
6172
6181WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6182WGPU_EXPORT void wgpuRenderBundleAddRef(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6183WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
6184
6193WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6194WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6195WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6196WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6201WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6202WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6203WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6204WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6205WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6206WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6207WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6208WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6209WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6210WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6211WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
6212
6221WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
6222WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6223WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
6224WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6225WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
6226WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6227WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6228WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
6229WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, WGPUStringView markerLabel) WGPU_FUNCTION_ATTRIBUTE;
6230WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6231WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
6232WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
6237WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
6238WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6239WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6240WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
6241WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
6242WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
6243WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
6249WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
6250WGPU_EXPORT void wgpuRenderPassEncoderAddRef(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6251WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
6252
6265WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
6266WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6267WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6268WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
6269
6278WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6279WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6280WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
6281
6290WGPU_EXPORT WGPUFuture wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
6291WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6292WGPU_EXPORT void wgpuShaderModuleAddRef(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6293WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
6294
6306WGPU_EXPORT void wgpuSupportedFeaturesFreeMembers(WGPUSupportedFeatures supportedFeatures) WGPU_FUNCTION_ATTRIBUTE;
6307
6319WGPU_EXPORT void wgpuSupportedInstanceFeaturesFreeMembers(WGPUSupportedInstanceFeatures supportedInstanceFeatures) WGPU_FUNCTION_ATTRIBUTE;
6320
6332WGPU_EXPORT void wgpuSupportedWGSLLanguageFeaturesFreeMembers(WGPUSupportedWGSLLanguageFeatures supportedWGSLLanguageFeatures) WGPU_FUNCTION_ATTRIBUTE;
6333
6351WGPU_EXPORT void wgpuSurfaceConfigure(WGPUSurface surface, WGPUSurfaceConfiguration const * config) WGPU_FUNCTION_ATTRIBUTE;
6367WGPU_EXPORT WGPUStatus wgpuSurfaceGetCapabilities(WGPUSurface surface, WGPUAdapter adapter, WGPUSurfaceCapabilities * capabilities) WGPU_FUNCTION_ATTRIBUTE;
6377WGPU_EXPORT void wgpuSurfaceGetCurrentTexture(WGPUSurface surface, WGPUSurfaceTexture * surfaceTexture) WGPU_FUNCTION_ATTRIBUTE;
6385WGPU_EXPORT WGPUStatus wgpuSurfacePresent(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6392WGPU_EXPORT void wgpuSurfaceSetLabel(WGPUSurface surface, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6397WGPU_EXPORT void wgpuSurfaceUnconfigure(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6398WGPU_EXPORT void wgpuSurfaceAddRef(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6399WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
6400
6412WGPU_EXPORT void wgpuSurfaceCapabilitiesFreeMembers(WGPUSurfaceCapabilities surfaceCapabilities) WGPU_FUNCTION_ATTRIBUTE;
6413
6426WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
6427WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6428WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6429WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6430WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6431WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6432WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6433WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6434WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6435WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6436WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6437WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6438WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
6439
6448WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
6449WGPU_EXPORT void wgpuTextureViewAddRef(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6450WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
6451
6456#endif // !defined(WGPU_SKIP_DECLARATIONS)
6457
6458#ifdef __cplusplus
6459} // extern "C"
6460#endif
6461
6462#endif // WEBGPU_H_
static const WGPUColorWriteMask WGPUColorWriteMask_Blue
Definition webgpu.h:1274
static const WGPUBufferUsage WGPUBufferUsage_Indirect
Definition webgpu.h:1258
WGPUFlags WGPUColorWriteMask
Definition webgpu.h:1267
static const WGPUBufferUsage WGPUBufferUsage_Storage
Definition webgpu.h:1254
static const WGPUColorWriteMask WGPUColorWriteMask_Alpha
Definition webgpu.h:1275
static const WGPUBufferUsage WGPUBufferUsage_MapRead
Definition webgpu.h:1224
static const WGPUBufferUsage WGPUBufferUsage_Index
Definition webgpu.h:1242
static const WGPUBufferUsage WGPUBufferUsage_None
Definition webgpu.h:1220
static const WGPUMapMode WGPUMapMode_None
Definition webgpu.h:1288
static const WGPUTextureUsage WGPUTextureUsage_None
Definition webgpu.h:1311
WGPUFlags WGPUMapMode
Definition webgpu.h:1284
static const WGPUTextureUsage WGPUTextureUsage_TextureBinding
Definition webgpu.h:1314
static const WGPUColorWriteMask WGPUColorWriteMask_All
Definition webgpu.h:1279
static const WGPUTextureUsage WGPUTextureUsage_CopySrc
Definition webgpu.h:1312
WGPUFlags WGPUShaderStage
Definition webgpu.h:1295
static const WGPUBufferUsage WGPUBufferUsage_QueryResolve
Definition webgpu.h:1262
static const WGPUShaderStage WGPUShaderStage_Fragment
Definition webgpu.h:1301
static const WGPUShaderStage WGPUShaderStage_Compute
Definition webgpu.h:1302
static const WGPUMapMode WGPUMapMode_Write
Definition webgpu.h:1290
static const WGPUShaderStage WGPUShaderStage_None
Definition webgpu.h:1299
static const WGPUTextureUsage WGPUTextureUsage_RenderAttachment
Definition webgpu.h:1316
static const WGPUBufferUsage WGPUBufferUsage_MapWrite
Definition webgpu.h:1230
static const WGPUTextureUsage WGPUTextureUsage_CopyDst
Definition webgpu.h:1313
static const WGPUBufferUsage WGPUBufferUsage_CopySrc
Definition webgpu.h:1234
static const WGPUTextureUsage WGPUTextureUsage_StorageBinding
Definition webgpu.h:1315
WGPUFlags WGPUTextureUsage
Definition webgpu.h:1307
static const WGPUBufferUsage WGPUBufferUsage_Uniform
Definition webgpu.h:1250
static const WGPUMapMode WGPUMapMode_Read
Definition webgpu.h:1289
static const WGPUColorWriteMask WGPUColorWriteMask_Green
Definition webgpu.h:1273
static const WGPUBufferUsage WGPUBufferUsage_Vertex
Definition webgpu.h:1246
static const WGPUShaderStage WGPUShaderStage_Vertex
Definition webgpu.h:1300
static const WGPUColorWriteMask WGPUColorWriteMask_None
Definition webgpu.h:1271
static const WGPUColorWriteMask WGPUColorWriteMask_Red
Definition webgpu.h:1272
WGPUFlags WGPUBufferUsage
Definition webgpu.h:1216
static const WGPUBufferUsage WGPUBufferUsage_CopyDst
Definition webgpu.h:1238
void(* WGPUUncapturedErrorCallback)(WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1442
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1431
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1353
void(* WGPUDeviceLostCallback)(WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1376
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1361
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2)
Definition webgpu.h:1345
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1420
void(* WGPUBufferMapCallback)(WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1335
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1409
void(* WGPUPopErrorScopeCallback)(WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2)
Definition webgpu.h:1395
WGPUIndexFormat
Definition webgpu.h:644
WGPURequestAdapterStatus
Definition webgpu.h:813
WGPUFeatureName
Definition webgpu.h:599
WGPUVertexFormat
Definition webgpu.h:1121
WGPUSType
Definition webgpu.h:905
WGPUBufferBindingType
Definition webgpu.h:419
WGPUDeviceLostReason
Definition webgpu.h:553
WGPUCompareFunction
Definition webgpu.h:472
WGPUCullMode
Definition webgpu.h:542
WGPUTextureDimension
Definition webgpu.h:962
WGPURequestDeviceStatus
Definition webgpu.h:824
WGPUCompilationMessageType
Definition webgpu.h:497
WGPUCreatePipelineAsyncStatus
Definition webgpu.h:531
WGPUTextureViewDimension
Definition webgpu.h:1101
WGPUPrimitiveTopology
Definition webgpu.h:780
WGPUTextureFormat
Definition webgpu.h:973
WGPUWGSLLanguageFeatureName
Definition webgpu.h:1196
WGPUStencilOperation
Definition webgpu.h:862
WGPUAddressMode
Definition webgpu.h:354
WGPUToneMappingMode
Definition webgpu.h:1115
WGPUTextureAspect
Definition webgpu.h:951
WGPUBufferMapState
Definition webgpu.h:436
WGPUFilterMode
Definition webgpu.h:624
WGPUBackendType
Definition webgpu.h:365
WGPUBlendFactor
Definition webgpu.h:381
WGPUSamplerBindingType
Definition webgpu.h:834
WGPULoadOp
Definition webgpu.h:674
WGPUPopErrorScopeStatus
Definition webgpu.h:715
WGPUWaitStatus
Definition webgpu.h:1179
WGPUStorageTextureAccess
Definition webgpu.h:878
WGPUPowerPreference
Definition webgpu.h:731
WGPUPresentMode
Definition webgpu.h:750
WGPUMapAsyncStatus
Definition webgpu.h:684
WGPUBlendOperation
Definition webgpu.h:406
WGPUCompositeAlphaMode
Definition webgpu.h:507
WGPUPredefinedColorSpace
Definition webgpu.h:741
WGPUQueueWorkDoneStatus
Definition webgpu.h:799
WGPUVertexStepMode
Definition webgpu.h:1166
WGPUQueryType
Definition webgpu.h:793
WGPUFeatureLevel
Definition webgpu.h:583
WGPUAdapterType
Definition webgpu.h:346
WGPUInstanceFeatureName
Definition webgpu.h:654
WGPUStatus
Definition webgpu.h:856
WGPUCompilationInfoRequestStatus
Definition webgpu.h:488
WGPUMipmapFilterMode
Definition webgpu.h:695
WGPUSurfaceGetCurrentTextureStatus
Definition webgpu.h:923
WGPUFrontFace
Definition webgpu.h:634
WGPUStoreOp
Definition webgpu.h:895
WGPUErrorFilter
Definition webgpu.h:564
WGPUOptionalBool
Definition webgpu.h:705
WGPUCallbackMode
Definition webgpu.h:446
WGPUTextureSampleType
Definition webgpu.h:1082
WGPUErrorType
Definition webgpu.h:571
@ WGPUIndexFormat_Force32
Definition webgpu.h:651
@ WGPUIndexFormat_Uint16
Definition webgpu.h:649
@ WGPUIndexFormat_Undefined
Definition webgpu.h:648
@ WGPUIndexFormat_Uint32
Definition webgpu.h:650
@ WGPURequestAdapterStatus_Unavailable
Definition webgpu.h:819
@ WGPURequestAdapterStatus_Success
Definition webgpu.h:814
@ WGPURequestAdapterStatus_Error
Definition webgpu.h:820
@ WGPURequestAdapterStatus_CallbackCancelled
Definition webgpu.h:818
@ WGPURequestAdapterStatus_Force32
Definition webgpu.h:821
@ WGPUFeatureName_TextureCompressionASTC
Definition webgpu.h:606
@ WGPUFeatureName_Subgroups
Definition webgpu.h:617
@ WGPUFeatureName_Force32
Definition webgpu.h:621
@ WGPUFeatureName_ClipDistances
Definition webgpu.h:615
@ WGPUFeatureName_PrimitiveIndex
Definition webgpu.h:620
@ 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:1160
@ WGPUVertexFormat_Float32x2
Definition webgpu.h:1150
@ WGPUVertexFormat_Sint32x2
Definition webgpu.h:1158
@ WGPUVertexFormat_Float32
Definition webgpu.h:1149
@ WGPUVertexFormat_Float16x4
Definition webgpu.h:1148
@ WGPUVertexFormat_Uint16x4
Definition webgpu.h:1136
@ WGPUVertexFormat_Snorm8x2
Definition webgpu.h:1132
@ WGPUVertexFormat_Uint8x4
Definition webgpu.h:1124
@ WGPUVertexFormat_Sint8x2
Definition webgpu.h:1126
@ WGPUVertexFormat_Unorm8
Definition webgpu.h:1128
@ WGPUVertexFormat_Unorm8x4
Definition webgpu.h:1130
@ WGPUVertexFormat_Force32
Definition webgpu.h:1163
@ WGPUVertexFormat_Uint8x2
Definition webgpu.h:1123
@ WGPUVertexFormat_Float32x4
Definition webgpu.h:1152
@ WGPUVertexFormat_Float16x2
Definition webgpu.h:1147
@ WGPUVertexFormat_Uint32
Definition webgpu.h:1153
@ WGPUVertexFormat_Snorm8
Definition webgpu.h:1131
@ WGPUVertexFormat_Sint8
Definition webgpu.h:1125
@ WGPUVertexFormat_Uint32x4
Definition webgpu.h:1156
@ WGPUVertexFormat_Unorm8x4BGRA
Definition webgpu.h:1162
@ WGPUVertexFormat_Sint32
Definition webgpu.h:1157
@ WGPUVertexFormat_Uint16
Definition webgpu.h:1134
@ WGPUVertexFormat_Uint32x2
Definition webgpu.h:1154
@ WGPUVertexFormat_Uint32x3
Definition webgpu.h:1155
@ WGPUVertexFormat_Snorm16
Definition webgpu.h:1143
@ WGPUVertexFormat_Sint16x4
Definition webgpu.h:1139
@ WGPUVertexFormat_Unorm10_10_10_2
Definition webgpu.h:1161
@ WGPUVertexFormat_Unorm16x2
Definition webgpu.h:1141
@ WGPUVertexFormat_Float16
Definition webgpu.h:1146
@ WGPUVertexFormat_Unorm8x2
Definition webgpu.h:1129
@ WGPUVertexFormat_Sint32x3
Definition webgpu.h:1159
@ WGPUVertexFormat_Sint16x2
Definition webgpu.h:1138
@ WGPUVertexFormat_Snorm8x4
Definition webgpu.h:1133
@ WGPUVertexFormat_Uint8
Definition webgpu.h:1122
@ WGPUVertexFormat_Sint8x4
Definition webgpu.h:1127
@ WGPUVertexFormat_Unorm16
Definition webgpu.h:1140
@ WGPUVertexFormat_Sint16
Definition webgpu.h:1137
@ WGPUVertexFormat_Uint16x2
Definition webgpu.h:1135
@ WGPUVertexFormat_Snorm16x2
Definition webgpu.h:1144
@ WGPUVertexFormat_Unorm16x4
Definition webgpu.h:1142
@ WGPUVertexFormat_Float32x3
Definition webgpu.h:1151
@ WGPUVertexFormat_Snorm16x4
Definition webgpu.h:1145
@ WGPUSType_Force32
Definition webgpu.h:917
@ WGPUSType_SurfaceSourceWaylandSurface
Definition webgpu.h:912
@ WGPUSType_ShaderSourceSPIRV
Definition webgpu.h:906
@ WGPUSType_SurfaceColorManagement
Definition webgpu.h:915
@ WGPUSType_SurfaceSourceAndroidNativeWindow
Definition webgpu.h:913
@ WGPUSType_SurfaceSourceXCBWindow
Definition webgpu.h:914
@ WGPUSType_SurfaceSourceWindowsHWND
Definition webgpu.h:910
@ WGPUSType_RenderPassMaxDrawCount
Definition webgpu.h:908
@ WGPUSType_SurfaceSourceMetalLayer
Definition webgpu.h:909
@ WGPUSType_RequestAdapterWebXROptions
Definition webgpu.h:916
@ WGPUSType_ShaderSourceWGSL
Definition webgpu.h:907
@ WGPUSType_SurfaceSourceXlibWindow
Definition webgpu.h:911
@ 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:966
@ WGPUTextureDimension_2D
Definition webgpu.h:968
@ WGPUTextureDimension_Force32
Definition webgpu.h:970
@ WGPUTextureDimension_3D
Definition webgpu.h:969
@ WGPUTextureDimension_1D
Definition webgpu.h:967
@ WGPURequestDeviceStatus_CallbackCancelled
Definition webgpu.h:829
@ WGPURequestDeviceStatus_Success
Definition webgpu.h:825
@ WGPURequestDeviceStatus_Error
Definition webgpu.h:830
@ WGPURequestDeviceStatus_Force32
Definition webgpu.h:831
@ 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:1109
@ WGPUTextureViewDimension_2DArray
Definition webgpu.h:1108
@ WGPUTextureViewDimension_2D
Definition webgpu.h:1107
@ WGPUTextureViewDimension_3D
Definition webgpu.h:1111
@ WGPUTextureViewDimension_1D
Definition webgpu.h:1106
@ WGPUTextureViewDimension_CubeArray
Definition webgpu.h:1110
@ WGPUTextureViewDimension_Undefined
Definition webgpu.h:1105
@ WGPUTextureViewDimension_Force32
Definition webgpu.h:1112
@ WGPUPrimitiveTopology_LineList
Definition webgpu.h:786
@ WGPUPrimitiveTopology_LineStrip
Definition webgpu.h:787
@ WGPUPrimitiveTopology_Undefined
Definition webgpu.h:784
@ WGPUPrimitiveTopology_TriangleList
Definition webgpu.h:788
@ WGPUPrimitiveTopology_PointList
Definition webgpu.h:785
@ WGPUPrimitiveTopology_TriangleStrip
Definition webgpu.h:789
@ WGPUPrimitiveTopology_Force32
Definition webgpu.h:790
@ WGPUTextureFormat_ASTC12x10Unorm
Definition webgpu.h:1075
@ WGPUTextureFormat_BC5RGSnorm
Definition webgpu.h:1036
@ WGPUTextureFormat_BC7RGBAUnorm
Definition webgpu.h:1039
@ WGPUTextureFormat_RGBA8Unorm
Definition webgpu.h:999
@ WGPUTextureFormat_RG8Unorm
Definition webgpu.h:987
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition webgpu.h:1041
@ WGPUTextureFormat_ASTC4x4Unorm
Definition webgpu.h:1051
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition webgpu.h:1044
@ WGPUTextureFormat_EACR11Snorm
Definition webgpu.h:1048
@ WGPUTextureFormat_BC4RSnorm
Definition webgpu.h:1034
@ WGPUTextureFormat_RGBA8Snorm
Definition webgpu.h:1001
@ WGPUTextureFormat_ASTC10x6Unorm
Definition webgpu.h:1069
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition webgpu.h:1005
@ WGPUTextureFormat_ASTC6x6Unorm
Definition webgpu.h:1059
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition webgpu.h:1043
@ WGPUTextureFormat_ASTC10x8Unorm
Definition webgpu.h:1071
@ WGPUTextureFormat_RG16Unorm
Definition webgpu.h:994
@ WGPUTextureFormat_ASTC8x8Unorm
Definition webgpu.h:1065
@ WGPUTextureFormat_RGBA32Float
Definition webgpu.h:1018
@ WGPUTextureFormat_BC6HRGBUfloat
Definition webgpu.h:1037
@ WGPUTextureFormat_RG32Sint
Definition webgpu.h:1012
@ WGPUTextureFormat_RGBA16Float
Definition webgpu.h:1017
@ WGPUTextureFormat_ASTC10x10Unorm
Definition webgpu.h:1073
@ WGPUTextureFormat_Depth32FloatStencil8
Definition webgpu.h:1026
@ WGPUTextureFormat_RG8Snorm
Definition webgpu.h:988
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition webgpu.h:1076
@ WGPUTextureFormat_Depth24Plus
Definition webgpu.h:1023
@ WGPUTextureFormat_RG16Sint
Definition webgpu.h:997
@ WGPUTextureFormat_EACRG11Unorm
Definition webgpu.h:1049
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition webgpu.h:1042
@ WGPUTextureFormat_BC6HRGBFloat
Definition webgpu.h:1038
@ WGPUTextureFormat_R32Float
Definition webgpu.h:991
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition webgpu.h:1040
@ WGPUTextureFormat_R16Sint
Definition webgpu.h:985
@ WGPUTextureFormat_R8Sint
Definition webgpu.h:981
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition webgpu.h:1000
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition webgpu.h:1032
@ WGPUTextureFormat_RGBA16Unorm
Definition webgpu.h:1013
@ WGPUTextureFormat_RGBA8Uint
Definition webgpu.h:1002
@ WGPUTextureFormat_EACRG11Snorm
Definition webgpu.h:1050
@ WGPUTextureFormat_RGBA16Uint
Definition webgpu.h:1015
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition webgpu.h:1074
@ WGPUTextureFormat_RGB10A2Unorm
Definition webgpu.h:1007
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition webgpu.h:1068
@ WGPUTextureFormat_ASTC5x5Unorm
Definition webgpu.h:1055
@ WGPUTextureFormat_R32Uint
Definition webgpu.h:992
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition webgpu.h:1046
@ WGPUTextureFormat_RG16Snorm
Definition webgpu.h:995
@ WGPUTextureFormat_ASTC5x4Unorm
Definition webgpu.h:1053
@ WGPUTextureFormat_BC3RGBAUnorm
Definition webgpu.h:1031
@ WGPUTextureFormat_R16Unorm
Definition webgpu.h:982
@ WGPUTextureFormat_BGRA8Unorm
Definition webgpu.h:1004
@ WGPUTextureFormat_BC4RUnorm
Definition webgpu.h:1033
@ WGPUTextureFormat_BC5RGUnorm
Definition webgpu.h:1035
@ WGPUTextureFormat_Force32
Definition webgpu.h:1079
@ WGPUTextureFormat_BC1RGBAUnorm
Definition webgpu.h:1027
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition webgpu.h:1056
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition webgpu.h:1064
@ WGPUTextureFormat_R32Sint
Definition webgpu.h:993
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition webgpu.h:1030
@ WGPUTextureFormat_RGBA32Uint
Definition webgpu.h:1019
@ WGPUTextureFormat_Stencil8
Definition webgpu.h:1021
@ WGPUTextureFormat_EACR11Unorm
Definition webgpu.h:1047
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition webgpu.h:1060
@ WGPUTextureFormat_RG16Uint
Definition webgpu.h:996
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition webgpu.h:1072
@ WGPUTextureFormat_RGB9E5Ufloat
Definition webgpu.h:1009
@ WGPUTextureFormat_Depth16Unorm
Definition webgpu.h:1022
@ WGPUTextureFormat_RG8Sint
Definition webgpu.h:990
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition webgpu.h:1066
@ WGPUTextureFormat_R16Uint
Definition webgpu.h:984
@ WGPUTextureFormat_Undefined
Definition webgpu.h:977
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition webgpu.h:1070
@ WGPUTextureFormat_R16Float
Definition webgpu.h:986
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition webgpu.h:1054
@ WGPUTextureFormat_RG32Float
Definition webgpu.h:1010
@ WGPUTextureFormat_RGBA16Snorm
Definition webgpu.h:1014
@ WGPUTextureFormat_RG11B10Ufloat
Definition webgpu.h:1008
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition webgpu.h:1078
@ WGPUTextureFormat_RGBA32Sint
Definition webgpu.h:1020
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition webgpu.h:1028
@ WGPUTextureFormat_RG16Float
Definition webgpu.h:998
@ WGPUTextureFormat_ASTC6x5Unorm
Definition webgpu.h:1057
@ WGPUTextureFormat_Depth24PlusStencil8
Definition webgpu.h:1024
@ WGPUTextureFormat_ASTC10x5Unorm
Definition webgpu.h:1067
@ WGPUTextureFormat_RGBA16Sint
Definition webgpu.h:1016
@ WGPUTextureFormat_R8Unorm
Definition webgpu.h:978
@ WGPUTextureFormat_Depth32Float
Definition webgpu.h:1025
@ WGPUTextureFormat_BC2RGBAUnorm
Definition webgpu.h:1029
@ WGPUTextureFormat_R16Snorm
Definition webgpu.h:983
@ WGPUTextureFormat_ASTC8x6Unorm
Definition webgpu.h:1063
@ WGPUTextureFormat_RG8Uint
Definition webgpu.h:989
@ WGPUTextureFormat_R8Uint
Definition webgpu.h:980
@ WGPUTextureFormat_ASTC8x5Unorm
Definition webgpu.h:1061
@ WGPUTextureFormat_ASTC12x12Unorm
Definition webgpu.h:1077
@ WGPUTextureFormat_RGB10A2Uint
Definition webgpu.h:1006
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition webgpu.h:1052
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition webgpu.h:1045
@ WGPUTextureFormat_RG32Uint
Definition webgpu.h:1011
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition webgpu.h:1062
@ WGPUTextureFormat_RGBA8Sint
Definition webgpu.h:1003
@ WGPUTextureFormat_R8Snorm
Definition webgpu.h:979
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition webgpu.h:1058
@ WGPUWGSLLanguageFeatureName_ReadonlyAndReadwriteStorageTextures
Definition webgpu.h:1197
@ WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters
Definition webgpu.h:1199
@ WGPUWGSLLanguageFeatureName_PointerCompositeAccess
Definition webgpu.h:1200
@ WGPUWGSLLanguageFeatureName_Force32
Definition webgpu.h:1201
@ WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct
Definition webgpu.h:1198
@ WGPUStencilOperation_DecrementClamp
Definition webgpu.h:872
@ WGPUStencilOperation_Undefined
Definition webgpu.h:866
@ WGPUStencilOperation_Replace
Definition webgpu.h:869
@ WGPUStencilOperation_Keep
Definition webgpu.h:867
@ WGPUStencilOperation_DecrementWrap
Definition webgpu.h:874
@ WGPUStencilOperation_IncrementWrap
Definition webgpu.h:873
@ WGPUStencilOperation_IncrementClamp
Definition webgpu.h:871
@ WGPUStencilOperation_Invert
Definition webgpu.h:870
@ WGPUStencilOperation_Force32
Definition webgpu.h:875
@ WGPUStencilOperation_Zero
Definition webgpu.h:868
@ 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:1118
@ WGPUToneMappingMode_Standard
Definition webgpu.h:1116
@ WGPUToneMappingMode_Extended
Definition webgpu.h:1117
@ WGPUTextureAspect_DepthOnly
Definition webgpu.h:958
@ WGPUTextureAspect_Force32
Definition webgpu.h:959
@ WGPUTextureAspect_Undefined
Definition webgpu.h:955
@ WGPUTextureAspect_All
Definition webgpu.h:956
@ WGPUTextureAspect_StencilOnly
Definition webgpu.h:957
@ 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:628
@ WGPUFilterMode_Force32
Definition webgpu.h:631
@ WGPUFilterMode_Nearest
Definition webgpu.h:629
@ WGPUFilterMode_Linear
Definition webgpu.h:630
@ 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:840
@ WGPUSamplerBindingType_NonFiltering
Definition webgpu.h:846
@ WGPUSamplerBindingType_Force32
Definition webgpu.h:848
@ WGPUSamplerBindingType_Filtering
Definition webgpu.h:845
@ WGPUSamplerBindingType_Undefined
Definition webgpu.h:844
@ WGPUSamplerBindingType_Comparison
Definition webgpu.h:847
@ WGPULoadOp_Load
Definition webgpu.h:679
@ WGPULoadOp_Force32
Definition webgpu.h:681
@ WGPULoadOp_Undefined
Definition webgpu.h:678
@ WGPULoadOp_Clear
Definition webgpu.h:680
@ WGPUPopErrorScopeStatus_Force32
Definition webgpu.h:728
@ WGPUPopErrorScopeStatus_Success
Definition webgpu.h:719
@ WGPUPopErrorScopeStatus_CallbackCancelled
Definition webgpu.h:723
@ WGPUPopErrorScopeStatus_Error
Definition webgpu.h:727
@ WGPUWaitStatus_Error
Definition webgpu.h:1192
@ WGPUWaitStatus_Force32
Definition webgpu.h:1193
@ WGPUWaitStatus_Success
Definition webgpu.h:1183
@ WGPUWaitStatus_TimedOut
Definition webgpu.h:1187
@ WGPUStorageTextureAccess_Undefined
Definition webgpu.h:888
@ WGPUStorageTextureAccess_BindingNotUsed
Definition webgpu.h:884
@ WGPUStorageTextureAccess_ReadOnly
Definition webgpu.h:890
@ WGPUStorageTextureAccess_WriteOnly
Definition webgpu.h:889
@ WGPUStorageTextureAccess_Force32
Definition webgpu.h:892
@ WGPUStorageTextureAccess_ReadWrite
Definition webgpu.h:891
@ WGPUPowerPreference_Force32
Definition webgpu.h:738
@ WGPUPowerPreference_HighPerformance
Definition webgpu.h:737
@ WGPUPowerPreference_LowPower
Definition webgpu.h:736
@ WGPUPowerPreference_Undefined
Definition webgpu.h:735
@ WGPUPresentMode_Fifo
Definition webgpu.h:760
@ WGPUPresentMode_Force32
Definition webgpu.h:777
@ WGPUPresentMode_Immediate
Definition webgpu.h:771
@ WGPUPresentMode_FifoRelaxed
Definition webgpu.h:766
@ WGPUPresentMode_Mailbox
Definition webgpu.h:776
@ WGPUPresentMode_Undefined
Definition webgpu.h:754
@ WGPUMapAsyncStatus_Aborted
Definition webgpu.h:691
@ WGPUMapAsyncStatus_CallbackCancelled
Definition webgpu.h:689
@ WGPUMapAsyncStatus_Error
Definition webgpu.h:690
@ WGPUMapAsyncStatus_Force32
Definition webgpu.h:692
@ WGPUMapAsyncStatus_Success
Definition webgpu.h:685
@ 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:743
@ WGPUPredefinedColorSpace_SRGB
Definition webgpu.h:742
@ WGPUPredefinedColorSpace_Force32
Definition webgpu.h:744
@ WGPUQueueWorkDoneStatus_Error
Definition webgpu.h:809
@ WGPUQueueWorkDoneStatus_CallbackCancelled
Definition webgpu.h:804
@ WGPUQueueWorkDoneStatus_Success
Definition webgpu.h:800
@ WGPUQueueWorkDoneStatus_Force32
Definition webgpu.h:810
@ WGPUVertexStepMode_Undefined
Definition webgpu.h:1170
@ WGPUVertexStepMode_Instance
Definition webgpu.h:1172
@ WGPUVertexStepMode_Vertex
Definition webgpu.h:1171
@ WGPUVertexStepMode_Force32
Definition webgpu.h:1173
@ WGPUQueryType_Occlusion
Definition webgpu.h:794
@ WGPUQueryType_Timestamp
Definition webgpu.h:795
@ WGPUQueryType_Force32
Definition webgpu.h:796
@ 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:663
@ WGPUInstanceFeatureName_Force32
Definition webgpu.h:671
@ WGPUInstanceFeatureName_MultipleDevicesPerAdapter
Definition webgpu.h:670
@ WGPUInstanceFeatureName_TimedWaitAny
Definition webgpu.h:658
@ WGPUStatus_Force32
Definition webgpu.h:859
@ WGPUStatus_Success
Definition webgpu.h:857
@ WGPUStatus_Error
Definition webgpu.h:858
@ WGPUCompilationInfoRequestStatus_Force32
Definition webgpu.h:494
@ WGPUCompilationInfoRequestStatus_Success
Definition webgpu.h:489
@ WGPUCompilationInfoRequestStatus_CallbackCancelled
Definition webgpu.h:493
@ WGPUMipmapFilterMode_Undefined
Definition webgpu.h:699
@ WGPUMipmapFilterMode_Linear
Definition webgpu.h:701
@ WGPUMipmapFilterMode_Force32
Definition webgpu.h:702
@ WGPUMipmapFilterMode_Nearest
Definition webgpu.h:700
@ WGPUSurfaceGetCurrentTextureStatus_Lost
Definition webgpu.h:943
@ WGPUSurfaceGetCurrentTextureStatus_Error
Definition webgpu.h:947
@ WGPUSurfaceGetCurrentTextureStatus_Outdated
Definition webgpu.h:939
@ WGPUSurfaceGetCurrentTextureStatus_Timeout
Definition webgpu.h:935
@ WGPUSurfaceGetCurrentTextureStatus_SuccessOptimal
Definition webgpu.h:927
@ WGPUSurfaceGetCurrentTextureStatus_Force32
Definition webgpu.h:948
@ WGPUSurfaceGetCurrentTextureStatus_SuccessSuboptimal
Definition webgpu.h:931
@ WGPUFrontFace_CW
Definition webgpu.h:640
@ WGPUFrontFace_Undefined
Definition webgpu.h:638
@ WGPUFrontFace_CCW
Definition webgpu.h:639
@ WGPUFrontFace_Force32
Definition webgpu.h:641
@ WGPUStoreOp_Discard
Definition webgpu.h:901
@ WGPUStoreOp_Force32
Definition webgpu.h:902
@ WGPUStoreOp_Store
Definition webgpu.h:900
@ WGPUStoreOp_Undefined
Definition webgpu.h:899
@ 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:710
@ WGPUOptionalBool_Force32
Definition webgpu.h:712
@ WGPUOptionalBool_Undefined
Definition webgpu.h:711
@ WGPUOptionalBool_False
Definition webgpu.h:709
@ 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:1093
@ WGPUTextureSampleType_Sint
Definition webgpu.h:1096
@ WGPUTextureSampleType_BindingNotUsed
Definition webgpu.h:1088
@ WGPUTextureSampleType_Undefined
Definition webgpu.h:1092
@ WGPUTextureSampleType_Force32
Definition webgpu.h:1098
@ WGPUTextureSampleType_Uint
Definition webgpu.h:1097
@ WGPUTextureSampleType_Depth
Definition webgpu.h:1095
@ WGPUTextureSampleType_UnfilterableFloat
Definition webgpu.h:1094
@ 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:1731
WGPUBackendType backendType
Definition webgpu.h:1741
uint32_t deviceID
Definition webgpu.h:1753
WGPUChainedStruct * nextInChain
Definition webgpu.h:1713
uint32_t subgroupMinSize
Definition webgpu.h:1757
uint32_t vendorID
Definition webgpu.h:1749
WGPUStringView description
Definition webgpu.h:1737
WGPUAdapterType adapterType
Definition webgpu.h:1745
uint32_t subgroupMaxSize
Definition webgpu.h:1761
WGPUStringView architecture
Definition webgpu.h:1725
WGPUStringView vendor
Definition webgpu.h:1719
WGPUChainedStruct * nextInChain
Definition webgpu.h:3639
WGPUStringView label
Definition webgpu.h:3645
WGPUBindGroupLayout layout
Definition webgpu.h:3649
WGPUBindGroupEntry const * entries
Definition webgpu.h:3657
uint64_t offset
Definition webgpu.h:1805
WGPUBuffer buffer
Definition webgpu.h:1798
WGPUSampler sampler
Definition webgpu.h:1820
WGPUTextureView textureView
Definition webgpu.h:1827
WGPUChainedStruct * nextInChain
Definition webgpu.h:1785
uint32_t binding
Definition webgpu.h:1791
WGPUBindGroupLayoutEntry const * entries
Definition webgpu.h:4354
WGPUChainedStruct * nextInChain
Definition webgpu.h:4340
WGPUTextureBindingLayout texture
Definition webgpu.h:3701
WGPUShaderStage visibility
Definition webgpu.h:3683
WGPUBufferBindingLayout buffer
Definition webgpu.h:3693
WGPUChainedStruct * nextInChain
Definition webgpu.h:3675
WGPUStorageTextureBindingLayout storageTexture
Definition webgpu.h:3705
WGPUSamplerBindingLayout sampler
Definition webgpu.h:3697
WGPUBlendFactor dstFactor
Definition webgpu.h:1867
WGPUBlendFactor srcFactor
Definition webgpu.h:1860
WGPUBlendOperation operation
Definition webgpu.h:1853
WGPUBlendComponent alpha
Definition webgpu.h:3733
WGPUBlendComponent color
Definition webgpu.h:3729
WGPUBufferBindingType type
Definition webgpu.h:1890
WGPUBool hasDynamicOffset
Definition webgpu.h:1894
WGPUChainedStruct * nextInChain
Definition webgpu.h:1883
WGPUBool mappedAtCreation
Definition webgpu.h:1937
WGPUStringView label
Definition webgpu.h:1921
WGPUBufferUsage usage
Definition webgpu.h:1925
WGPUChainedStruct * nextInChain
Definition webgpu.h:1915
WGPUChainedStruct * nextInChain
Definition webgpu.h:1475
WGPUBufferMapCallback callback
Definition webgpu.h:1482
WGPUCallbackMode mode
Definition webgpu.h:1481
struct WGPUChainedStruct * next
Definition webgpu.h:1453
WGPUSType sType
Definition webgpu.h:1454
WGPUBlendState const * blend
Definition webgpu.h:4383
WGPUColorWriteMask writeMask
Definition webgpu.h:4387
WGPUChainedStruct * nextInChain
Definition webgpu.h:4371
WGPUTextureFormat format
Definition webgpu.h:4379
double a
Definition webgpu.h:1974
double b
Definition webgpu.h:1970
double r
Definition webgpu.h:1962
double g
Definition webgpu.h:1966
WGPUChainedStruct * nextInChain
Definition webgpu.h:1991
WGPUChainedStruct * nextInChain
Definition webgpu.h:2012
WGPUCompilationInfoCallback callback
Definition webgpu.h:1506
WGPUChainedStruct * nextInChain
Definition webgpu.h:1499
WGPUChainedStruct * nextInChain
Definition webgpu.h:3751
WGPUCompilationMessage const * messages
Definition webgpu.h:3759
WGPUChainedStruct * nextInChain
Definition webgpu.h:2036
WGPUCompilationMessageType type
Definition webgpu.h:2050
WGPUStringView message
Definition webgpu.h:2044
WGPUStringView label
Definition webgpu.h:3781
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:3785
WGPUChainedStruct * nextInChain
Definition webgpu.h:3775
WGPUComputeState compute
Definition webgpu.h:4418
WGPUChainedStruct * nextInChain
Definition webgpu.h:4404
WGPUPipelineLayout layout
Definition webgpu.h:4414
WGPUChainedStruct * nextInChain
Definition webgpu.h:3801
WGPUConstantEntry const * constants
Definition webgpu.h:3819
size_t constantCount
Definition webgpu.h:3815
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:3811
WGPUStringView key
Definition webgpu.h:2100
WGPUChainedStruct * nextInChain
Definition webgpu.h:2094
WGPUCreateComputePipelineAsyncCallback callback
Definition webgpu.h:1530
WGPUCreateRenderPipelineAsyncCallback callback
Definition webgpu.h:1554
WGPUStencilFaceState stencilFront
Definition webgpu.h:3853
uint32_t stencilWriteMask
Definition webgpu.h:3865
WGPUStencilFaceState stencilBack
Definition webgpu.h:3857
WGPUChainedStruct * nextInChain
Definition webgpu.h:3837
WGPUOptionalBool depthWriteEnabled
Definition webgpu.h:3845
WGPUCompareFunction depthCompare
Definition webgpu.h:3849
uint32_t stencilReadMask
Definition webgpu.h:3861
WGPUTextureFormat format
Definition webgpu.h:3841
WGPUDeviceLostCallbackInfo deviceLostCallbackInfo
Definition webgpu.h:3935
WGPUUncapturedErrorCallbackInfo uncapturedErrorCallbackInfo
Definition webgpu.h:3944
size_t requiredFeatureCount
Definition webgpu.h:3919
WGPUStringView label
Definition webgpu.h:3915
WGPUFeatureName const * requiredFeatures
Definition webgpu.h:3923
WGPUQueueDescriptor defaultQueue
Definition webgpu.h:3931
WGPUChainedStruct * nextInChain
Definition webgpu.h:3909
WGPULimits const * requiredLimits
Definition webgpu.h:3927
WGPUChainedStruct * nextInChain
Definition webgpu.h:1571
WGPUDeviceLostCallback callback
Definition webgpu.h:1578
WGPUCallbackMode mode
Definition webgpu.h:1577
uint32_t width
Definition webgpu.h:2127
uint32_t depthOrArrayLayers
Definition webgpu.h:2135
uint32_t height
Definition webgpu.h:2131
size_t constantCount
Definition webgpu.h:4541
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4537
WGPUChainedStruct * nextInChain
Definition webgpu.h:4527
size_t targetCount
Definition webgpu.h:4549
WGPUConstantEntry const * constants
Definition webgpu.h:4545
WGPUColorTargetState const * targets
Definition webgpu.h:4553
WGPUFuture future
Definition webgpu.h:3972
WGPUBool completed
Definition webgpu.h:3978
uint64_t id
Definition webgpu.h:2158
WGPUInstanceFeatureName const * requiredFeatures
Definition webgpu.h:4001
WGPUChainedStruct * nextInChain
Definition webgpu.h:3993
size_t requiredFeatureCount
Definition webgpu.h:3997
WGPUInstanceLimits const * requiredLimits
Definition webgpu.h:4005
size_t timedWaitAnyMaxCount
Definition webgpu.h:2178
WGPUChainedStruct * nextInChain
Definition webgpu.h:2172
uint32_t maxBindGroupsPlusVertexBuffers
Definition webgpu.h:2217
uint32_t maxColorAttachmentBytesPerSample
Definition webgpu.h:2293
uint32_t maxTextureDimension2D
Definition webgpu.h:2201
uint32_t maxSampledTexturesPerShaderStage
Definition webgpu.h:2233
uint32_t maxTextureDimension3D
Definition webgpu.h:2205
uint32_t maxSamplersPerShaderStage
Definition webgpu.h:2237
WGPUChainedStruct * nextInChain
Definition webgpu.h:2193
uint32_t maxBindingsPerBindGroup
Definition webgpu.h:2221
uint32_t maxComputeWorkgroupsPerDimension
Definition webgpu.h:2317
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition webgpu.h:2229
uint32_t maxComputeWorkgroupStorageSize
Definition webgpu.h:2297
uint32_t minStorageBufferOffsetAlignment
Definition webgpu.h:2265
uint32_t maxComputeWorkgroupSizeY
Definition webgpu.h:2309
uint64_t maxStorageBufferBindingSize
Definition webgpu.h:2257
uint32_t maxComputeInvocationsPerWorkgroup
Definition webgpu.h:2301
uint32_t maxVertexBufferArrayStride
Definition webgpu.h:2281
uint32_t minUniformBufferOffsetAlignment
Definition webgpu.h:2261
uint32_t maxVertexAttributes
Definition webgpu.h:2277
uint32_t maxColorAttachments
Definition webgpu.h:2289
uint32_t maxInterStageShaderVariables
Definition webgpu.h:2285
uint32_t maxComputeWorkgroupSizeZ
Definition webgpu.h:2313
uint32_t maxTextureDimension1D
Definition webgpu.h:2197
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition webgpu.h:2225
uint64_t maxUniformBufferBindingSize
Definition webgpu.h:2253
uint64_t maxBufferSize
Definition webgpu.h:2273
uint32_t maxUniformBuffersPerShaderStage
Definition webgpu.h:2249
uint32_t maxComputeWorkgroupSizeX
Definition webgpu.h:2305
uint32_t maxVertexBuffers
Definition webgpu.h:2269
uint32_t maxTextureArrayLayers
Definition webgpu.h:2209
uint32_t maxStorageTexturesPerShaderStage
Definition webgpu.h:2245
uint32_t maxStorageBuffersPerShaderStage
Definition webgpu.h:2241
uint32_t maxImmediateSize
Definition webgpu.h:2321
uint32_t maxBindGroups
Definition webgpu.h:2213
WGPUBool alphaToCoverageEnabled
Definition webgpu.h:2379
WGPUChainedStruct * nextInChain
Definition webgpu.h:2367
uint32_t y
Definition webgpu.h:2403
uint32_t z
Definition webgpu.h:2407
uint32_t x
Definition webgpu.h:2399
WGPUQuerySet querySet
Definition webgpu.h:2429
uint32_t endOfPassWriteIndex
Definition webgpu.h:2437
WGPUChainedStruct * nextInChain
Definition webgpu.h:2423
uint32_t beginningOfPassWriteIndex
Definition webgpu.h:2433
WGPUChainedStruct * nextInChain
Definition webgpu.h:2454
WGPUBindGroupLayout const * bindGroupLayouts
Definition webgpu.h:2468
WGPUChainedStruct * nextInChain
Definition webgpu.h:1595
WGPUCallbackMode mode
Definition webgpu.h:1601
WGPUPopErrorScopeCallback callback
Definition webgpu.h:1602
WGPUFrontFace frontFace
Definition webgpu.h:2508
WGPUChainedStruct * nextInChain
Definition webgpu.h:2490
WGPUIndexFormat stripIndexFormat
Definition webgpu.h:2501
WGPUPrimitiveTopology topology
Definition webgpu.h:2497
WGPUCullMode cullMode
Definition webgpu.h:2515
WGPUBool unclippedDepth
Definition webgpu.h:2519
WGPUQueryType type
Definition webgpu.h:2548
WGPUChainedStruct * nextInChain
Definition webgpu.h:2538
WGPUStringView label
Definition webgpu.h:2544
WGPUChainedStruct * nextInChain
Definition webgpu.h:2569
WGPUStringView label
Definition webgpu.h:2575
WGPUCallbackMode mode
Definition webgpu.h:1625
WGPUChainedStruct * nextInChain
Definition webgpu.h:1619
WGPUQueueWorkDoneCallback callback
Definition webgpu.h:1626
WGPUChainedStruct * nextInChain
Definition webgpu.h:2590
WGPUStringView label
Definition webgpu.h:2596
WGPUChainedStruct * nextInChain
Definition webgpu.h:2611
WGPUTextureFormat const * colorFormats
Definition webgpu.h:2625
WGPUTextureFormat depthStencilFormat
Definition webgpu.h:2629
WGPUTextureView resolveTarget
Definition webgpu.h:4037
WGPUChainedStruct * nextInChain
Definition webgpu.h:4022
WGPUChainedStruct * nextInChain
Definition webgpu.h:2662
WGPUChainedStruct * nextInChain
Definition webgpu.h:4435
WGPUStringView label
Definition webgpu.h:4441
WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition webgpu.h:4453
WGPURenderPassColorAttachment const * colorAttachments
Definition webgpu.h:4449
WGPUQuerySet occlusionQuerySet
Definition webgpu.h:4457
WGPUPassTimestampWrites const * timestampWrites
Definition webgpu.h:4461
WGPUChainedStruct chain
Definition webgpu.h:2728
WGPUDepthStencilState const * depthStencil
Definition webgpu.h:4595
WGPUChainedStruct * nextInChain
Definition webgpu.h:4573
WGPUMultisampleState multisample
Definition webgpu.h:4599
WGPUFragmentState const * fragment
Definition webgpu.h:4603
WGPUPrimitiveState primitive
Definition webgpu.h:4591
WGPUPipelineLayout layout
Definition webgpu.h:4583
WGPUVertexState vertex
Definition webgpu.h:4587
WGPURequestAdapterCallback callback
Definition webgpu.h:1650
WGPUChainedStruct * nextInChain
Definition webgpu.h:1643
WGPUFeatureLevel featureLevel
Definition webgpu.h:4080
WGPUBool forceFallbackAdapter
Definition webgpu.h:4091
WGPUSurface compatibleSurface
Definition webgpu.h:4105
WGPUBackendType backendType
Definition webgpu.h:4098
WGPUChainedStruct * nextInChain
Definition webgpu.h:4069
WGPUPowerPreference powerPreference
Definition webgpu.h:4084
WGPUChainedStruct chain
Definition webgpu.h:2752
WGPUCallbackMode mode
Definition webgpu.h:1673
WGPUChainedStruct * nextInChain
Definition webgpu.h:1667
WGPURequestDeviceCallback callback
Definition webgpu.h:1674
WGPUChainedStruct * nextInChain
Definition webgpu.h:2776
WGPUSamplerBindingType type
Definition webgpu.h:2783
WGPUFilterMode minFilter
Definition webgpu.h:2839
WGPUAddressMode addressModeU
Definition webgpu.h:2811
WGPUCompareFunction compare
Definition webgpu.h:2866
WGPUAddressMode addressModeW
Definition webgpu.h:2825
uint16_t maxAnisotropy
Definition webgpu.h:2870
WGPUAddressMode addressModeV
Definition webgpu.h:2818
WGPUStringView label
Definition webgpu.h:2804
WGPUFilterMode magFilter
Definition webgpu.h:2832
WGPUChainedStruct * nextInChain
Definition webgpu.h:2798
WGPUMipmapFilterMode mipmapFilter
Definition webgpu.h:2846
WGPUChainedStruct * nextInChain
Definition webgpu.h:4124
WGPUStringView label
Definition webgpu.h:4130
WGPUChainedStruct chain
Definition webgpu.h:2895
uint32_t const * code
Definition webgpu.h:2903
WGPUChainedStruct chain
Definition webgpu.h:2922
WGPUStringView code
Definition webgpu.h:2928
WGPUCompareFunction compare
Definition webgpu.h:2952
WGPUStencilOperation depthFailOp
Definition webgpu.h:2966
WGPUStencilOperation passOp
Definition webgpu.h:2973
WGPUStencilOperation failOp
Definition webgpu.h:2959
WGPUChainedStruct * nextInChain
Definition webgpu.h:2990
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3008
WGPUTextureFormat format
Definition webgpu.h:3001
WGPUStorageTextureAccess access
Definition webgpu.h:2997
size_t length
Definition webgpu.h:195
char const * data
Definition webgpu.h:194
WGPUFeatureName const * features
Definition webgpu.h:3032
WGPUInstanceFeatureName const * features
Definition webgpu.h:3054
WGPUWGSLLanguageFeatureName const * features
Definition webgpu.h:3076
WGPUTextureFormat const * formats
Definition webgpu.h:3110
WGPUChainedStruct * nextInChain
Definition webgpu.h:3093
WGPUPresentMode const * presentModes
Definition webgpu.h:3121
WGPUCompositeAlphaMode const * alphaModes
Definition webgpu.h:3132
WGPUTextureUsage usages
Definition webgpu.h:3100
WGPUToneMappingMode toneMappingMode
Definition webgpu.h:3163
WGPUChainedStruct chain
Definition webgpu.h:3155
WGPUPredefinedColorSpace colorSpace
Definition webgpu.h:3159
WGPUTextureUsage usage
Definition webgpu.h:3203
WGPUTextureFormat format
Definition webgpu.h:3197
WGPUTextureFormat const * viewFormats
Definition webgpu.h:3225
WGPUCompositeAlphaMode alphaMode
Definition webgpu.h:3235
WGPUChainedStruct * nextInChain
Definition webgpu.h:3185
WGPUPresentMode presentMode
Definition webgpu.h:3244
WGPUChainedStruct * nextInChain
Definition webgpu.h:4149
WGPUStringView label
Definition webgpu.h:4157
WGPUChainedStruct chain
Definition webgpu.h:3295
WGPUChainedStruct chain
Definition webgpu.h:3321
WGPUChainedStruct chain
Definition webgpu.h:3354
WGPUChainedStruct chain
Definition webgpu.h:3388
WGPUChainedStruct chain
Definition webgpu.h:3421
WGPUChainedStruct * nextInChain
Definition webgpu.h:3455
WGPUTexture texture
Definition webgpu.h:3462
WGPUSurfaceGetCurrentTextureStatus status
Definition webgpu.h:3468
WGPUTexelCopyBufferLayout layout
Definition webgpu.h:4175
WGPUOrigin3D origin
Definition webgpu.h:4205
WGPUTextureAspect aspect
Definition webgpu.h:4212
WGPUTextureViewDimension viewDimension
Definition webgpu.h:3525
WGPUTextureSampleType sampleType
Definition webgpu.h:3518
WGPUChainedStruct * nextInChain
Definition webgpu.h:3511
WGPUTextureFormat const * viewFormats
Definition webgpu.h:4270
WGPUTextureDimension dimension
Definition webgpu.h:4246
WGPUStringView label
Definition webgpu.h:4235
uint32_t mipLevelCount
Definition webgpu.h:4258
WGPUChainedStruct * nextInChain
Definition webgpu.h:4229
WGPUTextureFormat format
Definition webgpu.h:4254
WGPUTextureUsage usage
Definition webgpu.h:4239
WGPUExtent3D size
Definition webgpu.h:4250
WGPUChainedStruct * nextInChain
Definition webgpu.h:3546
WGPUTextureUsage usage
Definition webgpu.h:3587
WGPUTextureFormat format
Definition webgpu.h:3556
WGPUTextureViewDimension dimension
Definition webgpu.h:3560
WGPUStringView label
Definition webgpu.h:3552
WGPUTextureAspect aspect
Definition webgpu.h:3583
WGPUChainedStruct * nextInChain
Definition webgpu.h:1691
WGPUUncapturedErrorCallback callback
Definition webgpu.h:1692
WGPUVertexFormat format
Definition webgpu.h:3614
WGPUChainedStruct * nextInChain
Definition webgpu.h:3610
uint32_t shaderLocation
Definition webgpu.h:3622
WGPUVertexAttribute const * attributes
Definition webgpu.h:4322
WGPUVertexStepMode stepMode
Definition webgpu.h:4310
WGPUChainedStruct * nextInChain
Definition webgpu.h:4306
WGPUShaderModule WGPUStringView entryPoint
Definition webgpu.h:4491
WGPUVertexBufferLayout const * buffers
Definition webgpu.h:4507
WGPUConstantEntry const * constants
Definition webgpu.h:4499
size_t constantCount
Definition webgpu.h:4495
size_t bufferCount
Definition webgpu.h:4503
WGPUChainedStruct * nextInChain
Definition webgpu.h:4481