Halide 20.0.0
Halide compiler and libraries
mini_webgpu.h
Go to the documentation of this file.
1// BSD 3-Clause License
2//
3// Copyright (c) 2019, "WebGPU native" developers
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are met:
8//
9// 1. Redistributions of source code must retain the above copyright notice, this
10// list of conditions and the following disclaimer.
11//
12// 2. Redistributions in binary form must reproduce the above copyright notice,
13// this list of conditions and the following disclaimer in the documentation
14// and/or other materials provided with the distribution.
15//
16// 3. Neither the name of the copyright holder nor the names of its
17// contributors may be used to endorse or promote products derived from
18// this software without specific prior written permission.
19//
20// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30#ifdef __EMSCRIPTEN__
31#error "Do not include this header. Emscripten already provides headers needed for WebGPU."
32#endif
33#ifndef WEBGPU_H_
34#define WEBGPU_H_
35
36// clang-format off
37
38#if defined(WGPU_SHARED_LIBRARY)
39# if defined(_WIN32)
40# if defined(WGPU_IMPLEMENTATION)
41# define WGPU_EXPORT __declspec(dllexport)
42# else
43# define WGPU_EXPORT __declspec(dllimport)
44# endif
45# else // defined(_WIN32)
46# if defined(WGPU_IMPLEMENTATION)
47# define WGPU_EXPORT __attribute__((visibility("default")))
48# else
49# define WGPU_EXPORT
50# endif
51# endif // defined(_WIN32)
52#else // defined(WGPU_SHARED_LIBRARY)
53# define WGPU_EXPORT
54#endif // defined(WGPU_SHARED_LIBRARY)
55
56#if !defined(WGPU_OBJECT_ATTRIBUTE)
57#define WGPU_OBJECT_ATTRIBUTE
58#endif
59#if !defined(WGPU_ENUM_ATTRIBUTE)
60#define WGPU_ENUM_ATTRIBUTE
61#endif
62#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
63#define WGPU_STRUCTURE_ATTRIBUTE
64#endif
65#if !defined(WGPU_FUNCTION_ATTRIBUTE)
66#define WGPU_FUNCTION_ATTRIBUTE
67#endif
68#if !defined(WGPU_NULLABLE)
69#define WGPU_NULLABLE
70#endif
71
72// Don't include these in Halide runtime
73// #include <stdint.h>
74// #include <stddef.h>
75
76#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED UINT32_MAX
77#define WGPU_COPY_STRIDE_UNDEFINED UINT32_MAX
78#define WGPU_DEPTH_SLICE_UNDEFINED UINT32_MAX
79#define WGPU_LIMIT_U32_UNDEFINED UINT32_MAX
80#define WGPU_LIMIT_U64_UNDEFINED UINT64_MAX
81#define WGPU_MIP_LEVEL_COUNT_UNDEFINED UINT32_MAX
82#define WGPU_QUERY_SET_INDEX_UNDEFINED UINT32_MAX
83#define WGPU_WHOLE_MAP_SIZE SIZE_MAX
84#define WGPU_WHOLE_SIZE UINT64_MAX
85
88
89typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
90typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
91typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
92typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
93typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
94typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
95typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
96typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
97typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
98typedef struct WGPUExternalTextureImpl* WGPUExternalTexture WGPU_OBJECT_ATTRIBUTE;
99typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
100typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
101typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
102typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
103typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
104typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
105typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
106typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
107typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
108typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
109typedef struct WGPUSharedFenceImpl* WGPUSharedFence WGPU_OBJECT_ATTRIBUTE;
110typedef struct WGPUSharedTextureMemoryImpl* WGPUSharedTextureMemory WGPU_OBJECT_ATTRIBUTE;
111typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
112typedef struct WGPUSwapChainImpl* WGPUSwapChain WGPU_OBJECT_ATTRIBUTE;
113typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
114typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
115
116// Structure forward declarations
119struct WGPUBindGroupEntry;
120struct WGPUBlendComponent;
125struct WGPUColor;
130struct WGPUConstantEntry;
148struct WGPUExtent2D;
149struct WGPUExtent3D;
152struct WGPUFuture;
154struct WGPULimits;
155struct WGPUMemoryHeapInfo;
157struct WGPUOrigin2D;
158struct WGPUOrigin3D;
162struct WGPUPrimitiveState;
224struct WGPUBlendState;
229struct WGPUFutureWaitInfo;
238struct WGPURequiredLimits;
251struct WGPUVertexState;
252struct WGPUFragmentState;
254
266 WGPUWGSLFeatureName_Force32 = 0x7FFFFFFF
268
269typedef enum WGPUAdapterType {
274 WGPUAdapterType_Force32 = 0x7FFFFFFF
276
277typedef enum WGPUAddressMode {
282 WGPUAddressMode_Force32 = 0x7FFFFFFF
284
285typedef enum WGPUAlphaMode {
289 WGPUAlphaMode_Force32 = 0x7FFFFFFF
291
292typedef enum WGPUBackendType {
302 WGPUBackendType_Force32 = 0x7FFFFFFF
304
305typedef enum WGPUBlendFactor {
324 WGPUBlendFactor_Force32 = 0x7FFFFFFF
326
327typedef enum WGPUBlendOperation {
334 WGPUBlendOperation_Force32 = 0x7FFFFFFF
336
344
358
359typedef enum WGPUBufferMapState {
363 WGPUBufferMapState_Force32 = 0x7FFFFFFF
365
366typedef enum WGPUCallbackMode {
370 WGPUCallbackMode_Force32 = 0x7FFFFFFF
372
383 WGPUCompareFunction_Force32 = 0x7FFFFFFF
385
394
401
412
413typedef enum WGPUCullMode {
415 WGPUCullMode_None = 0x00000001,
416 WGPUCullMode_Front = 0x00000002,
417 WGPUCullMode_Back = 0x00000003,
418 WGPUCullMode_Force32 = 0x7FFFFFFF
420
426
427typedef enum WGPUErrorFilter {
431 WGPUErrorFilter_Force32 = 0x7FFFFFFF
433
434typedef enum WGPUErrorType {
441 WGPUErrorType_Force32 = 0x7FFFFFFF
443
451
452typedef enum WGPUFeatureName {
504 WGPUFeatureName_Force32 = 0x7FFFFFFF
506
507typedef enum WGPUFilterMode {
511 WGPUFilterMode_Force32 = 0x7FFFFFFF
513
514typedef enum WGPUFrontFace {
516 WGPUFrontFace_CCW = 0x00000001,
517 WGPUFrontFace_CW = 0x00000002,
518 WGPUFrontFace_Force32 = 0x7FFFFFFF
520
521typedef enum WGPUIndexFormat {
525 WGPUIndexFormat_Force32 = 0x7FFFFFFF
527
528typedef enum WGPULoadOp {
530 WGPULoadOp_Clear = 0x00000001,
531 WGPULoadOp_Load = 0x00000002,
532 WGPULoadOp_Force32 = 0x7FFFFFFF
534
535typedef enum WGPULoggingType {
540 WGPULoggingType_Force32 = 0x7FFFFFFF
542
549
554 WGPUPowerPreference_Force32 = 0x7FFFFFFF
556
557typedef enum WGPUPresentMode {
561 WGPUPresentMode_Force32 = 0x7FFFFFFF
563
573
574typedef enum WGPUQueryType {
577 WGPUQueryType_Force32 = 0x7FFFFFFF
579
588
597
605
606typedef enum WGPUSType {
607 WGPUSType_Invalid = 0x00000000,
670 WGPUSType_Force32 = 0x7FFFFFFF
672
680
688 WGPUSharedFenceType_Force32 = 0x7FFFFFFF
690
703
711
712typedef enum WGPUStoreOp {
714 WGPUStoreOp_Store = 0x00000001,
716 WGPUStoreOp_Force32 = 0x7FFFFFFF
718
719typedef enum WGPUTextureAspect {
727 WGPUTextureAspect_Force32 = 0x7FFFFFFF
729
737
738typedef enum WGPUTextureFormat {
844 WGPUTextureFormat_Force32 = 0x7FFFFFFF
846
856
867
868typedef enum WGPUVertexFormat {
901 WGPUVertexFormat_Force32 = 0x7FFFFFFF
903
904typedef enum WGPUVertexStepMode {
909 WGPUVertexStepMode_Force32 = 0x7FFFFFFF
911
912typedef enum WGPUWaitStatus {
919 WGPUWaitStatus_Force32 = 0x7FFFFFFF
921
922typedef enum WGPUBufferUsage {
934 WGPUBufferUsage_Force32 = 0x7FFFFFFF
936typedef WGPUFlags WGPUBufferUsageFlags WGPU_ENUM_ATTRIBUTE;
937
938typedef enum WGPUColorWriteMask {
945 WGPUColorWriteMask_Force32 = 0x7FFFFFFF
947typedef WGPUFlags WGPUColorWriteMaskFlags WGPU_ENUM_ATTRIBUTE;
948
949typedef enum WGPUHeapProperty {
956 WGPUHeapProperty_Force32 = 0x7FFFFFFF
958typedef WGPUFlags WGPUHeapPropertyFlags WGPU_ENUM_ATTRIBUTE;
959
960typedef enum WGPUMapMode {
961 WGPUMapMode_None = 0x00000000,
962 WGPUMapMode_Read = 0x00000001,
963 WGPUMapMode_Write = 0x00000002,
964 WGPUMapMode_Force32 = 0x7FFFFFFF
966typedef WGPUFlags WGPUMapModeFlags WGPU_ENUM_ATTRIBUTE;
967
968typedef enum WGPUShaderStage {
973 WGPUShaderStage_Force32 = 0x7FFFFFFF
975typedef WGPUFlags WGPUShaderStageFlags WGPU_ENUM_ATTRIBUTE;
976
977typedef enum WGPUTextureUsage {
986 WGPUTextureUsage_Force32 = 0x7FFFFFFF
988typedef WGPUFlags WGPUTextureUsageFlags WGPU_ENUM_ATTRIBUTE;
989
991typedef void (*WGPUCallback)(void * userdata) WGPU_FUNCTION_ATTRIBUTE;
992typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
993typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
994typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
995typedef size_t (*WGPUDawnLoadCacheDataFunction)(void const * key, size_t keySize, void * value, size_t valueSize, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
996typedef void (*WGPUDawnStoreCacheDataFunction)(void const * key, size_t keySize, void const * value, size_t valueSize, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
997typedef void (*WGPUDeviceLostCallback)(WGPUDeviceLostReason reason, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
998typedef void (*WGPUErrorCallback)(WGPUErrorType type, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
999typedef void (*WGPULoggingCallback)(WGPULoggingType type, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
1002typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
1003typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
1004
1005typedef struct WGPUChainedStruct {
1006 struct WGPUChainedStruct const * next;
1009
1010typedef struct WGPUChainedStructOut {
1014
1018 char const * vendorName;
1019 char const * architecture;
1021 char const * name;
1022 char const * driverDescription;
1027
1028// Can be chained in WGPUAdapterProperties
1033
1034typedef struct WGPUBindGroupEntry {
1043
1044typedef struct WGPUBlendComponent {
1049
1056
1057typedef struct WGPUBufferDescriptor {
1059 WGPU_NULLABLE char const * label;
1060 WGPUBufferUsageFlags usage;
1064
1065// Can be chained in WGPUBufferDescriptor
1068 void * pointer;
1070 void * userdata;
1072
1077 void * userdata;
1079
1080typedef struct WGPUColor {
1081 double r;
1082 double g;
1083 double b;
1084 double a;
1086
1089 WGPU_NULLABLE char const * label;
1091
1094 WGPU_NULLABLE char const * label;
1096
1109
1111 WGPUQuerySet querySet;
1115
1116typedef struct WGPUConstantEntry {
1118 char const * key;
1119 double value;
1121
1133
1138 void * userdata;
1140
1145 void * userdata;
1147
1148// Can be chained in WGPUInstanceDescriptor
1152 const char* const * blocklistedFeatures;
1154
1155// Can be chained in WGPUAdapterProperties
1160
1161// Can be chained in WGPUBufferDescriptor
1166
1167// Can be chained in WGPUDeviceDescriptor
1170 char const * isolationKey;
1175
1176// Can be chained in WGPUComputePipelineDescriptor
1181
1182// Can be chained in WGPUCommandEncoderDescriptor
1187
1188// Can be chained in WGPUSupportedLimits
1194
1195// Can be chained in WGPUMultisampleState
1200
1201// Can be chained in WGPURenderPassColorAttachment
1206
1207// Can be chained in WGPUShaderModuleDescriptor
1212
1213// Can be chained in WGPUTextureDescriptor
1216 WGPUTextureUsageFlags internalUsage;
1218
1219// Can be chained in WGPUInstanceDescriptor
1220// Can be chained in WGPURequestAdapterOptions
1221// Can be chained in WGPUDeviceDescriptor
1225 const char* const * enabledToggles;
1227 const char* const * disabledToggles;
1229
1230// Can be chained in WGPUInstanceDescriptor
1237
1238// Can be chained in WGPUDepthStencilState
1243
1244typedef struct WGPUExtent2D {
1248
1249typedef struct WGPUExtent3D {
1254
1255// Can be chained in WGPUBindGroupEntry
1258 WGPUExternalTexture externalTexture;
1260
1261// Can be chained in WGPUBindGroupLayoutEntry
1265
1266typedef struct WGPUFuture {
1269
1270typedef struct WGPUInstanceFeatures {
1275
1276typedef struct WGPULimits {
1310
1311typedef struct WGPUMemoryHeapInfo {
1312 WGPUHeapPropertyFlags properties;
1315
1316typedef struct WGPUMultisampleState {
1322
1323typedef struct WGPUOrigin2D {
1327
1328typedef struct WGPUOrigin3D {
1333
1336 WGPU_NULLABLE char const * label;
1338 WGPUBindGroupLayout const * bindGroupLayouts;
1340
1346
1347// Can be chained in WGPUPrimitiveState
1352
1353typedef struct WGPUPrimitiveState {
1360
1363 WGPU_NULLABLE char const * label;
1367
1368typedef struct WGPUQueueDescriptor {
1370 WGPU_NULLABLE char const * label;
1372
1377 void * userdata;
1379
1382 WGPU_NULLABLE char const * label;
1384
1387 WGPU_NULLABLE char const * label;
1395
1397 WGPUTextureView view;
1407
1408// Can be chained in WGPURenderPassDescriptor
1413
1415 WGPUQuerySet querySet;
1419
1424 void * userdata;
1426
1435
1440 void * userdata;
1442
1447
1450 WGPU_NULLABLE char const * label;
1462
1463// Can be chained in WGPUShaderModuleDescriptor
1469
1470// Can be chained in WGPUShaderModuleDescriptor
1473 char const * code;
1475
1478 WGPU_NULLABLE char const * label;
1480
1481// Can be chained in WGPUSharedFenceDescriptor
1484 void * handle;
1486
1487// Can be chained in WGPUSharedFenceExportInfo
1490 void * handle;
1492
1493// Can be chained in WGPUSharedFenceDescriptor
1498
1499// Can be chained in WGPUSharedFenceExportInfo
1504
1507 WGPU_NULLABLE char const * label;
1509
1514
1515// Can be chained in WGPUSharedFenceDescriptor
1520
1521// Can be chained in WGPUSharedFenceExportInfo
1526
1527// Can be chained in WGPUSharedFenceDescriptor
1532
1533// Can be chained in WGPUSharedFenceExportInfo
1538
1539// Can be chained in WGPUSharedFenceDescriptor
1544
1545// Can be chained in WGPUSharedFenceExportInfo
1550
1551// Can be chained in WGPUSharedTextureMemoryDescriptor
1554 void * handle;
1556
1557// Can be chained in WGPUSharedTextureMemoryDescriptor
1560 void * image;
1562
1563// Can be chained in WGPUSharedTextureMemoryDescriptor
1568
1569// Can be chained in WGPUSharedTextureMemoryDescriptor
1572 void * handle;
1574
1580 WGPUSharedFence const * fences;
1583
1586 WGPU_NULLABLE char const * label;
1588
1590 int fd;
1594
1599 WGPUSharedFence const * fences;
1602
1603// Can be chained in WGPUSharedTextureMemoryDescriptor
1606 void const * vkImageCreateInfo;
1612
1613// Can be chained in WGPUSharedTextureMemoryDescriptor
1618
1619// Can be chained in WGPUSharedTextureMemoryBeginAccessDescriptor
1625
1626// Can be chained in WGPUSharedTextureMemoryEndAccessState
1632
1633// Can be chained in WGPUSharedTextureMemoryDescriptor
1639
1640typedef struct WGPUStencilFaceState {
1646
1653
1656 WGPU_NULLABLE char const * label;
1658
1659// Can be chained in WGPUSurfaceDescriptor
1662 void * window;
1664
1665// Can be chained in WGPUSurfaceDescriptor
1668 char const * selector;
1670
1671// Can be chained in WGPUSurfaceDescriptor
1674 void * layer;
1676
1677// Can be chained in WGPUSurfaceDescriptor
1680 void * display;
1681 void * surface;
1683
1684// Can be chained in WGPUSurfaceDescriptor
1688 void * hwnd;
1690
1691// Can be chained in WGPUSurfaceDescriptor
1696
1697// Can be chained in WGPUSurfaceDescriptor
1702
1703// Can be chained in WGPUSurfaceDescriptor
1706 void * display;
1709
1712 WGPU_NULLABLE char const * label;
1713 WGPUTextureUsageFlags usage;
1719
1726
1727// Can be chained in WGPUTextureDescriptor
1732
1739
1742 WGPU_NULLABLE char const * label;
1751
1752typedef struct WGPUVertexAttribute {
1757
1758// Can be chained in WGPUAdapterProperties
1764
1767 WGPU_NULLABLE char const * label;
1768 WGPUBindGroupLayout layout;
1772
1776 WGPUShaderStageFlags visibility;
1782
1783typedef struct WGPUBlendState {
1787
1788typedef struct WGPUCompilationInfo {
1793
1796 WGPU_NULLABLE char const * label;
1799
1813
1816 WGPU_NULLABLE char const * label;
1817 WGPUTextureView plane0;
1818 WGPU_NULLABLE WGPUTextureView plane1;
1830
1831typedef struct WGPUFutureWaitInfo {
1835
1836typedef struct WGPUImageCopyBuffer {
1839 WGPUBuffer buffer;
1841
1844 WGPUExternalTexture externalTexture;
1848
1849typedef struct WGPUImageCopyTexture {
1851 WGPUTexture texture;
1856
1861
1862// Can be chained in WGPUPipelineLayoutDescriptor
1869
1872 WGPUShaderModule module;
1877
1880 WGPU_NULLABLE WGPUTextureView view;
1887
1891 WGPUTextureView storage;
1896
1897typedef struct WGPURequiredLimits {
1901
1902// Can be chained in WGPUSharedTextureMemoryDescriptor
1911
1914 WGPUTextureUsageFlags usage;
1918
1919// Can be chained in WGPUSharedTextureMemoryDescriptor
1926
1927typedef struct WGPUSupportedLimits {
1931
1934 WGPU_NULLABLE char const * label;
1935 WGPUTextureUsageFlags usage;
1944
1951
1954 WGPU_NULLABLE char const * label;
1958
1959typedef struct WGPUColorTargetState {
1963 WGPUColorWriteMaskFlags writeMask;
1965
1968 WGPU_NULLABLE char const * label;
1969 WGPU_NULLABLE WGPUPipelineLayout layout;
1972
1973typedef struct WGPUDeviceDescriptor {
1975 WGPU_NULLABLE char const * label;
1983
1986 WGPU_NULLABLE char const * label;
1993
1994// Can be chained in WGPURenderPassDescriptor
2001
2002typedef struct WGPUVertexState {
2004 WGPUShaderModule module;
2011
2012typedef struct WGPUFragmentState {
2014 WGPUShaderModule module;
2021
2024 WGPU_NULLABLE char const * label;
2025 WGPU_NULLABLE WGPUPipelineLayout layout;
2032
2033#ifdef __cplusplus
2034extern "C" {
2035#endif
2036
2037#if !defined(WGPU_SKIP_PROCS)
2038
2043typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUDevice device, char const * procName) WGPU_FUNCTION_ATTRIBUTE;
2045
2046// Procs of Adapter
2047typedef WGPUDevice (*WGPUProcAdapterCreateDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2049typedef WGPUInstance (*WGPUProcAdapterGetInstance)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2051typedef void (*WGPUProcAdapterGetProperties)(WGPUAdapter adapter, WGPUAdapterProperties * properties) WGPU_FUNCTION_ATTRIBUTE;
2053typedef void (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2055typedef void (*WGPUProcAdapterReference)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2056typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2057
2058// Procs of BindGroup
2059typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2060typedef void (*WGPUProcBindGroupReference)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
2061typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
2062
2063// Procs of BindGroupLayout
2064typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2065typedef void (*WGPUProcBindGroupLayoutReference)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2066typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2067
2068// Procs of Buffer
2069typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2070typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2072typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2074typedef WGPUBufferUsageFlags (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2075typedef void (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2076typedef WGPUFuture (*WGPUProcBufferMapAsyncF)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
2077typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2078typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2079typedef void (*WGPUProcBufferReference)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2080typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2081
2082// Procs of CommandBuffer
2083typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2084typedef void (*WGPUProcCommandBufferReference)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
2085typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
2086
2087// Procs of CommandEncoder
2088typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2089typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2090typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2091typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2092typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2093typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyBuffer const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2094typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2095typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2096typedef void (*WGPUProcCommandEncoderInjectValidationError)(WGPUCommandEncoder commandEncoder, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2097typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2098typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2099typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2100typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
2101typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2102typedef void (*WGPUProcCommandEncoderWriteBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const * data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2103typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2104typedef void (*WGPUProcCommandEncoderReference)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2105typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2106
2107// Procs of ComputePassEncoder
2108typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
2109typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2110typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2111typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2112typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2113typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2114typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2115typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2116typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2117typedef void (*WGPUProcComputePassEncoderWriteTimestamp)(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2118typedef void (*WGPUProcComputePassEncoderReference)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2119typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2120
2121// Procs of ComputePipeline
2122typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2123typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2124typedef void (*WGPUProcComputePipelineReference)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2125typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2126
2127// Procs of Device
2128typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2129typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2130typedef WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2131typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2132typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2135typedef WGPUBuffer (*WGPUProcDeviceCreateErrorBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2136typedef WGPUExternalTexture (*WGPUProcDeviceCreateErrorExternalTexture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2137typedef WGPUShaderModule (*WGPUProcDeviceCreateErrorShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor, char const * errorMessage) WGPU_FUNCTION_ATTRIBUTE;
2138typedef WGPUTexture (*WGPUProcDeviceCreateErrorTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2139typedef WGPUExternalTexture (*WGPUProcDeviceCreateExternalTexture)(WGPUDevice device, WGPUExternalTextureDescriptor const * externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE;
2140typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2141typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2142typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2143typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2146typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2147typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2148typedef WGPUSwapChain (*WGPUProcDeviceCreateSwapChain)(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2149typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2150typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2152typedef void (*WGPUProcDeviceForceLoss)(WGPUDevice device, WGPUDeviceLostReason type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2153typedef WGPUAdapter (*WGPUProcDeviceGetAdapter)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2155typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2156typedef WGPUTextureUsageFlags (*WGPUProcDeviceGetSupportedSurfaceUsage)(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2158typedef WGPUSharedFence (*WGPUProcDeviceImportSharedFence)(WGPUDevice device, WGPUSharedFenceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2159typedef WGPUSharedTextureMemory (*WGPUProcDeviceImportSharedTextureMemory)(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2160typedef void (*WGPUProcDeviceInjectError)(WGPUDevice device, WGPUErrorType type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2161typedef void (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2163typedef void (*WGPUProcDeviceSetDeviceLostCallback)(WGPUDevice device, WGPUDeviceLostCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2164typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2165typedef void (*WGPUProcDeviceSetLoggingCallback)(WGPUDevice device, WGPULoggingCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2166typedef void (*WGPUProcDeviceSetUncapturedErrorCallback)(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2167typedef void (*WGPUProcDeviceTick)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2169typedef void (*WGPUProcDeviceReference)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2170typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2171
2172// Procs of ExternalTexture
2173typedef void (*WGPUProcExternalTextureDestroy)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2174typedef void (*WGPUProcExternalTextureExpire)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2175typedef void (*WGPUProcExternalTextureRefresh)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2176typedef void (*WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2177typedef void (*WGPUProcExternalTextureReference)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2178typedef void (*WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2179
2180// Procs of Instance
2181typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2184typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2185typedef void (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2187typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
2188typedef void (*WGPUProcInstanceReference)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2189typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2190
2191// Procs of PipelineLayout
2192typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2193typedef void (*WGPUProcPipelineLayoutReference)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2194typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2195
2196// Procs of QuerySet
2197typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2200typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2201typedef void (*WGPUProcQuerySetReference)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2202typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2203
2204// Procs of Queue
2205typedef void (*WGPUProcQueueCopyExternalTextureForBrowser)(WGPUQueue queue, WGPUImageCopyExternalTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize, WGPUCopyTextureForBrowserOptions const * options) WGPU_FUNCTION_ATTRIBUTE;
2206typedef void (*WGPUProcQueueCopyTextureForBrowser)(WGPUQueue queue, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize, WGPUCopyTextureForBrowserOptions const * options) WGPU_FUNCTION_ATTRIBUTE;
2207typedef void (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2209typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2210typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
2211typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2212typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUImageCopyTexture const * destination, void const * data, size_t dataSize, WGPUTextureDataLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
2213typedef void (*WGPUProcQueueReference)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
2214typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
2215
2216// Procs of RenderBundle
2217typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2218typedef void (*WGPUProcRenderBundleReference)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
2219typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
2220
2221// Procs of RenderBundleEncoder
2222typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2223typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2224typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2225typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2226typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2227typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2228typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2229typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2230typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2231typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2232typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2233typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2234typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2235typedef void (*WGPUProcRenderBundleEncoderReference)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2236typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2237
2238// Procs of RenderPassEncoder
2239typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2240typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2241typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2242typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2243typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2244typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2245typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2246typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
2247typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2248typedef void (*WGPUProcRenderPassEncoderPixelLocalStorageBarrier)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2249typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2250typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2251typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2252typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
2253typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2254typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2255typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2256typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
2257typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
2258typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2259typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
2260typedef void (*WGPUProcRenderPassEncoderWriteTimestamp)(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2261typedef void (*WGPUProcRenderPassEncoderReference)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2262typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2263
2264// Procs of RenderPipeline
2265typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2266typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2267typedef void (*WGPUProcRenderPipelineReference)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2268typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2269
2270// Procs of Sampler
2271typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2272typedef void (*WGPUProcSamplerReference)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
2273typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
2274
2275// Procs of ShaderModule
2276typedef void (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2277typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2278typedef void (*WGPUProcShaderModuleReference)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
2279typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
2280
2281// Procs of SharedFence
2282typedef void (*WGPUProcSharedFenceExportInfo)(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo * info) WGPU_FUNCTION_ATTRIBUTE;
2283typedef void (*WGPUProcSharedFenceReference)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
2284typedef void (*WGPUProcSharedFenceRelease)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
2285
2286// Procs of SharedTextureMemory
2287typedef WGPUBool (*WGPUProcSharedTextureMemoryBeginAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2288typedef WGPUTexture (*WGPUProcSharedTextureMemoryCreateTexture)(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2289typedef WGPUBool (*WGPUProcSharedTextureMemoryEndAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2290typedef void (*WGPUProcSharedTextureMemoryGetProperties)(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties * properties) WGPU_FUNCTION_ATTRIBUTE;
2291typedef WGPUBool (*WGPUProcSharedTextureMemoryIsDeviceLost)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2292typedef void (*WGPUProcSharedTextureMemorySetLabel)(WGPUSharedTextureMemory sharedTextureMemory, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2293typedef void (*WGPUProcSharedTextureMemoryReference)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2294typedef void (*WGPUProcSharedTextureMemoryRelease)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2295
2296// Procs of Surface
2297typedef WGPUTextureFormat (*WGPUProcSurfaceGetPreferredFormat)(WGPUSurface surface, WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2298typedef void (*WGPUProcSurfaceReference)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2299typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2300
2301// Procs of SwapChain
2302typedef WGPUTexture (*WGPUProcSwapChainGetCurrentTexture)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2303typedef WGPUTextureView (*WGPUProcSwapChainGetCurrentTextureView)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2304typedef void (*WGPUProcSwapChainPresent)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2305typedef void (*WGPUProcSwapChainReference)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2306typedef void (*WGPUProcSwapChainRelease)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2307
2308// Procs of Texture
2309typedef WGPUTextureView (*WGPUProcTextureCreateErrorView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2310typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2311typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2318typedef WGPUTextureUsageFlags (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2320typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2321typedef void (*WGPUProcTextureReference)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2322typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2323
2324// Procs of TextureView
2325typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2326typedef void (*WGPUProcTextureViewReference)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
2327typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
2328
2329
2330#endif // !defined(WGPU_SKIP_PROCS)
2331
2332#if !defined(WGPU_SKIP_DECLARATIONS)
2333
2340
2341// Methods of Adapter
2352
2353// Methods of BindGroup
2354WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2357
2358// Methods of BindGroupLayout
2359WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2360WGPU_EXPORT void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2361WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2362
2363// Methods of Buffer
2365WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2367WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2369WGPU_EXPORT WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2370WGPU_EXPORT void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2371WGPU_EXPORT WGPUFuture wgpuBufferMapAsyncF(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
2372WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2376
2377// Methods of CommandBuffer
2378WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2381
2382// Methods of CommandEncoder
2383WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2384WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2385WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2386WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2387WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2388WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyBuffer const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2389WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2390WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2391WGPU_EXPORT void wgpuCommandEncoderInjectValidationError(WGPUCommandEncoder commandEncoder, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2392WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2394WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2395WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
2396WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2397WGPU_EXPORT void wgpuCommandEncoderWriteBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const * data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2398WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2400WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2401
2402// Methods of ComputePassEncoder
2403WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
2404WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2405WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2406WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2407WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2408WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2409WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2410WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2411WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2412WGPU_EXPORT void wgpuComputePassEncoderWriteTimestamp(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2413WGPU_EXPORT void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2414WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2415
2416// Methods of ComputePipeline
2417WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2418WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2419WGPU_EXPORT void wgpuComputePipelineReference(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2420WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2421
2422// Methods of Device
2425WGPU_EXPORT WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2432WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateErrorShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor, char const * errorMessage) WGPU_FUNCTION_ATTRIBUTE;
2434WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateExternalTexture(WGPUDevice device, WGPUExternalTextureDescriptor const * externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE;
2443WGPU_EXPORT WGPUSwapChain wgpuDeviceCreateSwapChain(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2447WGPU_EXPORT void wgpuDeviceForceLoss(WGPUDevice device, WGPUDeviceLostReason type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2451WGPU_EXPORT WGPUTextureUsageFlags wgpuDeviceGetSupportedSurfaceUsage(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2455WGPU_EXPORT void wgpuDeviceInjectError(WGPUDevice device, WGPUErrorType type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2456WGPU_EXPORT void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2459WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2466
2467// Methods of ExternalTexture
2468WGPU_EXPORT void wgpuExternalTextureDestroy(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2469WGPU_EXPORT void wgpuExternalTextureExpire(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2470WGPU_EXPORT void wgpuExternalTextureRefresh(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2471WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2472WGPU_EXPORT void wgpuExternalTextureReference(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2473WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2474
2475// Methods of Instance
2476WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2482WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
2485
2486// Methods of PipelineLayout
2487WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2489WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2490
2491// Methods of QuerySet
2495WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2498
2499// Methods of Queue
2504WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2505WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
2506WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2507WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUImageCopyTexture const * destination, void const * data, size_t dataSize, WGPUTextureDataLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
2510
2511// Methods of RenderBundle
2512WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2515
2516// Methods of RenderBundleEncoder
2517WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2518WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2519WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2520WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2521WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2522WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2523WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2524WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2525WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2526WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2527WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2528WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2529WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2530WGPU_EXPORT void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2531WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2532
2533// Methods of RenderPassEncoder
2534WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2535WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2536WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2537WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2538WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2539WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2541WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
2542WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2544WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2545WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2546WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2547WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
2548WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2549WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2550WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2551WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
2552WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
2553WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2554WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
2555WGPU_EXPORT void wgpuRenderPassEncoderWriteTimestamp(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2556WGPU_EXPORT void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2557WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2558
2559// Methods of RenderPipeline
2560WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2561WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2563WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2564
2565// Methods of Sampler
2566WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2569
2570// Methods of ShaderModule
2571WGPU_EXPORT void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2572WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2575
2576// Methods of SharedFence
2580
2581// Methods of SharedTextureMemory
2582WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryBeginAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2583WGPU_EXPORT WGPUTexture wgpuSharedTextureMemoryCreateTexture(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2584WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryEndAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2587WGPU_EXPORT void wgpuSharedTextureMemorySetLabel(WGPUSharedTextureMemory sharedTextureMemory, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2588WGPU_EXPORT void wgpuSharedTextureMemoryReference(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2589WGPU_EXPORT void wgpuSharedTextureMemoryRelease(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2590
2591// Methods of Surface
2595
2596// Methods of SwapChain
2602
2603// Methods of Texture
2613WGPU_EXPORT WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2615WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2618
2619// Methods of TextureView
2620WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2623
2624
2625#endif // !defined(WGPU_SKIP_DECLARATIONS)
2626
2627#ifdef __cplusplus
2628} // extern "C"
2629#endif
2630
2631// clang-format on
2632
2633#endif // WEBGPU_H_
WGPUTexture(* WGPUProcDeviceCreateErrorTexture)(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2138
WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleReference)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2218
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPUIndexFormat
Definition: mini_webgpu.h:521
@ WGPUIndexFormat_Force32
Definition: mini_webgpu.h:525
@ WGPUIndexFormat_Uint16
Definition: mini_webgpu.h:523
@ WGPUIndexFormat_Undefined
Definition: mini_webgpu.h:522
@ WGPUIndexFormat_Uint32
Definition: mini_webgpu.h:524
void(* WGPUProcRenderBundleEncoderReference)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2235
WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPURequestAdapterStatus
Definition: mini_webgpu.h:589
@ WGPURequestAdapterStatus_InstanceDropped
Definition: mini_webgpu.h:591
@ WGPURequestAdapterStatus_Unavailable
Definition: mini_webgpu.h:592
@ WGPURequestAdapterStatus_Success
Definition: mini_webgpu.h:590
@ WGPURequestAdapterStatus_Error
Definition: mini_webgpu.h:593
@ WGPURequestAdapterStatus_Unknown
Definition: mini_webgpu.h:594
@ WGPURequestAdapterStatus_Force32
Definition: mini_webgpu.h:595
void(* WGPUProcQueueReference)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2213
WGPU_EXPORT WGPUDevice wgpuAdapterCreateDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2273
void(* WGPUProc)() WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1000
void(* WGPUProcDeviceSetUncapturedErrorCallback)(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2166
#define WGPU_OBJECT_ATTRIBUTE
Definition: mini_webgpu.h:57
WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUFeatureName
Definition: mini_webgpu.h:452
@ WGPUFeatureName_ImplicitDeviceSynchronization
Definition: mini_webgpu.h:469
@ WGPUFeatureName_TextureCompressionASTC
Definition: mini_webgpu.h:459
@ WGPUFeatureName_SharedFenceDXGISharedHandle
Definition: mini_webgpu.h:502
@ WGPUFeatureName_Force32
Definition: mini_webgpu.h:504
@ WGPUFeatureName_DawnInternalUsages
Definition: mini_webgpu.h:465
@ WGPUFeatureName_SharedTextureMemoryAHardwareBuffer
Definition: mini_webgpu.h:491
@ WGPUFeatureName_Depth32FloatStencil8
Definition: mini_webgpu.h:455
@ WGPUFeatureName_RG11B10UfloatRenderable
Definition: mini_webgpu.h:462
@ WGPUFeatureName_MultiPlanarFormatP010
Definition: mini_webgpu.h:482
@ WGPUFeatureName_MultiPlanarFormatNv12a
Definition: mini_webgpu.h:485
@ WGPUFeatureName_ChromiumExperimentalTimestampQueryInsidePasses
Definition: mini_webgpu.h:468
@ WGPUFeatureName_SharedTextureMemoryDmaBuf
Definition: mini_webgpu.h:492
@ WGPUFeatureName_BGRA8UnormStorage
Definition: mini_webgpu.h:463
@ WGPUFeatureName_DawnMultiPlanarFormats
Definition: mini_webgpu.h:466
@ WGPUFeatureName_SharedTextureMemoryIOSurface
Definition: mini_webgpu.h:497
@ WGPUFeatureName_Norm16TextureFormats
Definition: mini_webgpu.h:480
@ WGPUFeatureName_AdapterPropertiesMemoryHeaps
Definition: mini_webgpu.h:488
@ WGPUFeatureName_DualSourceBlending
Definition: mini_webgpu.h:473
@ WGPUFeatureName_ChromiumExperimentalSubgroups
Definition: mini_webgpu.h:476
@ WGPUFeatureName_PixelLocalStorageCoherent
Definition: mini_webgpu.h:478
@ WGPUFeatureName_D3D11MultithreadProtected
Definition: mini_webgpu.h:474
@ WGPUFeatureName_SharedTextureMemoryZirconHandle
Definition: mini_webgpu.h:494
@ WGPUFeatureName_SharedTextureMemoryEGLImage
Definition: mini_webgpu.h:498
@ WGPUFeatureName_SharedFenceMTLSharedEvent
Definition: mini_webgpu.h:503
@ WGPUFeatureName_BufferMapExtendedUsages
Definition: mini_webgpu.h:487
@ WGPUFeatureName_TransientAttachments
Definition: mini_webgpu.h:471
@ WGPUFeatureName_MultiPlanarRenderTargets
Definition: mini_webgpu.h:484
@ WGPUFeatureName_SurfaceCapabilities
Definition: mini_webgpu.h:470
@ WGPUFeatureName_FramebufferFetch
Definition: mini_webgpu.h:486
@ WGPUFeatureName_SharedTextureMemoryOpaqueFD
Definition: mini_webgpu.h:493
@ WGPUFeatureName_PixelLocalStorageNonCoherent
Definition: mini_webgpu.h:479
@ WGPUFeatureName_AdapterPropertiesD3D
Definition: mini_webgpu.h:489
@ WGPUFeatureName_SharedTextureMemoryDXGISharedHandle
Definition: mini_webgpu.h:495
@ WGPUFeatureName_ShaderF16
Definition: mini_webgpu.h:461
@ WGPUFeatureName_MultiPlanarFormatExtendedUsages
Definition: mini_webgpu.h:481
@ WGPUFeatureName_Float32Filterable
Definition: mini_webgpu.h:464
@ WGPUFeatureName_SharedTextureMemoryD3D11Texture2D
Definition: mini_webgpu.h:496
@ WGPUFeatureName_ANGLETextureSharing
Definition: mini_webgpu.h:475
@ WGPUFeatureName_TimestampQuery
Definition: mini_webgpu.h:456
@ WGPUFeatureName_SharedTextureMemoryVkDedicatedAllocation
Definition: mini_webgpu.h:490
@ WGPUFeatureName_SharedFenceVkSemaphoreSyncFD
Definition: mini_webgpu.h:500
@ WGPUFeatureName_TextureCompressionBC
Definition: mini_webgpu.h:457
@ WGPUFeatureName_SharedFenceVkSemaphoreZirconHandle
Definition: mini_webgpu.h:501
@ WGPUFeatureName_HostMappedPointer
Definition: mini_webgpu.h:483
@ WGPUFeatureName_TextureCompressionETC2
Definition: mini_webgpu.h:458
@ WGPUFeatureName_IndirectFirstInstance
Definition: mini_webgpu.h:460
@ WGPUFeatureName_MSAARenderToSingleSampled
Definition: mini_webgpu.h:472
@ WGPUFeatureName_SharedFenceVkSemaphoreOpaqueFD
Definition: mini_webgpu.h:499
@ WGPUFeatureName_DepthClipControl
Definition: mini_webgpu.h:454
@ WGPUFeatureName_ChromiumExperimentalSubgroupUniformControlFlow
Definition: mini_webgpu.h:477
@ WGPUFeatureName_DawnNative
Definition: mini_webgpu.h:467
@ WGPUFeatureName_Undefined
Definition: mini_webgpu.h:453
WGPUVertexFormat
Definition: mini_webgpu.h:868
@ WGPUVertexFormat_Sint32x4
Definition: mini_webgpu.h:899
@ WGPUVertexFormat_Float32x2
Definition: mini_webgpu.h:889
@ WGPUVertexFormat_Sint32x2
Definition: mini_webgpu.h:897
@ WGPUVertexFormat_Float32
Definition: mini_webgpu.h:888
@ WGPUVertexFormat_Float16x4
Definition: mini_webgpu.h:887
@ WGPUVertexFormat_Uint16x4
Definition: mini_webgpu.h:879
@ WGPUVertexFormat_Snorm8x2
Definition: mini_webgpu.h:876
@ WGPUVertexFormat_Uint8x4
Definition: mini_webgpu.h:871
@ WGPUVertexFormat_Undefined
Definition: mini_webgpu.h:869
@ WGPUVertexFormat_Sint8x2
Definition: mini_webgpu.h:872
@ WGPUVertexFormat_Unorm8x4
Definition: mini_webgpu.h:875
@ WGPUVertexFormat_Force32
Definition: mini_webgpu.h:901
@ WGPUVertexFormat_Uint8x2
Definition: mini_webgpu.h:870
@ WGPUVertexFormat_Float32x4
Definition: mini_webgpu.h:891
@ WGPUVertexFormat_Float16x2
Definition: mini_webgpu.h:886
@ WGPUVertexFormat_Uint32
Definition: mini_webgpu.h:892
@ WGPUVertexFormat_Uint32x4
Definition: mini_webgpu.h:895
@ WGPUVertexFormat_Sint32
Definition: mini_webgpu.h:896
@ WGPUVertexFormat_Uint32x2
Definition: mini_webgpu.h:893
@ WGPUVertexFormat_Uint32x3
Definition: mini_webgpu.h:894
@ WGPUVertexFormat_Sint16x4
Definition: mini_webgpu.h:881
@ WGPUVertexFormat_Unorm10_10_10_2
Definition: mini_webgpu.h:900
@ WGPUVertexFormat_Unorm16x2
Definition: mini_webgpu.h:882
@ WGPUVertexFormat_Unorm8x2
Definition: mini_webgpu.h:874
@ WGPUVertexFormat_Sint32x3
Definition: mini_webgpu.h:898
@ WGPUVertexFormat_Sint16x2
Definition: mini_webgpu.h:880
@ WGPUVertexFormat_Snorm8x4
Definition: mini_webgpu.h:877
@ WGPUVertexFormat_Sint8x4
Definition: mini_webgpu.h:873
@ WGPUVertexFormat_Uint16x2
Definition: mini_webgpu.h:878
@ WGPUVertexFormat_Snorm16x2
Definition: mini_webgpu.h:884
@ WGPUVertexFormat_Unorm16x4
Definition: mini_webgpu.h:883
@ WGPUVertexFormat_Float32x3
Definition: mini_webgpu.h:890
@ WGPUVertexFormat_Snorm16x4
Definition: mini_webgpu.h:885
void(* WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2066
WGPUCommandEncoder(* WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2131
WGPU_EXPORT void wgpuComputePassEncoderWriteTimestamp(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPUSType
Definition: mini_webgpu.h:606
@ WGPUSType_DawnRenderPassColorAttachmentRenderToSingleSampled
Definition: mini_webgpu.h:636
@ WGPUSType_DawnComputePipelineFullSubgroups
Definition: mini_webgpu.h:643
@ WGPUSType_Force32
Definition: mini_webgpu.h:670
@ WGPUSType_DawnWireWGSLControl
Definition: mini_webgpu.h:644
@ WGPUSType_SharedTextureMemoryVkImageLayoutEndState
Definition: mini_webgpu.h:659
@ WGPUSType_DawnBufferDescriptorErrorInfoFromWireClient
Definition: mini_webgpu.h:629
@ WGPUSType_SurfaceDescriptorFromMetalLayer
Definition: mini_webgpu.h:608
@ WGPUSType_SharedTextureMemoryVkImageDescriptor
Definition: mini_webgpu.h:646
@ WGPUSType_SharedTextureMemoryOpaqueFDDescriptor
Definition: mini_webgpu.h:650
@ WGPUSType_RequestAdapterOptionsGetGLProc
Definition: mini_webgpu.h:633
@ WGPUSType_SharedFenceVkSemaphoreSyncFDDescriptor
Definition: mini_webgpu.h:662
@ WGPUSType_SurfaceDescriptorFromWindowsHWND
Definition: mini_webgpu.h:609
@ WGPUSType_ShaderModuleSPIRVDescriptor
Definition: mini_webgpu.h:612
@ WGPUSType_PipelineLayoutPixelLocalStorage
Definition: mini_webgpu.h:638
@ WGPUSType_RenderPassDescriptorMaxDrawCount
Definition: mini_webgpu.h:621
@ WGPUSType_SharedFenceMTLSharedEventDescriptor
Definition: mini_webgpu.h:668
@ WGPUSType_SharedFenceDXGISharedHandleDescriptor
Definition: mini_webgpu.h:666
@ WGPUSType_SurfaceDescriptorFromWindowsCoreWindow
Definition: mini_webgpu.h:617
@ WGPUSType_SharedTextureMemoryDXGISharedHandleDescriptor
Definition: mini_webgpu.h:652
@ WGPUSType_SurfaceDescriptorFromWaylandSurface
Definition: mini_webgpu.h:615
@ WGPUSType_SharedFenceMTLSharedEventExportInfo
Definition: mini_webgpu.h:669
@ WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector
Definition: mini_webgpu.h:611
@ WGPUSType_RenderPassPixelLocalStorage
Definition: mini_webgpu.h:637
@ WGPUSType_AdapterPropertiesMemoryHeaps
Definition: mini_webgpu.h:641
@ WGPUSType_SharedFenceVkSemaphoreZirconHandleDescriptor
Definition: mini_webgpu.h:664
@ WGPUSType_DawnInstanceDescriptor
Definition: mini_webgpu.h:626
@ WGPUSType_ExternalTextureBindingEntry
Definition: mini_webgpu.h:618
@ WGPUSType_SharedFenceDXGISharedHandleExportInfo
Definition: mini_webgpu.h:667
@ WGPUSType_SurfaceDescriptorFromAndroidNativeWindow
Definition: mini_webgpu.h:616
@ WGPUSType_SharedFenceVkSemaphoreOpaqueFDDescriptor
Definition: mini_webgpu.h:660
@ WGPUSType_PrimitiveDepthClipControl
Definition: mini_webgpu.h:614
@ WGPUSType_DawnShaderModuleSPIRVOptionsDescriptor
Definition: mini_webgpu.h:631
@ WGPUSType_SharedFenceVkSemaphoreSyncFDExportInfo
Definition: mini_webgpu.h:663
@ WGPUSType_SurfaceDescriptorFromWindowsSwapChainPanel
Definition: mini_webgpu.h:620
@ WGPUSType_SharedTextureMemoryVkDedicatedAllocationDescriptor
Definition: mini_webgpu.h:647
@ WGPUSType_DepthStencilStateDepthWriteDefinedDawn
Definition: mini_webgpu.h:622
@ WGPUSType_SharedTextureMemoryIOSurfaceDescriptor
Definition: mini_webgpu.h:654
@ WGPUSType_SharedFenceVkSemaphoreZirconHandleExportInfo
Definition: mini_webgpu.h:665
@ WGPUSType_SurfaceDescriptorFromXlibWindow
Definition: mini_webgpu.h:610
@ WGPUSType_DawnExperimentalSubgroupLimits
Definition: mini_webgpu.h:640
@ WGPUSType_DawnEncoderInternalUsageDescriptor
Definition: mini_webgpu.h:625
@ WGPUSType_SharedTextureMemoryZirconHandleDescriptor
Definition: mini_webgpu.h:651
@ WGPUSType_BufferHostMappedPointer
Definition: mini_webgpu.h:639
@ WGPUSType_SharedFenceVkSemaphoreOpaqueFDExportInfo
Definition: mini_webgpu.h:661
@ WGPUSType_DawnCacheDeviceDescriptor
Definition: mini_webgpu.h:627
@ WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor
Definition: mini_webgpu.h:648
@ WGPUSType_SharedTextureMemoryD3D11Texture2DDescriptor
Definition: mini_webgpu.h:653
@ WGPUSType_SharedTextureMemoryInitializedBeginState
Definition: mini_webgpu.h:656
@ WGPUSType_TextureBindingViewDimensionDescriptor
Definition: mini_webgpu.h:623
@ WGPUSType_SharedTextureMemoryInitializedEndState
Definition: mini_webgpu.h:657
@ WGPUSType_DawnMultisampleStateRenderToSingleSampled
Definition: mini_webgpu.h:635
@ WGPUSType_RequestAdapterOptionsD3D11Device
Definition: mini_webgpu.h:634
@ WGPUSType_DawnTogglesDescriptor
Definition: mini_webgpu.h:630
@ WGPUSType_RequestAdapterOptionsLUID
Definition: mini_webgpu.h:632
@ WGPUSType_DawnAdapterPropertiesPowerPreference
Definition: mini_webgpu.h:628
@ WGPUSType_DawnWGSLBlocklist
Definition: mini_webgpu.h:645
@ WGPUSType_ShaderModuleWGSLDescriptor
Definition: mini_webgpu.h:613
@ WGPUSType_SharedTextureMemoryVkImageLayoutBeginState
Definition: mini_webgpu.h:658
@ WGPUSType_Invalid
Definition: mini_webgpu.h:607
@ WGPUSType_SharedTextureMemoryDmaBufDescriptor
Definition: mini_webgpu.h:649
@ WGPUSType_SharedTextureMemoryEGLImageDescriptor
Definition: mini_webgpu.h:655
@ WGPUSType_ExternalTextureBindingLayout
Definition: mini_webgpu.h:619
@ WGPUSType_DawnTextureInternalUsageDescriptor
Definition: mini_webgpu.h:624
@ WGPUSType_AdapterPropertiesD3D
Definition: mini_webgpu.h:642
void(* WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2098
WGPU_EXPORT void wgpuAdapterReference(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:66
WGPU_EXPORT void wgpuTextureReference(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferBindingType
Definition: mini_webgpu.h:337
@ WGPUBufferBindingType_Storage
Definition: mini_webgpu.h:340
@ WGPUBufferBindingType_Undefined
Definition: mini_webgpu.h:338
@ WGPUBufferBindingType_Force32
Definition: mini_webgpu.h:342
@ WGPUBufferBindingType_ReadOnlyStorage
Definition: mini_webgpu.h:341
@ WGPUBufferBindingType_Uniform
Definition: mini_webgpu.h:339
void(* WGPUProcSharedTextureMemorySetLabel)(WGPUSharedTextureMemory sharedTextureMemory, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2292
WGPU_EXPORT void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2211
WGPU_EXPORT void wgpuRenderPassEncoderWriteTimestamp(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateErrorExternalTexture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
uint64_t(* WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2073
uint32_t WGPUBool
Definition: mini_webgpu.h:87
WGPU_EXPORT WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2240
WGPUAlphaMode
Definition: mini_webgpu.h:285
@ WGPUAlphaMode_Unpremultiplied
Definition: mini_webgpu.h:288
@ WGPUAlphaMode_Opaque
Definition: mini_webgpu.h:286
@ WGPUAlphaMode_Premultiplied
Definition: mini_webgpu.h:287
@ WGPUAlphaMode_Force32
Definition: mini_webgpu.h:289
void(* WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2311
size_t(* WGPUProcAdapterEnumerateFeatures)(WGPUAdapter adapter, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2048
WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUImageCopyTexture const *destination, void const *data, size_t dataSize, WGPUTextureDataLayout const *dataLayout, WGPUExtent3D const *writeSize) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2268
WGPUAdapter(* WGPUProcDeviceGetAdapter)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2153
WGPUQueue(* WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2155
void(* WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2257
WGPU_EXPORT void wgpuBufferReference(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedTextureMemoryEndAccessStateFreeMembers(WGPUSharedTextureMemoryEndAccessState value) WGPU_FUNCTION_ATTRIBUTE
WGPUFuture(* WGPUProcDeviceCreateRenderPipelineAsyncF)(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2145
WGPU_EXPORT void wgpuDeviceSetUncapturedErrorCallback(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferMapState(* WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2071
void(* WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2059
WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedTextureMemoryReference)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2293
void(* WGPUProcCommandEncoderInjectValidationError)(WGPUCommandEncoder commandEncoder, char const *message) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2096
WGPU_EXPORT void wgpuExternalTextureDestroy(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandBufferReference)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2084
WGPUMapMode
Definition: mini_webgpu.h:960
@ WGPUMapMode_None
Definition: mini_webgpu.h:961
@ WGPUMapMode_Read
Definition: mini_webgpu.h:962
@ WGPUMapMode_Write
Definition: mini_webgpu.h:963
@ WGPUMapMode_Force32
Definition: mini_webgpu.h:964
void(* WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2114
void(* WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2224
void(* WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2189
WGPUBufferUsageFlags(* WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2074
void(* WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2245
void(* WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2170
void(* WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2210
WGPUDeviceLostReason
Definition: mini_webgpu.h:421
@ WGPUDeviceLostReason_Destroyed
Definition: mini_webgpu.h:423
@ WGPUDeviceLostReason_Undefined
Definition: mini_webgpu.h:422
@ WGPUDeviceLostReason_Force32
Definition: mini_webgpu.h:424
WGPUWGSLFeatureName
Definition: mini_webgpu.h:255
@ WGPUWGSLFeatureName_ChromiumTestingExperimental
Definition: mini_webgpu.h:263
@ WGPUWGSLFeatureName_Undefined
Definition: mini_webgpu.h:256
@ WGPUWGSLFeatureName_UnrestrictedPointerParameters
Definition: mini_webgpu.h:259
@ WGPUWGSLFeatureName_ChromiumTestingShipped
Definition: mini_webgpu.h:265
@ WGPUWGSLFeatureName_ChromiumTestingShippedWithKillswitch
Definition: mini_webgpu.h:264
@ WGPUWGSLFeatureName_ChromiumTestingUnimplemented
Definition: mini_webgpu.h:261
@ WGPUWGSLFeatureName_ReadonlyAndReadwriteStorageTextures
Definition: mini_webgpu.h:257
@ WGPUWGSLFeatureName_Packed4x8IntegerDotProduct
Definition: mini_webgpu.h:258
@ WGPUWGSLFeatureName_PointerCompositeAccess
Definition: mini_webgpu.h:260
@ WGPUWGSLFeatureName_Force32
Definition: mini_webgpu.h:266
@ WGPUWGSLFeatureName_ChromiumTestingUnsafeExperimental
Definition: mini_webgpu.h:262
void(* WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2116
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferUsage
Definition: mini_webgpu.h:922
@ WGPUBufferUsage_Force32
Definition: mini_webgpu.h:934
@ WGPUBufferUsage_Storage
Definition: mini_webgpu.h:931
@ WGPUBufferUsage_Uniform
Definition: mini_webgpu.h:930
@ WGPUBufferUsage_MapWrite
Definition: mini_webgpu.h:925
@ WGPUBufferUsage_Vertex
Definition: mini_webgpu.h:929
@ WGPUBufferUsage_MapRead
Definition: mini_webgpu.h:924
@ WGPUBufferUsage_QueryResolve
Definition: mini_webgpu.h:933
@ WGPUBufferUsage_None
Definition: mini_webgpu.h:923
@ WGPUBufferUsage_CopyDst
Definition: mini_webgpu.h:927
@ WGPUBufferUsage_CopySrc
Definition: mini_webgpu.h:926
@ WGPUBufferUsage_Index
Definition: mini_webgpu.h:928
@ WGPUBufferUsage_Indirect
Definition: mini_webgpu.h:932
WGPU_EXPORT void wgpuSharedTextureMemoryReference(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_EXPORT
Definition: mini_webgpu.h:53
#define WGPU_ENUM_ATTRIBUTE
Definition: mini_webgpu.h:60
WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2243
uint32_t(* WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2315
WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2161
WGPUCompareFunction
Definition: mini_webgpu.h:373
@ WGPUCompareFunction_Force32
Definition: mini_webgpu.h:383
@ WGPUCompareFunction_Always
Definition: mini_webgpu.h:382
@ WGPUCompareFunction_Never
Definition: mini_webgpu.h:375
@ WGPUCompareFunction_NotEqual
Definition: mini_webgpu.h:380
@ WGPUCompareFunction_Less
Definition: mini_webgpu.h:376
@ WGPUCompareFunction_Undefined
Definition: mini_webgpu.h:374
@ WGPUCompareFunction_GreaterEqual
Definition: mini_webgpu.h:381
@ WGPUCompareFunction_Equal
Definition: mini_webgpu.h:377
@ WGPUCompareFunction_LessEqual
Definition: mini_webgpu.h:378
@ WGPUCompareFunction_Greater
Definition: mini_webgpu.h:379
WGPU_EXPORT void wgpuSurfaceReference(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUErrorCallback)(WGPUErrorType type, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:998
WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPUCullMode
Definition: mini_webgpu.h:413
@ WGPUCullMode_Force32
Definition: mini_webgpu.h:418
@ WGPUCullMode_Undefined
Definition: mini_webgpu.h:414
@ WGPUCullMode_Back
Definition: mini_webgpu.h:417
@ WGPUCullMode_Front
Definition: mini_webgpu.h:416
@ WGPUCullMode_None
Definition: mini_webgpu.h:415
WGPU_EXPORT void wgpuExternalTextureExpire(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterGetProperties)(WGPUAdapter adapter, WGPUAdapterProperties *properties) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2051
void(* WGPUProcSharedTextureMemoryRelease)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2294
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:992
WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryIsDeviceLost(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2109
WGPU_EXPORT WGPUTextureUsageFlags wgpuDeviceGetSupportedSurfaceUsage(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcInstanceReference)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2188
WGPU_EXPORT WGPUBuffer wgpuDeviceCreateErrorBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2236
WGPUShaderModule(* WGPUProcDeviceCreateErrorShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor, char const *errorMessage) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2137
WGPUFuture(* WGPUProcAdapterRequestDeviceF)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *options, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2054
WGPU_EXPORT WGPUBool wgpuDeviceGetLimits(WGPUDevice device, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureDimension
Definition: mini_webgpu.h:730
@ WGPUTextureDimension_Undefined
Definition: mini_webgpu.h:731
@ WGPUTextureDimension_2D
Definition: mini_webgpu.h:733
@ WGPUTextureDimension_Force32
Definition: mini_webgpu.h:735
@ WGPUTextureDimension_3D
Definition: mini_webgpu.h:734
@ WGPUTextureDimension_1D
Definition: mini_webgpu.h:732
WGPU_EXPORT void wgpuDeviceTick(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSwapChainRelease)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2306
WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyBuffer const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2110
void(* WGPUProcDeviceForceLoss)(WGPUDevice device, WGPUDeviceLostReason type, char const *message) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2152
WGPUTextureUsage
Definition: mini_webgpu.h:977
@ WGPUTextureUsage_RenderAttachment
Definition: mini_webgpu.h:983
@ WGPUTextureUsage_Force32
Definition: mini_webgpu.h:986
@ WGPUTextureUsage_TransientAttachment
Definition: mini_webgpu.h:984
@ WGPUTextureUsage_TextureBinding
Definition: mini_webgpu.h:981
@ WGPUTextureUsage_CopySrc
Definition: mini_webgpu.h:979
@ WGPUTextureUsage_CopyDst
Definition: mini_webgpu.h:980
@ WGPUTextureUsage_StorageAttachment
Definition: mini_webgpu.h:985
@ WGPUTextureUsage_None
Definition: mini_webgpu.h:978
@ WGPUTextureUsage_StorageBinding
Definition: mini_webgpu.h:982
WGPUTextureUsageFlags(* WGPUProcDeviceGetSupportedSurfaceUsage)(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2156
void(* WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2123
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1003
WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size) WGPU_FUNCTION_ATTRIBUTE
WGPURequestDeviceStatus
Definition: mini_webgpu.h:598
@ WGPURequestDeviceStatus_Success
Definition: mini_webgpu.h:599
@ WGPURequestDeviceStatus_InstanceDropped
Definition: mini_webgpu.h:600
@ WGPURequestDeviceStatus_Unknown
Definition: mini_webgpu.h:602
@ WGPURequestDeviceStatus_Error
Definition: mini_webgpu.h:601
@ WGPURequestDeviceStatus_Force32
Definition: mini_webgpu.h:603
void(* WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2230
WGPU_EXPORT WGPUFuture wgpuBufferMapAsyncF(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2162
WGPU_EXPORT void wgpuCommandBufferReference(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2299
WGPUCompilationMessageType
Definition: mini_webgpu.h:395
@ WGPUCompilationMessageType_Force32
Definition: mini_webgpu.h:399
@ WGPUCompilationMessageType_Info
Definition: mini_webgpu.h:398
@ WGPUCompilationMessageType_Warning
Definition: mini_webgpu.h:397
@ WGPUCompilationMessageType_Error
Definition: mini_webgpu.h:396
WGPUCreatePipelineAsyncStatus
Definition: mini_webgpu.h:402
@ WGPUCreatePipelineAsyncStatus_Force32
Definition: mini_webgpu.h:410
@ WGPUCreatePipelineAsyncStatus_ValidationError
Definition: mini_webgpu.h:405
@ WGPUCreatePipelineAsyncStatus_InstanceDropped
Definition: mini_webgpu.h:404
@ WGPUCreatePipelineAsyncStatus_Success
Definition: mini_webgpu.h:403
@ WGPUCreatePipelineAsyncStatus_Unknown
Definition: mini_webgpu.h:409
@ WGPUCreatePipelineAsyncStatus_DeviceDestroyed
Definition: mini_webgpu.h:408
@ WGPUCreatePipelineAsyncStatus_DeviceLost
Definition: mini_webgpu.h:407
@ WGPUCreatePipelineAsyncStatus_InternalError
Definition: mini_webgpu.h:406
WGPU_EXPORT void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2050
WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedFenceRelease)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2284
WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUDawnStoreCacheDataFunction)(void const *key, size_t keySize, void const *value, size_t valueSize, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:996
WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureFormat wgpuSurfaceGetPreferredFormat(WGPUSurface surface, WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureView(* WGPUProcTextureCreateErrorView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2309
void(* WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2108
void(* WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2144
WGPUShaderModule(* WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2147
WGPU_EXPORT void wgpuSamplerReference(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2178
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuInstanceReference(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcPipelineLayoutReference)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2193
WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2105
WGPU_EXPORT void wgpuRenderPipelineReference(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureUsageFlags(* WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2318
WGPUFuture(* WGPUProcInstanceRequestAdapterF)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2186
void(* WGPUProcRenderPassEncoderWriteTimestamp)(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2260
WGPU_EXPORT WGPUSharedFence wgpuDeviceImportSharedFence(WGPUDevice device, WGPUSharedFenceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2150
void(* WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2115
WGPUTextureViewDimension
Definition: mini_webgpu.h:857
@ WGPUTextureViewDimension_Cube
Definition: mini_webgpu.h:862
@ WGPUTextureViewDimension_2DArray
Definition: mini_webgpu.h:861
@ WGPUTextureViewDimension_2D
Definition: mini_webgpu.h:860
@ WGPUTextureViewDimension_3D
Definition: mini_webgpu.h:864
@ WGPUTextureViewDimension_1D
Definition: mini_webgpu.h:859
@ WGPUTextureViewDimension_CubeArray
Definition: mini_webgpu.h:863
@ WGPUTextureViewDimension_Undefined
Definition: mini_webgpu.h:858
@ WGPUTextureViewDimension_Force32
Definition: mini_webgpu.h:865
WGPU_EXPORT WGPUBool wgpuGetInstanceFeatures(WGPUInstanceFeatures *features) WGPU_FUNCTION_ATTRIBUTE
size_t(* WGPUDawnLoadCacheDataFunction)(void const *key, size_t keySize, void *value, size_t valueSize, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:995
WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2101
WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcExternalTextureReference)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2177
WGPU_EXPORT void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2197
WGPU_EXPORT void wgpuComputePipelineReference(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2085
WGPUBindGroupLayout(* WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2129
void(* WGPUDeviceLostCallback)(WGPUDeviceLostReason reason, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:997
WGPUPrimitiveTopology
Definition: mini_webgpu.h:564
@ WGPUPrimitiveTopology_LineList
Definition: mini_webgpu.h:567
@ WGPUPrimitiveTopology_LineStrip
Definition: mini_webgpu.h:568
@ WGPUPrimitiveTopology_Undefined
Definition: mini_webgpu.h:565
@ WGPUPrimitiveTopology_TriangleList
Definition: mini_webgpu.h:569
@ WGPUPrimitiveTopology_PointList
Definition: mini_webgpu.h:566
@ WGPUPrimitiveTopology_TriangleStrip
Definition: mini_webgpu.h:570
@ WGPUPrimitiveTopology_Force32
Definition: mini_webgpu.h:571
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2184
WGPU_EXPORT void wgpuSwapChainPresent(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderWriteTimestamp)(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2117
void(* WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2119
void(* WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2262
WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderWriteBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const *data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2102
void(* WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2277
WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSwapChainRelease(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2312
WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureFormat
Definition: mini_webgpu.h:738
@ WGPUTextureFormat_ASTC12x10Unorm
Definition: mini_webgpu.h:831
@ WGPUTextureFormat_BC5RGSnorm
Definition: mini_webgpu.h:792
@ WGPUTextureFormat_BC7RGBAUnorm
Definition: mini_webgpu.h:795
@ WGPUTextureFormat_RGBA8Unorm
Definition: mini_webgpu.h:757
@ WGPUTextureFormat_RG8Unorm
Definition: mini_webgpu.h:747
@ WGPUTextureFormat_ETC2RGB8Unorm
Definition: mini_webgpu.h:797
@ WGPUTextureFormat_ASTC4x4Unorm
Definition: mini_webgpu.h:807
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
Definition: mini_webgpu.h:800
@ WGPUTextureFormat_EACR11Snorm
Definition: mini_webgpu.h:804
@ WGPUTextureFormat_BC4RSnorm
Definition: mini_webgpu.h:790
@ WGPUTextureFormat_RGBA8Snorm
Definition: mini_webgpu.h:759
@ WGPUTextureFormat_ASTC10x6Unorm
Definition: mini_webgpu.h:825
@ WGPUTextureFormat_BGRA8UnormSrgb
Definition: mini_webgpu.h:763
@ WGPUTextureFormat_ASTC6x6Unorm
Definition: mini_webgpu.h:815
@ WGPUTextureFormat_ETC2RGB8A1Unorm
Definition: mini_webgpu.h:799
@ WGPUTextureFormat_ASTC10x8Unorm
Definition: mini_webgpu.h:827
@ WGPUTextureFormat_RG16Unorm
Definition: mini_webgpu.h:836
@ WGPUTextureFormat_ASTC8x8Unorm
Definition: mini_webgpu.h:821
@ WGPUTextureFormat_RGBA32Float
Definition: mini_webgpu.h:774
@ WGPUTextureFormat_BC6HRGBUfloat
Definition: mini_webgpu.h:793
@ WGPUTextureFormat_RG32Sint
Definition: mini_webgpu.h:770
@ WGPUTextureFormat_RGBA16Float
Definition: mini_webgpu.h:773
@ WGPUTextureFormat_ASTC10x10Unorm
Definition: mini_webgpu.h:829
@ WGPUTextureFormat_Depth32FloatStencil8
Definition: mini_webgpu.h:782
@ WGPUTextureFormat_RG8Snorm
Definition: mini_webgpu.h:748
@ WGPUTextureFormat_ASTC12x10UnormSrgb
Definition: mini_webgpu.h:832
@ WGPUTextureFormat_Depth24Plus
Definition: mini_webgpu.h:779
@ WGPUTextureFormat_RG16Sint
Definition: mini_webgpu.h:755
@ WGPUTextureFormat_EACRG11Unorm
Definition: mini_webgpu.h:805
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
Definition: mini_webgpu.h:798
@ WGPUTextureFormat_BC6HRGBFloat
Definition: mini_webgpu.h:794
@ WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm
Definition: mini_webgpu.h:842
@ WGPUTextureFormat_R32Float
Definition: mini_webgpu.h:751
@ WGPUTextureFormat_BC7RGBAUnormSrgb
Definition: mini_webgpu.h:796
@ WGPUTextureFormat_R16Sint
Definition: mini_webgpu.h:745
@ WGPUTextureFormat_R8Sint
Definition: mini_webgpu.h:743
@ WGPUTextureFormat_RGBA8UnormSrgb
Definition: mini_webgpu.h:758
@ WGPUTextureFormat_BC3RGBAUnormSrgb
Definition: mini_webgpu.h:788
@ WGPUTextureFormat_RGBA16Unorm
Definition: mini_webgpu.h:837
@ WGPUTextureFormat_RGBA8Uint
Definition: mini_webgpu.h:760
@ WGPUTextureFormat_EACRG11Snorm
Definition: mini_webgpu.h:806
@ WGPUTextureFormat_RGBA16Uint
Definition: mini_webgpu.h:771
@ WGPUTextureFormat_ASTC10x10UnormSrgb
Definition: mini_webgpu.h:830
@ WGPUTextureFormat_RGB10A2Unorm
Definition: mini_webgpu.h:765
@ WGPUTextureFormat_ASTC10x5UnormSrgb
Definition: mini_webgpu.h:824
@ WGPUTextureFormat_ASTC5x5Unorm
Definition: mini_webgpu.h:811
@ WGPUTextureFormat_R32Uint
Definition: mini_webgpu.h:752
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
Definition: mini_webgpu.h:802
@ WGPUTextureFormat_R8BG8A8Triplanar420Unorm
Definition: mini_webgpu.h:843
@ WGPUTextureFormat_RG16Snorm
Definition: mini_webgpu.h:839
@ WGPUTextureFormat_ASTC5x4Unorm
Definition: mini_webgpu.h:809
@ WGPUTextureFormat_BC3RGBAUnorm
Definition: mini_webgpu.h:787
@ WGPUTextureFormat_R16Unorm
Definition: mini_webgpu.h:835
@ WGPUTextureFormat_R8BG8Biplanar420Unorm
Definition: mini_webgpu.h:841
@ WGPUTextureFormat_BGRA8Unorm
Definition: mini_webgpu.h:762
@ WGPUTextureFormat_BC4RUnorm
Definition: mini_webgpu.h:789
@ WGPUTextureFormat_BC5RGUnorm
Definition: mini_webgpu.h:791
@ WGPUTextureFormat_Force32
Definition: mini_webgpu.h:844
@ WGPUTextureFormat_BC1RGBAUnorm
Definition: mini_webgpu.h:783
@ WGPUTextureFormat_ASTC5x5UnormSrgb
Definition: mini_webgpu.h:812
@ WGPUTextureFormat_ASTC8x6UnormSrgb
Definition: mini_webgpu.h:820
@ WGPUTextureFormat_R32Sint
Definition: mini_webgpu.h:753
@ WGPUTextureFormat_BC2RGBAUnormSrgb
Definition: mini_webgpu.h:786
@ WGPUTextureFormat_RGBA32Uint
Definition: mini_webgpu.h:775
@ WGPUTextureFormat_Stencil8
Definition: mini_webgpu.h:777
@ WGPUTextureFormat_EACR11Unorm
Definition: mini_webgpu.h:803
@ WGPUTextureFormat_ASTC6x6UnormSrgb
Definition: mini_webgpu.h:816
@ WGPUTextureFormat_RG16Uint
Definition: mini_webgpu.h:754
@ WGPUTextureFormat_ASTC10x8UnormSrgb
Definition: mini_webgpu.h:828
@ WGPUTextureFormat_RGB9E5Ufloat
Definition: mini_webgpu.h:767
@ WGPUTextureFormat_Depth16Unorm
Definition: mini_webgpu.h:778
@ WGPUTextureFormat_RG8Sint
Definition: mini_webgpu.h:750
@ WGPUTextureFormat_ASTC8x8UnormSrgb
Definition: mini_webgpu.h:822
@ WGPUTextureFormat_R16Uint
Definition: mini_webgpu.h:744
@ WGPUTextureFormat_Undefined
Definition: mini_webgpu.h:739
@ WGPUTextureFormat_ASTC10x6UnormSrgb
Definition: mini_webgpu.h:826
@ WGPUTextureFormat_R16Float
Definition: mini_webgpu.h:746
@ WGPUTextureFormat_ASTC5x4UnormSrgb
Definition: mini_webgpu.h:810
@ WGPUTextureFormat_RG32Float
Definition: mini_webgpu.h:768
@ WGPUTextureFormat_RGBA16Snorm
Definition: mini_webgpu.h:840
@ WGPUTextureFormat_RG11B10Ufloat
Definition: mini_webgpu.h:766
@ WGPUTextureFormat_ASTC12x12UnormSrgb
Definition: mini_webgpu.h:834
@ WGPUTextureFormat_RGBA32Sint
Definition: mini_webgpu.h:776
@ WGPUTextureFormat_BC1RGBAUnormSrgb
Definition: mini_webgpu.h:784
@ WGPUTextureFormat_RG16Float
Definition: mini_webgpu.h:756
@ WGPUTextureFormat_ASTC6x5Unorm
Definition: mini_webgpu.h:813
@ WGPUTextureFormat_Depth24PlusStencil8
Definition: mini_webgpu.h:780
@ WGPUTextureFormat_ASTC10x5Unorm
Definition: mini_webgpu.h:823
@ WGPUTextureFormat_RGBA16Sint
Definition: mini_webgpu.h:772
@ WGPUTextureFormat_R8Unorm
Definition: mini_webgpu.h:740
@ WGPUTextureFormat_Depth32Float
Definition: mini_webgpu.h:781
@ WGPUTextureFormat_BC2RGBAUnorm
Definition: mini_webgpu.h:785
@ WGPUTextureFormat_R16Snorm
Definition: mini_webgpu.h:838
@ WGPUTextureFormat_ASTC8x6Unorm
Definition: mini_webgpu.h:819
@ WGPUTextureFormat_RG8Uint
Definition: mini_webgpu.h:749
@ WGPUTextureFormat_R8Uint
Definition: mini_webgpu.h:742
@ WGPUTextureFormat_ASTC8x5Unorm
Definition: mini_webgpu.h:817
@ WGPUTextureFormat_ASTC12x12Unorm
Definition: mini_webgpu.h:833
@ WGPUTextureFormat_RGB10A2Uint
Definition: mini_webgpu.h:764
@ WGPUTextureFormat_ASTC4x4UnormSrgb
Definition: mini_webgpu.h:808
@ WGPUTextureFormat_ETC2RGBA8Unorm
Definition: mini_webgpu.h:801
@ WGPUTextureFormat_RG32Uint
Definition: mini_webgpu.h:769
@ WGPUTextureFormat_ASTC8x5UnormSrgb
Definition: mini_webgpu.h:818
@ WGPUTextureFormat_RGBA8Sint
Definition: mini_webgpu.h:761
@ WGPUTextureFormat_R8Snorm
Definition: mini_webgpu.h:741
@ WGPUTextureFormat_ASTC6x5UnormSrgb
Definition: mini_webgpu.h:814
void(* WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2225
void(* WGPUProcSamplerReference)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2272
WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceValidateTextureDescriptor)(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2168
void(* WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2053
void(* WGPUProcAdapterPropertiesFreeMembers)(WGPUAdapterProperties value) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2039
WGPU_EXPORT WGPUFuture wgpuDeviceCreateRenderPipelineAsyncF(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2202
WGPU_EXPORT void wgpuQueueCopyTextureForBrowser(WGPUQueue queue, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2317
void(* WGPUProcSharedFenceReference)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2283
WGPU_EXPORT void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
size_t(* WGPUProcDeviceEnumerateFeatures)(WGPUDevice device, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2151
void(* WGPUProcDeviceReference)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2169
void(* WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2222
WGPU_EXPORT WGPUTexture wgpuDeviceCreateErrorTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureView wgpuTextureCreateErrorView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2125
void(* WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2223
WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUStencilOperation
Definition: mini_webgpu.h:691
@ WGPUStencilOperation_DecrementClamp
Definition: mini_webgpu.h:698
@ WGPUStencilOperation_Undefined
Definition: mini_webgpu.h:692
@ WGPUStencilOperation_Replace
Definition: mini_webgpu.h:695
@ WGPUStencilOperation_Keep
Definition: mini_webgpu.h:693
@ WGPUStencilOperation_DecrementWrap
Definition: mini_webgpu.h:700
@ WGPUStencilOperation_IncrementWrap
Definition: mini_webgpu.h:699
@ WGPUStencilOperation_IncrementClamp
Definition: mini_webgpu.h:697
@ WGPUStencilOperation_Invert
Definition: mini_webgpu.h:696
@ WGPUStencilOperation_Force32
Definition: mini_webgpu.h:701
@ WGPUStencilOperation_Zero
Definition: mini_webgpu.h:694
WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2233
WGPUSampler(* WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2146
WGPU_EXPORT size_t wgpuInstanceEnumerateWGSLLanguageFeatures(WGPUInstance instance, WGPUWGSLFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2083
WGPUAddressMode
Definition: mini_webgpu.h:277
@ WGPUAddressMode_Repeat
Definition: mini_webgpu.h:280
@ WGPUAddressMode_MirrorRepeat
Definition: mini_webgpu.h:281
@ WGPUAddressMode_Undefined
Definition: mini_webgpu.h:278
@ WGPUAddressMode_ClampToEdge
Definition: mini_webgpu.h:279
@ WGPUAddressMode_Force32
Definition: mini_webgpu.h:282
WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureView(* WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2310
WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceValidateTextureDescriptor(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateErrorShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor, char const *errorMessage) WGPU_FUNCTION_ATTRIBUTE
WGPUShaderStage
Definition: mini_webgpu.h:968
@ WGPUShaderStage_Fragment
Definition: mini_webgpu.h:971
@ WGPUShaderStage_Compute
Definition: mini_webgpu.h:972
@ WGPUShaderStage_Force32
Definition: mini_webgpu.h:973
@ WGPUShaderStage_Vertex
Definition: mini_webgpu.h:970
@ WGPUShaderStage_None
Definition: mini_webgpu.h:969
void(* WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2217
WGPU_EXPORT void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2251
void(* WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2078
void(* WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2090
void(* WGPUProcTextureSetLabel)(WGPUTexture texture, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2320
void(* WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2228
WGPUQuerySet(* WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2141
WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUImageCopyTexture const *destination, void const *data, size_t dataSize, WGPUTextureDataLayout const *dataLayout, WGPUExtent3D const *writeSize) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2212
void(* WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2069
WGPU_EXPORT void wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcSharedTextureMemoryEndAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2289
WGPUBool(* WGPUProcSharedTextureMemoryIsDeviceLost)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2291
WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueSetLabel)(WGPUQueue queue, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2209
WGPUTextureAspect
Definition: mini_webgpu.h:719
@ WGPUTextureAspect_Plane2Only
Definition: mini_webgpu.h:726
@ WGPUTextureAspect_DepthOnly
Definition: mini_webgpu.h:723
@ WGPUTextureAspect_Plane1Only
Definition: mini_webgpu.h:725
@ WGPUTextureAspect_Force32
Definition: mini_webgpu.h:727
@ WGPUTextureAspect_Undefined
Definition: mini_webgpu.h:720
@ WGPUTextureAspect_All
Definition: mini_webgpu.h:721
@ WGPUTextureAspect_Plane0Only
Definition: mini_webgpu.h:724
@ WGPUTextureAspect_StencilOnly
Definition: mini_webgpu.h:722
WGPUBufferMapState
Definition: mini_webgpu.h:359
@ WGPUBufferMapState_Pending
Definition: mini_webgpu.h:361
@ WGPUBufferMapState_Mapped
Definition: mini_webgpu.h:362
@ WGPUBufferMapState_Unmapped
Definition: mini_webgpu.h:360
@ WGPUBufferMapState_Force32
Definition: mini_webgpu.h:363
WGPUFilterMode
Definition: mini_webgpu.h:507
@ WGPUFilterMode_Undefined
Definition: mini_webgpu.h:508
@ WGPUFilterMode_Force32
Definition: mini_webgpu.h:511
@ WGPUFilterMode_Nearest
Definition: mini_webgpu.h:509
@ WGPUFilterMode_Linear
Definition: mini_webgpu.h:510
WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPUExternalTexture(* WGPUProcDeviceCreateErrorExternalTexture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2136
void(* WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2192
WGPUFuture(* WGPUProcQueueOnSubmittedWorkDoneF)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2208
WGPUCommandBuffer(* WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2095
WGPUBackendType
Definition: mini_webgpu.h:292
@ WGPUBackendType_Vulkan
Definition: mini_webgpu.h:299
@ WGPUBackendType_OpenGL
Definition: mini_webgpu.h:300
@ WGPUBackendType_Force32
Definition: mini_webgpu.h:302
@ WGPUBackendType_OpenGLES
Definition: mini_webgpu.h:301
@ WGPUBackendType_WebGPU
Definition: mini_webgpu.h:295
@ WGPUBackendType_D3D11
Definition: mini_webgpu.h:296
@ WGPUBackendType_D3D12
Definition: mini_webgpu.h:297
@ WGPUBackendType_Undefined
Definition: mini_webgpu.h:293
@ WGPUBackendType_Null
Definition: mini_webgpu.h:294
@ WGPUBackendType_Metal
Definition: mini_webgpu.h:298
WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT size_t wgpuAdapterEnumerateFeatures(WGPUAdapter adapter, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2219
WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureReference(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSamplerSetLabel)(WGPUSampler sampler, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2271
void(* WGPUProcSwapChainReference)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2305
WGPUBlendFactor
Definition: mini_webgpu.h:305
@ WGPUBlendFactor_DstAlpha
Definition: mini_webgpu.h:315
@ WGPUBlendFactor_One
Definition: mini_webgpu.h:308
@ WGPUBlendFactor_Zero
Definition: mini_webgpu.h:307
@ WGPUBlendFactor_Src1Alpha
Definition: mini_webgpu.h:322
@ WGPUBlendFactor_Undefined
Definition: mini_webgpu.h:306
@ WGPUBlendFactor_OneMinusDst
Definition: mini_webgpu.h:314
@ WGPUBlendFactor_Force32
Definition: mini_webgpu.h:324
@ WGPUBlendFactor_OneMinusSrc1
Definition: mini_webgpu.h:321
@ WGPUBlendFactor_Constant
Definition: mini_webgpu.h:318
@ WGPUBlendFactor_OneMinusSrc
Definition: mini_webgpu.h:310
@ WGPUBlendFactor_SrcAlphaSaturated
Definition: mini_webgpu.h:317
@ WGPUBlendFactor_Src
Definition: mini_webgpu.h:309
@ WGPUBlendFactor_OneMinusSrcAlpha
Definition: mini_webgpu.h:312
@ WGPUBlendFactor_SrcAlpha
Definition: mini_webgpu.h:311
@ WGPUBlendFactor_OneMinusConstant
Definition: mini_webgpu.h:319
@ WGPUBlendFactor_Src1
Definition: mini_webgpu.h:320
@ WGPUBlendFactor_OneMinusDstAlpha
Definition: mini_webgpu.h:316
@ WGPUBlendFactor_OneMinusSrc1Alpha
Definition: mini_webgpu.h:323
@ WGPUBlendFactor_Dst
Definition: mini_webgpu.h:313
WGPUInstance(* WGPUProcCreateInstance)(WGPUInstanceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2041
WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBindGroupLayoutReference)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2065
WGPUFuture(* WGPUProcBufferMapAsyncF)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2076
WGPUQueryType(* WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2199
WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
WGPUSamplerBindingType
Definition: mini_webgpu.h:673
@ WGPUSamplerBindingType_NonFiltering
Definition: mini_webgpu.h:676
@ WGPUSamplerBindingType_Force32
Definition: mini_webgpu.h:678
@ WGPUSamplerBindingType_Filtering
Definition: mini_webgpu.h:675
@ WGPUSamplerBindingType_Undefined
Definition: mini_webgpu.h:674
@ WGPUSamplerBindingType_Comparison
Definition: mini_webgpu.h:677
void(* WGPUCallback)(void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:991
void(* WGPUProcCommandEncoderReference)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2104
WGPU_EXPORT void wgpuShaderModuleReference(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPipelineReference)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2267
WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderPixelLocalStorageBarrier)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2248
WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPULoadOp
Definition: mini_webgpu.h:528
@ WGPULoadOp_Load
Definition: mini_webgpu.h:531
@ WGPULoadOp_Force32
Definition: mini_webgpu.h:532
@ WGPULoadOp_Undefined
Definition: mini_webgpu.h:529
@ WGPULoadOp_Clear
Definition: mini_webgpu.h:530
void(* WGPUProcSharedTextureMemoryEndAccessStateFreeMembers)(WGPUSharedTextureMemoryEndAccessState value) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2044
WGPU_EXPORT void wgpuSharedTextureMemoryRelease(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2247
WGPUBool(* WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2157
WGPU_EXPORT void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2319
void(* WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2200
void(* WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2239
WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_STRUCTURE_ATTRIBUTE
Definition: mini_webgpu.h:63
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1001
void(* WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2279
WGPUTexture(* WGPUProcSharedTextureMemoryCreateTexture)(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2288
void(* WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2229
void(* WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2246
WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2276
WGPU_EXPORT void wgpuDeviceForceLoss(WGPUDevice device, WGPUDeviceLostReason type, char const *message) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUSharedTextureMemory wgpuDeviceImportSharedTextureMemory(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQuerySetReference)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2201
WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureRefresh(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuAdapterRequestDeviceF(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *options, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTexture wgpuSwapChainGetCurrentTexture(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPUWaitStatus
Definition: mini_webgpu.h:912
@ WGPUWaitStatus_Force32
Definition: mini_webgpu.h:919
@ WGPUWaitStatus_UnsupportedCount
Definition: mini_webgpu.h:916
@ WGPUWaitStatus_Unknown
Definition: mini_webgpu.h:918
@ WGPUWaitStatus_Success
Definition: mini_webgpu.h:913
@ WGPUWaitStatus_UnsupportedTimeout
Definition: mini_webgpu.h:915
@ WGPUWaitStatus_TimedOut
Definition: mini_webgpu.h:914
@ WGPUWaitStatus_UnsupportedMixedSources
Definition: mini_webgpu.h:917
WGPU_EXPORT void wgpuDeviceSetLoggingCallback(WGPUDevice device, WGPULoggingCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUStorageTextureAccess
Definition: mini_webgpu.h:704
@ WGPUStorageTextureAccess_Undefined
Definition: mini_webgpu.h:705
@ WGPUStorageTextureAccess_ReadOnly
Definition: mini_webgpu.h:707
@ WGPUStorageTextureAccess_WriteOnly
Definition: mini_webgpu.h:706
@ WGPUStorageTextureAccess_Force32
Definition: mini_webgpu.h:709
@ WGPUStorageTextureAccess_ReadWrite
Definition: mini_webgpu.h:708
WGPUWaitStatus(* WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2187
WGPUPowerPreference
Definition: mini_webgpu.h:550
@ WGPUPowerPreference_Force32
Definition: mini_webgpu.h:554
@ WGPUPowerPreference_HighPerformance
Definition: mini_webgpu.h:553
@ WGPUPowerPreference_LowPower
Definition: mini_webgpu.h:552
@ WGPUPowerPreference_Undefined
Definition: mini_webgpu.h:551
void(* WGPUProcExternalTextureDestroy)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2173
WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_NULLABLE
Definition: mini_webgpu.h:69
WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderInjectValidationError(WGPUCommandEncoder commandEncoder, char const *message) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2094
WGPUTextureView(* WGPUProcSwapChainGetCurrentTextureView)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2303
WGPU_EXPORT WGPUTexture wgpuSharedTextureMemoryCreateTexture(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPURenderPassEncoder(* WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2089
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2103
WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryBeginAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUPresentMode
Definition: mini_webgpu.h:557
@ WGPUPresentMode_Fifo
Definition: mini_webgpu.h:558
@ WGPUPresentMode_Force32
Definition: mini_webgpu.h:561
@ WGPUPresentMode_Immediate
Definition: mini_webgpu.h:559
@ WGPUPresentMode_Mailbox
Definition: mini_webgpu.h:560
void(* WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyBuffer const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2093
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:993
WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
WGPUSharedTextureMemory(* WGPUProcDeviceImportSharedTextureMemory)(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2159
void(* WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2227
void(* WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2256
void(* WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2133
void(* WGPUProcSharedFenceExportInfo)(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo *info) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2282
WGPULoggingType
Definition: mini_webgpu.h:535
@ WGPULoggingType_Verbose
Definition: mini_webgpu.h:536
@ WGPULoggingType_Info
Definition: mini_webgpu.h:537
@ WGPULoggingType_Error
Definition: mini_webgpu.h:539
@ WGPULoggingType_Force32
Definition: mini_webgpu.h:540
@ WGPULoggingType_Warning
Definition: mini_webgpu.h:538
WGPU_EXPORT void wgpuQuerySetReference(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceInjectError(WGPUDevice device, WGPUErrorType type, char const *message) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2214
WGPUBuffer(* WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2130
void(* WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2255
WGPU_EXPORT WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUBlendOperation
Definition: mini_webgpu.h:327
@ WGPUBlendOperation_Undefined
Definition: mini_webgpu.h:328
@ WGPUBlendOperation_Max
Definition: mini_webgpu.h:333
@ WGPUBlendOperation_Subtract
Definition: mini_webgpu.h:330
@ WGPUBlendOperation_Min
Definition: mini_webgpu.h:332
@ WGPUBlendOperation_Add
Definition: mini_webgpu.h:329
@ WGPUBlendOperation_Force32
Definition: mini_webgpu.h:334
@ WGPUBlendOperation_ReverseSubtract
Definition: mini_webgpu.h:331
void(* WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2252
WGPUBool(* WGPUProcDeviceGetLimits)(WGPUDevice device, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2154
void(* WGPUProcBindGroupReference)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2060
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureReference)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2321
WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2064
void(* WGPULoggingCallback)(WGPULoggingType type, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:999
void(* WGPUProcSharedTextureMemoryGetProperties)(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties *properties) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2290
WGPU_EXPORT void wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2097
WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUComputePassEncoder(* WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2088
WGPU_EXPORT void wgpuAdapterGetProperties(WGPUAdapter adapter, WGPUAdapterProperties *properties) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2061
WGPU_EXPORT void wgpuBindGroupReference(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUQueueWorkDoneStatus
Definition: mini_webgpu.h:580
@ WGPUQueueWorkDoneStatus_Unknown
Definition: mini_webgpu.h:584
@ WGPUQueueWorkDoneStatus_Error
Definition: mini_webgpu.h:583
@ WGPUQueueWorkDoneStatus_DeviceLost
Definition: mini_webgpu.h:585
@ WGPUQueueWorkDoneStatus_Success
Definition: mini_webgpu.h:581
@ WGPUQueueWorkDoneStatus_Force32
Definition: mini_webgpu.h:586
@ WGPUQueueWorkDoneStatus_InstanceDropped
Definition: mini_webgpu.h:582
WGPUTextureDimension(* WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2313
WGPU_EXPORT void wgpuRenderPassEncoderPixelLocalStorageBarrier(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcShaderModuleReference)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2278
void(* WGPUProcQueueCopyTextureForBrowser)(WGPUQueue queue, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2206
void(* WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2259
WGPU_EXPORT void wgpuRenderBundleReference(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceSetLabel)(WGPUDevice device, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2164
WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2056
WGPU_EXPORT void wgpuTextureViewReference(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUSwapChain wgpuDeviceCreateSwapChain(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureFormat(* WGPUProcSurfaceGetPreferredFormat)(WGPUSurface surface, WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2297
WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterReference)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2055
void(* WGPUProcTextureViewReference)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2326
WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueReference(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceSetDeviceLostCallback)(WGPUDevice device, WGPUDeviceLostCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2163
WGPUBool(* WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2183
void(* WGPUProcQueueCopyExternalTextureForBrowser)(WGPUQueue queue, WGPUImageCopyExternalTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2205
void(* WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2322
WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2075
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1002
WGPUPipelineLayout(* WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2140
WGPU_EXPORT void wgpuSwapChainReference(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcSharedTextureMemoryBeginAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2287
void(* WGPUProcExternalTextureExpire)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2174
WGPUSurface(* WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2181
WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2207
WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2231
uint32_t(* WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2316
void(* WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2176
WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePipelineReference)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2124
WGPUDevice(* WGPUProcAdapterCreateDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2047
WGPUBindGroupLayout(* WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2122
WGPU_EXPORT WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPUVertexStepMode
Definition: mini_webgpu.h:904
@ WGPUVertexStepMode_Undefined
Definition: mini_webgpu.h:905
@ WGPUVertexStepMode_VertexBufferNotUsed
Definition: mini_webgpu.h:906
@ WGPUVertexStepMode_Instance
Definition: mini_webgpu.h:908
@ WGPUVertexStepMode_Vertex
Definition: mini_webgpu.h:907
@ WGPUVertexStepMode_Force32
Definition: mini_webgpu.h:909
WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT size_t wgpuDeviceEnumerateFeatures(WGPUDevice device, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedTextureMemorySetLabel(WGPUSharedTextureMemory sharedTextureMemory, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPUQueryType
Definition: mini_webgpu.h:574
@ WGPUQueryType_Occlusion
Definition: mini_webgpu.h:575
@ WGPUQueryType_Timestamp
Definition: mini_webgpu.h:576
@ WGPUQueryType_Force32
Definition: mini_webgpu.h:577
WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceInjectError)(WGPUDevice device, WGPUErrorType type, char const *message) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2160
WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2241
WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateExternalTexture(WGPUDevice device, WGPUExternalTextureDescriptor const *externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE
WGPUHeapProperty
Definition: mini_webgpu.h:949
@ WGPUHeapProperty_DeviceLocal
Definition: mini_webgpu.h:951
@ WGPUHeapProperty_HostCoherent
Definition: mini_webgpu.h:953
@ WGPUHeapProperty_Undefined
Definition: mini_webgpu.h:950
@ WGPUHeapProperty_HostCached
Definition: mini_webgpu.h:955
@ WGPUHeapProperty_HostVisible
Definition: mini_webgpu.h:952
@ WGPUHeapProperty_Force32
Definition: mini_webgpu.h:956
@ WGPUHeapProperty_HostUncached
Definition: mini_webgpu.h:954
WGPU_EXPORT void wgpuAdapterPropertiesMemoryHeapsFreeMembers(WGPUAdapterPropertiesMemoryHeaps value) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSwapChainPresent)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2304
WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcGetInstanceFeatures)(WGPUInstanceFeatures *features) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2042
WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUAdapterType
Definition: mini_webgpu.h:269
@ WGPUAdapterType_CPU
Definition: mini_webgpu.h:272
@ WGPUAdapterType_DiscreteGPU
Definition: mini_webgpu.h:270
@ WGPUAdapterType_IntegratedGPU
Definition: mini_webgpu.h:271
@ WGPUAdapterType_Unknown
Definition: mini_webgpu.h:273
@ WGPUAdapterType_Force32
Definition: mini_webgpu.h:274
WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDoneF(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPUSharedFence(* WGPUProcDeviceImportSharedFence)(WGPUDevice device, WGPUSharedFenceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2158
void(* WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2185
WGPU_EXPORT void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUComputePipeline(* WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2132
void(* WGPUProcDeviceSetLoggingCallback)(WGPUDevice device, WGPULoggingCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2165
WGPU_EXPORT void wgpuSharedFenceExportInfo(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo *info) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2244
WGPUFuture(* WGPUProcDeviceCreateComputePipelineAsyncF)(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2134
WGPU_EXPORT void wgpuDeviceReference(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPUCompilationInfoRequestStatus
Definition: mini_webgpu.h:386
@ WGPUCompilationInfoRequestStatus_Force32
Definition: mini_webgpu.h:392
@ WGPUCompilationInfoRequestStatus_Success
Definition: mini_webgpu.h:387
@ WGPUCompilationInfoRequestStatus_Error
Definition: mini_webgpu.h:389
@ WGPUCompilationInfoRequestStatus_DeviceLost
Definition: mini_webgpu.h:390
@ WGPUCompilationInfoRequestStatus_InstanceDropped
Definition: mini_webgpu.h:388
@ WGPUCompilationInfoRequestStatus_Unknown
Definition: mini_webgpu.h:391
void(* WGPUProcBufferSetLabel)(WGPUBuffer buffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2077
WGPU_EXPORT void wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPU_NULLABLE WGPUDevice device, char const *procName) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSurfaceReference)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2298
WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUMipmapFilterMode
Definition: mini_webgpu.h:543
@ WGPUMipmapFilterMode_Undefined
Definition: mini_webgpu.h:544
@ WGPUMipmapFilterMode_Linear
Definition: mini_webgpu.h:546
@ WGPUMipmapFilterMode_Force32
Definition: mini_webgpu.h:547
@ WGPUMipmapFilterMode_Nearest
Definition: mini_webgpu.h:545
WGPU_EXPORT void wgpuAdapterPropertiesFreeMembers(WGPUAdapterProperties value) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2327
WGPUSwapChain(* WGPUProcDeviceCreateSwapChain)(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2148
WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2242
void(* WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2092
WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUExternalTextureRotation
Definition: mini_webgpu.h:444
@ WGPUExternalTextureRotation_Rotate180Degrees
Definition: mini_webgpu.h:447
@ WGPUExternalTextureRotation_Force32
Definition: mini_webgpu.h:449
@ WGPUExternalTextureRotation_Rotate270Degrees
Definition: mini_webgpu.h:448
@ WGPUExternalTextureRotation_Rotate0Degrees
Definition: mini_webgpu.h:445
@ WGPUExternalTextureRotation_Rotate90Degrees
Definition: mini_webgpu.h:446
WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2198
WGPU_EXPORT void wgpuQueueCopyExternalTextureForBrowser(WGPUQueue queue, WGPUImageCopyExternalTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUAdapter wgpuDeviceGetAdapter(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderReference)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2261
void(* WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2254
WGPU_EXPORT void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2249
void(* WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2250
WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureView wgpuSwapChainGetCurrentTextureView(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2194
WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedFenceReference(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUBufferMapCallback)(WGPUBufferMapAsyncStatus status, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:990
WGPUTextureFormat(* WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2314
WGPUBool(* WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2052
WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapterF(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferMapAsyncStatus
Definition: mini_webgpu.h:345
@ WGPUBufferMapAsyncStatus_OffsetOutOfRange
Definition: mini_webgpu.h:354
@ WGPUBufferMapAsyncStatus_DestroyedBeforeCallback
Definition: mini_webgpu.h:351
@ WGPUBufferMapAsyncStatus_SizeOutOfRange
Definition: mini_webgpu.h:355
@ WGPUBufferMapAsyncStatus_ValidationError
Definition: mini_webgpu.h:348
@ WGPUBufferMapAsyncStatus_Success
Definition: mini_webgpu.h:346
@ WGPUBufferMapAsyncStatus_UnmappedBeforeCallback
Definition: mini_webgpu.h:352
@ WGPUBufferMapAsyncStatus_MappingAlreadyPending
Definition: mini_webgpu.h:353
@ WGPUBufferMapAsyncStatus_Force32
Definition: mini_webgpu.h:356
@ WGPUBufferMapAsyncStatus_DeviceLost
Definition: mini_webgpu.h:350
@ WGPUBufferMapAsyncStatus_InstanceDropped
Definition: mini_webgpu.h:347
@ WGPUBufferMapAsyncStatus_Unknown
Definition: mini_webgpu.h:349
WGPU_EXPORT WGPUBool wgpuAdapterGetLimits(WGPUAdapter adapter, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:994
WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUSharedFenceType
Definition: mini_webgpu.h:681
@ WGPUSharedFenceType_MTLSharedEvent
Definition: mini_webgpu.h:687
@ WGPUSharedFenceType_Force32
Definition: mini_webgpu.h:688
@ WGPUSharedFenceType_Undefined
Definition: mini_webgpu.h:682
@ WGPUSharedFenceType_VkSemaphoreOpaqueFD
Definition: mini_webgpu.h:683
@ WGPUSharedFenceType_VkSemaphoreZirconHandle
Definition: mini_webgpu.h:685
@ WGPUSharedFenceType_VkSemaphoreSyncFD
Definition: mini_webgpu.h:684
@ WGPUSharedFenceType_DXGISharedHandle
Definition: mini_webgpu.h:686
WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterPropertiesMemoryHeapsFreeMembers)(WGPUAdapterPropertiesMemoryHeaps value) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2040
void(* WGPUProcComputePassEncoderReference)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2118
WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE
WGPUTexture(* WGPUProcSwapChainGetCurrentTexture)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2302
WGPUFrontFace
Definition: mini_webgpu.h:514
@ WGPUFrontFace_CW
Definition: mini_webgpu.h:517
@ WGPUFrontFace_Undefined
Definition: mini_webgpu.h:515
@ WGPUFrontFace_CCW
Definition: mini_webgpu.h:516
@ WGPUFrontFace_Force32
Definition: mini_webgpu.h:518
void(* WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2112
void(* WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2232
void(* WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2080
void(* WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2111
WGPUTexture(* WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2149
WGPUStoreOp
Definition: mini_webgpu.h:712
@ WGPUStoreOp_Discard
Definition: mini_webgpu.h:715
@ WGPUStoreOp_Force32
Definition: mini_webgpu.h:716
@ WGPUStoreOp_Store
Definition: mini_webgpu.h:714
@ WGPUStoreOp_Undefined
Definition: mini_webgpu.h:713
WGPUErrorFilter
Definition: mini_webgpu.h:427
@ WGPUErrorFilter_Internal
Definition: mini_webgpu.h:430
@ WGPUErrorFilter_Force32
Definition: mini_webgpu.h:431
@ WGPUErrorFilter_OutOfMemory
Definition: mini_webgpu.h:429
@ WGPUErrorFilter_Validation
Definition: mini_webgpu.h:428
void(* WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2113
void(* WGPUProcDeviceTick)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2167
void(* WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2266
WGPU_EXPORT void wgpuSharedFenceRelease(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcExternalTextureRefresh)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2175
WGPU_EXPORT void wgpuDeviceSetDeviceLostCallback(WGPUDevice device, WGPUDeviceLostCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
uint32_t WGPUFlags
Definition: mini_webgpu.h:86
WGPU_EXPORT void wgpuSharedTextureMemoryGetProperties(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties *properties) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
WGPURenderPipeline(* WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2143
size_t(* WGPUProcInstanceEnumerateWGSLLanguageFeatures)(WGPUInstance instance, WGPUWGSLFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2182
WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBufferReference)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2079
void(* WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2325
WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPURenderBundle(* WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2226
WGPU_EXPORT void wgpuCommandEncoderWriteBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const *data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuDeviceCreateComputePipelineAsyncF(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2099
WGPU_EXPORT WGPUInstance wgpuAdapterGetInstance(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2253
WGPUBindGroup(* WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2128
WGPUCallbackMode
Definition: mini_webgpu.h:366
@ WGPUCallbackMode_AllowProcessEvents
Definition: mini_webgpu.h:368
@ WGPUCallbackMode_AllowSpontaneous
Definition: mini_webgpu.h:369
@ WGPUCallbackMode_WaitAnyOnly
Definition: mini_webgpu.h:367
@ WGPUCallbackMode_Force32
Definition: mini_webgpu.h:370
WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPUProc(* WGPUProcGetProcAddress)(WGPUDevice device, char const *procName) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2043
WGPUTextureSampleType
Definition: mini_webgpu.h:847
@ WGPUTextureSampleType_Float
Definition: mini_webgpu.h:849
@ WGPUTextureSampleType_Sint
Definition: mini_webgpu.h:852
@ WGPUTextureSampleType_Undefined
Definition: mini_webgpu.h:848
@ WGPUTextureSampleType_Force32
Definition: mini_webgpu.h:854
@ WGPUTextureSampleType_Uint
Definition: mini_webgpu.h:853
@ WGPUTextureSampleType_Depth
Definition: mini_webgpu.h:851
@ WGPUTextureSampleType_UnfilterableFloat
Definition: mini_webgpu.h:850
WGPU_EXPORT void wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryEndAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2258
WGPUInstance(* WGPUProcAdapterGetInstance)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2049
WGPUColorWriteMask
Definition: mini_webgpu.h:938
@ WGPUColorWriteMask_Red
Definition: mini_webgpu.h:940
@ WGPUColorWriteMask_Green
Definition: mini_webgpu.h:941
@ WGPUColorWriteMask_None
Definition: mini_webgpu.h:939
@ WGPUColorWriteMask_Force32
Definition: mini_webgpu.h:945
@ WGPUColorWriteMask_All
Definition: mini_webgpu.h:944
@ WGPUColorWriteMask_Blue
Definition: mini_webgpu.h:942
@ WGPUColorWriteMask_Alpha
Definition: mini_webgpu.h:943
void(* WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2234
WGPURenderBundleEncoder(* WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2142
WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUExternalTexture(* WGPUProcDeviceCreateExternalTexture)(WGPUDevice device, WGPUExternalTextureDescriptor const *externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2139
void(* WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2091
void(* WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2100
WGPUBindGroupLayout(* WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2265
WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUErrorType
Definition: mini_webgpu.h:434
@ WGPUErrorType_NoError
Definition: mini_webgpu.h:435
@ WGPUErrorType_DeviceLost
Definition: mini_webgpu.h:440
@ WGPUErrorType_OutOfMemory
Definition: mini_webgpu.h:437
@ WGPUErrorType_Unknown
Definition: mini_webgpu.h:439
@ WGPUErrorType_Validation
Definition: mini_webgpu.h:436
@ WGPUErrorType_Force32
Definition: mini_webgpu.h:441
@ WGPUErrorType_Internal
Definition: mini_webgpu.h:438
WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPUBuffer(* WGPUProcDeviceCreateErrorBuffer)(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2135
unsigned __INT64_TYPE__ uint64_t
signed __INT32_TYPE__ int32_t
unsigned __INT8_TYPE__ uint8_t
unsigned __INT16_TYPE__ uint16_t
__SIZE_TYPE__ size_t
unsigned __INT32_TYPE__ uint32_t
WGPUChainedStructOut chain
Definition: mini_webgpu.h:1030
WGPUBackendType backendType
Definition: mini_webgpu.h:1024
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1016
char const * driverDescription
Definition: mini_webgpu.h:1022
char const * architecture
Definition: mini_webgpu.h:1019
char const * vendorName
Definition: mini_webgpu.h:1018
WGPUAdapterType adapterType
Definition: mini_webgpu.h:1023
WGPUChainedStructOut chain
Definition: mini_webgpu.h:1760
WGPUMemoryHeapInfo const * heapInfo
Definition: mini_webgpu.h:1762
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1766
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1767
WGPUBindGroupLayout layout
Definition: mini_webgpu.h:1768
WGPUBindGroupEntry const * entries
Definition: mini_webgpu.h:1770
Definition: mini_webgpu.h:1034
WGPU_NULLABLE WGPUBuffer buffer
Definition: mini_webgpu.h:1037
uint64_t offset
Definition: mini_webgpu.h:1038
uint64_t size
Definition: mini_webgpu.h:1039
WGPU_NULLABLE WGPUSampler sampler
Definition: mini_webgpu.h:1040
WGPU_NULLABLE WGPUTextureView textureView
Definition: mini_webgpu.h:1041
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1035
uint32_t binding
Definition: mini_webgpu.h:1036
WGPUBindGroupLayoutEntry const * entries
Definition: mini_webgpu.h:1956
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1954
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1953
Definition: mini_webgpu.h:1773
WGPUTextureBindingLayout texture
Definition: mini_webgpu.h:1779
WGPUBufferBindingLayout buffer
Definition: mini_webgpu.h:1777
uint32_t binding
Definition: mini_webgpu.h:1775
WGPUShaderStageFlags visibility
Definition: mini_webgpu.h:1776
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1774
WGPUStorageTextureBindingLayout storageTexture
Definition: mini_webgpu.h:1780
WGPUSamplerBindingLayout sampler
Definition: mini_webgpu.h:1778
WGPUBlendFactor dstFactor
Definition: mini_webgpu.h:1047
WGPUBlendFactor srcFactor
Definition: mini_webgpu.h:1046
WGPUBlendOperation operation
Definition: mini_webgpu.h:1045
WGPUBlendComponent alpha
Definition: mini_webgpu.h:1785
WGPUBlendComponent color
Definition: mini_webgpu.h:1784
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1051
WGPUBufferBindingType type
Definition: mini_webgpu.h:1052
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1058
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1059
WGPUBufferUsageFlags usage
Definition: mini_webgpu.h:1060
WGPUChainedStruct chain
Definition: mini_webgpu.h:1067
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1074
WGPUBufferMapCallback callback
Definition: mini_webgpu.h:1076
WGPUCallbackMode mode
Definition: mini_webgpu.h:1075
struct WGPUChainedStruct const * next
Definition: mini_webgpu.h:1006
struct WGPUChainedStructOut * next
Definition: mini_webgpu.h:1011
double a
Definition: mini_webgpu.h:1084
double b
Definition: mini_webgpu.h:1083
double r
Definition: mini_webgpu.h:1081
double g
Definition: mini_webgpu.h:1082
WGPUColorWriteMaskFlags writeMask
Definition: mini_webgpu.h:1963
WGPUTextureFormat format
Definition: mini_webgpu.h:1961
WGPU_NULLABLE WGPUBlendState const * blend
Definition: mini_webgpu.h:1962
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1960
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1088
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1089
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1093
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1094
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1789
WGPUCompilationMessage const * messages
Definition: mini_webgpu.h:1791
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1098
WGPU_NULLABLE char const * message
Definition: mini_webgpu.h:1099
WGPUCompilationMessageType type
Definition: mini_webgpu.h:1100
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1796
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1795
WGPU_NULLABLE WGPUComputePassTimestampWrites const * timestampWrites
Definition: mini_webgpu.h:1797
WGPUProgrammableStageDescriptor compute
Definition: mini_webgpu.h:1970
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1967
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1968
WGPU_NULLABLE WGPUPipelineLayout layout
Definition: mini_webgpu.h:1969
Definition: mini_webgpu.h:1116
double value
Definition: mini_webgpu.h:1119
char const * key
Definition: mini_webgpu.h:1118
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1117
WGPU_NULLABLE float const * srcTransferFunctionParameters
Definition: mini_webgpu.h:1127
WGPU_NULLABLE float const * dstTransferFunctionParameters
Definition: mini_webgpu.h:1129
WGPU_NULLABLE float const * conversionMatrix
Definition: mini_webgpu.h:1128
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1123
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1135
WGPUCreateComputePipelineAsyncCallback callback
Definition: mini_webgpu.h:1137
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1142
WGPUCreateRenderPipelineAsyncCallback callback
Definition: mini_webgpu.h:1144
WGPUDawnLoadCacheDataFunction loadDataFunction
Definition: mini_webgpu.h:1171
WGPUDawnStoreCacheDataFunction storeDataFunction
Definition: mini_webgpu.h:1172
const char *const * enabledToggles
Definition: mini_webgpu.h:1225
WGPUChainedStruct chain
Definition: mini_webgpu.h:1223
const char *const * disabledToggles
Definition: mini_webgpu.h:1227
WGPUChainedStruct chain
Definition: mini_webgpu.h:1150
const char *const * blocklistedFeatures
Definition: mini_webgpu.h:1152
WGPUChainedStruct chain
Definition: mini_webgpu.h:1232
WGPUStencilFaceState stencilFront
Definition: mini_webgpu.h:1805
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1801
WGPUStencilFaceState stencilBack
Definition: mini_webgpu.h:1806
WGPUCompareFunction depthCompare
Definition: mini_webgpu.h:1804
WGPUTextureFormat format
Definition: mini_webgpu.h:1802
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1974
WGPUFeatureName const * requiredFeatures
Definition: mini_webgpu.h:1977
WGPUQueueDescriptor defaultQueue
Definition: mini_webgpu.h:1979
WGPU_NULLABLE WGPURequiredLimits const * requiredLimits
Definition: mini_webgpu.h:1978
WGPUDeviceLostCallback deviceLostCallback
Definition: mini_webgpu.h:1980
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1975
uint32_t width
Definition: mini_webgpu.h:1245
uint32_t height
Definition: mini_webgpu.h:1246
uint32_t width
Definition: mini_webgpu.h:1250
uint32_t depthOrArrayLayers
Definition: mini_webgpu.h:1252
uint32_t height
Definition: mini_webgpu.h:1251
Definition: mini_webgpu.h:1256
WGPUChainedStruct chain
Definition: mini_webgpu.h:1257
WGPUExternalTexture externalTexture
Definition: mini_webgpu.h:1258
float const * dstTransferFunctionParameters
Definition: mini_webgpu.h:1824
WGPU_NULLABLE float const * yuvToRgbConversionMatrix
Definition: mini_webgpu.h:1822
float const * gamutConversionMatrix
Definition: mini_webgpu.h:1825
float const * srcTransferFunctionParameters
Definition: mini_webgpu.h:1823
WGPU_NULLABLE WGPUTextureView plane1
Definition: mini_webgpu.h:1818
WGPUExternalTextureRotation rotation
Definition: mini_webgpu.h:1828
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1816
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1815
WGPUShaderModule module
Definition: mini_webgpu.h:2014
WGPU_NULLABLE char const * entryPoint
Definition: mini_webgpu.h:2015
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:2013
WGPUConstantEntry const * constants
Definition: mini_webgpu.h:2017
WGPUColorTargetState const * targets
Definition: mini_webgpu.h:2019
uint64_t id
Definition: mini_webgpu.h:1267
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1837
WGPUTextureDataLayout layout
Definition: mini_webgpu.h:1838
WGPUExternalTexture externalTexture
Definition: mini_webgpu.h:1844
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1843
WGPUOrigin3D origin
Definition: mini_webgpu.h:1853
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1850
WGPUTextureAspect aspect
Definition: mini_webgpu.h:1854
WGPUInstanceFeatures features
Definition: mini_webgpu.h:1859
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1858
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1271
WGPUBool timedWaitAnyEnable
Definition: mini_webgpu.h:1272
uint32_t maxBindGroupsPlusVertexBuffers
Definition: mini_webgpu.h:1282
uint32_t maxColorAttachmentBytesPerSample
Definition: mini_webgpu.h:1302
uint32_t maxTextureDimension2D
Definition: mini_webgpu.h:1278
uint32_t maxSampledTexturesPerShaderStage
Definition: mini_webgpu.h:1286
uint32_t maxTextureDimension3D
Definition: mini_webgpu.h:1279
uint32_t maxSamplersPerShaderStage
Definition: mini_webgpu.h:1287
uint32_t maxBindingsPerBindGroup
Definition: mini_webgpu.h:1283
uint32_t maxComputeWorkgroupsPerDimension
Definition: mini_webgpu.h:1308
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition: mini_webgpu.h:1285
uint32_t maxInterStageShaderComponents
Definition: mini_webgpu.h:1299
uint32_t maxComputeWorkgroupStorageSize
Definition: mini_webgpu.h:1303
uint32_t minStorageBufferOffsetAlignment
Definition: mini_webgpu.h:1294
uint32_t maxComputeWorkgroupSizeY
Definition: mini_webgpu.h:1306
uint64_t maxStorageBufferBindingSize
Definition: mini_webgpu.h:1292
uint32_t maxComputeInvocationsPerWorkgroup
Definition: mini_webgpu.h:1304
uint32_t maxVertexBufferArrayStride
Definition: mini_webgpu.h:1298
uint32_t minUniformBufferOffsetAlignment
Definition: mini_webgpu.h:1293
uint32_t maxVertexAttributes
Definition: mini_webgpu.h:1297
uint32_t maxColorAttachments
Definition: mini_webgpu.h:1301
uint32_t maxInterStageShaderVariables
Definition: mini_webgpu.h:1300
uint32_t maxComputeWorkgroupSizeZ
Definition: mini_webgpu.h:1307
uint32_t maxTextureDimension1D
Definition: mini_webgpu.h:1277
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition: mini_webgpu.h:1284
uint64_t maxUniformBufferBindingSize
Definition: mini_webgpu.h:1291
uint64_t maxBufferSize
Definition: mini_webgpu.h:1296
uint32_t maxUniformBuffersPerShaderStage
Definition: mini_webgpu.h:1290
uint32_t maxComputeWorkgroupSizeX
Definition: mini_webgpu.h:1305
uint32_t maxVertexBuffers
Definition: mini_webgpu.h:1295
uint32_t maxTextureArrayLayers
Definition: mini_webgpu.h:1280
uint32_t maxStorageTexturesPerShaderStage
Definition: mini_webgpu.h:1289
uint32_t maxStorageBuffersPerShaderStage
Definition: mini_webgpu.h:1288
uint32_t maxBindGroups
Definition: mini_webgpu.h:1281
WGPUHeapPropertyFlags properties
Definition: mini_webgpu.h:1312
WGPUBool alphaToCoverageEnabled
Definition: mini_webgpu.h:1320
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1317
uint32_t x
Definition: mini_webgpu.h:1324
uint32_t y
Definition: mini_webgpu.h:1325
uint32_t y
Definition: mini_webgpu.h:1330
uint32_t z
Definition: mini_webgpu.h:1331
uint32_t x
Definition: mini_webgpu.h:1329
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1335
WGPUBindGroupLayout const * bindGroupLayouts
Definition: mini_webgpu.h:1338
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1336
WGPUPipelineLayoutStorageAttachment const * storageAttachments
Definition: mini_webgpu.h:1867
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1342
WGPUFrontFace frontFace
Definition: mini_webgpu.h:1357
WGPUIndexFormat stripIndexFormat
Definition: mini_webgpu.h:1356
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1354
WGPUPrimitiveTopology topology
Definition: mini_webgpu.h:1355
WGPUCullMode cullMode
Definition: mini_webgpu.h:1358
WGPU_NULLABLE char const * entryPoint
Definition: mini_webgpu.h:1873
WGPUConstantEntry const * constants
Definition: mini_webgpu.h:1875
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1871
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1362
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1363
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1370
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1369
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1374
WGPUQueueWorkDoneCallback callback
Definition: mini_webgpu.h:1376
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1382
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1381
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1386
WGPUTextureFormat const * colorFormats
Definition: mini_webgpu.h:1389
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1387
WGPUTextureFormat depthStencilFormat
Definition: mini_webgpu.h:1390
WGPU_NULLABLE WGPUTextureView view
Definition: mini_webgpu.h:1880
WGPU_NULLABLE WGPUTextureView resolveTarget
Definition: mini_webgpu.h:1882
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1879
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1985
WGPURenderPassColorAttachment const * colorAttachments
Definition: mini_webgpu.h:1988
WGPU_NULLABLE WGPUQuerySet occlusionQuerySet
Definition: mini_webgpu.h:1990
WGPU_NULLABLE WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition: mini_webgpu.h:1989
WGPU_NULLABLE WGPURenderPassTimestampWrites const * timestampWrites
Definition: mini_webgpu.h:1991
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1986
WGPURenderPassStorageAttachment const * storageAttachments
Definition: mini_webgpu.h:1999
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1889
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:2024
WGPU_NULLABLE WGPUPipelineLayout layout
Definition: mini_webgpu.h:2025
WGPUMultisampleState multisample
Definition: mini_webgpu.h:2029
WGPU_NULLABLE WGPUFragmentState const * fragment
Definition: mini_webgpu.h:2030
WGPU_NULLABLE WGPUDepthStencilState const * depthStencil
Definition: mini_webgpu.h:2028
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:2023
WGPUPrimitiveState primitive
Definition: mini_webgpu.h:2027
WGPURequestAdapterCallback callback
Definition: mini_webgpu.h:1423
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1421
WGPU_NULLABLE WGPUSurface compatibleSurface
Definition: mini_webgpu.h:1429
WGPUBackendType backendType
Definition: mini_webgpu.h:1431
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1428
WGPUPowerPreference powerPreference
Definition: mini_webgpu.h:1430
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1437
WGPURequestDeviceCallback callback
Definition: mini_webgpu.h:1439
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1898
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1444
WGPUSamplerBindingType type
Definition: mini_webgpu.h:1445
WGPUFilterMode minFilter
Definition: mini_webgpu.h:1455
WGPUAddressMode addressModeU
Definition: mini_webgpu.h:1451
WGPUCompareFunction compare
Definition: mini_webgpu.h:1459
WGPUAddressMode addressModeW
Definition: mini_webgpu.h:1453
WGPUAddressMode addressModeV
Definition: mini_webgpu.h:1452
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1449
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1450
WGPUFilterMode magFilter
Definition: mini_webgpu.h:1454
WGPUMipmapFilterMode mipmapFilter
Definition: mini_webgpu.h:1456
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1477
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1478
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1507
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1506
WGPUSharedFenceType type
Definition: mini_webgpu.h:1512
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1511
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1586
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1585
WGPUSharedTextureMemoryDmaBufPlane const * planes
Definition: mini_webgpu.h:1909
WGPUSharedFence const * fences
Definition: mini_webgpu.h:1599
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1596
WGPUTextureUsageFlags usage
Definition: mini_webgpu.h:1914
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1913
WGPUCompareFunction compare
Definition: mini_webgpu.h:1641
WGPUStencilOperation depthFailOp
Definition: mini_webgpu.h:1643
WGPUStencilOperation passOp
Definition: mini_webgpu.h:1644
WGPUStencilOperation failOp
Definition: mini_webgpu.h:1642
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1648
WGPUTextureViewDimension viewDimension
Definition: mini_webgpu.h:1651
WGPUStorageTextureAccess access
Definition: mini_webgpu.h:1649
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1928
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1656
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1655
WGPUTextureFormat format
Definition: mini_webgpu.h:1714
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1711
WGPUPresentMode presentMode
Definition: mini_webgpu.h:1717
WGPUTextureUsageFlags usage
Definition: mini_webgpu.h:1713
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1712
WGPUTextureViewDimension viewDimension
Definition: mini_webgpu.h:1723
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1721
WGPUTextureSampleType sampleType
Definition: mini_webgpu.h:1722
WGPUTextureViewDimension textureBindingViewDimension
Definition: mini_webgpu.h:1730
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1734
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1933
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1934
WGPUTextureFormat const * viewFormats
Definition: mini_webgpu.h:1942
WGPUTextureDimension dimension
Definition: mini_webgpu.h:1936
WGPUTextureFormat format
Definition: mini_webgpu.h:1938
WGPUTextureUsageFlags usage
Definition: mini_webgpu.h:1935
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1741
WGPUTextureFormat format
Definition: mini_webgpu.h:1743
WGPUTextureViewDimension dimension
Definition: mini_webgpu.h:1744
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1742
WGPUTextureAspect aspect
Definition: mini_webgpu.h:1749
WGPUVertexFormat format
Definition: mini_webgpu.h:1753
WGPUVertexAttribute const * attributes
Definition: mini_webgpu.h:1949
WGPUVertexStepMode stepMode
Definition: mini_webgpu.h:1947
WGPUVertexBufferLayout const * buffers
Definition: mini_webgpu.h:2009
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:2003
WGPUConstantEntry const * constants
Definition: mini_webgpu.h:2007
size_t constantCount
Definition: mini_webgpu.h:2006
WGPU_NULLABLE char const * entryPoint
Definition: mini_webgpu.h:2005
WGPUShaderModule module
Definition: mini_webgpu.h:2004