Halide  17.0.2
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 
89 typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
90 typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
91 typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
92 typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
93 typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
94 typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
95 typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
96 typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
97 typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
98 typedef struct WGPUExternalTextureImpl* WGPUExternalTexture WGPU_OBJECT_ATTRIBUTE;
99 typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
100 typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
101 typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
102 typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
103 typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
104 typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
105 typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
106 typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
107 typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
108 typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
109 typedef struct WGPUSharedFenceImpl* WGPUSharedFence WGPU_OBJECT_ATTRIBUTE;
110 typedef struct WGPUSharedTextureMemoryImpl* WGPUSharedTextureMemory WGPU_OBJECT_ATTRIBUTE;
111 typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
112 typedef struct WGPUSwapChainImpl* WGPUSwapChain WGPU_OBJECT_ATTRIBUTE;
113 typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
114 typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
115 
116 // Structure forward declarations
117 struct WGPUAdapterProperties;
119 struct WGPUBindGroupEntry;
120 struct WGPUBlendComponent;
122 struct WGPUBufferDescriptor;
125 struct WGPUColor;
130 struct WGPUConstantEntry;
134 struct WGPUDawnWGSLBlocklist;
148 struct WGPUExtent2D;
149 struct WGPUExtent3D;
152 struct WGPUFuture;
153 struct WGPUInstanceFeatures;
154 struct WGPULimits;
155 struct WGPUMemoryHeapInfo;
156 struct WGPUMultisampleState;
157 struct WGPUOrigin2D;
158 struct WGPUOrigin3D;
162 struct WGPUPrimitiveState;
164 struct WGPUQueueDescriptor;
175 struct WGPUSamplerDescriptor;
204 struct WGPUStencilFaceState;
206 struct WGPUSurfaceDescriptor;
218 struct WGPUTextureDataLayout;
220 struct WGPUVertexAttribute;
224 struct WGPUBlendState;
225 struct WGPUCompilationInfo;
227 struct WGPUDepthStencilState;
229 struct WGPUFutureWaitInfo;
230 struct WGPUImageCopyBuffer;
232 struct WGPUImageCopyTexture;
238 struct WGPURequiredLimits;
242 struct WGPUSupportedLimits;
243 struct WGPUTextureDescriptor;
246 struct WGPUColorTargetState;
248 struct WGPUDeviceDescriptor;
251 struct WGPUVertexState;
252 struct WGPUFragmentState;
254 
255 typedef enum WGPUWGSLFeatureName {
268 
269 typedef enum WGPUAdapterType {
272  WGPUAdapterType_CPU = 0x00000003,
276 
277 typedef enum WGPUAddressMode {
284 
285 typedef enum WGPUAlphaMode {
286  WGPUAlphaMode_Opaque = 0x00000001,
291 
292 typedef enum WGPUBackendType {
294  WGPUBackendType_Null = 0x00000001,
296  WGPUBackendType_D3D11 = 0x00000003,
297  WGPUBackendType_D3D12 = 0x00000004,
298  WGPUBackendType_Metal = 0x00000005,
304 
305 typedef enum WGPUBlendFactor {
307  WGPUBlendFactor_Zero = 0x00000001,
308  WGPUBlendFactor_One = 0x00000002,
309  WGPUBlendFactor_Src = 0x00000003,
313  WGPUBlendFactor_Dst = 0x00000007,
320  WGPUBlendFactor_Src1 = 0x0000000E,
326 
327 typedef enum WGPUBlendOperation {
336 
337 typedef enum WGPUBufferBindingType {
344 
358 
359 typedef enum WGPUBufferMapState {
365 
366 typedef enum WGPUCallbackMode {
372 
373 typedef enum WGPUCompareFunction {
385 
394 
401 
412 
413 typedef enum WGPUCullMode {
415  WGPUCullMode_None = 0x00000001,
416  WGPUCullMode_Front = 0x00000002,
417  WGPUCullMode_Back = 0x00000003,
418  WGPUCullMode_Force32 = 0x7FFFFFFF
420 
421 typedef enum WGPUDeviceLostReason {
426 
427 typedef enum WGPUErrorFilter {
433 
434 typedef enum WGPUErrorType {
435  WGPUErrorType_NoError = 0x00000000,
439  WGPUErrorType_Unknown = 0x00000004,
443 
451 
452 typedef enum WGPUFeatureName {
506 
507 typedef enum WGPUFilterMode {
510  WGPUFilterMode_Linear = 0x00000002,
513 
514 typedef enum WGPUFrontFace {
516  WGPUFrontFace_CCW = 0x00000001,
517  WGPUFrontFace_CW = 0x00000002,
520 
521 typedef enum WGPUIndexFormat {
527 
528 typedef enum WGPULoadOp {
529  WGPULoadOp_Undefined = 0x00000000,
530  WGPULoadOp_Clear = 0x00000001,
531  WGPULoadOp_Load = 0x00000002,
532  WGPULoadOp_Force32 = 0x7FFFFFFF
534 
535 typedef enum WGPULoggingType {
537  WGPULoggingType_Info = 0x00000002,
539  WGPULoggingType_Error = 0x00000004,
542 
543 typedef enum WGPUMipmapFilterMode {
549 
550 typedef enum WGPUPowerPreference {
556 
557 typedef enum WGPUPresentMode {
558  WGPUPresentMode_Fifo = 0x00000001,
563 
564 typedef enum WGPUPrimitiveTopology {
573 
574 typedef enum WGPUQueryType {
579 
588 
597 
605 
606 typedef enum WGPUSType {
607  WGPUSType_Invalid = 0x00000000,
670  WGPUSType_Force32 = 0x7FFFFFFF
672 
680 
681 typedef enum WGPUSharedFenceType {
690 
691 typedef enum WGPUStencilOperation {
703 
711 
712 typedef enum WGPUStoreOp {
713  WGPUStoreOp_Undefined = 0x00000000,
714  WGPUStoreOp_Store = 0x00000001,
715  WGPUStoreOp_Discard = 0x00000002,
716  WGPUStoreOp_Force32 = 0x7FFFFFFF
718 
719 typedef enum WGPUTextureAspect {
721  WGPUTextureAspect_All = 0x00000001,
729 
730 typedef enum WGPUTextureDimension {
737 
738 typedef enum WGPUTextureFormat {
846 
847 typedef enum WGPUTextureSampleType {
856 
867 
868 typedef enum WGPUVertexFormat {
903 
904 typedef enum WGPUVertexStepMode {
911 
912 typedef enum WGPUWaitStatus {
921 
922 typedef enum WGPUBufferUsage {
923  WGPUBufferUsage_None = 0x00000000,
928  WGPUBufferUsage_Index = 0x00000010,
936 typedef WGPUFlags WGPUBufferUsageFlags WGPU_ENUM_ATTRIBUTE;
937 
938 typedef enum WGPUColorWriteMask {
947 typedef WGPUFlags WGPUColorWriteMaskFlags WGPU_ENUM_ATTRIBUTE;
948 
949 typedef enum WGPUHeapProperty {
958 typedef WGPUFlags WGPUHeapPropertyFlags WGPU_ENUM_ATTRIBUTE;
959 
960 typedef enum WGPUMapMode {
961  WGPUMapMode_None = 0x00000000,
962  WGPUMapMode_Read = 0x00000001,
963  WGPUMapMode_Write = 0x00000002,
964  WGPUMapMode_Force32 = 0x7FFFFFFF
966 typedef WGPUFlags WGPUMapModeFlags WGPU_ENUM_ATTRIBUTE;
967 
968 typedef enum WGPUShaderStage {
969  WGPUShaderStage_None = 0x00000000,
975 typedef WGPUFlags WGPUShaderStageFlags WGPU_ENUM_ATTRIBUTE;
976 
977 typedef enum WGPUTextureUsage {
978  WGPUTextureUsage_None = 0x00000000,
988 typedef WGPUFlags WGPUTextureUsageFlags WGPU_ENUM_ATTRIBUTE;
989 
991 typedef void (*WGPUCallback)(void * userdata) WGPU_FUNCTION_ATTRIBUTE;
992 typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
993 typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
994 typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
995 typedef size_t (*WGPUDawnLoadCacheDataFunction)(void const * key, size_t keySize, void * value, size_t valueSize, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
996 typedef void (*WGPUDawnStoreCacheDataFunction)(void const * key, size_t keySize, void const * value, size_t valueSize, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
997 typedef void (*WGPUDeviceLostCallback)(WGPUDeviceLostReason reason, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
998 typedef void (*WGPUErrorCallback)(WGPUErrorType type, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
999 typedef void (*WGPULoggingCallback)(WGPULoggingType type, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
1002 typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
1003 typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
1004 
1005 typedef struct WGPUChainedStruct {
1006  struct WGPUChainedStruct const * next;
1009 
1010 typedef struct WGPUChainedStructOut {
1014 
1015 typedef struct WGPUAdapterProperties {
1018  char const * vendorName;
1019  char const * architecture;
1021  char const * name;
1022  char const * driverDescription;
1027 
1028 // Can be chained in WGPUAdapterProperties
1033 
1034 typedef struct WGPUBindGroupEntry {
1037  WGPU_NULLABLE WGPUBuffer buffer;
1040  WGPU_NULLABLE WGPUSampler sampler;
1041  WGPU_NULLABLE WGPUTextureView textureView;
1043 
1044 typedef struct WGPUBlendComponent {
1049 
1050 typedef struct WGPUBufferBindingLayout {
1056 
1057 typedef 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 
1080 typedef 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 
1097 typedef struct WGPUCompilationMessage {
1099  WGPU_NULLABLE char const * message;
1109 
1111  WGPUQuerySet querySet;
1115 
1116 typedef 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
1149 typedef struct WGPUDawnWGSLBlocklist {
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
1231 typedef struct WGPUDawnWireWGSLControl {
1237 
1238 // Can be chained in WGPUDepthStencilState
1243 
1244 typedef struct WGPUExtent2D {
1248 
1249 typedef struct WGPUExtent3D {
1254 
1255 // Can be chained in WGPUBindGroupEntry
1258  WGPUExternalTexture externalTexture;
1260 
1261 // Can be chained in WGPUBindGroupLayoutEntry
1265 
1266 typedef struct WGPUFuture {
1269 
1270 typedef struct WGPUInstanceFeatures {
1275 
1276 typedef struct WGPULimits {
1310 
1311 typedef struct WGPUMemoryHeapInfo {
1312  WGPUHeapPropertyFlags properties;
1315 
1316 typedef struct WGPUMultisampleState {
1322 
1323 typedef struct WGPUOrigin2D {
1327 
1328 typedef struct WGPUOrigin3D {
1333 
1336  WGPU_NULLABLE char const * label;
1338  WGPUBindGroupLayout const * bindGroupLayouts;
1340 
1346 
1347 // Can be chained in WGPUPrimitiveState
1352 
1353 typedef struct WGPUPrimitiveState {
1360 
1361 typedef struct WGPUQuerySetDescriptor {
1363  WGPU_NULLABLE char const * label;
1367 
1368 typedef 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 
1448 typedef struct WGPUSamplerDescriptor {
1450  WGPU_NULLABLE char const * label;
1462 
1463 // Can be chained in WGPUShaderModuleDescriptor
1467  uint32_t const * code;
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
1496  void * sharedEvent;
1498 
1499 // Can be chained in WGPUSharedFenceExportInfo
1502  void * sharedEvent;
1504 
1507  WGPU_NULLABLE char const * label;
1509 
1514 
1515 // Can be chained in WGPUSharedFenceDescriptor
1518  int handle;
1520 
1521 // Can be chained in WGPUSharedFenceExportInfo
1524  int handle;
1526 
1527 // Can be chained in WGPUSharedFenceDescriptor
1530  int handle;
1532 
1533 // Can be chained in WGPUSharedFenceExportInfo
1536  int handle;
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
1566  void * ioSurface;
1568 
1569 // Can be chained in WGPUSharedTextureMemoryDescriptor
1572  void * handle;
1574 
1579  size_t fenceCount;
1580  WGPUSharedFence const * fences;
1583 
1586  WGPU_NULLABLE char const * label;
1588 
1590  int fd;
1594 
1598  size_t fenceCount;
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 
1640 typedef struct WGPUStencilFaceState {
1646 
1653 
1654 typedef struct WGPUSurfaceDescriptor {
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
1687  void * hinstance;
1688  void * hwnd;
1690 
1691 // Can be chained in WGPUSurfaceDescriptor
1694  void * coreWindow;
1696 
1697 // Can be chained in WGPUSurfaceDescriptor
1702 
1703 // Can be chained in WGPUSurfaceDescriptor
1706  void * display;
1709 
1710 typedef struct WGPUSwapChainDescriptor {
1712  WGPU_NULLABLE char const * label;
1713  WGPUTextureUsageFlags usage;
1719 
1726 
1727 // Can be chained in WGPUTextureDescriptor
1732 
1733 typedef struct WGPUTextureDataLayout {
1739 
1742  WGPU_NULLABLE char const * label;
1751 
1752 typedef struct WGPUVertexAttribute {
1757 
1758 // Can be chained in WGPUAdapterProperties
1761  size_t heapCount;
1764 
1765 typedef struct WGPUBindGroupDescriptor {
1767  WGPU_NULLABLE char const * label;
1768  WGPUBindGroupLayout layout;
1769  size_t entryCount;
1772 
1776  WGPUShaderStageFlags visibility;
1782 
1783 typedef struct WGPUBlendState {
1787 
1788 typedef struct WGPUCompilationInfo {
1793 
1796  WGPU_NULLABLE char const * label;
1799 
1800 typedef struct WGPUDepthStencilState {
1813 
1816  WGPU_NULLABLE char const * label;
1817  WGPUTextureView plane0;
1818  WGPU_NULLABLE WGPUTextureView plane1;
1825  float const * gamutConversionMatrix;
1830 
1831 typedef struct WGPUFutureWaitInfo {
1835 
1836 typedef struct WGPUImageCopyBuffer {
1839  WGPUBuffer buffer;
1841 
1844  WGPUExternalTexture externalTexture;
1848 
1849 typedef struct WGPUImageCopyTexture {
1851  WGPUTexture texture;
1856 
1857 typedef struct WGPUInstanceDescriptor {
1861 
1862 // Can be chained in WGPUPipelineLayoutDescriptor
1869 
1872  WGPUShaderModule module;
1877 
1880  WGPU_NULLABLE WGPUTextureView view;
1882  WGPU_NULLABLE WGPUTextureView resolveTarget;
1887 
1891  WGPUTextureView storage;
1896 
1897 typedef struct WGPURequiredLimits {
1901 
1902 // Can be chained in WGPUSharedTextureMemoryDescriptor
1908  size_t planeCount;
1911 
1914  WGPUTextureUsageFlags usage;
1918 
1919 // Can be chained in WGPUSharedTextureMemoryDescriptor
1926 
1927 typedef struct WGPUSupportedLimits {
1931 
1932 typedef struct WGPUTextureDescriptor {
1934  WGPU_NULLABLE char const * label;
1935  WGPUTextureUsageFlags usage;
1944 
1945 typedef struct WGPUVertexBufferLayout {
1951 
1954  WGPU_NULLABLE char const * label;
1955  size_t entryCount;
1958 
1959 typedef struct WGPUColorTargetState {
1963  WGPUColorWriteMaskFlags writeMask;
1965 
1968  WGPU_NULLABLE char const * label;
1969  WGPU_NULLABLE WGPUPipelineLayout layout;
1972 
1973 typedef struct WGPUDeviceDescriptor {
1975  WGPU_NULLABLE char const * label;
1983 
1986  WGPU_NULLABLE char const * label;
1993 
1994 // Can be chained in WGPURenderPassDescriptor
2001 
2002 typedef struct WGPUVertexState {
2004  WGPUShaderModule module;
2008  size_t bufferCount;
2011 
2012 typedef struct WGPUFragmentState {
2014  WGPUShaderModule module;
2018  size_t targetCount;
2021 
2024  WGPU_NULLABLE char const * label;
2025  WGPU_NULLABLE WGPUPipelineLayout layout;
2032 
2033 #ifdef __cplusplus
2034 extern "C" {
2035 #endif
2036 
2037 #if !defined(WGPU_SKIP_PROCS)
2038 
2041 typedef WGPUInstance (*WGPUProcCreateInstance)(WGPUInstanceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2043 typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUDevice device, char const * procName) WGPU_FUNCTION_ATTRIBUTE;
2045 
2046 // Procs of Adapter
2047 typedef WGPUDevice (*WGPUProcAdapterCreateDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2049 typedef WGPUInstance (*WGPUProcAdapterGetInstance)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2051 typedef void (*WGPUProcAdapterGetProperties)(WGPUAdapter adapter, WGPUAdapterProperties * properties) WGPU_FUNCTION_ATTRIBUTE;
2053 typedef void (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2055 typedef void (*WGPUProcAdapterReference)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2056 typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2057 
2058 // Procs of BindGroup
2059 typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2060 typedef void (*WGPUProcBindGroupReference)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
2061 typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
2062 
2063 // Procs of BindGroupLayout
2064 typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2065 typedef void (*WGPUProcBindGroupLayoutReference)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2066 typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2067 
2068 // Procs of Buffer
2069 typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2070 typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2072 typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2074 typedef WGPUBufferUsageFlags (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2075 typedef void (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2076 typedef WGPUFuture (*WGPUProcBufferMapAsyncF)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
2077 typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2078 typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2079 typedef void (*WGPUProcBufferReference)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2080 typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2081 
2082 // Procs of CommandBuffer
2083 typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2084 typedef void (*WGPUProcCommandBufferReference)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
2085 typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
2086 
2087 // Procs of CommandEncoder
2088 typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2089 typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2090 typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2091 typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2092 typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2093 typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyBuffer const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2094 typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2095 typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2096 typedef void (*WGPUProcCommandEncoderInjectValidationError)(WGPUCommandEncoder commandEncoder, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2097 typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2098 typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2099 typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2100 typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
2101 typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2102 typedef void (*WGPUProcCommandEncoderWriteBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const * data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2103 typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2104 typedef void (*WGPUProcCommandEncoderReference)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2105 typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2106 
2107 // Procs of ComputePassEncoder
2108 typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
2109 typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2110 typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2111 typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2112 typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2113 typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2114 typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2115 typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2116 typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2117 typedef void (*WGPUProcComputePassEncoderWriteTimestamp)(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2118 typedef void (*WGPUProcComputePassEncoderReference)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2119 typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2120 
2121 // Procs of ComputePipeline
2122 typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2123 typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2124 typedef void (*WGPUProcComputePipelineReference)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2125 typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2126 
2127 // Procs of Device
2128 typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2129 typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2130 typedef WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2131 typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2132 typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2135 typedef WGPUBuffer (*WGPUProcDeviceCreateErrorBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2136 typedef WGPUExternalTexture (*WGPUProcDeviceCreateErrorExternalTexture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2137 typedef WGPUShaderModule (*WGPUProcDeviceCreateErrorShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor, char const * errorMessage) WGPU_FUNCTION_ATTRIBUTE;
2138 typedef WGPUTexture (*WGPUProcDeviceCreateErrorTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2139 typedef WGPUExternalTexture (*WGPUProcDeviceCreateExternalTexture)(WGPUDevice device, WGPUExternalTextureDescriptor const * externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE;
2140 typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2141 typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2142 typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2143 typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2144 typedef void (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2146 typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2147 typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2148 typedef WGPUSwapChain (*WGPUProcDeviceCreateSwapChain)(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2149 typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2150 typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2152 typedef void (*WGPUProcDeviceForceLoss)(WGPUDevice device, WGPUDeviceLostReason type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2153 typedef WGPUAdapter (*WGPUProcDeviceGetAdapter)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2155 typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2156 typedef WGPUTextureUsageFlags (*WGPUProcDeviceGetSupportedSurfaceUsage)(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2158 typedef WGPUSharedFence (*WGPUProcDeviceImportSharedFence)(WGPUDevice device, WGPUSharedFenceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2159 typedef WGPUSharedTextureMemory (*WGPUProcDeviceImportSharedTextureMemory)(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2160 typedef void (*WGPUProcDeviceInjectError)(WGPUDevice device, WGPUErrorType type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2161 typedef void (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2162 typedef void (*WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE;
2163 typedef void (*WGPUProcDeviceSetDeviceLostCallback)(WGPUDevice device, WGPUDeviceLostCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2164 typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2165 typedef void (*WGPUProcDeviceSetLoggingCallback)(WGPUDevice device, WGPULoggingCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2166 typedef void (*WGPUProcDeviceSetUncapturedErrorCallback)(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2167 typedef void (*WGPUProcDeviceTick)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2168 typedef void (*WGPUProcDeviceValidateTextureDescriptor)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2169 typedef void (*WGPUProcDeviceReference)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2170 typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2171 
2172 // Procs of ExternalTexture
2173 typedef void (*WGPUProcExternalTextureDestroy)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2174 typedef void (*WGPUProcExternalTextureExpire)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2175 typedef void (*WGPUProcExternalTextureRefresh)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2176 typedef void (*WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2177 typedef void (*WGPUProcExternalTextureReference)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2178 typedef void (*WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2179 
2180 // Procs of Instance
2181 typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2184 typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2185 typedef void (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2187 typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
2188 typedef void (*WGPUProcInstanceReference)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2189 typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2190 
2191 // Procs of PipelineLayout
2192 typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2193 typedef void (*WGPUProcPipelineLayoutReference)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2194 typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2195 
2196 // Procs of QuerySet
2197 typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2200 typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2201 typedef void (*WGPUProcQuerySetReference)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2202 typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2203 
2204 // Procs of Queue
2205 typedef void (*WGPUProcQueueCopyExternalTextureForBrowser)(WGPUQueue queue, WGPUImageCopyExternalTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize, WGPUCopyTextureForBrowserOptions const * options) WGPU_FUNCTION_ATTRIBUTE;
2206 typedef void (*WGPUProcQueueCopyTextureForBrowser)(WGPUQueue queue, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize, WGPUCopyTextureForBrowserOptions const * options) WGPU_FUNCTION_ATTRIBUTE;
2207 typedef void (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2209 typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2210 typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
2211 typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2212 typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUImageCopyTexture const * destination, void const * data, size_t dataSize, WGPUTextureDataLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
2213 typedef void (*WGPUProcQueueReference)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
2214 typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
2215 
2216 // Procs of RenderBundle
2217 typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2218 typedef void (*WGPUProcRenderBundleReference)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
2219 typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
2220 
2221 // Procs of RenderBundleEncoder
2222 typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2223 typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2224 typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2225 typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2226 typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2227 typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2228 typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2229 typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2230 typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2231 typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2232 typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2233 typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2234 typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2235 typedef void (*WGPUProcRenderBundleEncoderReference)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2236 typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2237 
2238 // Procs of RenderPassEncoder
2239 typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2240 typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2241 typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2242 typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2243 typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2244 typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2245 typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2246 typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
2247 typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2248 typedef void (*WGPUProcRenderPassEncoderPixelLocalStorageBarrier)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2249 typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2250 typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2251 typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2252 typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
2253 typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2254 typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2255 typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2256 typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
2257 typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
2258 typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2259 typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
2260 typedef void (*WGPUProcRenderPassEncoderWriteTimestamp)(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2261 typedef void (*WGPUProcRenderPassEncoderReference)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2262 typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2263 
2264 // Procs of RenderPipeline
2265 typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2266 typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2267 typedef void (*WGPUProcRenderPipelineReference)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2268 typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2269 
2270 // Procs of Sampler
2271 typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2272 typedef void (*WGPUProcSamplerReference)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
2273 typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
2274 
2275 // Procs of ShaderModule
2276 typedef void (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2277 typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2278 typedef void (*WGPUProcShaderModuleReference)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
2279 typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
2280 
2281 // Procs of SharedFence
2282 typedef void (*WGPUProcSharedFenceExportInfo)(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo * info) WGPU_FUNCTION_ATTRIBUTE;
2283 typedef void (*WGPUProcSharedFenceReference)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
2284 typedef void (*WGPUProcSharedFenceRelease)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
2285 
2286 // Procs of SharedTextureMemory
2287 typedef WGPUBool (*WGPUProcSharedTextureMemoryBeginAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2288 typedef WGPUTexture (*WGPUProcSharedTextureMemoryCreateTexture)(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2289 typedef WGPUBool (*WGPUProcSharedTextureMemoryEndAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2290 typedef void (*WGPUProcSharedTextureMemoryGetProperties)(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties * properties) WGPU_FUNCTION_ATTRIBUTE;
2291 typedef WGPUBool (*WGPUProcSharedTextureMemoryIsDeviceLost)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2292 typedef void (*WGPUProcSharedTextureMemorySetLabel)(WGPUSharedTextureMemory sharedTextureMemory, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2293 typedef void (*WGPUProcSharedTextureMemoryReference)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2294 typedef void (*WGPUProcSharedTextureMemoryRelease)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2295 
2296 // Procs of Surface
2297 typedef WGPUTextureFormat (*WGPUProcSurfaceGetPreferredFormat)(WGPUSurface surface, WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2298 typedef void (*WGPUProcSurfaceReference)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2299 typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2300 
2301 // Procs of SwapChain
2302 typedef WGPUTexture (*WGPUProcSwapChainGetCurrentTexture)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2303 typedef WGPUTextureView (*WGPUProcSwapChainGetCurrentTextureView)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2304 typedef void (*WGPUProcSwapChainPresent)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2305 typedef void (*WGPUProcSwapChainReference)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2306 typedef void (*WGPUProcSwapChainRelease)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2307 
2308 // Procs of Texture
2309 typedef WGPUTextureView (*WGPUProcTextureCreateErrorView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2310 typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2311 typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2318 typedef WGPUTextureUsageFlags (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2320 typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2321 typedef void (*WGPUProcTextureReference)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2322 typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2323 
2324 // Procs of TextureView
2325 typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2326 typedef void (*WGPUProcTextureViewReference)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
2327 typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
2328 
2329 
2330 #endif // !defined(WGPU_SKIP_PROCS)
2331 
2332 #if !defined(WGPU_SKIP_DECLARATIONS)
2333 
2338 WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPU_NULLABLE WGPUDevice device, char const * procName) WGPU_FUNCTION_ATTRIBUTE;
2340 
2341 // Methods of Adapter
2342 WGPU_EXPORT WGPUDevice wgpuAdapterCreateDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2344 WGPU_EXPORT WGPUInstance wgpuAdapterGetInstance(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2348 WGPU_EXPORT void wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2350 WGPU_EXPORT void wgpuAdapterReference(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2351 WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2352 
2353 // Methods of BindGroup
2354 WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2355 WGPU_EXPORT void wgpuBindGroupReference(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
2356 WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
2357 
2358 // Methods of BindGroupLayout
2359 WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2360 WGPU_EXPORT void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2361 WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2362 
2363 // Methods of Buffer
2364 WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2365 WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2367 WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2369 WGPU_EXPORT WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2370 WGPU_EXPORT void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2371 WGPU_EXPORT WGPUFuture wgpuBufferMapAsyncF(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
2372 WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2373 WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2375 WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2376 
2377 // Methods of CommandBuffer
2378 WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2379 WGPU_EXPORT void wgpuCommandBufferReference(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
2380 WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
2381 
2382 // Methods of CommandEncoder
2383 WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2384 WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2385 WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2386 WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2387 WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2388 WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyBuffer const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2389 WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2390 WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2391 WGPU_EXPORT void wgpuCommandEncoderInjectValidationError(WGPUCommandEncoder commandEncoder, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2392 WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2393 WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2394 WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2395 WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
2396 WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2397 WGPU_EXPORT void wgpuCommandEncoderWriteBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const * data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2398 WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2399 WGPU_EXPORT void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2400 WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2401 
2402 // Methods of ComputePassEncoder
2403 WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
2404 WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2405 WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2406 WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2407 WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2408 WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2409 WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2410 WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2411 WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2412 WGPU_EXPORT void wgpuComputePassEncoderWriteTimestamp(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2413 WGPU_EXPORT void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2414 WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2415 
2416 // Methods of ComputePipeline
2417 WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2418 WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2419 WGPU_EXPORT void wgpuComputePipelineReference(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2420 WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2421 
2422 // Methods of Device
2423 WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2424 WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2425 WGPU_EXPORT WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2426 WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2427 WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2430 WGPU_EXPORT WGPUBuffer wgpuDeviceCreateErrorBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2431 WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateErrorExternalTexture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2432 WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateErrorShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor, char const * errorMessage) WGPU_FUNCTION_ATTRIBUTE;
2433 WGPU_EXPORT WGPUTexture wgpuDeviceCreateErrorTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2434 WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateExternalTexture(WGPUDevice device, WGPUExternalTextureDescriptor const * externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE;
2435 WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2436 WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2437 WGPU_EXPORT WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2438 WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2441 WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2442 WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2443 WGPU_EXPORT WGPUSwapChain wgpuDeviceCreateSwapChain(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2444 WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2445 WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2447 WGPU_EXPORT void wgpuDeviceForceLoss(WGPUDevice device, WGPUDeviceLostReason type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2448 WGPU_EXPORT WGPUAdapter wgpuDeviceGetAdapter(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2450 WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2451 WGPU_EXPORT WGPUTextureUsageFlags wgpuDeviceGetSupportedSurfaceUsage(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2453 WGPU_EXPORT WGPUSharedFence wgpuDeviceImportSharedFence(WGPUDevice device, WGPUSharedFenceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2454 WGPU_EXPORT WGPUSharedTextureMemory wgpuDeviceImportSharedTextureMemory(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2455 WGPU_EXPORT void wgpuDeviceInjectError(WGPUDevice device, WGPUErrorType type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2456 WGPU_EXPORT void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2458 WGPU_EXPORT void wgpuDeviceSetDeviceLostCallback(WGPUDevice device, WGPUDeviceLostCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2459 WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2460 WGPU_EXPORT void wgpuDeviceSetLoggingCallback(WGPUDevice device, WGPULoggingCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2461 WGPU_EXPORT void wgpuDeviceSetUncapturedErrorCallback(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2462 WGPU_EXPORT void wgpuDeviceTick(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2465 WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2466 
2467 // Methods of ExternalTexture
2468 WGPU_EXPORT void wgpuExternalTextureDestroy(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2469 WGPU_EXPORT void wgpuExternalTextureExpire(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2470 WGPU_EXPORT void wgpuExternalTextureRefresh(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2471 WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2472 WGPU_EXPORT void wgpuExternalTextureReference(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2473 WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2474 
2475 // Methods of Instance
2476 WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2480 WGPU_EXPORT void wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2482 WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
2483 WGPU_EXPORT void wgpuInstanceReference(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2484 WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2485 
2486 // Methods of PipelineLayout
2487 WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2488 WGPU_EXPORT void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2489 WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2490 
2491 // Methods of QuerySet
2492 WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2495 WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2496 WGPU_EXPORT void wgpuQuerySetReference(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2497 WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2498 
2499 // Methods of Queue
2501 WGPU_EXPORT void wgpuQueueCopyTextureForBrowser(WGPUQueue queue, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize, WGPUCopyTextureForBrowserOptions const * options) WGPU_FUNCTION_ATTRIBUTE;
2502 WGPU_EXPORT void wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2504 WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2505 WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
2506 WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2507 WGPU_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
2512 WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2513 WGPU_EXPORT void wgpuRenderBundleReference(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
2514 WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
2515 
2516 // Methods of RenderBundleEncoder
2517 WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2518 WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2519 WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2520 WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2521 WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2522 WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2523 WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2524 WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2525 WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2526 WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2527 WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2528 WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2529 WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2530 WGPU_EXPORT void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2531 WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2532 
2533 // Methods of RenderPassEncoder
2534 WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2535 WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2536 WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2537 WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2538 WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2539 WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2540 WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2541 WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
2542 WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2543 WGPU_EXPORT void wgpuRenderPassEncoderPixelLocalStorageBarrier(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2544 WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2545 WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2546 WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2547 WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
2548 WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2549 WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2550 WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2551 WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
2552 WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
2553 WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2554 WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
2555 WGPU_EXPORT void wgpuRenderPassEncoderWriteTimestamp(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2556 WGPU_EXPORT void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2557 WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2558 
2559 // Methods of RenderPipeline
2560 WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2561 WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2562 WGPU_EXPORT void wgpuRenderPipelineReference(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2563 WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2564 
2565 // Methods of Sampler
2566 WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2567 WGPU_EXPORT void wgpuSamplerReference(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
2568 WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
2569 
2570 // Methods of ShaderModule
2571 WGPU_EXPORT void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2572 WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2573 WGPU_EXPORT void wgpuShaderModuleReference(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
2574 WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
2575 
2576 // Methods of SharedFence
2578 WGPU_EXPORT void wgpuSharedFenceReference(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
2579 WGPU_EXPORT void wgpuSharedFenceRelease(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
2580 
2581 // Methods of SharedTextureMemory
2582 WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryBeginAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2583 WGPU_EXPORT WGPUTexture wgpuSharedTextureMemoryCreateTexture(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2584 WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryEndAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2585 WGPU_EXPORT void wgpuSharedTextureMemoryGetProperties(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties * properties) WGPU_FUNCTION_ATTRIBUTE;
2586 WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryIsDeviceLost(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2587 WGPU_EXPORT void wgpuSharedTextureMemorySetLabel(WGPUSharedTextureMemory sharedTextureMemory, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2588 WGPU_EXPORT void wgpuSharedTextureMemoryReference(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2589 WGPU_EXPORT void wgpuSharedTextureMemoryRelease(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2590 
2591 // Methods of Surface
2593 WGPU_EXPORT void wgpuSurfaceReference(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2594 WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2595 
2596 // Methods of SwapChain
2597 WGPU_EXPORT WGPUTexture wgpuSwapChainGetCurrentTexture(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2598 WGPU_EXPORT WGPUTextureView wgpuSwapChainGetCurrentTextureView(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2599 WGPU_EXPORT void wgpuSwapChainPresent(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2600 WGPU_EXPORT void wgpuSwapChainReference(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2601 WGPU_EXPORT void wgpuSwapChainRelease(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2602 
2603 // Methods of Texture
2604 WGPU_EXPORT WGPUTextureView wgpuTextureCreateErrorView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2605 WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2606 WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2613 WGPU_EXPORT WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2615 WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2616 WGPU_EXPORT void wgpuTextureReference(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2617 WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2618 
2619 // Methods of TextureView
2620 WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2621 WGPU_EXPORT void wgpuTextureViewReference(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
2622 WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) 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_
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
WGPUCompareFunction compare
Definition: mini_webgpu.h:1641
WGPUMapMode
Definition: mini_webgpu.h:960
void(* WGPUProcRenderPassEncoderReference)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2261
void(* WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2092
WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, char const *label) WGPU_FUNCTION_ATTRIBUTE
uint32_t WGPUFlags
Definition: mini_webgpu.h:86
WGPU_EXPORT void wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQuerySetReference(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPUCommandBuffer(* WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2095
WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureView(* WGPUProcTextureCreateErrorView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2309
void(* WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2056
uint64_t(* WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2073
void(* WGPUProcQueueReference)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2213
WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1960
WGPUSamplerBindingType
Definition: mini_webgpu.h:673
void(* WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2185
WGPUTextureFormat format
Definition: mini_webgpu.h:1743
WGPU_NULLABLE WGPUSampler sampler
Definition: mini_webgpu.h:1040
uint32_t binding
Definition: mini_webgpu.h:1036
WGPU_NULLABLE float const * conversionMatrix
Definition: mini_webgpu.h:1128
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 wgpuSharedTextureMemoryRelease(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
WGPUPrimitiveTopology
Definition: mini_webgpu.h:564
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1142
#define WGPU_STRUCTURE_ATTRIBUTE
Definition: mini_webgpu.h:63
WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPURenderPassEncoder(* WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2089
WGPU_EXPORT WGPUInstance wgpuAdapterGetInstance(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1507
struct WGPUChainedStruct const * next
Definition: mini_webgpu.h:1006
uint32_t maxComputeWorkgroupStorageSize
Definition: mini_webgpu.h:1303
WGPUTextureUsageFlags usage
Definition: mini_webgpu.h:1935
float const * dstTransferFunctionParameters
Definition: mini_webgpu.h:1824
WGPUStorageTextureAccess access
Definition: mini_webgpu.h:1649
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1655
WGPUInstance(* WGPUProcCreateInstance)(WGPUInstanceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2041
void(* WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2111
WGPUDawnStoreCacheDataFunction storeDataFunction
Definition: mini_webgpu.h:1172
WGPUFilterMode minFilter
Definition: mini_webgpu.h:1455
uint64_t offset
Definition: mini_webgpu.h:1038
WGPU_EXPORT WGPUBool wgpuDeviceGetLimits(WGPUDevice device, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
WGPUSType
Definition: mini_webgpu.h:606
WGPUAdapterType adapterType
Definition: mini_webgpu.h:1023
WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceReference)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2169
WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuAdapterPropertiesFreeMembers(WGPUAdapterProperties value) 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
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1795
uint32_t maxUniformBuffersPerShaderStage
Definition: mini_webgpu.h:1290
WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1773
uint32_t maxStorageTexturesPerShaderStage
Definition: mini_webgpu.h:1289
void(* WGPUProcSwapChainRelease)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2306
WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
WGPUCompilationMessageType type
Definition: mini_webgpu.h:1100
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1586
WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxSamplersPerShaderStage
Definition: mini_webgpu.h:1287
void(* WGPUProcQuerySetReference)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2201
WGPU_EXPORT WGPUTextureFormat wgpuSurfaceGetPreferredFormat(WGPUSurface surface, WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2242
WGPUVertexAttribute const * attributes
Definition: mini_webgpu.h:1949
WGPUFilterMode
Definition: mini_webgpu.h:507
uint32_t height
Definition: mini_webgpu.h:1251
WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureFormat(* WGPUProcSurfaceGetPreferredFormat)(WGPUSurface surface, WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2297
WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureRefresh(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPUBlendOperation
Definition: mini_webgpu.h:327
WGPU_EXPORT void wgpuSharedTextureMemoryGetProperties(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties *properties) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1953
WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1712
void(* WGPUProcDeviceSetLabel)(WGPUDevice device, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2164
WGPUQueueWorkDoneStatus
Definition: mini_webgpu.h:580
struct WGPUChainedStructOut * next
Definition: mini_webgpu.h:1011
WGPUBlendFactor
Definition: mini_webgpu.h:305
WGPUExternalTextureRotation
Definition: mini_webgpu.h:444
WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxSampledTexturesPerShaderStage
Definition: mini_webgpu.h:1286
WGPUBlendFactor srcFactor
Definition: mini_webgpu.h:1046
void(* WGPUProcCommandEncoderReference)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2104
uint32_t(* WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2319
WGPU_EXPORT void wgpuDeviceSetUncapturedErrorCallback(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1843
WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxComputeWorkgroupSizeZ
Definition: mini_webgpu.h:1307
const char *const * blocklistedFeatures
Definition: mini_webgpu.h:1152
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1369
WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE
WGPURenderBundleEncoder(* WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2142
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1789
WGPUSharedFenceType
Definition: mini_webgpu.h:681
WGPU_EXPORT WGPUTexture wgpuDeviceCreateErrorTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
float const * gamutConversionMatrix
Definition: mini_webgpu.h:1825
WGPU_EXPORT void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct chain
Definition: mini_webgpu.h:1257
void(* WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2276
WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT size_t wgpuDeviceEnumerateFeatures(WGPUDevice device, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxInterStageShaderVariables
Definition: mini_webgpu.h:1300
WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferMapAsyncStatus
Definition: mini_webgpu.h:345
WGPU_NULLABLE WGPUPipelineLayout layout
Definition: mini_webgpu.h:1969
void(* WGPUProcBufferSetLabel)(WGPUBuffer buffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2077
void(* WGPUProcCommandBufferReference)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2084
WGPUQuerySet(* WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2141
WGPUColorWriteMask
Definition: mini_webgpu.h:938
void(* WGPUProcRenderPassEncoderWriteTimestamp)(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2260
WGPUSurface(* WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2181
WGPU_EXPORT WGPUFuture wgpuDeviceCreateRenderPipelineAsyncF(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBufferReference(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPUTexture(* WGPUProcSharedTextureMemoryCreateTexture)(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2288
uint32_t y
Definition: mini_webgpu.h:1325
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1478
WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE
WGPUCompilationMessage const * messages
Definition: mini_webgpu.h:1791
WGPU_NULLABLE WGPUPipelineLayout layout
Definition: mini_webgpu.h:2025
void(* WGPUProcRenderPassEncoderPixelLocalStorageBarrier)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2248
WGPUTextureDataLayout layout
Definition: mini_webgpu.h:1838
WGPUCullMode cullMode
Definition: mini_webgpu.h:1358
WGPU_EXPORT void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1985
WGPU_NULLABLE float const * srcTransferFunctionParameters
Definition: mini_webgpu.h:1127
WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPUMipmapFilterMode mipmapFilter
Definition: mini_webgpu.h:1456
WGPUBindGroupLayout const * bindGroupLayouts
Definition: mini_webgpu.h:1338
WGPUVertexFormat
Definition: mini_webgpu.h:868
WGPUProgrammableStageDescriptor compute
Definition: mini_webgpu.h:1970
WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUBlendComponent color
Definition: mini_webgpu.h:1784
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:994
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:2023
WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE WGPUBlendState const * blend
Definition: mini_webgpu.h:1962
uint64_t id
Definition: mini_webgpu.h:1267
void(* WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2125
WGPUHeapPropertyFlags properties
Definition: mini_webgpu.h:1312
WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2249
WGPUCallbackMode
Definition: mini_webgpu.h:366
WGPURenderPassColorAttachment const * colorAttachments
Definition: mini_webgpu.h:1988
void(* WGPUProcBufferReference)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2079
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1967
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1928
WGPUBool(* WGPUProcSharedTextureMemoryIsDeviceLost)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2291
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateErrorShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor, char const *errorMessage) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1796
WGPU_EXPORT void wgpuSharedTextureMemoryEndAccessStateFreeMembers(WGPUSharedTextureMemoryEndAccessState value) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUDevice wgpuAdapterCreateDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedFenceExportInfo(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo *info) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2207
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1954
void(* WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2112
WGPU_EXPORT void wgpuRenderPassEncoderWriteTimestamp(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPUSamplerBindingType type
Definition: mini_webgpu.h:1445
WGPUBool(* WGPUProcDeviceGetLimits)(WGPUDevice device, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2154
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1386
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1094
WGPUComputePipeline(* WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2132
WGPU_EXPORT WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPULoggingCallback)(WGPULoggingType type, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:999
void(* WGPUProcSwapChainPresent)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2304
void(* WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2233
WGPUChainedStruct chain
Definition: mini_webgpu.h:1232
WGPU_EXPORT void wgpuCommandEncoderWriteBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const *data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedFenceRelease(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2110
#define WGPU_NULLABLE
Definition: mini_webgpu.h:69
WGPUHeapProperty
Definition: mini_webgpu.h:949
WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateExternalTexture(WGPUDevice device, WGPUExternalTextureDescriptor const *externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE WGPUTextureView view
Definition: mini_webgpu.h:1880
WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPUVertexFormat format
Definition: mini_webgpu.h:1753
WGPU_EXPORT WGPUTextureUsageFlags wgpuDeviceGetSupportedSurfaceUsage(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderInjectValidationError)(WGPUCommandEncoder commandEncoder, char const *message) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2096
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1898
WGPUAdapterType
Definition: mini_webgpu.h:269
double r
Definition: mini_webgpu.h:1081
void(* WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2066
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1858
WGPU_EXPORT WGPUFuture wgpuBufferMapAsyncF(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueCopyExternalTextureForBrowser(WGPUQueue queue, WGPUImageCopyExternalTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxTextureDimension1D
Definition: mini_webgpu.h:1277
void(* WGPUProcBindGroupLayoutReference)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2065
WGPU_EXPORT void wgpuTextureReference(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUBindGroupEntry const * entries
Definition: mini_webgpu.h:1770
WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPUWaitStatus(* WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2187
WGPURenderPipeline(* WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2143
void(* WGPUProcComputePipelineReference)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2124
WGPU_EXPORT size_t wgpuAdapterEnumerateFeatures(WGPUAdapter adapter, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2322
WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferMapCallback callback
Definition: mini_webgpu.h:1076
void(* WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2075
WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_EXPORT
Definition: mini_webgpu.h:53
void(* WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2277
WGPUStoreOp
Definition: mini_webgpu.h:712
void(* WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2273
WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxColorAttachments
Definition: mini_webgpu.h:1301
void(* WGPUProcSharedTextureMemoryGetProperties)(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties *properties) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2290
void(* WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2144
WGPUPipelineLayout(* WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2140
WGPUSamplerBindingLayout sampler
Definition: mini_webgpu.h:1778
void(* WGPUProcSharedFenceRelease)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2284
WGPUConstantEntry const * constants
Definition: mini_webgpu.h:2007
WGPU_EXPORT void wgpuAdapterReference(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE
WGPUStorageTextureAccess
Definition: mini_webgpu.h:704
WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1934
WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxDynamicUniformBuffersPerPipelineLayout
Definition: mini_webgpu.h:1284
WGPU_EXPORT void wgpuRenderPipelineReference(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:2024
WGPUCompilationInfoRequestStatus
Definition: mini_webgpu.h:386
WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1002
WGPUTextureViewDimension viewDimension
Definition: mini_webgpu.h:1651
WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2105
WGPUFuture(* WGPUProcInstanceRequestAdapterF)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2186
WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, char const *label) WGPU_FUNCTION_ATTRIBUTE
unsigned __INT8_TYPE__ uint8_t
WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcPipelineLayoutReference)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2193
WGPUMultisampleState multisample
Definition: mini_webgpu.h:2029
WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyBuffer const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2093
void(* WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2266
WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPUComputePassEncoder(* WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2088
void(* WGPUProcRenderPipelineReference)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2267
WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
uint32_t y
Definition: mini_webgpu.h:1330
WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE
WGPUCompareFunction depthCompare
Definition: mini_webgpu.h:1804
WGPU_EXPORT void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxTextureArrayLayers
Definition: mini_webgpu.h:1280
void(* WGPUProcExternalTextureExpire)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2174
void(* WGPUProcExternalTextureDestroy)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2173
WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1850
WGPUSharedFenceType type
Definition: mini_webgpu.h:1512
WGPU_EXPORT void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1734
WGPUBindGroup(* WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2128
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1449
void(* WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2214
void(* WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2103
WGPU_NULLABLE WGPUTextureView textureView
Definition: mini_webgpu.h:1041
WGPUBufferMapState
Definition: mini_webgpu.h:359
WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedTextureMemoryRelease)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2294
WGPUBufferUsage
Definition: mini_webgpu.h:922
WGPUCompilationMessageType
Definition: mini_webgpu.h:395
WGPU_EXPORT void wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUErrorFilter
Definition: mini_webgpu.h:427
WGPUStorageTextureBindingLayout storageTexture
Definition: mini_webgpu.h:1780
WGPUSharedFence const * fences
Definition: mini_webgpu.h:1599
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1721
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
WGPUTexture(* WGPUProcSwapChainGetCurrentTexture)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2302
void(* WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2097
WGPUPipelineLayoutStorageAttachment const * storageAttachments
Definition: mini_webgpu.h:1867
void(* WGPUProcSharedTextureMemoryEndAccessStateFreeMembers)(WGPUSharedTextureMemoryEndAccessState value) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2044
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1363
uint32_t(* WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2315
WGPUErrorType
Definition: mini_webgpu.h:434
void(* WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2243
WGPUExternalTexture(* WGPUProcDeviceCreateExternalTexture)(WGPUDevice device, WGPUExternalTextureDescriptor const *externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2139
WGPUCreatePipelineAsyncStatus
Definition: mini_webgpu.h:402
WGPUChainedStructOut chain
Definition: mini_webgpu.h:1030
WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE float const * yuvToRgbConversionMatrix
Definition: mini_webgpu.h:1822
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPUExternalTexture externalTexture
Definition: mini_webgpu.h:1844
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1088
WGPUCreateRenderPipelineAsyncCallback callback
Definition: mini_webgpu.h:1144
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1837
WGPU_EXPORT void wgpuComputePipelineReference(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUBufferMapCallback)(WGPUBufferMapAsyncStatus status, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:990
WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2050
WGPUCompareFunction
Definition: mini_webgpu.h:373
WGPU_EXPORT WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferUsageFlags(* WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2074
WGPUPowerPreference
Definition: mini_webgpu.h:550
double b
Definition: mini_webgpu.h:1083
WGPU_EXPORT WGPUFuture wgpuAdapterRequestDeviceF(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *options, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1116
WGPUBufferBindingType
Definition: mini_webgpu.h:337
WGPU_EXPORT void wgpuExternalTextureExpire(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
char const * key
Definition: mini_webgpu.h:1118
WGPUBuffer(* WGPUProcDeviceCreateErrorBuffer)(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2135
uint32_t maxBindGroupsPlusVertexBuffers
Definition: mini_webgpu.h:1282
void(* WGPUProcInstanceReference)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2188
void(* WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2053
WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceForceLoss(WGPUDevice device, WGPUDeviceLostReason type, char const *message) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1317
WGPU_EXPORT void wgpuDeviceSetDeviceLostCallback(WGPUDevice device, WGPUDeviceLostCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2109
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
void(* WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2069
void(* WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2247
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1585
void(* WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2325
char const * architecture
Definition: mini_webgpu.h:1019
void(* WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2119
WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2115
WGPU_EXPORT size_t wgpuInstanceEnumerateWGSLLanguageFeatures(WGPUInstance instance, WGPUWGSLFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1342
WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1003
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1370
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1074
WGPUExternalTextureRotation rotation
Definition: mini_webgpu.h:1828
WGPUFrontFace frontFace
Definition: mini_webgpu.h:1357
WGPUBindGroupLayout(* WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2122
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1511
WGPU_NULLABLE WGPUSurface compatibleSurface
Definition: mini_webgpu.h:1429
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
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1450
WGPUAddressMode addressModeV
Definition: mini_webgpu.h:1452
void(* WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2202
void(* WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2254
WGPU_NULLABLE WGPURequiredLimits const * requiredLimits
Definition: mini_webgpu.h:1978
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1477
WGPUBindGroupLayout(* WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2265
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1381
void(* WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2170
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:2003
WGPUBool timedWaitAnyEnable
Definition: mini_webgpu.h:1272
WGPUFuture(* WGPUProcDeviceCreateRenderPipelineAsyncF)(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2145
uint32_t(* WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2312
void(* WGPUProcDeviceSetDeviceLostCallback)(WGPUDevice device, WGPUDeviceLostCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2163
void(* WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2200
WGPUChainedStruct chain
Definition: mini_webgpu.h:1150
void(* WGPUProcAdapterReference)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2055
WGPUDevice(* WGPUProcAdapterCreateDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2047
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:2013
void(* WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2061
WGPUPrimitiveTopology topology
Definition: mini_webgpu.h:1355
WGPUQueue(* WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2155
WGPU_EXPORT void wgpuSwapChainReference(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1035
void(* WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2236
WGPUCommandEncoder(* WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2131
WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1387
void(* WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2197
WGPUBool(* WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2183
void(* WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2090
WGPU_NULLABLE char const * message
Definition: mini_webgpu.h:1099
WGPU_EXPORT void wgpuTextureViewReference(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2228
void(* WGPUCallback)(void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:991
WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2246
char const * vendorName
Definition: mini_webgpu.h:1018
WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1335
void(* WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2229
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1001
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor) 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
WGPUMipmapFilterMode
Definition: mini_webgpu.h:543
void(* WGPUProcExternalTextureRefresh)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2175
WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1444
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1354
WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUPresentMode
Definition: mini_webgpu.h:557
WGPUStencilOperation failOp
Definition: mini_webgpu.h:1642
double a
Definition: mini_webgpu.h:1084
WGPUDawnLoadCacheDataFunction loadDataFunction
Definition: mini_webgpu.h:1171
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1135
WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2262
uint32_t maxVertexAttributes
Definition: mini_webgpu.h:1297
WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUColorTargetState const * targets
Definition: mini_webgpu.h:2019
WGPU_EXPORT void wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
uint32_t x
Definition: mini_webgpu.h:1329
WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryBeginAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleReference)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2218
WGPUTextureFormat format
Definition: mini_webgpu.h:1802
WGPUBuffer(* WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2130
WGPUMemoryHeapInfo const * heapInfo
Definition: mini_webgpu.h:1762
WGPUStencilOperation
Definition: mini_webgpu.h:691
WGPUBool(* WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2157
void(* WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2268
WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) 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
void(* WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2059
WGPUStencilFaceState stencilBack
Definition: mini_webgpu.h:1806
void(* WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2219
WGPUChainedStructOut chain
Definition: mini_webgpu.h:1760
void(* WGPUProcSharedFenceExportInfo)(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo *info) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2282
#define WGPU_ENUM_ATTRIBUTE
Definition: mini_webgpu.h:60
size_t constantCount
Definition: mini_webgpu.h:2006
WGPUInstanceFeatures features
Definition: mini_webgpu.h:1859
WGPUTextureFormat const * viewFormats
Definition: mini_webgpu.h:1942
void(* WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2123
uint32_t width
Definition: mini_webgpu.h:1245
WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor) 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
WGPUTextureDimension
Definition: mini_webgpu.h:730
WGPU_NULLABLE WGPUTextureView resolveTarget
Definition: mini_webgpu.h:1882
WGPU_EXPORT WGPUTextureView wgpuSwapChainGetCurrentTextureView(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedFenceReference)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2283
void(* WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2116
unsigned __INT32_TYPE__ uint32_t
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1421
WGPUTextureAspect
Definition: mini_webgpu.h:719
WGPUQueryType
Definition: mini_webgpu.h:574
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1968
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1051
void(* WGPUProcAdapterPropertiesMemoryHeapsFreeMembers)(WGPUAdapterPropertiesMemoryHeaps value) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2040
WGPUVertexBufferLayout const * buffers
Definition: mini_webgpu.h:2009
WGPU_EXPORT WGPUSharedTextureMemory wgpuDeviceImportSharedTextureMemory(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureUsage
Definition: mini_webgpu.h:977
WGPUFuture(* WGPUProcQueueOnSubmittedWorkDoneF)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2208
uint32_t maxStorageBuffersPerShaderStage
Definition: mini_webgpu.h:1288
WGPUFrontFace
Definition: mini_webgpu.h:514
uint32_t depthOrArrayLayers
Definition: mini_webgpu.h:1252
WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueSetLabel)(WGPUQueue queue, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2209
uint32_t maxTextureDimension2D
Definition: mini_webgpu.h:1278
WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateErrorExternalTexture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2227
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1766
void(* WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2257
void(* WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2085
void(* WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2189
WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryEndAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderReference)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2235
void(* WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2244
WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureView(* WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2310
WGPUTextureViewDimension viewDimension
Definition: mini_webgpu.h:1723
WGPUTextureFormat(* WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2314
WGPUInstance(* WGPUProcAdapterGetInstance)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2049
WGPUBindGroupLayout(* WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2129
WGPU_EXPORT void wgpuAdapterGetProperties(WGPUAdapter adapter, WGPUAdapterProperties *properties) WGPU_FUNCTION_ATTRIBUTE
WGPUBindGroupLayoutEntry const * entries
Definition: mini_webgpu.h:1956
WGPURequestDeviceStatus
Definition: mini_webgpu.h:598
WGPU_NULLABLE WGPUBuffer buffer
Definition: mini_webgpu.h:1037
WGPU_EXPORT void wgpuShaderModuleReference(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferBindingLayout buffer
Definition: mini_webgpu.h:1777
WGPUPrimitiveState primitive
Definition: mini_webgpu.h:2027
WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:992
WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
const char *const * enabledToggles
Definition: mini_webgpu.h:1225
void(* WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2064
void(* WGPUProcSharedTextureMemorySetLabel)(WGPUSharedTextureMemory sharedTextureMemory, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2292
WGPU_EXPORT WGPUFuture wgpuDeviceCreateComputePipelineAsyncF(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapterF(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPURequestAdapterStatus
Definition: mini_webgpu.h:589
WGPUFuture(* WGPUProcDeviceCreateComputePipelineAsyncF)(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2134
WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSwapChainRelease(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2217
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1741
void(* WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2113
void(* WGPUProcDeviceInjectError)(WGPUDevice device, WGPUErrorType type, char const *message) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2160
WGPU_EXPORT void wgpuExternalTextureReference(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPUStencilFaceState stencilFront
Definition: mini_webgpu.h:1805
WGPUCallbackMode mode
Definition: mini_webgpu.h:1075
void(* WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2253
WGPURenderBundle(* WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2226
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1816
WGPUBufferBindingType type
Definition: mini_webgpu.h:1052
WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1815
void(* WGPUProcQueueCopyTextureForBrowser)(WGPUQueue queue, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2206
WGPUWaitStatus
Definition: mini_webgpu.h:912
WGPUBackendType backendType
Definition: mini_webgpu.h:1024
void(* WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2311
WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE WGPUDepthStencilState const * depthStencil
Definition: mini_webgpu.h:2028
WGPU_NULLABLE WGPUComputePassTimestampWrites const * timestampWrites
Definition: mini_webgpu.h:1797
WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUSwapChain wgpuDeviceCreateSwapChain(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSamplerReference(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedTextureMemorySetLabel(WGPUSharedTextureMemory sharedTextureMemory, char const *label) WGPU_FUNCTION_ATTRIBUTE
uint64_t maxStorageBufferBindingSize
Definition: mini_webgpu.h:1292
WGPULoadOp
Definition: mini_webgpu.h:528
WGPU_NULLABLE WGPURenderPassTimestampWrites const * timestampWrites
Definition: mini_webgpu.h:1991
void(* WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2240
void(* WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2184
WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE
WGPURequestAdapterCallback callback
Definition: mini_webgpu.h:1423
WGPUDeviceLostReason
Definition: mini_webgpu.h:421
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 WGPUBool wgpuAdapterGetLimits(WGPUAdapter adapter, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxDynamicStorageBuffersPerPipelineLayout
Definition: mini_webgpu.h:1285
WGPU_EXPORT void wgpuDeviceSetLoggingCallback(WGPUDevice device, WGPULoggingCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderWriteTimestamp)(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2117
WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPUShaderStage
Definition: mini_webgpu.h:968
void(* WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2194
void(* WGPUProcExternalTextureReference)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2177
WGPUQueryType(* WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2199
WGPUProc(* WGPUProcGetProcAddress)(WGPUDevice device, char const *procName) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2043
uint32_t maxTextureDimension3D
Definition: mini_webgpu.h:1279
WGPUVertexStepMode
Definition: mini_webgpu.h:904
WGPUBackendType
Definition: mini_webgpu.h:292
WGPUTextureUsageFlags(* WGPUProcDeviceGetSupportedSurfaceUsage)(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2156
WGPUBlendComponent alpha
Definition: mini_webgpu.h:1785
WGPU_EXPORT void wgpuSwapChainPresent(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureSampleType
Definition: mini_webgpu.h:847
WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUFuture(* WGPUProcAdapterRequestDeviceF)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *options, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2054
WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1986
void(* WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2161
uint32_t WGPUBool
Definition: mini_webgpu.h:87
void(* WGPUProcSamplerSetLabel)(WGPUSampler sampler, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2271
uint32_t maxBindGroups
Definition: mini_webgpu.h:1281
WGPUShaderModule module
Definition: mini_webgpu.h:2014
WGPUBackendType backendType
Definition: mini_webgpu.h:1431
WGPUCreateComputePipelineAsyncCallback callback
Definition: mini_webgpu.h:1137
void(* WGPUProcDeviceSetLoggingCallback)(WGPUDevice device, WGPULoggingCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2165
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1271
WGPUTexture(* WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2149
WGPU_EXPORT void wgpuRenderBundleReference(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
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
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
void(* WGPUDeviceLostCallback)(WGPUDeviceLostReason reason, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:997
WGPU_EXPORT WGPUTexture wgpuSwapChainGetCurrentTexture(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1879
WGPU_EXPORT void wgpuComputePassEncoderWriteTimestamp(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1093
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1098
WGPUPowerPreference powerPreference
Definition: mini_webgpu.h:1430
WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
uint32_t minStorageBufferOffsetAlignment
Definition: mini_webgpu.h:1294
void(* WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2224
WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPU_NULLABLE WGPUDevice device, char const *procName) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2210
WGPUShaderModule(* WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2147
void(* WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2099
WGPU_EXPORT void wgpuSharedFenceReference(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureDimension(* WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2313
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1117
WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUVertexStepMode stepMode
Definition: mini_webgpu.h:1947
WGPURequestDeviceCallback callback
Definition: mini_webgpu.h:1439
WGPU_EXPORT void wgpuQueueCopyTextureForBrowser(WGPUQueue queue, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
WGPUConstantEntry const * constants
Definition: mini_webgpu.h:2017
float const * srcTransferFunctionParameters
Definition: mini_webgpu.h:1823
WGPUSharedTextureMemoryDmaBufPlane const * planes
Definition: mini_webgpu.h:1909
WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureReference)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2321
WGPUAlphaMode
Definition: mini_webgpu.h:285
unsigned __INT16_TYPE__ uint16_t
void(* WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2080
WGPUPresentMode presentMode
Definition: mini_webgpu.h:1717
WGPU_EXPORT void wgpuAdapterPropertiesMemoryHeapsFreeMembers(WGPUAdapterPropertiesMemoryHeaps value) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1889
WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureViewDimension dimension
Definition: mini_webgpu.h:1744
WGPU_EXPORT WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPUSharedTextureMemory(* WGPUProcDeviceImportSharedTextureMemory)(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2159
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
WGPU_EXPORT WGPUTexture wgpuSharedTextureMemoryCreateTexture(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUAddressMode addressModeW
Definition: mini_webgpu.h:1453
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
void(* WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2178
const char *const * disabledToggles
Definition: mini_webgpu.h:1227
WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDoneF(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1656
WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryIsDeviceLost(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUErrorCallback)(WGPUErrorType type, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:998
WGPU_EXPORT WGPUBuffer wgpuDeviceCreateErrorBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceTick)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2167
WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
uint32_t width
Definition: mini_webgpu.h:1250
uint32_t maxBindingsPerBindGroup
Definition: mini_webgpu.h:1283
WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
WGPUBlendFactor dstFactor
Definition: mini_webgpu.h:1047
WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPUStencilOperation depthFailOp
Definition: mini_webgpu.h:1643
void(* WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2327
WGPUAddressMode addressModeU
Definition: mini_webgpu.h:1451
WGPUIndexFormat stripIndexFormat
Definition: mini_webgpu.h:1356
uint32_t maxVertexBuffers
Definition: mini_webgpu.h:1295
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1742
WGPU_EXPORT void wgpuDeviceValidateTextureDescriptor(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUSwapChain(* WGPUProcDeviceCreateSwapChain)(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2148
WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
__SIZE_TYPE__ size_t
WGPU_EXPORT void wgpuCommandEncoderInjectValidationError(WGPUCommandEncoder commandEncoder, char const *message) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2052
WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
double g
Definition: mini_webgpu.h:1082
WGPUShaderStageFlags visibility
Definition: mini_webgpu.h:1776
WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
uint32_t x
Definition: mini_webgpu.h:1324
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1506
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1089
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1437
void(* WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2192
WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueReference(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUQueueWorkDoneCallback callback
Definition: mini_webgpu.h:1376
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
uint32_t maxInterStageShaderComponents
Definition: mini_webgpu.h:1299
WGPU_EXPORT void wgpuDeviceInjectError(WGPUDevice device, WGPUErrorType type, char const *message) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2098
Definition: mini_webgpu.h:1256
WGPUCompareFunction compare
Definition: mini_webgpu.h:1459
WGPUTextureViewDimension textureBindingViewDimension
Definition: mini_webgpu.h:1730
size_t(* WGPUProcDeviceEnumerateFeatures)(WGPUDevice device, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2151
WGPUTextureUsageFlags usage
Definition: mini_webgpu.h:1713
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1974
WGPUBindGroupLayout layout
Definition: mini_webgpu.h:1768
void(* WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2150
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1801
WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBindGroupReference)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2060
WGPUChainedStruct chain
Definition: mini_webgpu.h:1067
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1975
WGPU_EXPORT WGPUBool wgpuGetInstanceFeatures(WGPUInstanceFeatures *features) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureFormat
Definition: mini_webgpu.h:738
WGPUQueueDescriptor defaultQueue
Definition: mini_webgpu.h:1979
WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureFormat depthStencilFormat
Definition: mini_webgpu.h:1390
void(* WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2133
WGPU_EXPORT void wgpuBindGroupReference(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
char const * driverDescription
Definition: mini_webgpu.h:1022
void(* WGPUProcQueueCopyExternalTextureForBrowser)(WGPUQueue queue, WGPUImageCopyExternalTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2205
WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureFormat format
Definition: mini_webgpu.h:1714
WGPU_EXPORT void wgpuExternalTextureDestroy(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2222
void(* WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2245
void(* WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2232
WGPU_EXPORT void wgpuRenderPassEncoderPixelLocalStorageBarrier(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUSharedFence(* WGPUProcDeviceImportSharedFence)(WGPUDevice device, WGPUSharedFenceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2158
WGPUShaderModule(* WGPUProcDeviceCreateErrorShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor, char const *errorMessage) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2137
WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE WGPUFragmentState const * fragment
Definition: mini_webgpu.h:2030
WGPUAddressMode
Definition: mini_webgpu.h:277
uint32_t maxColorAttachmentBytesPerSample
Definition: mini_webgpu.h:1302
WGPUTextureViewDimension
Definition: mini_webgpu.h:857
void(* WGPUProcTextureSetLabel)(WGPUTexture texture, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2320
WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1336
WGPURenderPassStorageAttachment const * storageAttachments
Definition: mini_webgpu.h:1999
WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxVertexBufferArrayStride
Definition: mini_webgpu.h:1298
double value
Definition: mini_webgpu.h:1119
void(* WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2299
WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcShaderModuleReference)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2278
WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1016
void(* WGPUProcSharedTextureMemoryReference)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2293
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:993
WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureSampleType sampleType
Definition: mini_webgpu.h:1722
WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE WGPUTextureView plane1
Definition: mini_webgpu.h:1818
WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) 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
WGPUDeviceLostCallback deviceLostCallback
Definition: mini_webgpu.h:1980
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
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1774
WGPUShaderModule module
Definition: mini_webgpu.h:2004
WGPUChainedStruct chain
Definition: mini_webgpu.h:1223
WGPUFeatureName const * requiredFeatures
Definition: mini_webgpu.h:1977
WGPUExternalTexture externalTexture
Definition: mini_webgpu.h:1258
WGPU_NULLABLE WGPUQuerySet occlusionQuerySet
Definition: mini_webgpu.h:1990
WGPULoggingType
Definition: mini_webgpu.h:535
WGPU_NULLABLE char const * entryPoint
Definition: mini_webgpu.h:2015
uint32_t binding
Definition: mini_webgpu.h:1775
void(* WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2101
WGPU_EXPORT WGPUSharedFence wgpuDeviceImportSharedFence(WGPUDevice device, WGPUSharedFenceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSurfaceReference)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2298
void(* WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2083
WGPUColorWriteMaskFlags writeMask
Definition: mini_webgpu.h:1963
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1059
WGPUFuture(* WGPUProcBufferMapAsyncF)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2076
WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1123
WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
uint32_t height
Definition: mini_webgpu.h:1246
void(* WGPUProcAdapterPropertiesFreeMembers)(WGPUAdapterProperties value) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2039
WGPUCullMode
Definition: mini_webgpu.h:413
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
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyBuffer const *destination, WGPUExtent3D const *copySize) 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
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1428
WGPUTextureFormat const * colorFormats
Definition: mini_webgpu.h:1389
void(* WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, char const *label) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2176
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1933
WGPU_EXPORT void wgpuDeviceTick(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
uint32_t z
Definition: mini_webgpu.h:1331
uint32_t(* WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2316
WGPUTextureUsageFlags usage
Definition: mini_webgpu.h:1914
void(* WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2279
WGPUBool(* WGPUProcSharedTextureMemoryBeginAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2287
WGPUTextureView(* WGPUProcSwapChainGetCurrentTextureView)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2303
WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPUBool alphaToCoverageEnabled
Definition: mini_webgpu.h:1320
uint64_t maxUniformBufferBindingSize
Definition: mini_webgpu.h:1291
WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUAdapter(* WGPUProcDeviceGetAdapter)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2153
unsigned __INT64_TYPE__ uint64_t
WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureBindingLayout texture
Definition: mini_webgpu.h:1779
uint32_t(* WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2198
WGPUBufferMapState(* WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2071
WGPU_EXPORT void wgpuSharedTextureMemoryReference(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
WGPUWGSLFeatureName
Definition: mini_webgpu.h:255
void(* WGPUProcDeviceValidateTextureDescriptor)(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2168
WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1871
WGPUIndexFormat
Definition: mini_webgpu.h:521
void(* WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2162
uint64_t maxBufferSize
Definition: mini_webgpu.h:1296
WGPUOrigin3D origin
Definition: mini_webgpu.h:1853
WGPUTextureFormat format
Definition: mini_webgpu.h:1938
WGPU_NULLABLE char const * entryPoint
Definition: mini_webgpu.h:1873
void(* WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2256
WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandBufferReference(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterGetProperties)(WGPUAdapter adapter, WGPUAdapterProperties *properties) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2051
WGPUTextureAspect aspect
Definition: mini_webgpu.h:1749
void(* WGPUProcTextureViewReference)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2326
WGPUBlendOperation operation
Definition: mini_webgpu.h:1045
void(* WGPUProcDeviceForceLoss)(WGPUDevice device, WGPUDeviceLostReason type, char const *message) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2152
WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2239
WGPUTexture(* WGPUProcDeviceCreateErrorTexture)(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2138
WGPUTextureFormat format
Definition: mini_webgpu.h:1961
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1648
void(* WGPUProc)() WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:1000
WGPU_EXPORT WGPUTextureView wgpuTextureCreateErrorView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
uint32_t maxComputeWorkgroupSizeX
Definition: mini_webgpu.h:1305
uint32_t minUniformBufferOffsetAlignment
Definition: mini_webgpu.h:1293
WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUImageCopyTexture const *destination, void const *data, size_t dataSize, WGPUTextureDataLayout const *dataLayout, WGPUExtent3D const *writeSize) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureDimension dimension
Definition: mini_webgpu.h:1936
WGPU_NULLABLE float const * dstTransferFunctionParameters
Definition: mini_webgpu.h:1129
uint64_t size
Definition: mini_webgpu.h:1039
WGPU_EXPORT void wgpuSurfaceReference(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureAspect aspect
Definition: mini_webgpu.h:1854
WGPU_EXPORT void wgpuDeviceReference(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcSharedTextureMemoryEndAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2289
void(* WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2252
WGPU_EXPORT void wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * entryPoint
Definition: mini_webgpu.h:2005
void(* WGPUProcSwapChainReference)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2305
WGPUBool(* WGPUProcGetInstanceFeatures)(WGPUInstanceFeatures *features) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2042
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1913
WGPUTextureUsageFlags(* WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2318
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
WGPU_NULLABLE WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
Definition: mini_webgpu.h:1989
size_t(* WGPUProcInstanceEnumerateWGSLLanguageFeatures)(WGPUInstance instance, WGPUWGSLFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2182
signed __INT32_TYPE__ int32_t
WGPUBufferUsageFlags usage
Definition: mini_webgpu.h:1060
WGPU_EXPORT void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2108
WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2250
WGPUConstantEntry const * constants
Definition: mini_webgpu.h:1875
void(* WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2094
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1767
void(* WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2078
#define WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:66
WGPU_EXPORT void wgpuInstanceReference(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
WGPU_NULLABLE char const * label
Definition: mini_webgpu.h:1382
void(* WGPUProcComputePassEncoderReference)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2118
void(* WGPUProcDeviceSetUncapturedErrorCallback)(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2166
WGPUExternalTexture(* WGPUProcDeviceCreateErrorExternalTexture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2136
WGPUChainedStructOut * nextInChain
Definition: mini_webgpu.h:1596
WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1374
WGPU_EXPORT void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1711
#define WGPU_OBJECT_ATTRIBUTE
Definition: mini_webgpu.h:57
Definition: mini_webgpu.h:1034
WGPU_EXPORT void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1362
WGPUChainedStruct const * nextInChain
Definition: mini_webgpu.h:1058
WGPUFeatureName
Definition: mini_webgpu.h:452
uint32_t maxComputeWorkgroupSizeY
Definition: mini_webgpu.h:1306
WGPUFilterMode magFilter
Definition: mini_webgpu.h:1454
WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUAdapter wgpuDeviceGetAdapter(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2317
WGPUSampler(* WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2146
WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPUStencilOperation passOp
Definition: mini_webgpu.h:1644
uint32_t maxComputeInvocationsPerWorkgroup
Definition: mini_webgpu.h:1304
uint32_t maxComputeWorkgroupsPerDimension
Definition: mini_webgpu.h:1308
WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
size_t(* WGPUProcAdapterEnumerateFeatures)(WGPUAdapter adapter, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2048
void(* WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
Definition: mini_webgpu.h:2255