Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
mini_webgpu.h
Go to the documentation of this file.
1// BSD 3-Clause License
2//
3// Copyright (c) 2019, "WebGPU native" developers
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are met:
8//
9// 1. Redistributions of source code must retain the above copyright notice, this
10// list of conditions and the following disclaimer.
11//
12// 2. Redistributions in binary form must reproduce the above copyright notice,
13// this list of conditions and the following disclaimer in the documentation
14// and/or other materials provided with the distribution.
15//
16// 3. Neither the name of the copyright holder nor the names of its
17// contributors may be used to endorse or promote products derived from
18// this software without specific prior written permission.
19//
20// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30#ifdef __EMSCRIPTEN__
31#error "Do not include this header. Emscripten already provides headers needed for WebGPU."
32#endif
33#ifndef WEBGPU_H_
34#define WEBGPU_H_
35
36// clang-format off
37
38#if defined(WGPU_SHARED_LIBRARY)
39# if defined(_WIN32)
40# if defined(WGPU_IMPLEMENTATION)
41# define WGPU_EXPORT __declspec(dllexport)
42# else
43# define WGPU_EXPORT __declspec(dllimport)
44# endif
45# else // defined(_WIN32)
46# if defined(WGPU_IMPLEMENTATION)
47# define WGPU_EXPORT __attribute__((visibility("default")))
48# else
49# define WGPU_EXPORT
50# endif
51# endif // defined(_WIN32)
52#else // defined(WGPU_SHARED_LIBRARY)
53# define WGPU_EXPORT
54#endif // defined(WGPU_SHARED_LIBRARY)
55
56#if !defined(WGPU_OBJECT_ATTRIBUTE)
57#define WGPU_OBJECT_ATTRIBUTE
58#endif
59#if !defined(WGPU_ENUM_ATTRIBUTE)
60#define WGPU_ENUM_ATTRIBUTE
61#endif
62#if !defined(WGPU_STRUCTURE_ATTRIBUTE)
63#define WGPU_STRUCTURE_ATTRIBUTE
64#endif
65#if !defined(WGPU_FUNCTION_ATTRIBUTE)
66#define WGPU_FUNCTION_ATTRIBUTE
67#endif
68#if !defined(WGPU_NULLABLE)
69#define WGPU_NULLABLE
70#endif
71
72// Don't include these in Halide runtime
73// #include <stdint.h>
74// #include <stddef.h>
75
76#define WGPU_ARRAY_LAYER_COUNT_UNDEFINED UINT32_MAX
77#define WGPU_COPY_STRIDE_UNDEFINED UINT32_MAX
78#define WGPU_DEPTH_SLICE_UNDEFINED UINT32_MAX
79#define WGPU_LIMIT_U32_UNDEFINED UINT32_MAX
80#define WGPU_LIMIT_U64_UNDEFINED UINT64_MAX
81#define WGPU_MIP_LEVEL_COUNT_UNDEFINED UINT32_MAX
82#define WGPU_QUERY_SET_INDEX_UNDEFINED UINT32_MAX
83#define WGPU_WHOLE_MAP_SIZE SIZE_MAX
84#define WGPU_WHOLE_SIZE UINT64_MAX
85
88
89typedef struct WGPUAdapterImpl* WGPUAdapter WGPU_OBJECT_ATTRIBUTE;
90typedef struct WGPUBindGroupImpl* WGPUBindGroup WGPU_OBJECT_ATTRIBUTE;
91typedef struct WGPUBindGroupLayoutImpl* WGPUBindGroupLayout WGPU_OBJECT_ATTRIBUTE;
92typedef struct WGPUBufferImpl* WGPUBuffer WGPU_OBJECT_ATTRIBUTE;
93typedef struct WGPUCommandBufferImpl* WGPUCommandBuffer WGPU_OBJECT_ATTRIBUTE;
94typedef struct WGPUCommandEncoderImpl* WGPUCommandEncoder WGPU_OBJECT_ATTRIBUTE;
95typedef struct WGPUComputePassEncoderImpl* WGPUComputePassEncoder WGPU_OBJECT_ATTRIBUTE;
96typedef struct WGPUComputePipelineImpl* WGPUComputePipeline WGPU_OBJECT_ATTRIBUTE;
97typedef struct WGPUDeviceImpl* WGPUDevice WGPU_OBJECT_ATTRIBUTE;
98typedef struct WGPUExternalTextureImpl* WGPUExternalTexture WGPU_OBJECT_ATTRIBUTE;
99typedef struct WGPUInstanceImpl* WGPUInstance WGPU_OBJECT_ATTRIBUTE;
100typedef struct WGPUPipelineLayoutImpl* WGPUPipelineLayout WGPU_OBJECT_ATTRIBUTE;
101typedef struct WGPUQuerySetImpl* WGPUQuerySet WGPU_OBJECT_ATTRIBUTE;
102typedef struct WGPUQueueImpl* WGPUQueue WGPU_OBJECT_ATTRIBUTE;
103typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
104typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
105typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
106typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
107typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
108typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
109typedef struct WGPUSharedFenceImpl* WGPUSharedFence WGPU_OBJECT_ATTRIBUTE;
110typedef struct WGPUSharedTextureMemoryImpl* WGPUSharedTextureMemory WGPU_OBJECT_ATTRIBUTE;
111typedef struct WGPUSurfaceImpl* WGPUSurface WGPU_OBJECT_ATTRIBUTE;
112typedef struct WGPUSwapChainImpl* WGPUSwapChain WGPU_OBJECT_ATTRIBUTE;
113typedef struct WGPUTextureImpl* WGPUTexture WGPU_OBJECT_ATTRIBUTE;
114typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
115
116// Structure forward declarations
119struct WGPUBindGroupEntry;
120struct WGPUBlendComponent;
125struct WGPUColor;
130struct WGPUConstantEntry;
148struct WGPUExtent2D;
149struct WGPUExtent3D;
152struct WGPUFuture;
154struct WGPULimits;
155struct WGPUMemoryHeapInfo;
157struct WGPUOrigin2D;
158struct WGPUOrigin3D;
162struct WGPUPrimitiveState;
224struct WGPUBlendState;
229struct WGPUFutureWaitInfo;
238struct WGPURequiredLimits;
251struct WGPUVertexState;
252struct WGPUFragmentState;
254
268
276
284
291
304
326
336
344
358
365
372
385
394
401
412
420
426
433
443
451
452typedef enum WGPUFeatureName {
504 WGPUFeatureName_Force32 = 0x7FFFFFFF
506
513
520
527
534
542
549
556
563
573
579
588
597
605
606typedef enum WGPUSType {
607 WGPUSType_Invalid = 0x00000000,
670 WGPUSType_Force32 = 0x7FFFFFFF
672
680
690
703
711
718
729
737
738typedef enum WGPUTextureFormat {
844 WGPUTextureFormat_Force32 = 0x7FFFFFFF
846
856
867
868typedef enum WGPUVertexFormat {
901 WGPUVertexFormat_Force32 = 0x7FFFFFFF
903
911
921
936typedef WGPUFlags WGPUBufferUsageFlags WGPU_ENUM_ATTRIBUTE;
937
947typedef WGPUFlags WGPUColorWriteMaskFlags WGPU_ENUM_ATTRIBUTE;
948
958typedef WGPUFlags WGPUHeapPropertyFlags WGPU_ENUM_ATTRIBUTE;
959
966typedef WGPUFlags WGPUMapModeFlags WGPU_ENUM_ATTRIBUTE;
967
975typedef WGPUFlags WGPUShaderStageFlags WGPU_ENUM_ATTRIBUTE;
976
988typedef WGPUFlags WGPUTextureUsageFlags WGPU_ENUM_ATTRIBUTE;
989
991typedef void (*WGPUCallback)(void * userdata) WGPU_FUNCTION_ATTRIBUTE;
992typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const * compilationInfo, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
993typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
994typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
995typedef size_t (*WGPUDawnLoadCacheDataFunction)(void const * key, size_t keySize, void * value, size_t valueSize, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
996typedef void (*WGPUDawnStoreCacheDataFunction)(void const * key, size_t keySize, void const * value, size_t valueSize, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
997typedef void (*WGPUDeviceLostCallback)(WGPUDeviceLostReason reason, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
998typedef void (*WGPUErrorCallback)(WGPUErrorType type, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
999typedef void (*WGPULoggingCallback)(WGPULoggingType type, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
1002typedef void (*WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
1003typedef void (*WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, char const * message, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
1004
1009
1014
1027
1028// Can be chained in WGPUAdapterProperties
1033
1043
1049
1056
1064
1065// Can be chained in WGPUBufferDescriptor
1072
1079
1080typedef struct WGPUColor {
1081 double r;
1082 double g;
1083 double b;
1084 double a;
1086
1091
1096
1109
1115
1121
1133
1140
1147
1148// Can be chained in WGPUInstanceDescriptor
1154
1155// Can be chained in WGPUAdapterProperties
1160
1161// Can be chained in WGPUBufferDescriptor
1166
1167// Can be chained in WGPUDeviceDescriptor
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
1218
1219// Can be chained in WGPUInstanceDescriptor
1220// Can be chained in WGPURequestAdapterOptions
1221// Can be chained in WGPUDeviceDescriptor
1229
1230// Can be chained in WGPUInstanceDescriptor
1237
1238// Can be chained in WGPUDepthStencilState
1243
1248
1254
1255// Can be chained in WGPUBindGroupEntry
1260
1261// Can be chained in WGPUBindGroupLayoutEntry
1265
1269
1275
1310
1315
1322
1327
1333
1340
1346
1347// Can be chained in WGPUPrimitiveState
1352
1360
1367
1372
1379
1384
1395
1407
1408// Can be chained in WGPURenderPassDescriptor
1413
1419
1426
1435
1442
1447
1462
1463// Can be chained in WGPUShaderModuleDescriptor
1469
1470// Can be chained in WGPUShaderModuleDescriptor
1475
1480
1481// Can be chained in WGPUSharedFenceDescriptor
1486
1487// Can be chained in WGPUSharedFenceExportInfo
1492
1493// Can be chained in WGPUSharedFenceDescriptor
1498
1499// Can be chained in WGPUSharedFenceExportInfo
1504
1509
1514
1515// Can be chained in WGPUSharedFenceDescriptor
1520
1521// Can be chained in WGPUSharedFenceExportInfo
1526
1527// Can be chained in WGPUSharedFenceDescriptor
1532
1533// Can be chained in WGPUSharedFenceExportInfo
1538
1539// Can be chained in WGPUSharedFenceDescriptor
1544
1545// Can be chained in WGPUSharedFenceExportInfo
1550
1551// Can be chained in WGPUSharedTextureMemoryDescriptor
1556
1557// Can be chained in WGPUSharedTextureMemoryDescriptor
1562
1563// Can be chained in WGPUSharedTextureMemoryDescriptor
1568
1569// Can be chained in WGPUSharedTextureMemoryDescriptor
1574
1583
1588
1594
1602
1603// Can be chained in WGPUSharedTextureMemoryDescriptor
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
1646
1653
1658
1659// Can be chained in WGPUSurfaceDescriptor
1664
1665// Can be chained in WGPUSurfaceDescriptor
1670
1671// Can be chained in WGPUSurfaceDescriptor
1676
1677// Can be chained in WGPUSurfaceDescriptor
1683
1684// Can be chained in WGPUSurfaceDescriptor
1690
1691// Can be chained in WGPUSurfaceDescriptor
1696
1697// Can be chained in WGPUSurfaceDescriptor
1702
1703// Can be chained in WGPUSurfaceDescriptor
1709
1719
1726
1727// Can be chained in WGPUTextureDescriptor
1732
1739
1751
1757
1758// Can be chained in WGPUAdapterProperties
1764
1772
1782
1787
1793
1799
1813
1830
1835
1841
1848
1856
1861
1862// Can be chained in WGPUPipelineLayoutDescriptor
1869
1877
1887
1896
1901
1902// Can be chained in WGPUSharedTextureMemoryDescriptor
1911
1918
1919// Can be chained in WGPUSharedTextureMemoryDescriptor
1926
1931
1944
1951
1958
1965
1972
1983
1993
1994// Can be chained in WGPURenderPassDescriptor
2001
2011
2021
2032
2033#ifdef __cplusplus
2034extern "C" {
2035#endif
2036
2037#if !defined(WGPU_SKIP_PROCS)
2038
2043typedef WGPUProc (*WGPUProcGetProcAddress)(WGPUDevice device, char const * procName) WGPU_FUNCTION_ATTRIBUTE;
2045
2046// Procs of Adapter
2047typedef WGPUDevice (*WGPUProcAdapterCreateDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2049typedef WGPUInstance (*WGPUProcAdapterGetInstance)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2051typedef void (*WGPUProcAdapterGetProperties)(WGPUAdapter adapter, WGPUAdapterProperties * properties) WGPU_FUNCTION_ATTRIBUTE;
2053typedef void (*WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const * descriptor, WGPURequestDeviceCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2055typedef void (*WGPUProcAdapterReference)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2056typedef void (*WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2057
2058// Procs of BindGroup
2059typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2060typedef void (*WGPUProcBindGroupReference)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
2061typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
2062
2063// Procs of BindGroupLayout
2064typedef void (*WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2065typedef void (*WGPUProcBindGroupLayoutReference)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2066typedef void (*WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2067
2068// Procs of Buffer
2069typedef void (*WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2070typedef void const * (*WGPUProcBufferGetConstMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2072typedef void * (*WGPUProcBufferGetMappedRange)(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2074typedef WGPUBufferUsageFlags (*WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2075typedef void (*WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2076typedef WGPUFuture (*WGPUProcBufferMapAsyncF)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
2077typedef void (*WGPUProcBufferSetLabel)(WGPUBuffer buffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2078typedef void (*WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2079typedef void (*WGPUProcBufferReference)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2080typedef void (*WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2081
2082// Procs of CommandBuffer
2083typedef void (*WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2084typedef void (*WGPUProcCommandBufferReference)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
2085typedef void (*WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE;
2086
2087// Procs of CommandEncoder
2088typedef WGPUComputePassEncoder (*WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2089typedef WGPURenderPassEncoder (*WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2090typedef void (*WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2091typedef void (*WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2092typedef void (*WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2093typedef void (*WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyBuffer const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2094typedef void (*WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2095typedef WGPUCommandBuffer (*WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2096typedef void (*WGPUProcCommandEncoderInjectValidationError)(WGPUCommandEncoder commandEncoder, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2097typedef void (*WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2098typedef void (*WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2099typedef void (*WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2100typedef void (*WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
2101typedef void (*WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2102typedef void (*WGPUProcCommandEncoderWriteBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const * data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2103typedef void (*WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2104typedef void (*WGPUProcCommandEncoderReference)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2105typedef void (*WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2106
2107// Procs of ComputePassEncoder
2108typedef void (*WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
2109typedef void (*WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2110typedef void (*WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2111typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2112typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2113typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2114typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2115typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2116typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2117typedef void (*WGPUProcComputePassEncoderWriteTimestamp)(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2118typedef void (*WGPUProcComputePassEncoderReference)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2119typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2120
2121// Procs of ComputePipeline
2122typedef WGPUBindGroupLayout (*WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2123typedef void (*WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2124typedef void (*WGPUProcComputePipelineReference)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2125typedef void (*WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2126
2127// Procs of Device
2128typedef WGPUBindGroup (*WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2129typedef WGPUBindGroupLayout (*WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2130typedef WGPUBuffer (*WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2131typedef WGPUCommandEncoder (*WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2132typedef WGPUComputePipeline (*WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2135typedef WGPUBuffer (*WGPUProcDeviceCreateErrorBuffer)(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2136typedef WGPUExternalTexture (*WGPUProcDeviceCreateErrorExternalTexture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2137typedef WGPUShaderModule (*WGPUProcDeviceCreateErrorShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor, char const * errorMessage) WGPU_FUNCTION_ATTRIBUTE;
2138typedef WGPUTexture (*WGPUProcDeviceCreateErrorTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2139typedef WGPUExternalTexture (*WGPUProcDeviceCreateExternalTexture)(WGPUDevice device, WGPUExternalTextureDescriptor const * externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE;
2140typedef WGPUPipelineLayout (*WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2141typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2142typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2143typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2146typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2147typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2148typedef WGPUSwapChain (*WGPUProcDeviceCreateSwapChain)(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2149typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2150typedef void (*WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2152typedef void (*WGPUProcDeviceForceLoss)(WGPUDevice device, WGPUDeviceLostReason type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2153typedef WGPUAdapter (*WGPUProcDeviceGetAdapter)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2155typedef WGPUQueue (*WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2156typedef WGPUTextureUsageFlags (*WGPUProcDeviceGetSupportedSurfaceUsage)(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2158typedef WGPUSharedFence (*WGPUProcDeviceImportSharedFence)(WGPUDevice device, WGPUSharedFenceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2159typedef WGPUSharedTextureMemory (*WGPUProcDeviceImportSharedTextureMemory)(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2160typedef void (*WGPUProcDeviceInjectError)(WGPUDevice device, WGPUErrorType type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2161typedef void (*WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2163typedef void (*WGPUProcDeviceSetDeviceLostCallback)(WGPUDevice device, WGPUDeviceLostCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2164typedef void (*WGPUProcDeviceSetLabel)(WGPUDevice device, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2165typedef void (*WGPUProcDeviceSetLoggingCallback)(WGPUDevice device, WGPULoggingCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2166typedef void (*WGPUProcDeviceSetUncapturedErrorCallback)(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2167typedef void (*WGPUProcDeviceTick)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2169typedef void (*WGPUProcDeviceReference)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2170typedef void (*WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE;
2171
2172// Procs of ExternalTexture
2173typedef void (*WGPUProcExternalTextureDestroy)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2174typedef void (*WGPUProcExternalTextureExpire)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2175typedef void (*WGPUProcExternalTextureRefresh)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2176typedef void (*WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2177typedef void (*WGPUProcExternalTextureReference)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2178typedef void (*WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2179
2180// Procs of Instance
2181typedef WGPUSurface (*WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2184typedef void (*WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2185typedef void (*WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const * options, WGPURequestAdapterCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2187typedef WGPUWaitStatus (*WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
2188typedef void (*WGPUProcInstanceReference)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2189typedef void (*WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE;
2190
2191// Procs of PipelineLayout
2192typedef void (*WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2193typedef void (*WGPUProcPipelineLayoutReference)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2194typedef void (*WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2195
2196// Procs of QuerySet
2197typedef void (*WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2200typedef void (*WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2201typedef void (*WGPUProcQuerySetReference)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2202typedef void (*WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE;
2203
2204// Procs of Queue
2205typedef void (*WGPUProcQueueCopyExternalTextureForBrowser)(WGPUQueue queue, WGPUImageCopyExternalTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize, WGPUCopyTextureForBrowserOptions const * options) WGPU_FUNCTION_ATTRIBUTE;
2206typedef void (*WGPUProcQueueCopyTextureForBrowser)(WGPUQueue queue, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize, WGPUCopyTextureForBrowserOptions const * options) WGPU_FUNCTION_ATTRIBUTE;
2207typedef void (*WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2209typedef void (*WGPUProcQueueSetLabel)(WGPUQueue queue, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2210typedef void (*WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
2211typedef void (*WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2212typedef void (*WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUImageCopyTexture const * destination, void const * data, size_t dataSize, WGPUTextureDataLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
2213typedef void (*WGPUProcQueueReference)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
2214typedef void (*WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE;
2215
2216// Procs of RenderBundle
2217typedef void (*WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2218typedef void (*WGPUProcRenderBundleReference)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
2219typedef void (*WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE;
2220
2221// Procs of RenderBundleEncoder
2222typedef void (*WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2223typedef void (*WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2224typedef void (*WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2225typedef void (*WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2226typedef WGPURenderBundle (*WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2227typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2228typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2229typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2230typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2231typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2232typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2233typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2234typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2235typedef void (*WGPUProcRenderBundleEncoderReference)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2236typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2237
2238// Procs of RenderPassEncoder
2239typedef void (*WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2240typedef void (*WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2241typedef void (*WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2242typedef void (*WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2243typedef void (*WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2244typedef void (*WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2245typedef void (*WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2246typedef void (*WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
2247typedef void (*WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2248typedef void (*WGPUProcRenderPassEncoderPixelLocalStorageBarrier)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2249typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2250typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2251typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2252typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
2253typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2254typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2255typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2256typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
2257typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
2258typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2259typedef void (*WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
2260typedef void (*WGPUProcRenderPassEncoderWriteTimestamp)(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2261typedef void (*WGPUProcRenderPassEncoderReference)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2262typedef void (*WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2263
2264// Procs of RenderPipeline
2265typedef WGPUBindGroupLayout (*WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2266typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2267typedef void (*WGPUProcRenderPipelineReference)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2268typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2269
2270// Procs of Sampler
2271typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2272typedef void (*WGPUProcSamplerReference)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
2273typedef void (*WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
2274
2275// Procs of ShaderModule
2276typedef void (*WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2277typedef void (*WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2278typedef void (*WGPUProcShaderModuleReference)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
2279typedef void (*WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE;
2280
2281// Procs of SharedFence
2282typedef void (*WGPUProcSharedFenceExportInfo)(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo * info) WGPU_FUNCTION_ATTRIBUTE;
2283typedef void (*WGPUProcSharedFenceReference)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
2284typedef void (*WGPUProcSharedFenceRelease)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
2285
2286// Procs of SharedTextureMemory
2287typedef WGPUBool (*WGPUProcSharedTextureMemoryBeginAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2288typedef WGPUTexture (*WGPUProcSharedTextureMemoryCreateTexture)(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2289typedef WGPUBool (*WGPUProcSharedTextureMemoryEndAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2290typedef void (*WGPUProcSharedTextureMemoryGetProperties)(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties * properties) WGPU_FUNCTION_ATTRIBUTE;
2291typedef WGPUBool (*WGPUProcSharedTextureMemoryIsDeviceLost)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2292typedef void (*WGPUProcSharedTextureMemorySetLabel)(WGPUSharedTextureMemory sharedTextureMemory, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2293typedef void (*WGPUProcSharedTextureMemoryReference)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2294typedef void (*WGPUProcSharedTextureMemoryRelease)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2295
2296// Procs of Surface
2297typedef WGPUTextureFormat (*WGPUProcSurfaceGetPreferredFormat)(WGPUSurface surface, WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE;
2298typedef void (*WGPUProcSurfaceReference)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2299typedef void (*WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2300
2301// Procs of SwapChain
2302typedef WGPUTexture (*WGPUProcSwapChainGetCurrentTexture)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2303typedef WGPUTextureView (*WGPUProcSwapChainGetCurrentTextureView)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2304typedef void (*WGPUProcSwapChainPresent)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2305typedef void (*WGPUProcSwapChainReference)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2306typedef void (*WGPUProcSwapChainRelease)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE;
2307
2308// Procs of Texture
2309typedef WGPUTextureView (*WGPUProcTextureCreateErrorView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2310typedef WGPUTextureView (*WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2311typedef void (*WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2318typedef WGPUTextureUsageFlags (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2320typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2321typedef void (*WGPUProcTextureReference)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2322typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2323
2324// Procs of TextureView
2325typedef void (*WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2326typedef void (*WGPUProcTextureViewReference)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
2327typedef void (*WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE;
2328
2329
2330#endif // !defined(WGPU_SKIP_PROCS)
2331
2332#if !defined(WGPU_SKIP_DECLARATIONS)
2333
2340
2341// Methods of Adapter
2352
2353// Methods of BindGroup
2354WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2357
2358// Methods of BindGroupLayout
2359WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2360WGPU_EXPORT void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2361WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE;
2362
2363// Methods of Buffer
2365WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2367WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2369WGPU_EXPORT WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
2370WGPU_EXPORT void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2371WGPU_EXPORT WGPUFuture wgpuBufferMapAsyncF(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
2372WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2376
2377// Methods of CommandBuffer
2378WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2381
2382// Methods of CommandEncoder
2383WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2384WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2385WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2386WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2387WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2388WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyBuffer const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2389WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const * source, WGPUImageCopyTexture const * destination, WGPUExtent3D const * copySize) WGPU_FUNCTION_ATTRIBUTE;
2390WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2391WGPU_EXPORT void wgpuCommandEncoderInjectValidationError(WGPUCommandEncoder commandEncoder, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2392WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2394WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2395WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE;
2396WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2397WGPU_EXPORT void wgpuCommandEncoderWriteBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const * data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2398WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2400WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE;
2401
2402// Methods of ComputePassEncoder
2403WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE;
2404WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2405WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2406WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2407WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2408WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2409WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2410WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2411WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2412WGPU_EXPORT void wgpuComputePassEncoderWriteTimestamp(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2413WGPU_EXPORT void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2414WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2415
2416// Methods of ComputePipeline
2417WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2418WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2419WGPU_EXPORT void wgpuComputePipelineReference(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2420WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE;
2421
2422// Methods of Device
2425WGPU_EXPORT WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2432WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateErrorShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor, char const * errorMessage) WGPU_FUNCTION_ATTRIBUTE;
2434WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateExternalTexture(WGPUDevice device, WGPUExternalTextureDescriptor const * externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE;
2443WGPU_EXPORT WGPUSwapChain wgpuDeviceCreateSwapChain(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2447WGPU_EXPORT void wgpuDeviceForceLoss(WGPUDevice device, WGPUDeviceLostReason type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2451WGPU_EXPORT WGPUTextureUsageFlags wgpuDeviceGetSupportedSurfaceUsage(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE;
2455WGPU_EXPORT void wgpuDeviceInjectError(WGPUDevice device, WGPUErrorType type, char const * message) WGPU_FUNCTION_ATTRIBUTE;
2456WGPU_EXPORT void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2459WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2466
2467// Methods of ExternalTexture
2468WGPU_EXPORT void wgpuExternalTextureDestroy(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2469WGPU_EXPORT void wgpuExternalTextureExpire(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2470WGPU_EXPORT void wgpuExternalTextureRefresh(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2471WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2472WGPU_EXPORT void wgpuExternalTextureReference(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2473WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE;
2474
2475// Methods of Instance
2476WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2482WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo * futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE;
2485
2486// Methods of PipelineLayout
2487WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2489WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE;
2490
2491// Methods of QuerySet
2495WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2498
2499// Methods of Queue
2504WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2505WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const * commands) WGPU_FUNCTION_ATTRIBUTE;
2506WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
2507WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUImageCopyTexture const * destination, void const * data, size_t dataSize, WGPUTextureDataLayout const * dataLayout, WGPUExtent3D const * writeSize) WGPU_FUNCTION_ATTRIBUTE;
2510
2511// Methods of RenderBundle
2512WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2515
2516// Methods of RenderBundleEncoder
2517WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2518WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2519WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2520WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2521WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2522WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2523WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2524WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2525WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2526WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2527WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2528WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2529WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2530WGPU_EXPORT void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2531WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
2532
2533// Methods of RenderPassEncoder
2534WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2535WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2536WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE;
2537WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2538WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE;
2539WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2541WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const * bundles) WGPU_FUNCTION_ATTRIBUTE;
2542WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, char const * markerLabel) WGPU_FUNCTION_ATTRIBUTE;
2544WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2545WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, char const * groupLabel) WGPU_FUNCTION_ATTRIBUTE;
2546WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
2547WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
2548WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2549WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2550WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
2551WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
2552WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
2553WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
2554WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE;
2555WGPU_EXPORT void wgpuRenderPassEncoderWriteTimestamp(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
2556WGPU_EXPORT void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2557WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE;
2558
2559// Methods of RenderPipeline
2560WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE;
2561WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2563WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
2564
2565// Methods of Sampler
2566WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2569
2570// Methods of ShaderModule
2571WGPU_EXPORT void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void * userdata) WGPU_FUNCTION_ATTRIBUTE;
2572WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2575
2576// Methods of SharedFence
2580
2581// Methods of SharedTextureMemory
2582WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryBeginAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2583WGPU_EXPORT WGPUTexture wgpuSharedTextureMemoryCreateTexture(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2584WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryEndAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState * descriptor) WGPU_FUNCTION_ATTRIBUTE;
2587WGPU_EXPORT void wgpuSharedTextureMemorySetLabel(WGPUSharedTextureMemory sharedTextureMemory, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2588WGPU_EXPORT void wgpuSharedTextureMemoryReference(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2589WGPU_EXPORT void wgpuSharedTextureMemoryRelease(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE;
2590
2591// Methods of Surface
2595
2596// Methods of SwapChain
2602
2603// Methods of Texture
2613WGPU_EXPORT WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
2615WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2618
2619// Methods of TextureView
2620WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, char const * label) WGPU_FUNCTION_ATTRIBUTE;
2623
2624
2625#endif // !defined(WGPU_SKIP_DECLARATIONS)
2626
2627#ifdef __cplusplus
2628} // extern "C"
2629#endif
2630
2631// clang-format on
2632
2633#endif // WEBGPU_H_
WGPUTexture(* WGPUProcDeviceCreateErrorTexture)(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderReference(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleReference)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexedIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPUIndexFormat
@ WGPUIndexFormat_Force32
@ WGPUIndexFormat_Uint16
@ WGPUIndexFormat_Undefined
@ WGPUIndexFormat_Uint32
void(* WGPUProcRenderBundleEncoderReference)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderEnd(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPURequestAdapterStatus
@ WGPURequestAdapterStatus_InstanceDropped
@ WGPURequestAdapterStatus_Unavailable
@ WGPURequestAdapterStatus_Success
@ WGPURequestAdapterStatus_Error
@ WGPURequestAdapterStatus_Unknown
@ WGPURequestAdapterStatus_Force32
void(* WGPUProcQueueReference)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUDevice wgpuAdapterCreateDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSamplerRelease)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProc)() WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceSetUncapturedErrorCallback)(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_OBJECT_ATTRIBUTE
Definition mini_webgpu.h:57
WGPU_EXPORT void wgpuCommandEncoderSetLabel(WGPUCommandEncoder commandEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUFeatureName
@ WGPUFeatureName_ImplicitDeviceSynchronization
@ WGPUFeatureName_TextureCompressionASTC
@ WGPUFeatureName_SharedFenceDXGISharedHandle
@ WGPUFeatureName_Force32
@ WGPUFeatureName_DawnInternalUsages
@ WGPUFeatureName_SharedTextureMemoryAHardwareBuffer
@ WGPUFeatureName_Depth32FloatStencil8
@ WGPUFeatureName_RG11B10UfloatRenderable
@ WGPUFeatureName_MultiPlanarFormatP010
@ WGPUFeatureName_MultiPlanarFormatNv12a
@ WGPUFeatureName_ChromiumExperimentalTimestampQueryInsidePasses
@ WGPUFeatureName_SharedTextureMemoryDmaBuf
@ WGPUFeatureName_BGRA8UnormStorage
@ WGPUFeatureName_DawnMultiPlanarFormats
@ WGPUFeatureName_SharedTextureMemoryIOSurface
@ WGPUFeatureName_Norm16TextureFormats
@ WGPUFeatureName_AdapterPropertiesMemoryHeaps
@ WGPUFeatureName_DualSourceBlending
@ WGPUFeatureName_ChromiumExperimentalSubgroups
@ WGPUFeatureName_PixelLocalStorageCoherent
@ WGPUFeatureName_D3D11MultithreadProtected
@ WGPUFeatureName_SharedTextureMemoryZirconHandle
@ WGPUFeatureName_SharedTextureMemoryEGLImage
@ WGPUFeatureName_SharedFenceMTLSharedEvent
@ WGPUFeatureName_BufferMapExtendedUsages
@ WGPUFeatureName_TransientAttachments
@ WGPUFeatureName_MultiPlanarRenderTargets
@ WGPUFeatureName_SurfaceCapabilities
@ WGPUFeatureName_FramebufferFetch
@ WGPUFeatureName_SharedTextureMemoryOpaqueFD
@ WGPUFeatureName_PixelLocalStorageNonCoherent
@ WGPUFeatureName_AdapterPropertiesD3D
@ WGPUFeatureName_SharedTextureMemoryDXGISharedHandle
@ WGPUFeatureName_ShaderF16
@ WGPUFeatureName_MultiPlanarFormatExtendedUsages
@ WGPUFeatureName_Float32Filterable
@ WGPUFeatureName_SharedTextureMemoryD3D11Texture2D
@ WGPUFeatureName_ANGLETextureSharing
@ WGPUFeatureName_TimestampQuery
@ WGPUFeatureName_SharedTextureMemoryVkDedicatedAllocation
@ WGPUFeatureName_SharedFenceVkSemaphoreSyncFD
@ WGPUFeatureName_TextureCompressionBC
@ WGPUFeatureName_SharedFenceVkSemaphoreZirconHandle
@ WGPUFeatureName_HostMappedPointer
@ WGPUFeatureName_TextureCompressionETC2
@ WGPUFeatureName_IndirectFirstInstance
@ WGPUFeatureName_MSAARenderToSingleSampled
@ WGPUFeatureName_SharedFenceVkSemaphoreOpaqueFD
@ WGPUFeatureName_DepthClipControl
@ WGPUFeatureName_ChromiumExperimentalSubgroupUniformControlFlow
@ WGPUFeatureName_DawnNative
@ WGPUFeatureName_Undefined
WGPUVertexFormat
@ WGPUVertexFormat_Sint32x4
@ WGPUVertexFormat_Float32x2
@ WGPUVertexFormat_Sint32x2
@ WGPUVertexFormat_Float32
@ WGPUVertexFormat_Float16x4
@ WGPUVertexFormat_Uint16x4
@ WGPUVertexFormat_Snorm8x2
@ WGPUVertexFormat_Uint8x4
@ WGPUVertexFormat_Undefined
@ WGPUVertexFormat_Sint8x2
@ WGPUVertexFormat_Unorm8x4
@ WGPUVertexFormat_Force32
@ WGPUVertexFormat_Uint8x2
@ WGPUVertexFormat_Float32x4
@ WGPUVertexFormat_Float16x2
@ WGPUVertexFormat_Uint32
@ WGPUVertexFormat_Uint32x4
@ WGPUVertexFormat_Sint32
@ WGPUVertexFormat_Uint32x2
@ WGPUVertexFormat_Uint32x3
@ WGPUVertexFormat_Sint16x4
@ WGPUVertexFormat_Unorm10_10_10_2
@ WGPUVertexFormat_Unorm16x2
@ WGPUVertexFormat_Unorm8x2
@ WGPUVertexFormat_Sint32x3
@ WGPUVertexFormat_Sint16x2
@ WGPUVertexFormat_Snorm8x4
@ WGPUVertexFormat_Sint8x4
@ WGPUVertexFormat_Uint16x2
@ WGPUVertexFormat_Snorm16x2
@ WGPUVertexFormat_Unorm16x4
@ WGPUVertexFormat_Float32x3
@ WGPUVertexFormat_Snorm16x4
void(* WGPUProcBindGroupLayoutRelease)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
WGPUCommandEncoder(* WGPUProcDeviceCreateCommandEncoder)(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderWriteTimestamp(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPUSType
@ WGPUSType_DawnRenderPassColorAttachmentRenderToSingleSampled
@ WGPUSType_DawnComputePipelineFullSubgroups
@ WGPUSType_Force32
@ WGPUSType_DawnWireWGSLControl
@ WGPUSType_SharedTextureMemoryVkImageLayoutEndState
@ WGPUSType_DawnBufferDescriptorErrorInfoFromWireClient
@ WGPUSType_SurfaceDescriptorFromMetalLayer
@ WGPUSType_SharedTextureMemoryVkImageDescriptor
@ WGPUSType_SharedTextureMemoryOpaqueFDDescriptor
@ WGPUSType_RequestAdapterOptionsGetGLProc
@ WGPUSType_SharedFenceVkSemaphoreSyncFDDescriptor
@ WGPUSType_SurfaceDescriptorFromWindowsHWND
@ WGPUSType_ShaderModuleSPIRVDescriptor
@ WGPUSType_PipelineLayoutPixelLocalStorage
@ WGPUSType_RenderPassDescriptorMaxDrawCount
@ WGPUSType_SharedFenceMTLSharedEventDescriptor
@ WGPUSType_SharedFenceDXGISharedHandleDescriptor
@ WGPUSType_SurfaceDescriptorFromWindowsCoreWindow
@ WGPUSType_SharedTextureMemoryDXGISharedHandleDescriptor
@ WGPUSType_SurfaceDescriptorFromWaylandSurface
@ WGPUSType_SharedFenceMTLSharedEventExportInfo
@ WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector
@ WGPUSType_RenderPassPixelLocalStorage
@ WGPUSType_AdapterPropertiesMemoryHeaps
@ WGPUSType_SharedFenceVkSemaphoreZirconHandleDescriptor
@ WGPUSType_DawnInstanceDescriptor
@ WGPUSType_ExternalTextureBindingEntry
@ WGPUSType_SharedFenceDXGISharedHandleExportInfo
@ WGPUSType_SurfaceDescriptorFromAndroidNativeWindow
@ WGPUSType_SharedFenceVkSemaphoreOpaqueFDDescriptor
@ WGPUSType_PrimitiveDepthClipControl
@ WGPUSType_DawnShaderModuleSPIRVOptionsDescriptor
@ WGPUSType_SharedFenceVkSemaphoreSyncFDExportInfo
@ WGPUSType_SurfaceDescriptorFromWindowsSwapChainPanel
@ WGPUSType_SharedTextureMemoryVkDedicatedAllocationDescriptor
@ WGPUSType_DepthStencilStateDepthWriteDefinedDawn
@ WGPUSType_SharedTextureMemoryIOSurfaceDescriptor
@ WGPUSType_SharedFenceVkSemaphoreZirconHandleExportInfo
@ WGPUSType_SurfaceDescriptorFromXlibWindow
@ WGPUSType_DawnExperimentalSubgroupLimits
@ WGPUSType_DawnEncoderInternalUsageDescriptor
@ WGPUSType_SharedTextureMemoryZirconHandleDescriptor
@ WGPUSType_BufferHostMappedPointer
@ WGPUSType_SharedFenceVkSemaphoreOpaqueFDExportInfo
@ WGPUSType_DawnCacheDeviceDescriptor
@ WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor
@ WGPUSType_SharedTextureMemoryD3D11Texture2DDescriptor
@ WGPUSType_SharedTextureMemoryInitializedBeginState
@ WGPUSType_TextureBindingViewDimensionDescriptor
@ WGPUSType_SharedTextureMemoryInitializedEndState
@ WGPUSType_DawnMultisampleStateRenderToSingleSampled
@ WGPUSType_RequestAdapterOptionsD3D11Device
@ WGPUSType_DawnTogglesDescriptor
@ WGPUSType_RequestAdapterOptionsLUID
@ WGPUSType_DawnAdapterPropertiesPowerPreference
@ WGPUSType_DawnWGSLBlocklist
@ WGPUSType_ShaderModuleWGSLDescriptor
@ WGPUSType_SharedTextureMemoryVkImageLayoutBeginState
@ WGPUSType_Invalid
@ WGPUSType_SharedTextureMemoryDmaBufDescriptor
@ WGPUSType_SharedTextureMemoryEGLImageDescriptor
@ WGPUSType_ExternalTextureBindingLayout
@ WGPUSType_DawnTextureInternalUsageDescriptor
@ WGPUSType_AdapterPropertiesD3D
void(* WGPUProcCommandEncoderPopDebugGroup)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuAdapterReference(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_FUNCTION_ATTRIBUTE
Definition mini_webgpu.h:66
WGPU_EXPORT void wgpuTextureReference(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferBindingType
@ WGPUBufferBindingType_Storage
@ WGPUBufferBindingType_Undefined
@ WGPUBufferBindingType_Force32
@ WGPUBufferBindingType_ReadOnlyStorage
@ WGPUBufferBindingType_Uniform
void(* WGPUProcSharedTextureMemorySetLabel)(WGPUSharedTextureMemory sharedTextureMemory, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuShaderModuleGetCompilationInfo(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueWriteBuffer)(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderWriteTimestamp(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateErrorExternalTexture(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
uint64_t(* WGPUProcBufferGetSize)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
uint32_t WGPUBool
Definition mini_webgpu.h:87
WGPU_EXPORT WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderDraw)(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPUAlphaMode
@ WGPUAlphaMode_Unpremultiplied
@ WGPUAlphaMode_Opaque
@ WGPUAlphaMode_Premultiplied
@ WGPUAlphaMode_Force32
void(* WGPUProcTextureDestroy)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
size_t(* WGPUProcAdapterEnumerateFeatures)(WGPUAdapter adapter, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueWriteTexture(WGPUQueue queue, WGPUImageCopyTexture const *destination, void const *data, size_t dataSize, WGPUTextureDataLayout const *dataLayout, WGPUExtent3D const *writeSize) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
WGPUAdapter(* WGPUProcDeviceGetAdapter)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPUQueue(* WGPUProcDeviceGetQueue)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBufferReference(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderEndOcclusionQuery(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedTextureMemoryEndAccessStateFreeMembers(WGPUSharedTextureMemoryEndAccessState value) WGPU_FUNCTION_ATTRIBUTE
WGPUFuture(* WGPUProcDeviceCreateRenderPipelineAsyncF)(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceSetUncapturedErrorCallback(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferMapState(* WGPUProcBufferGetMapState)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandBufferSetLabel(WGPUCommandBuffer commandBuffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedTextureMemoryReference)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderInjectValidationError)(WGPUCommandEncoder commandEncoder, char const *message) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureDestroy(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDevicePushErrorScope(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandBufferReference)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
WGPUMapMode
@ WGPUMapMode_None
@ WGPUMapMode_Read
@ WGPUMapMode_Write
@ WGPUMapMode_Force32
void(* WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderDrawIndexedIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcInstanceRelease)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferUsageFlags(* WGPUProcBufferGetUsage)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderEndOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceRelease)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueSubmit)(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands) WGPU_FUNCTION_ATTRIBUTE
WGPUDeviceLostReason
@ WGPUDeviceLostReason_Destroyed
@ WGPUDeviceLostReason_Undefined
@ WGPUDeviceLostReason_Force32
WGPUWGSLFeatureName
@ WGPUWGSLFeatureName_ChromiumTestingExperimental
@ WGPUWGSLFeatureName_Undefined
@ WGPUWGSLFeatureName_UnrestrictedPointerParameters
@ WGPUWGSLFeatureName_ChromiumTestingShipped
@ WGPUWGSLFeatureName_ChromiumTestingShippedWithKillswitch
@ WGPUWGSLFeatureName_ChromiumTestingUnimplemented
@ WGPUWGSLFeatureName_ReadonlyAndReadwriteStorageTextures
@ WGPUWGSLFeatureName_Packed4x8IntegerDotProduct
@ WGPUWGSLFeatureName_PointerCompositeAccess
@ WGPUWGSLFeatureName_Force32
@ WGPUWGSLFeatureName_ChromiumTestingUnsafeExperimental
void(* WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndirect(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferUsage
@ WGPUBufferUsage_Force32
@ WGPUBufferUsage_Storage
@ WGPUBufferUsage_Uniform
@ WGPUBufferUsage_MapWrite
@ WGPUBufferUsage_Vertex
@ WGPUBufferUsage_MapRead
@ WGPUBufferUsage_QueryResolve
@ WGPUBufferUsage_None
@ WGPUBufferUsage_CopyDst
@ WGPUBufferUsage_CopySrc
@ WGPUBufferUsage_Index
@ WGPUBufferUsage_Indirect
WGPU_EXPORT void wgpuSharedTextureMemoryReference(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_EXPORT
Definition mini_webgpu.h:53
#define WGPU_ENUM_ATTRIBUTE
Definition mini_webgpu.h:60
WGPU_EXPORT WGPUComputePipeline wgpuDeviceCreateComputePipeline(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceRelease(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetViewport(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderDrawIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureRelease(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDevicePopErrorScope)(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUCompareFunction
@ WGPUCompareFunction_Force32
@ WGPUCompareFunction_Always
@ WGPUCompareFunction_Never
@ WGPUCompareFunction_NotEqual
@ WGPUCompareFunction_Less
@ WGPUCompareFunction_Undefined
@ WGPUCompareFunction_GreaterEqual
@ WGPUCompareFunction_Equal
@ WGPUCompareFunction_LessEqual
@ WGPUCompareFunction_Greater
WGPU_EXPORT void wgpuSurfaceReference(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUErrorCallback)(WGPUErrorType type, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderDraw(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPUCullMode
@ WGPUCullMode_Force32
@ WGPUCullMode_Undefined
@ WGPUCullMode_Back
@ WGPUCullMode_Front
@ WGPUCullMode_None
WGPU_EXPORT void wgpuExternalTextureExpire(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterGetProperties)(WGPUAdapter adapter, WGPUAdapterProperties *properties) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedTextureMemoryRelease)(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUSurface wgpuInstanceCreateSurface(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryIsDeviceLost(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderDispatchWorkgroupsIndirect)(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureUsageFlags wgpuDeviceGetSupportedSurfaceUsage(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcInstanceReference)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBuffer wgpuDeviceCreateErrorBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUShaderModule(* WGPUProcDeviceCreateErrorShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor, char const *errorMessage) WGPU_FUNCTION_ATTRIBUTE
WGPUFuture(* WGPUProcAdapterRequestDeviceF)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *options, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuDeviceGetLimits(WGPUDevice device, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureDimension
@ WGPUTextureDimension_Undefined
@ WGPUTextureDimension_2D
@ WGPUTextureDimension_Force32
@ WGPUTextureDimension_3D
@ WGPUTextureDimension_1D
WGPU_EXPORT void wgpuDeviceTick(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSwapChainRelease)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuPipelineLayoutSetLabel(WGPUPipelineLayout pipelineLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBindGroupLayoutRelease(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToBuffer(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyBuffer const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuQuerySetGetCount(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderDrawIndexed(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuInstanceRelease(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderEnd)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceForceLoss)(WGPUDevice device, WGPUDeviceLostReason type, char const *message) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureUsage
@ WGPUTextureUsage_RenderAttachment
@ WGPUTextureUsage_Force32
@ WGPUTextureUsage_TransientAttachment
@ WGPUTextureUsage_TextureBinding
@ WGPUTextureUsage_CopySrc
@ WGPUTextureUsage_CopyDst
@ WGPUTextureUsage_StorageAttachment
@ WGPUTextureUsage_None
@ WGPUTextureUsage_StorageBinding
WGPUTextureUsageFlags(* WGPUProcDeviceGetSupportedSurfaceUsage)(WGPUDevice device, WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePipelineSetLabel)(WGPUComputePipeline computePipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPURequestDeviceCallback)(WGPURequestDeviceStatus status, WGPUDevice device, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueWriteBuffer(WGPUQueue queue, WGPUBuffer buffer, uint64_t bufferOffset, void const *data, size_t size) WGPU_FUNCTION_ATTRIBUTE
WGPURequestDeviceStatus
@ WGPURequestDeviceStatus_Success
@ WGPURequestDeviceStatus_InstanceDropped
@ WGPURequestDeviceStatus_Unknown
@ WGPURequestDeviceStatus_Error
@ WGPURequestDeviceStatus_Force32
void(* WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuBufferMapAsyncF(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDevicePushErrorScope)(WGPUDevice device, WGPUErrorFilter filter) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandBufferReference(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSurfaceRelease)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
WGPUCompilationMessageType
@ WGPUCompilationMessageType_Force32
@ WGPUCompilationMessageType_Info
@ WGPUCompilationMessageType_Warning
@ WGPUCompilationMessageType_Error
WGPUCreatePipelineAsyncStatus
@ WGPUCreatePipelineAsyncStatus_Force32
@ WGPUCreatePipelineAsyncStatus_ValidationError
@ WGPUCreatePipelineAsyncStatus_InstanceDropped
@ WGPUCreatePipelineAsyncStatus_Success
@ WGPUCreatePipelineAsyncStatus_Unknown
@ WGPUCreatePipelineAsyncStatus_DeviceDestroyed
@ WGPUCreatePipelineAsyncStatus_DeviceLost
@ WGPUCreatePipelineAsyncStatus_InternalError
WGPU_EXPORT void wgpuRenderBundleEncoderReference(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcAdapterGetLimits)(WGPUAdapter adapter, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderPushDebugGroup(WGPUCommandEncoder commandEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedFenceRelease)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureView wgpuTextureCreateView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderClearBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUDawnStoreCacheDataFunction)(void const *key, size_t keySize, void const *value, size_t valueSize, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureDimension wgpuTextureGetDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureFormat wgpuSurfaceGetPreferredFormat(WGPUSurface surface, WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureView(* WGPUProcTextureCreateErrorView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderDispatchWorkgroups)(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUShaderModule(* WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSamplerReference(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPURenderPassEncoder wgpuCommandEncoderBeginRenderPass(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcExternalTextureRelease)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuInstanceReference(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderRelease(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcPipelineLayoutReference)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueSetLabel(WGPUQueue queue, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderRelease)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPipelineReference(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuDeviceHasFeature(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureUsageFlags(* WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUFuture(* WGPUProcInstanceRequestAdapterF)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderWriteTimestamp)(WGPURenderPassEncoder renderPassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUSharedFence wgpuDeviceImportSharedFence(WGPUDevice device, WGPUSharedFenceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUInstance wgpuCreateInstance(WGPU_NULLABLE WGPUInstanceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceDestroy)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureViewDimension
@ WGPUTextureViewDimension_Cube
@ WGPUTextureViewDimension_2DArray
@ WGPUTextureViewDimension_2D
@ WGPUTextureViewDimension_3D
@ WGPUTextureViewDimension_1D
@ WGPUTextureViewDimension_CubeArray
@ WGPUTextureViewDimension_Undefined
@ WGPUTextureViewDimension_Force32
WGPU_EXPORT WGPUBool wgpuGetInstanceFeatures(WGPUInstanceFeatures *features) WGPU_FUNCTION_ATTRIBUTE
size_t(* WGPUDawnLoadCacheDataFunction)(void const *key, size_t keySize, void *value, size_t valueSize, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderSetLabel)(WGPUCommandEncoder commandEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleRelease(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcExternalTextureReference)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBindGroupLayoutReference(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQuerySetDestroy)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePipelineReference(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandBufferRelease)(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
WGPUBindGroupLayout(* WGPUProcDeviceCreateBindGroupLayout)(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUDeviceLostCallback)(WGPUDeviceLostReason reason, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUPrimitiveTopology
@ WGPUPrimitiveTopology_LineList
@ WGPUPrimitiveTopology_LineStrip
@ WGPUPrimitiveTopology_Undefined
@ WGPUPrimitiveTopology_TriangleList
@ WGPUPrimitiveTopology_PointList
@ WGPUPrimitiveTopology_TriangleStrip
@ WGPUPrimitiveTopology_Force32
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexed(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcInstanceProcessEvents)(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSwapChainPresent(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderWriteTimestamp)(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderRelease)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderWriteBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const *data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcShaderModuleSetLabel)(WGPUShaderModule shaderModule, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuAdapterRequestDevice(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSwapChainRelease(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuShaderModuleRelease(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcTextureGetDepthOrArrayLayers)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureFormat
@ WGPUTextureFormat_ASTC12x10Unorm
@ WGPUTextureFormat_BC5RGSnorm
@ WGPUTextureFormat_BC7RGBAUnorm
@ WGPUTextureFormat_RGBA8Unorm
@ WGPUTextureFormat_RG8Unorm
@ WGPUTextureFormat_ETC2RGB8Unorm
@ WGPUTextureFormat_ASTC4x4Unorm
@ WGPUTextureFormat_ETC2RGB8A1UnormSrgb
@ WGPUTextureFormat_EACR11Snorm
@ WGPUTextureFormat_BC4RSnorm
@ WGPUTextureFormat_RGBA8Snorm
@ WGPUTextureFormat_ASTC10x6Unorm
@ WGPUTextureFormat_BGRA8UnormSrgb
@ WGPUTextureFormat_ASTC6x6Unorm
@ WGPUTextureFormat_ETC2RGB8A1Unorm
@ WGPUTextureFormat_ASTC10x8Unorm
@ WGPUTextureFormat_RG16Unorm
@ WGPUTextureFormat_ASTC8x8Unorm
@ WGPUTextureFormat_RGBA32Float
@ WGPUTextureFormat_BC6HRGBUfloat
@ WGPUTextureFormat_RG32Sint
@ WGPUTextureFormat_RGBA16Float
@ WGPUTextureFormat_ASTC10x10Unorm
@ WGPUTextureFormat_Depth32FloatStencil8
@ WGPUTextureFormat_RG8Snorm
@ WGPUTextureFormat_ASTC12x10UnormSrgb
@ WGPUTextureFormat_Depth24Plus
@ WGPUTextureFormat_RG16Sint
@ WGPUTextureFormat_EACRG11Unorm
@ WGPUTextureFormat_ETC2RGB8UnormSrgb
@ WGPUTextureFormat_BC6HRGBFloat
@ WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm
@ WGPUTextureFormat_R32Float
@ WGPUTextureFormat_BC7RGBAUnormSrgb
@ WGPUTextureFormat_R16Sint
@ WGPUTextureFormat_R8Sint
@ WGPUTextureFormat_RGBA8UnormSrgb
@ WGPUTextureFormat_BC3RGBAUnormSrgb
@ WGPUTextureFormat_RGBA16Unorm
@ WGPUTextureFormat_RGBA8Uint
@ WGPUTextureFormat_EACRG11Snorm
@ WGPUTextureFormat_RGBA16Uint
@ WGPUTextureFormat_ASTC10x10UnormSrgb
@ WGPUTextureFormat_RGB10A2Unorm
@ WGPUTextureFormat_ASTC10x5UnormSrgb
@ WGPUTextureFormat_ASTC5x5Unorm
@ WGPUTextureFormat_R32Uint
@ WGPUTextureFormat_ETC2RGBA8UnormSrgb
@ WGPUTextureFormat_R8BG8A8Triplanar420Unorm
@ WGPUTextureFormat_RG16Snorm
@ WGPUTextureFormat_ASTC5x4Unorm
@ WGPUTextureFormat_BC3RGBAUnorm
@ WGPUTextureFormat_R16Unorm
@ WGPUTextureFormat_R8BG8Biplanar420Unorm
@ WGPUTextureFormat_BGRA8Unorm
@ WGPUTextureFormat_BC4RUnorm
@ WGPUTextureFormat_BC5RGUnorm
@ WGPUTextureFormat_Force32
@ WGPUTextureFormat_BC1RGBAUnorm
@ WGPUTextureFormat_ASTC5x5UnormSrgb
@ WGPUTextureFormat_ASTC8x6UnormSrgb
@ WGPUTextureFormat_R32Sint
@ WGPUTextureFormat_BC2RGBAUnormSrgb
@ WGPUTextureFormat_RGBA32Uint
@ WGPUTextureFormat_Stencil8
@ WGPUTextureFormat_EACR11Unorm
@ WGPUTextureFormat_ASTC6x6UnormSrgb
@ WGPUTextureFormat_RG16Uint
@ WGPUTextureFormat_ASTC10x8UnormSrgb
@ WGPUTextureFormat_RGB9E5Ufloat
@ WGPUTextureFormat_Depth16Unorm
@ WGPUTextureFormat_RG8Sint
@ WGPUTextureFormat_ASTC8x8UnormSrgb
@ WGPUTextureFormat_R16Uint
@ WGPUTextureFormat_Undefined
@ WGPUTextureFormat_ASTC10x6UnormSrgb
@ WGPUTextureFormat_R16Float
@ WGPUTextureFormat_ASTC5x4UnormSrgb
@ WGPUTextureFormat_RG32Float
@ WGPUTextureFormat_RGBA16Snorm
@ WGPUTextureFormat_RG11B10Ufloat
@ WGPUTextureFormat_ASTC12x12UnormSrgb
@ WGPUTextureFormat_RGBA32Sint
@ WGPUTextureFormat_BC1RGBAUnormSrgb
@ WGPUTextureFormat_RG16Float
@ WGPUTextureFormat_ASTC6x5Unorm
@ WGPUTextureFormat_Depth24PlusStencil8
@ WGPUTextureFormat_ASTC10x5Unorm
@ WGPUTextureFormat_RGBA16Sint
@ WGPUTextureFormat_R8Unorm
@ WGPUTextureFormat_Depth32Float
@ WGPUTextureFormat_BC2RGBAUnorm
@ WGPUTextureFormat_R16Snorm
@ WGPUTextureFormat_ASTC8x6Unorm
@ WGPUTextureFormat_RG8Uint
@ WGPUTextureFormat_R8Uint
@ WGPUTextureFormat_ASTC8x5Unorm
@ WGPUTextureFormat_ASTC12x12Unorm
@ WGPUTextureFormat_RGB10A2Uint
@ WGPUTextureFormat_ASTC4x4UnormSrgb
@ WGPUTextureFormat_ETC2RGBA8Unorm
@ WGPUTextureFormat_RG32Uint
@ WGPUTextureFormat_ASTC8x5UnormSrgb
@ WGPUTextureFormat_RGBA8Sint
@ WGPUTextureFormat_R8Snorm
@ WGPUTextureFormat_ASTC6x5UnormSrgb
void(* WGPUProcRenderBundleEncoderDrawIndirect)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSamplerReference)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUCommandBuffer wgpuCommandEncoderFinish(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceValidateTextureDescriptor)(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterRequestDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor, WGPURequestDeviceCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterPropertiesFreeMembers)(WGPUAdapterProperties value) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuDeviceCreateRenderPipelineAsyncF(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderExecuteBundles(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQuerySetRelease)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueCopyTextureForBrowser(WGPUQueue queue, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedFenceReference)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderReference(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
size_t(* WGPUProcDeviceEnumerateFeatures)(WGPUDevice device, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceReference)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderDraw)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTexture wgpuDeviceCreateErrorTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureView wgpuTextureCreateErrorView(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuPipelineLayoutRelease(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePipelineRelease)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderDrawIndexed)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUStencilOperation
@ WGPUStencilOperation_DecrementClamp
@ WGPUStencilOperation_Undefined
@ WGPUStencilOperation_Replace
@ WGPUStencilOperation_Keep
@ WGPUStencilOperation_DecrementWrap
@ WGPUStencilOperation_IncrementWrap
@ WGPUStencilOperation_IncrementClamp
@ WGPUStencilOperation_Invert
@ WGPUStencilOperation_Force32
@ WGPUStencilOperation_Zero
WGPU_EXPORT void wgpuComputePipelineSetLabel(WGPUComputePipeline computePipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
WGPUSampler(* WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT size_t wgpuInstanceEnumerateWGSLLanguageFeatures(WGPUInstance instance, WGPUWGSLFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandBufferSetLabel)(WGPUCommandBuffer commandBuffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUAddressMode
@ WGPUAddressMode_Repeat
@ WGPUAddressMode_MirrorRepeat
@ WGPUAddressMode_Undefined
@ WGPUAddressMode_ClampToEdge
@ WGPUAddressMode_Force32
WGPU_EXPORT void wgpuBindGroupLayoutSetLabel(WGPUBindGroupLayout bindGroupLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderWriteTimestamp(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureView(* WGPUProcTextureCreateView)(WGPUTexture texture, WGPU_NULLABLE WGPUTextureViewDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderRelease(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceValidateTextureDescriptor(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderCopyBufferToBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateErrorShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor, char const *errorMessage) WGPU_FUNCTION_ATTRIBUTE
WGPUShaderStage
@ WGPUShaderStage_Fragment
@ WGPUShaderStage_Compute
@ WGPUShaderStage_Force32
@ WGPUShaderStage_Vertex
@ WGPUShaderStage_None
void(* WGPUProcRenderBundleSetLabel)(WGPURenderBundle renderBundle, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDevicePopErrorScope(WGPUDevice device, WGPUErrorCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBufferUnmap)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderClearBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureSetLabel)(WGPUTexture texture, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUQuerySet(* WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderCopyBufferToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueWriteTexture)(WGPUQueue queue, WGPUImageCopyTexture const *destination, void const *data, size_t dataSize, WGPUTextureDataLayout const *dataLayout, WGPUExtent3D const *writeSize) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBufferDestroy)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueOnSubmittedWorkDone(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcSharedTextureMemoryEndAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcSharedTextureMemoryIsDeviceLost)(WGPUSharedTextureMemory sharedTextureMemory) 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
void(* WGPUProcQueueSetLabel)(WGPUQueue queue, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureAspect
@ WGPUTextureAspect_Plane2Only
@ WGPUTextureAspect_DepthOnly
@ WGPUTextureAspect_Plane1Only
@ WGPUTextureAspect_Force32
@ WGPUTextureAspect_Undefined
@ WGPUTextureAspect_All
@ WGPUTextureAspect_Plane0Only
@ WGPUTextureAspect_StencilOnly
WGPUBufferMapState
@ WGPUBufferMapState_Pending
@ WGPUBufferMapState_Mapped
@ WGPUBufferMapState_Unmapped
@ WGPUBufferMapState_Force32
WGPUFilterMode
@ WGPUFilterMode_Undefined
@ WGPUFilterMode_Force32
@ WGPUFilterMode_Nearest
@ WGPUFilterMode_Linear
WGPU_EXPORT WGPUBool wgpuInstanceHasWGSLLanguageFeature(WGPUInstance instance, WGPUWGSLFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPUExternalTexture(* WGPUProcDeviceCreateErrorExternalTexture)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcPipelineLayoutSetLabel)(WGPUPipelineLayout pipelineLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUFuture(* WGPUProcQueueOnSubmittedWorkDoneF)(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPUCommandBuffer(* WGPUProcCommandEncoderFinish)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUCommandBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUBackendType
@ WGPUBackendType_Vulkan
@ WGPUBackendType_OpenGL
@ WGPUBackendType_Force32
@ WGPUBackendType_OpenGLES
@ WGPUBackendType_WebGPU
@ WGPUBackendType_D3D11
@ WGPUBackendType_D3D12
@ WGPUBackendType_Undefined
@ WGPUBackendType_Null
@ WGPUBackendType_Metal
WGPU_EXPORT void wgpuTextureViewRelease(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT size_t wgpuAdapterEnumerateFeatures(WGPUAdapter adapter, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBuffer wgpuDeviceCreateBuffer(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleRelease)(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPURenderBundle wgpuRenderBundleEncoderFinish(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureReference(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSamplerSetLabel)(WGPUSampler sampler, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSwapChainReference)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPUBlendFactor
@ WGPUBlendFactor_DstAlpha
@ WGPUBlendFactor_One
@ WGPUBlendFactor_Zero
@ WGPUBlendFactor_Src1Alpha
@ WGPUBlendFactor_Undefined
@ WGPUBlendFactor_OneMinusDst
@ WGPUBlendFactor_Force32
@ WGPUBlendFactor_OneMinusSrc1
@ WGPUBlendFactor_Constant
@ WGPUBlendFactor_OneMinusSrc
@ WGPUBlendFactor_SrcAlphaSaturated
@ WGPUBlendFactor_Src
@ WGPUBlendFactor_OneMinusSrcAlpha
@ WGPUBlendFactor_SrcAlpha
@ WGPUBlendFactor_OneMinusConstant
@ WGPUBlendFactor_Src1
@ WGPUBlendFactor_OneMinusDstAlpha
@ WGPUBlendFactor_OneMinusSrc1Alpha
@ WGPUBlendFactor_Dst
WGPUInstance(* WGPUProcCreateInstance)(WGPUInstanceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBindGroupLayoutReference)(WGPUBindGroupLayout bindGroupLayout) WGPU_FUNCTION_ATTRIBUTE
WGPUFuture(* WGPUProcBufferMapAsyncF)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPUQueryType(* WGPUProcQuerySetGetType)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSamplerRelease(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE
WGPUSamplerBindingType
@ WGPUSamplerBindingType_NonFiltering
@ WGPUSamplerBindingType_Force32
@ WGPUSamplerBindingType_Filtering
@ WGPUSamplerBindingType_Undefined
@ WGPUSamplerBindingType_Comparison
void(* WGPUCallback)(void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderReference)(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuShaderModuleReference(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPipelineReference)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderPixelLocalStorageBarrier)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUQueryType wgpuQuerySetGetType(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPULoadOp
@ WGPULoadOp_Load
@ WGPULoadOp_Force32
@ WGPULoadOp_Undefined
@ WGPULoadOp_Clear
void(* WGPUProcSharedTextureMemoryEndAccessStateFreeMembers)(WGPUSharedTextureMemoryEndAccessState value) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedTextureMemoryRelease(WGPUSharedTextureMemory sharedTextureMemory) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderInsertDebugMarker)(WGPURenderPassEncoder renderPassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcDeviceHasFeature)(WGPUDevice device, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBufferMapAsync(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQuerySetSetLabel)(WGPUQuerySet querySet, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderBeginOcclusionQuery)(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUCommandEncoder wgpuDeviceCreateCommandEncoder(WGPUDevice device, WGPU_NULLABLE WGPUCommandEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_STRUCTURE_ATTRIBUTE
Definition mini_webgpu.h:63
void(* WGPUQueueWorkDoneCallback)(WGPUQueueWorkDoneStatus status, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcShaderModuleRelease)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
WGPUTexture(* WGPUProcSharedTextureMemoryCreateTexture)(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderExecuteBundles)(WGPURenderPassEncoder renderPassEncoder, size_t bundleCount, WGPURenderBundle const *bundles) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleSetLabel(WGPURenderBundle renderBundle, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcShaderModuleGetCompilationInfo)(WGPUShaderModule shaderModule, WGPUCompilationInfoCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceForceLoss(WGPUDevice device, WGPUDeviceLostReason type, char const *message) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUSharedTextureMemory wgpuDeviceImportSharedTextureMemory(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQuerySetReference)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureRefresh(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBufferDestroy(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderPopDebugGroup(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuAdapterRequestDeviceF(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *options, WGPURequestDeviceCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTexture wgpuSwapChainGetCurrentTexture(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPUWaitStatus
@ WGPUWaitStatus_Force32
@ WGPUWaitStatus_UnsupportedCount
@ WGPUWaitStatus_Unknown
@ WGPUWaitStatus_Success
@ WGPUWaitStatus_UnsupportedTimeout
@ WGPUWaitStatus_TimedOut
@ WGPUWaitStatus_UnsupportedMixedSources
WGPU_EXPORT void wgpuDeviceSetLoggingCallback(WGPUDevice device, WGPULoggingCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUStorageTextureAccess
@ WGPUStorageTextureAccess_Undefined
@ WGPUStorageTextureAccess_ReadOnly
@ WGPUStorageTextureAccess_WriteOnly
@ WGPUStorageTextureAccess_Force32
@ WGPUStorageTextureAccess_ReadWrite
WGPUWaitStatus(* WGPUProcInstanceWaitAny)(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE
WGPUPowerPreference
@ WGPUPowerPreference_Force32
@ WGPUPowerPreference_HighPerformance
@ WGPUPowerPreference_LowPower
@ WGPUPowerPreference_Undefined
void(* WGPUProcExternalTextureDestroy)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroups(WGPUComputePassEncoder computePassEncoder, uint32_t workgroupCountX, uint32_t workgroupCountY, uint32_t workgroupCountZ) WGPU_FUNCTION_ATTRIBUTE
#define WGPU_NULLABLE
Definition mini_webgpu.h:69
WGPU_EXPORT void wgpuTextureDestroy(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUPipelineLayout wgpuDeviceCreatePipelineLayout(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderInjectValidationError(WGPUCommandEncoder commandEncoder, char const *message) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderCopyTextureToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureView(* WGPUProcSwapChainGetCurrentTextureView)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTexture wgpuSharedTextureMemoryCreateTexture(WGPUSharedTextureMemory sharedTextureMemory, WGPU_NULLABLE WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPURenderPassEncoder(* WGPUProcCommandEncoderBeginRenderPass)(WGPUCommandEncoder commandEncoder, WGPURenderPassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderCopyTextureToTexture(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderWriteTimestamp)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryBeginAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUPresentMode
@ WGPUPresentMode_Fifo
@ WGPUPresentMode_Force32
@ WGPUPresentMode_Immediate
@ WGPUPresentMode_Mailbox
void(* WGPUProcCommandEncoderCopyTextureToBuffer)(WGPUCommandEncoder commandEncoder, WGPUImageCopyTexture const *source, WGPUImageCopyBuffer const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueRelease(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
WGPUSharedTextureMemory(* WGPUProcDeviceImportSharedTextureMemory)(WGPUDevice device, WGPUSharedTextureMemoryDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEncoder renderBundleEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceCreateComputePipelineAsync)(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedFenceExportInfo)(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo *info) WGPU_FUNCTION_ATTRIBUTE
WGPULoggingType
@ WGPULoggingType_Verbose
@ WGPULoggingType_Info
@ WGPULoggingType_Error
@ WGPULoggingType_Force32
@ WGPULoggingType_Warning
WGPU_EXPORT void wgpuQuerySetReference(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const *dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceInjectError(WGPUDevice device, WGPUErrorType type, char const *message) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueRelease)(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
WGPUBuffer(* WGPUProcDeviceCreateBuffer)(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureUsageFlags wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUBlendOperation
@ WGPUBlendOperation_Undefined
@ WGPUBlendOperation_Max
@ WGPUBlendOperation_Subtract
@ WGPUBlendOperation_Min
@ WGPUBlendOperation_Add
@ WGPUBlendOperation_Force32
@ WGPUBlendOperation_ReverseSubtract
void(* WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const *color) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcDeviceGetLimits)(WGPUDevice device, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBindGroupReference)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderDrawIndexedIndirect(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureReference)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQuerySetRelease(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBindGroupLayoutSetLabel)(WGPUBindGroupLayout bindGroupLayout, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPULoggingCallback)(WGPULoggingType type, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSharedTextureMemoryGetProperties)(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties *properties) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor, WGPUCreateRenderPipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderInsertDebugMarker)(WGPUCommandEncoder commandEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuTextureGetDepthOrArrayLayers(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUComputePassEncoder(* WGPUProcCommandEncoderBeginComputePass)(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuAdapterGetProperties(WGPUAdapter adapter, WGPUAdapterProperties *properties) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBindGroupLayout wgpuComputePipelineGetBindGroupLayout(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderEnd(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBindGroupReference(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueSubmit(WGPUQueue queue, size_t commandCount, WGPUCommandBuffer const *commands) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQuerySetSetLabel(WGPUQuerySet querySet, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUQueueWorkDoneStatus
@ WGPUQueueWorkDoneStatus_Unknown
@ WGPUQueueWorkDoneStatus_Error
@ WGPUQueueWorkDoneStatus_DeviceLost
@ WGPUQueueWorkDoneStatus_Success
@ WGPUQueueWorkDoneStatus_Force32
@ WGPUQueueWorkDoneStatus_InstanceDropped
WGPUTextureDimension(* WGPUProcTextureGetDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderPixelLocalStorageBarrier(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcShaderModuleReference)(WGPUShaderModule shaderModule) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueCopyTextureForBrowser)(WGPUQueue queue, WGPUImageCopyTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetViewport)(WGPURenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleReference(WGPURenderBundle renderBundle) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceSetLabel)(WGPUDevice device, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandBufferRelease(WGPUCommandBuffer commandBuffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterRelease)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuTextureViewReference(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUSwapChain wgpuDeviceCreateSwapChain(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureFormat(* WGPUProcSurfaceGetPreferredFormat)(WGPUSurface surface, WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePipelineRelease(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void * wgpuBufferGetMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder computePassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterReference)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureViewReference)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBufferSetLabel(WGPUBuffer buffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueReference(WGPUQueue queue) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceSetDeviceLostCallback)(WGPUDevice device, WGPUDeviceLostCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcInstanceHasWGSLLanguageFeature)(WGPUInstance instance, WGPUWGSLFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueCopyExternalTextureForBrowser)(WGPUQueue queue, WGPUImageCopyExternalTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderBeginOcclusionQuery(WGPURenderPassEncoder renderPassEncoder, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBufferMapAsync)(WGPUBuffer buffer, WGPUMapModeFlags mode, size_t offset, size_t size, WGPUBufferMapCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
void(* WGPURequestAdapterCallback)(WGPURequestAdapterStatus status, WGPUAdapter adapter, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUPipelineLayout(* WGPUProcDeviceCreatePipelineLayout)(WGPUDevice device, WGPUPipelineLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSwapChainReference(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcSharedTextureMemoryBeginAccess)(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryBeginAccessDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcExternalTextureExpire)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPUSurface(* WGPUProcInstanceCreateSurface)(WGPUInstance instance, WGPUSurfaceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcQueueOnSubmittedWorkDone)(WGPUQueue queue, WGPUQueueWorkDoneCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuTextureViewSetLabel(WGPUTextureView textureView, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcExternalTextureSetLabel)(WGPUExternalTexture externalTexture, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePipelineReference)(WGPUComputePipeline computePipeline) WGPU_FUNCTION_ATTRIBUTE
WGPUDevice(* WGPUProcAdapterCreateDevice)(WGPUAdapter adapter, WGPU_NULLABLE WGPUDeviceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUBindGroupLayout(* WGPUProcComputePipelineGetBindGroupLayout)(WGPUComputePipeline computePipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBufferUsageFlags wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPUVertexStepMode
@ WGPUVertexStepMode_Undefined
@ WGPUVertexStepMode_VertexBufferNotUsed
@ WGPUVertexStepMode_Instance
@ WGPUVertexStepMode_Vertex
@ WGPUVertexStepMode_Force32
WGPU_EXPORT void wgpuDeviceSetLabel(WGPUDevice device, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT size_t wgpuDeviceEnumerateFeatures(WGPUDevice device, WGPUFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedTextureMemorySetLabel(WGPUSharedTextureMemory sharedTextureMemory, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceDestroy(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPUQueryType
@ WGPUQueryType_Occlusion
@ WGPUQueryType_Timestamp
@ WGPUQueryType_Force32
WGPU_EXPORT void wgpuBufferUnmap(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceInjectError)(WGPUDevice device, WGPUErrorType type, char const *message) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderDrawIndexed)(WGPURenderPassEncoder renderPassEncoder, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t baseVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUExternalTexture wgpuDeviceCreateExternalTexture(WGPUDevice device, WGPUExternalTextureDescriptor const *externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderResolveQuerySet(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE
WGPUHeapProperty
@ WGPUHeapProperty_DeviceLocal
@ WGPUHeapProperty_HostCoherent
@ WGPUHeapProperty_Undefined
@ WGPUHeapProperty_HostCached
@ WGPUHeapProperty_HostVisible
@ WGPUHeapProperty_Force32
@ WGPUHeapProperty_HostUncached
WGPU_EXPORT void wgpuAdapterPropertiesMemoryHeapsFreeMembers(WGPUAdapterPropertiesMemoryHeaps value) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSwapChainPresent)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuExternalTextureSetLabel(WGPUExternalTexture externalTexture, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcGetInstanceFeatures)(WGPUInstanceFeatures *features) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBindGroup wgpuDeviceCreateBindGroup(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUAdapterType
@ WGPUAdapterType_CPU
@ WGPUAdapterType_DiscreteGPU
@ WGPUAdapterType_IntegratedGPU
@ WGPUAdapterType_Unknown
@ WGPUAdapterType_Force32
WGPU_EXPORT WGPUFuture wgpuQueueOnSubmittedWorkDoneF(WGPUQueue queue, WGPUQueueWorkDoneCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPUSharedFence(* WGPUProcDeviceImportSharedFence)(WGPUDevice device, WGPUSharedFenceDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcInstanceRequestAdapter)(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderReference(WGPUCommandEncoder commandEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUComputePipeline(* WGPUProcDeviceCreateComputePipeline)(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceSetLoggingCallback)(WGPUDevice device, WGPULoggingCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedFenceExportInfo(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo *info) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderEnd)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPUFuture(* WGPUProcDeviceCreateComputePipelineAsyncF)(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceReference(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
WGPUCompilationInfoRequestStatus
@ WGPUCompilationInfoRequestStatus_Force32
@ WGPUCompilationInfoRequestStatus_Success
@ WGPUCompilationInfoRequestStatus_Error
@ WGPUCompilationInfoRequestStatus_DeviceLost
@ WGPUCompilationInfoRequestStatus_InstanceDropped
@ WGPUCompilationInfoRequestStatus_Unknown
void(* WGPUProcBufferSetLabel)(WGPUBuffer buffer, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuInstanceRequestAdapter(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUProc wgpuGetProcAddress(WGPU_NULLABLE WGPUDevice device, char const *procName) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcSurfaceReference)(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuAdapterHasFeature(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderInsertDebugMarker(WGPURenderPassEncoder renderPassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUMipmapFilterMode
@ WGPUMipmapFilterMode_Undefined
@ WGPUMipmapFilterMode_Linear
@ WGPUMipmapFilterMode_Force32
@ WGPUMipmapFilterMode_Nearest
WGPU_EXPORT void wgpuAdapterPropertiesFreeMembers(WGPUAdapterProperties value) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureViewRelease)(WGPUTextureView textureView) WGPU_FUNCTION_ATTRIBUTE
WGPUSwapChain(* WGPUProcDeviceCreateSwapChain)(WGPUDevice device, WGPUSurface surface, WGPUSwapChainDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySetDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderDrawIndexedIndirect)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderCopyBufferToTexture)(WGPUCommandEncoder commandEncoder, WGPUImageCopyBuffer const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuComputePassEncoderDispatchWorkgroupsIndirect(WGPUComputePassEncoder computePassEncoder, WGPUBuffer indirectBuffer, uint64_t indirectOffset) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPUExternalTextureRotation
@ WGPUExternalTextureRotation_Rotate180Degrees
@ WGPUExternalTextureRotation_Force32
@ WGPUExternalTextureRotation_Rotate270Degrees
@ WGPUExternalTextureRotation_Rotate0Degrees
@ WGPUExternalTextureRotation_Rotate90Degrees
WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
uint32_t(* WGPUProcQuerySetGetCount)(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQueueCopyExternalTextureForBrowser(WGPUQueue queue, WGPUImageCopyExternalTexture const *source, WGPUImageCopyTexture const *destination, WGPUExtent3D const *copySize, WGPUCopyTextureForBrowserOptions const *options) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUAdapter wgpuDeviceGetAdapter(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderReference)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuPipelineLayoutReference(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder renderPassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuInstanceProcessEvents(WGPUInstance instance) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUWaitStatus wgpuInstanceWaitAny(WGPUInstance instance, size_t futureCount, WGPUFutureWaitInfo *futures, uint64_t timeoutNS) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUTextureView wgpuSwapChainGetCurrentTextureView(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcPipelineLayoutRelease)(WGPUPipelineLayout pipelineLayout) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBindGroupLayout wgpuRenderPipelineGetBindGroupLayout(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedFenceReference(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUBufferMapCallback)(WGPUBufferMapAsyncStatus status, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureFormat(* WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
WGPUBool(* WGPUProcAdapterHasFeature)(WGPUAdapter adapter, WGPUFeatureName feature) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuBufferRelease(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuInstanceRequestAdapterF(WGPUInstance instance, WGPU_NULLABLE WGPURequestAdapterOptions const *options, WGPURequestAdapterCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
WGPUBufferMapAsyncStatus
@ WGPUBufferMapAsyncStatus_OffsetOutOfRange
@ WGPUBufferMapAsyncStatus_DestroyedBeforeCallback
@ WGPUBufferMapAsyncStatus_SizeOutOfRange
@ WGPUBufferMapAsyncStatus_ValidationError
@ WGPUBufferMapAsyncStatus_Success
@ WGPUBufferMapAsyncStatus_UnmappedBeforeCallback
@ WGPUBufferMapAsyncStatus_MappingAlreadyPending
@ WGPUBufferMapAsyncStatus_Force32
@ WGPUBufferMapAsyncStatus_DeviceLost
@ WGPUBufferMapAsyncStatus_InstanceDropped
@ WGPUBufferMapAsyncStatus_Unknown
WGPU_EXPORT WGPUBool wgpuAdapterGetLimits(WGPUAdapter adapter, WGPUSupportedLimits *limits) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, char const *message, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncoder renderBundleEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBindGroupLayout wgpuDeviceCreateBindGroupLayout(WGPUDevice device, WGPUBindGroupLayoutDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUSharedFenceType
@ WGPUSharedFenceType_MTLSharedEvent
@ WGPUSharedFenceType_Force32
@ WGPUSharedFenceType_Undefined
@ WGPUSharedFenceType_VkSemaphoreOpaqueFD
@ WGPUSharedFenceType_VkSemaphoreZirconHandle
@ WGPUSharedFenceType_VkSemaphoreSyncFD
@ WGPUSharedFenceType_DXGISharedHandle
WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcAdapterPropertiesMemoryHeapsFreeMembers)(WGPUAdapterPropertiesMemoryHeaps value) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderReference)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void const * wgpuBufferGetConstMappedRange(WGPUBuffer buffer, size_t offset, size_t size) WGPU_FUNCTION_ATTRIBUTE
WGPUTexture(* WGPUProcSwapChainGetCurrentTexture)(WGPUSwapChain swapChain) WGPU_FUNCTION_ATTRIBUTE
WGPUFrontFace
@ WGPUFrontFace_CW
@ WGPUFrontFace_Undefined
@ WGPUFrontFace_CCW
@ WGPUFrontFace_Force32
void(* WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, char const *label) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBufferRelease)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncoder computePassEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUTexture(* WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUStoreOp
@ WGPUStoreOp_Discard
@ WGPUStoreOp_Force32
@ WGPUStoreOp_Store
@ WGPUStoreOp_Undefined
WGPUErrorFilter
@ WGPUErrorFilter_Internal
@ WGPUErrorFilter_Force32
@ WGPUErrorFilter_OutOfMemory
@ WGPUErrorFilter_Validation
void(* WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcDeviceTick)(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSharedFenceRelease(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUQueue wgpuDeviceGetQueue(WGPUDevice device) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcExternalTextureRefresh)(WGPUExternalTexture externalTexture) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuDeviceSetDeviceLostCallback(WGPUDevice device, WGPUDeviceLostCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuQuerySetDestroy(WGPUQuerySet querySet) WGPU_FUNCTION_ATTRIBUTE
uint32_t WGPUFlags
Definition mini_webgpu.h:86
WGPU_EXPORT void wgpuSharedTextureMemoryGetProperties(WGPUSharedTextureMemory sharedTextureMemory, WGPUSharedTextureMemoryProperties *properties) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuSurfaceRelease(WGPUSurface surface) WGPU_FUNCTION_ATTRIBUTE
WGPURenderPipeline(* WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
size_t(* WGPUProcInstanceEnumerateWGSLLanguageFeatures)(WGPUInstance instance, WGPUWGSLFeatureName *features) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcBufferReference)(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcTextureViewSetLabel)(WGPUTextureView textureView, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuShaderModuleSetLabel(WGPUShaderModule shaderModule, char const *label) WGPU_FUNCTION_ATTRIBUTE
WGPURenderBundle(* WGPUProcRenderBundleEncoderFinish)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPURenderBundleDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderWriteBuffer(WGPUCommandEncoder commandEncoder, WGPUBuffer buffer, uint64_t bufferOffset, uint8_t const *data, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUFuture wgpuDeviceCreateComputePipelineAsyncF(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderPushDebugGroup)(WGPUCommandEncoder commandEncoder, char const *groupLabel) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUInstance wgpuAdapterGetInstance(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPUBindGroup(* WGPUProcDeviceCreateBindGroup)(WGPUDevice device, WGPUBindGroupDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUCallbackMode
@ WGPUCallbackMode_AllowProcessEvents
@ WGPUCallbackMode_AllowSpontaneous
@ WGPUCallbackMode_WaitAnyOnly
@ WGPUCallbackMode_Force32
WGPU_EXPORT void wgpuRenderPassEncoderDraw(WGPURenderPassEncoder renderPassEncoder, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) WGPU_FUNCTION_ATTRIBUTE
WGPUProc(* WGPUProcGetProcAddress)(WGPUDevice device, char const *procName) WGPU_FUNCTION_ATTRIBUTE
WGPUTextureSampleType
@ WGPUTextureSampleType_Float
@ WGPUTextureSampleType_Sint
@ WGPUTextureSampleType_Undefined
@ WGPUTextureSampleType_Force32
@ WGPUTextureSampleType_Uint
@ WGPUTextureSampleType_Depth
@ WGPUTextureSampleType_UnfilterableFloat
WGPU_EXPORT void wgpuDeviceCreateComputePipelineAsync(WGPUDevice device, WGPUComputePipelineDescriptor const *descriptor, WGPUCreateComputePipelineAsyncCallback callback, void *userdata) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUBool wgpuSharedTextureMemoryEndAccess(WGPUSharedTextureMemory sharedTextureMemory, WGPUTexture texture, WGPUSharedTextureMemoryEndAccessState *descriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPUInstance(* WGPUProcAdapterGetInstance)(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPUColorWriteMask
@ WGPUColorWriteMask_Red
@ WGPUColorWriteMask_Green
@ WGPUColorWriteMask_None
@ WGPUColorWriteMask_Force32
@ WGPUColorWriteMask_All
@ WGPUColorWriteMask_Blue
@ WGPUColorWriteMask_Alpha
void(* WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
WGPURenderBundleEncoder(* WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT WGPUComputePassEncoder wgpuCommandEncoderBeginComputePass(WGPUCommandEncoder commandEncoder, WGPU_NULLABLE WGPUComputePassDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
WGPUExternalTexture(* WGPUProcDeviceCreateExternalTexture)(WGPUDevice device, WGPUExternalTextureDescriptor const *externalTextureDescriptor) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderCopyBufferToBuffer)(WGPUCommandEncoder commandEncoder, WGPUBuffer source, uint64_t sourceOffset, WGPUBuffer destination, uint64_t destinationOffset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE
void(* WGPUProcCommandEncoderResolveQuerySet)(WGPUCommandEncoder commandEncoder, WGPUQuerySet querySet, uint32_t firstQuery, uint32_t queryCount, WGPUBuffer destination, uint64_t destinationOffset) WGPU_FUNCTION_ATTRIBUTE
WGPUBindGroupLayout(* WGPUProcRenderPipelineGetBindGroupLayout)(WGPURenderPipeline renderPipeline, uint32_t groupIndex) WGPU_FUNCTION_ATTRIBUTE
WGPU_EXPORT void wgpuCommandEncoderInsertDebugMarker(WGPUCommandEncoder commandEncoder, char const *markerLabel) WGPU_FUNCTION_ATTRIBUTE
WGPUErrorType
@ WGPUErrorType_NoError
@ WGPUErrorType_DeviceLost
@ WGPUErrorType_OutOfMemory
@ WGPUErrorType_Unknown
@ WGPUErrorType_Validation
@ WGPUErrorType_Force32
@ WGPUErrorType_Internal
WGPU_EXPORT void wgpuAdapterRelease(WGPUAdapter adapter) WGPU_FUNCTION_ATTRIBUTE
WGPUBuffer(* WGPUProcDeviceCreateErrorBuffer)(WGPUDevice device, WGPUBufferDescriptor const *descriptor) WGPU_FUNCTION_ATTRIBUTE
unsigned __INT64_TYPE__ uint64_t
signed __INT32_TYPE__ int32_t
unsigned __INT8_TYPE__ uint8_t
unsigned __INT16_TYPE__ uint16_t
__SIZE_TYPE__ size_t
unsigned __INT32_TYPE__ uint32_t
WGPUChainedStructOut chain
WGPUBackendType backendType
WGPUChainedStructOut * nextInChain
char const * driverDescription
char const * architecture
char const * vendorName
WGPUAdapterType adapterType
WGPUMemoryHeapInfo const * heapInfo
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPUBindGroupLayout layout
WGPUBindGroupEntry const * entries
WGPU_NULLABLE WGPUBuffer buffer
uint64_t offset
uint64_t size
WGPU_NULLABLE WGPUSampler sampler
WGPU_NULLABLE WGPUTextureView textureView
WGPUChainedStruct const * nextInChain
uint32_t binding
WGPUBindGroupLayoutEntry const * entries
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPUTextureBindingLayout texture
WGPUBufferBindingLayout buffer
uint32_t binding
WGPUShaderStageFlags visibility
WGPUChainedStruct const * nextInChain
WGPUStorageTextureBindingLayout storageTexture
WGPUSamplerBindingLayout sampler
WGPUBlendFactor dstFactor
WGPUBlendFactor srcFactor
WGPUBlendOperation operation
WGPUBlendComponent alpha
WGPUBlendComponent color
WGPUChainedStruct const * nextInChain
WGPUBufferBindingType type
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPUBufferUsageFlags usage
WGPUChainedStruct const * nextInChain
WGPUBufferMapCallback callback
struct WGPUChainedStruct const * next
struct WGPUChainedStructOut * next
WGPUColorWriteMaskFlags writeMask
WGPUTextureFormat format
WGPU_NULLABLE WGPUBlendState const * blend
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPUCompilationMessage const * messages
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * message
WGPUCompilationMessageType type
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE WGPUComputePassTimestampWrites const * timestampWrites
WGPUProgrammableStageDescriptor compute
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPU_NULLABLE WGPUPipelineLayout layout
double value
char const * key
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE float const * srcTransferFunctionParameters
WGPU_NULLABLE float const * dstTransferFunctionParameters
WGPU_NULLABLE float const * conversionMatrix
WGPUChainedStruct const * nextInChain
WGPUCreateComputePipelineAsyncCallback callback
WGPUChainedStruct const * nextInChain
WGPUCreateRenderPipelineAsyncCallback callback
WGPUDawnLoadCacheDataFunction loadDataFunction
WGPUDawnStoreCacheDataFunction storeDataFunction
const char *const * enabledToggles
WGPUChainedStruct chain
const char *const * disabledToggles
WGPUChainedStruct chain
const char *const * blocklistedFeatures
WGPUChainedStruct chain
WGPUStencilFaceState stencilFront
WGPUChainedStruct const * nextInChain
WGPUStencilFaceState stencilBack
WGPUCompareFunction depthCompare
WGPUTextureFormat format
WGPUChainedStruct const * nextInChain
WGPUFeatureName const * requiredFeatures
WGPUQueueDescriptor defaultQueue
WGPU_NULLABLE WGPURequiredLimits const * requiredLimits
WGPUDeviceLostCallback deviceLostCallback
WGPU_NULLABLE char const * label
uint32_t width
uint32_t height
uint32_t width
uint32_t depthOrArrayLayers
uint32_t height
WGPUChainedStruct chain
WGPUExternalTexture externalTexture
float const * dstTransferFunctionParameters
WGPU_NULLABLE float const * yuvToRgbConversionMatrix
float const * srcTransferFunctionParameters
WGPU_NULLABLE WGPUTextureView plane1
WGPUExternalTextureRotation rotation
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPUShaderModule module
WGPU_NULLABLE char const * entryPoint
WGPUChainedStruct const * nextInChain
WGPUConstantEntry const * constants
WGPUColorTargetState const * targets
uint64_t id
WGPUChainedStruct const * nextInChain
WGPUTextureDataLayout layout
WGPUExternalTexture externalTexture
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
WGPUTextureAspect aspect
WGPUInstanceFeatures features
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
uint32_t maxBindGroupsPlusVertexBuffers
uint32_t maxColorAttachmentBytesPerSample
uint32_t maxTextureDimension2D
uint32_t maxSampledTexturesPerShaderStage
uint32_t maxTextureDimension3D
uint32_t maxSamplersPerShaderStage
uint32_t maxBindingsPerBindGroup
uint32_t maxComputeWorkgroupsPerDimension
uint32_t maxDynamicStorageBuffersPerPipelineLayout
uint32_t maxInterStageShaderComponents
uint32_t maxComputeWorkgroupStorageSize
uint32_t minStorageBufferOffsetAlignment
uint32_t maxComputeWorkgroupSizeY
uint64_t maxStorageBufferBindingSize
uint32_t maxComputeInvocationsPerWorkgroup
uint32_t maxVertexBufferArrayStride
uint32_t minUniformBufferOffsetAlignment
uint32_t maxVertexAttributes
uint32_t maxColorAttachments
uint32_t maxInterStageShaderVariables
uint32_t maxComputeWorkgroupSizeZ
uint32_t maxTextureDimension1D
uint32_t maxDynamicUniformBuffersPerPipelineLayout
uint64_t maxUniformBufferBindingSize
uint64_t maxBufferSize
uint32_t maxUniformBuffersPerShaderStage
uint32_t maxComputeWorkgroupSizeX
uint32_t maxVertexBuffers
uint32_t maxTextureArrayLayers
uint32_t maxStorageTexturesPerShaderStage
uint32_t maxStorageBuffersPerShaderStage
uint32_t maxBindGroups
WGPUHeapPropertyFlags properties
WGPUBool alphaToCoverageEnabled
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
WGPUBindGroupLayout const * bindGroupLayouts
WGPU_NULLABLE char const * label
WGPUPipelineLayoutStorageAttachment const * storageAttachments
WGPUChainedStruct const * nextInChain
WGPUFrontFace frontFace
WGPUIndexFormat stripIndexFormat
WGPUChainedStruct const * nextInChain
WGPUPrimitiveTopology topology
WGPUCullMode cullMode
WGPU_NULLABLE char const * entryPoint
WGPUConstantEntry const * constants
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
WGPUQueueWorkDoneCallback callback
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
WGPUTextureFormat const * colorFormats
WGPU_NULLABLE char const * label
WGPU_NULLABLE WGPUTextureView view
WGPU_NULLABLE WGPUTextureView resolveTarget
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
WGPURenderPassColorAttachment const * colorAttachments
WGPU_NULLABLE WGPUQuerySet occlusionQuerySet
WGPU_NULLABLE WGPURenderPassDepthStencilAttachment const * depthStencilAttachment
WGPU_NULLABLE WGPURenderPassTimestampWrites const * timestampWrites
WGPU_NULLABLE char const * label
WGPURenderPassStorageAttachment const * storageAttachments
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPU_NULLABLE WGPUPipelineLayout layout
WGPUMultisampleState multisample
WGPU_NULLABLE WGPUFragmentState const * fragment
WGPU_NULLABLE WGPUDepthStencilState const * depthStencil
WGPUChainedStruct const * nextInChain
WGPUPrimitiveState primitive
WGPURequestAdapterCallback callback
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE WGPUSurface compatibleSurface
WGPUBackendType backendType
WGPUChainedStruct const * nextInChain
WGPUPowerPreference powerPreference
WGPUChainedStruct const * nextInChain
WGPURequestDeviceCallback callback
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
WGPUSamplerBindingType type
WGPUFilterMode minFilter
WGPUAddressMode addressModeU
WGPUCompareFunction compare
WGPUAddressMode addressModeW
WGPUAddressMode addressModeV
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPUFilterMode magFilter
WGPUMipmapFilterMode mipmapFilter
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPUSharedFenceType type
WGPUChainedStructOut * nextInChain
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPUSharedTextureMemoryDmaBufPlane const * planes
WGPUChainedStructOut * nextInChain
WGPUCompareFunction compare
WGPUStencilOperation depthFailOp
WGPUStencilOperation passOp
WGPUStencilOperation failOp
WGPUChainedStruct const * nextInChain
WGPUTextureViewDimension viewDimension
WGPUStorageTextureAccess access
WGPUChainedStructOut * nextInChain
WGPU_NULLABLE char const * label
WGPUChainedStruct const * nextInChain
WGPUTextureFormat format
WGPUChainedStruct const * nextInChain
WGPUPresentMode presentMode
WGPUTextureUsageFlags usage
WGPU_NULLABLE char const * label
WGPUTextureViewDimension viewDimension
WGPUChainedStruct const * nextInChain
WGPUTextureSampleType sampleType
WGPUTextureViewDimension textureBindingViewDimension
WGPUChainedStruct const * nextInChain
WGPUChainedStruct const * nextInChain
WGPU_NULLABLE char const * label
WGPUTextureFormat const * viewFormats
WGPUTextureDimension dimension
WGPUTextureFormat format
WGPUTextureUsageFlags usage
WGPUChainedStruct const * nextInChain
WGPUTextureFormat format
WGPUTextureViewDimension dimension
WGPU_NULLABLE char const * label
WGPUTextureAspect aspect
WGPUVertexFormat format
WGPUVertexAttribute const * attributes
WGPUVertexStepMode stepMode
WGPUVertexBufferLayout const * buffers
WGPUChainedStruct const * nextInChain
WGPUConstantEntry const * constants
WGPU_NULLABLE char const * entryPoint
WGPUShaderModule module