react-native-wgpu 0.5.10 → 0.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -0
- package/android/CMakeLists.txt +2 -0
- package/android/cpp/AndroidPlatformContext.h +127 -5
- package/apple/ApplePlatformContext.h +17 -4
- package/apple/ApplePlatformContext.mm +161 -16
- package/apple/AppleVideoPlayer.h +31 -0
- package/apple/AppleVideoPlayer.mm +314 -0
- package/apple/WebGPUModule.h +2 -1
- package/apple/WebGPUModule.mm +4 -2
- package/cpp/rnwgpu/ArrayBuffer.h +51 -7
- package/cpp/rnwgpu/PlatformContext.h +91 -8
- package/cpp/rnwgpu/RNWebGPUManager.cpp +12 -0
- package/cpp/rnwgpu/api/Convertors.h +33 -11
- package/cpp/rnwgpu/api/GPU.cpp +27 -0
- package/cpp/rnwgpu/api/GPUAdapter.cpp +109 -33
- package/cpp/rnwgpu/api/GPUDevice.cpp +58 -5
- package/cpp/rnwgpu/api/GPUDevice.h +6 -0
- package/cpp/rnwgpu/api/GPUExternalTexture.cpp +335 -0
- package/cpp/rnwgpu/api/GPUExternalTexture.h +47 -2
- package/cpp/rnwgpu/api/GPUFeatures.h +7 -13
- package/cpp/rnwgpu/api/GPUShaderModule.cpp +2 -3
- package/cpp/rnwgpu/api/GPUSharedTextureMemory.cpp +80 -0
- package/cpp/rnwgpu/api/GPUSharedTextureMemory.h +71 -0
- package/cpp/rnwgpu/api/ImageBitmap.h +8 -0
- package/cpp/rnwgpu/api/RNWebGPU.h +70 -32
- package/cpp/rnwgpu/api/RnFeatures.h +53 -0
- package/cpp/rnwgpu/api/VideoFrame.h +76 -0
- package/cpp/rnwgpu/api/VideoPlayer.h +69 -0
- package/cpp/rnwgpu/api/descriptors/GPUBindGroupEntry.h +4 -1
- package/cpp/rnwgpu/api/descriptors/GPUDawnTogglesDescriptor.h +57 -0
- package/cpp/rnwgpu/api/descriptors/GPUDeviceDescriptor.h +18 -3
- package/cpp/rnwgpu/api/descriptors/GPUExternalTextureDescriptor.h +35 -33
- package/cpp/rnwgpu/api/descriptors/GPUSharedTextureMemoryDescriptor.h +62 -0
- package/cpp/rnwgpu/api/descriptors/Unions.h +10 -15
- package/cpp/webgpu/webgpu.h +312 -188
- package/cpp/webgpu/webgpu_cpp.h +1611 -1720
- package/cpp/webgpu/webgpu_cpp_print.h +190 -61
- package/lib/commonjs/Canvas.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/Canvas.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/Canvas.d.ts +0 -10
- package/lib/typescript/src/Canvas.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +20 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +32 -1
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/libs/android/arm64-v8a/libwebgpu_dawn.so +0 -0
- package/libs/android/armeabi-v7a/libwebgpu_dawn.so +0 -0
- package/libs/android/x86/libwebgpu_dawn.so +0 -0
- package/libs/android/x86_64/libwebgpu_dawn.so +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/Info.plist +8 -8
- package/libs/apple/libwebgpu_dawn.xcframework/ios-arm64/libwebgpu_dawn.a +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/ios-arm64_x86_64-simulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/macos-arm64_x86_64/libwebgpu_dawn.a +0 -0
- package/package.json +5 -5
- package/src/Canvas.tsx +0 -15
- package/src/index.tsx +62 -2
- package/src/types.ts +83 -1
- package/libs/dawn.json +0 -4693
package/cpp/webgpu/webgpu.h
CHANGED
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
#define WGPU_COPY_STRIDE_UNDEFINED (UINT32_MAX)
|
|
98
98
|
#define WGPU_DEPTH_CLEAR_VALUE_UNDEFINED (NAN)
|
|
99
99
|
#define WGPU_DEPTH_SLICE_UNDEFINED (UINT32_MAX)
|
|
100
|
+
#define WGPU_INVALID_BINDING (UINT32_MAX)
|
|
100
101
|
#define WGPU_LIMIT_U32_UNDEFINED (UINT32_MAX)
|
|
101
102
|
#define WGPU_LIMIT_U64_UNDEFINED (UINT64_MAX)
|
|
102
103
|
#define WGPU_MIP_LEVEL_COUNT_UNDEFINED (UINT32_MAX)
|
|
@@ -136,6 +137,7 @@ typedef struct WGPURenderBundleImpl* WGPURenderBundle WGPU_OBJECT_ATTRIBUTE;
|
|
|
136
137
|
typedef struct WGPURenderBundleEncoderImpl* WGPURenderBundleEncoder WGPU_OBJECT_ATTRIBUTE;
|
|
137
138
|
typedef struct WGPURenderPassEncoderImpl* WGPURenderPassEncoder WGPU_OBJECT_ATTRIBUTE;
|
|
138
139
|
typedef struct WGPURenderPipelineImpl* WGPURenderPipeline WGPU_OBJECT_ATTRIBUTE;
|
|
140
|
+
typedef struct WGPUResourceTableImpl* WGPUResourceTable WGPU_OBJECT_ATTRIBUTE;
|
|
139
141
|
typedef struct WGPUSamplerImpl* WGPUSampler WGPU_OBJECT_ATTRIBUTE;
|
|
140
142
|
typedef struct WGPUShaderModuleImpl* WGPUShaderModule WGPU_OBJECT_ATTRIBUTE;
|
|
141
143
|
typedef struct WGPUSharedBufferMemoryImpl* WGPUSharedBufferMemory WGPU_OBJECT_ATTRIBUTE;
|
|
@@ -148,13 +150,15 @@ typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
|
|
|
148
150
|
|
|
149
151
|
// Structure forward declarations
|
|
150
152
|
struct WGPUAdapterPropertiesD3D;
|
|
153
|
+
struct WGPUAdapterPropertiesDrm;
|
|
151
154
|
struct WGPUAdapterPropertiesVk;
|
|
152
155
|
struct WGPUAdapterPropertiesWGPU;
|
|
153
|
-
struct
|
|
156
|
+
struct WGPUBindingResource;
|
|
154
157
|
struct WGPUBlendComponent;
|
|
155
158
|
struct WGPUBufferBindingLayout;
|
|
156
159
|
struct WGPUBufferHostMappedPointer;
|
|
157
160
|
struct WGPUColor;
|
|
161
|
+
struct WGPUColorSpaceDawn;
|
|
158
162
|
struct WGPUColorTargetStateExpandResolveTextureDawn;
|
|
159
163
|
struct WGPUCommandBufferDescriptor;
|
|
160
164
|
struct WGPUCompatibilityModeLimits;
|
|
@@ -172,15 +176,13 @@ struct WGPUDawnFakeBufferOOMForTesting;
|
|
|
172
176
|
struct WGPUDawnFakeDeviceInitializeErrorForTesting;
|
|
173
177
|
struct WGPUDawnHostMappedPointerLimits;
|
|
174
178
|
struct WGPUDawnInjectedInvalidSType;
|
|
175
|
-
struct
|
|
179
|
+
struct WGPUDawnRenderPassSampleCount;
|
|
176
180
|
struct WGPUDawnShaderModuleSPIRVOptionsDescriptor;
|
|
177
181
|
struct WGPUDawnTexelCopyBufferRowAlignmentLimits;
|
|
178
182
|
struct WGPUDawnTextureInternalUsageDescriptor;
|
|
179
183
|
struct WGPUDawnTogglesDescriptor;
|
|
180
184
|
struct WGPUDawnWGSLBlocklist;
|
|
181
185
|
struct WGPUDawnWireWGSLControl;
|
|
182
|
-
struct WGPUDynamicBindingArrayLayout;
|
|
183
|
-
struct WGPUDynamicBindingArrayLimits;
|
|
184
186
|
struct WGPUEmscriptenSurfaceSourceCanvasHTMLSelector;
|
|
185
187
|
struct WGPUExtent2D;
|
|
186
188
|
struct WGPUExtent3D;
|
|
@@ -194,6 +196,7 @@ struct WGPUMultisampleState;
|
|
|
194
196
|
struct WGPUOrigin2D;
|
|
195
197
|
struct WGPUOrigin3D;
|
|
196
198
|
struct WGPUPassTimestampWrites;
|
|
199
|
+
struct WGPUPipelineLayoutResourceTable;
|
|
197
200
|
struct WGPUPipelineLayoutStorageAttachment;
|
|
198
201
|
struct WGPUPrimitiveState;
|
|
199
202
|
struct WGPUQuerySetDescriptor;
|
|
@@ -201,17 +204,17 @@ struct WGPUQueueDescriptor;
|
|
|
201
204
|
struct WGPURenderBundleDescriptor;
|
|
202
205
|
struct WGPURenderBundleEncoderDescriptor;
|
|
203
206
|
struct WGPURenderPassDepthStencilAttachment;
|
|
204
|
-
struct WGPURenderPassDescriptorExpandResolveRect;
|
|
205
207
|
struct WGPURenderPassDescriptorResolveRect;
|
|
206
208
|
struct WGPURenderPassMaxDrawCount;
|
|
207
209
|
struct WGPURequestAdapterWebGPUBackendOptions;
|
|
208
210
|
struct WGPURequestAdapterWebXROptions;
|
|
211
|
+
struct WGPUResourceTableDescriptor;
|
|
209
212
|
struct WGPUSamplerBindingLayout;
|
|
210
213
|
struct WGPUShaderModuleCompilationOptions;
|
|
211
214
|
struct WGPUShaderSourceSPIRV;
|
|
212
215
|
struct WGPUShaderSourceWGSL;
|
|
213
216
|
struct WGPUSharedBufferMemoryBeginAccessDescriptor;
|
|
214
|
-
struct
|
|
217
|
+
struct WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor;
|
|
215
218
|
struct WGPUSharedBufferMemoryEndAccessState;
|
|
216
219
|
struct WGPUSharedBufferMemoryProperties;
|
|
217
220
|
struct WGPUSharedFenceDXGISharedHandleDescriptor;
|
|
@@ -263,7 +266,7 @@ struct WGPUTexelBufferBindingLayout;
|
|
|
263
266
|
struct WGPUTexelBufferViewDescriptor;
|
|
264
267
|
struct WGPUTexelCopyBufferLayout;
|
|
265
268
|
struct WGPUTextureBindingLayout;
|
|
266
|
-
struct
|
|
269
|
+
struct WGPUTextureBindingViewDimension;
|
|
267
270
|
struct WGPUTextureComponentSwizzle;
|
|
268
271
|
struct WGPUVertexAttribute;
|
|
269
272
|
struct WGPUYCbCrVkDescriptor;
|
|
@@ -271,7 +274,6 @@ struct WGPUAdapterPropertiesMemoryHeaps;
|
|
|
271
274
|
struct WGPUAdapterPropertiesSubgroupMatrixConfigs;
|
|
272
275
|
struct WGPUAHardwareBufferProperties;
|
|
273
276
|
struct WGPUBindGroupEntry;
|
|
274
|
-
struct WGPUBindGroupLayoutDynamicBindingArray;
|
|
275
277
|
struct WGPUBindGroupLayoutEntry;
|
|
276
278
|
struct WGPUBlendState;
|
|
277
279
|
struct WGPUBufferDescriptor;
|
|
@@ -288,10 +290,12 @@ struct WGPUInstanceDescriptor;
|
|
|
288
290
|
struct WGPULimits;
|
|
289
291
|
struct WGPUPipelineLayoutPixelLocalStorage;
|
|
290
292
|
struct WGPURenderPassColorAttachment;
|
|
293
|
+
struct WGPURenderPassRenderAreaRect;
|
|
291
294
|
struct WGPURenderPassStorageAttachment;
|
|
292
295
|
struct WGPURequestAdapterOptions;
|
|
293
296
|
struct WGPUSamplerDescriptor;
|
|
294
297
|
struct WGPUShaderModuleDescriptor;
|
|
298
|
+
struct WGPUSharedBufferMemoryDescriptor;
|
|
295
299
|
struct WGPUSharedFenceDescriptor;
|
|
296
300
|
struct WGPUSharedFenceExportInfo;
|
|
297
301
|
struct WGPUSharedTextureMemoryAHardwareBufferProperties;
|
|
@@ -427,6 +431,40 @@ typedef enum WGPUCallbackMode {
|
|
|
427
431
|
WGPUCallbackMode_Force32 = 0x7FFFFFFF
|
|
428
432
|
} WGPUCallbackMode WGPU_ENUM_ATTRIBUTE;
|
|
429
433
|
|
|
434
|
+
typedef enum WGPUColorSpacePrimariesDawn {
|
|
435
|
+
WGPUColorSpacePrimariesDawn_SRGB = 0x00000001,
|
|
436
|
+
WGPUColorSpacePrimariesDawn_Rec709 = 0x00000001,
|
|
437
|
+
WGPUColorSpacePrimariesDawn_Rec601 = 0x00000002,
|
|
438
|
+
WGPUColorSpacePrimariesDawn_Rec2020 = 0x00000003,
|
|
439
|
+
WGPUColorSpacePrimariesDawn_DisplayP3 = 0x00000004,
|
|
440
|
+
WGPUColorSpacePrimariesDawn_Force32 = 0x7FFFFFFF
|
|
441
|
+
} WGPUColorSpacePrimariesDawn WGPU_ENUM_ATTRIBUTE;
|
|
442
|
+
|
|
443
|
+
typedef enum WGPUColorSpaceTransferDawn {
|
|
444
|
+
WGPUColorSpaceTransferDawn_Identity = 0x00000001,
|
|
445
|
+
WGPUColorSpaceTransferDawn_SRGB = 0x00000002,
|
|
446
|
+
WGPUColorSpaceTransferDawn_DisplayP3 = 0x00000003,
|
|
447
|
+
WGPUColorSpaceTransferDawn_SMPTE_170M = 0x00000004,
|
|
448
|
+
WGPUColorSpaceTransferDawn_HLG = 0x00000005,
|
|
449
|
+
WGPUColorSpaceTransferDawn_PQ = 0x00000006,
|
|
450
|
+
WGPUColorSpaceTransferDawn_Force32 = 0x7FFFFFFF
|
|
451
|
+
} WGPUColorSpaceTransferDawn WGPU_ENUM_ATTRIBUTE;
|
|
452
|
+
|
|
453
|
+
typedef enum WGPUColorSpaceYCbCrMatrixDawn {
|
|
454
|
+
WGPUColorSpaceYCbCrMatrixDawn_Identity = 0x00000001,
|
|
455
|
+
WGPUColorSpaceYCbCrMatrixDawn_Rec601 = 0x00000002,
|
|
456
|
+
WGPUColorSpaceYCbCrMatrixDawn_Rec709 = 0x00000003,
|
|
457
|
+
WGPUColorSpaceYCbCrMatrixDawn_Rec2020 = 0x00000004,
|
|
458
|
+
WGPUColorSpaceYCbCrMatrixDawn_Force32 = 0x7FFFFFFF
|
|
459
|
+
} WGPUColorSpaceYCbCrMatrixDawn WGPU_ENUM_ATTRIBUTE;
|
|
460
|
+
|
|
461
|
+
typedef enum WGPUColorSpaceYCbCrRangeDawn {
|
|
462
|
+
WGPUColorSpaceYCbCrRangeDawn_Identity = 0x00000001,
|
|
463
|
+
WGPUColorSpaceYCbCrRangeDawn_Narrow = 0x00000002,
|
|
464
|
+
WGPUColorSpaceYCbCrRangeDawn_Full = 0x00000003,
|
|
465
|
+
WGPUColorSpaceYCbCrRangeDawn_Force32 = 0x7FFFFFFF
|
|
466
|
+
} WGPUColorSpaceYCbCrRangeDawn WGPU_ENUM_ATTRIBUTE;
|
|
467
|
+
|
|
430
468
|
typedef enum WGPUCompareFunction {
|
|
431
469
|
WGPUCompareFunction_Undefined = 0x00000000,
|
|
432
470
|
WGPUCompareFunction_Never = 0x00000001,
|
|
@@ -497,12 +535,6 @@ typedef enum WGPUDeviceLostReason {
|
|
|
497
535
|
WGPUDeviceLostReason_Force32 = 0x7FFFFFFF
|
|
498
536
|
} WGPUDeviceLostReason WGPU_ENUM_ATTRIBUTE;
|
|
499
537
|
|
|
500
|
-
typedef enum WGPUDynamicBindingKind {
|
|
501
|
-
WGPUDynamicBindingKind_Undefined = 0x00000000,
|
|
502
|
-
WGPUDynamicBindingKind_SampledTexture = 0x00000001,
|
|
503
|
-
WGPUDynamicBindingKind_Force32 = 0x7FFFFFFF
|
|
504
|
-
} WGPUDynamicBindingKind WGPU_ENUM_ATTRIBUTE;
|
|
505
|
-
|
|
506
538
|
typedef enum WGPUErrorFilter {
|
|
507
539
|
WGPUErrorFilter_Validation = 0x00000001,
|
|
508
540
|
WGPUErrorFilter_OutOfMemory = 0x00000002,
|
|
@@ -556,6 +588,7 @@ typedef enum WGPUFeatureName {
|
|
|
556
588
|
WGPUFeatureName_TextureFormatsTier1 = 0x00000013,
|
|
557
589
|
WGPUFeatureName_TextureFormatsTier2 = 0x00000014,
|
|
558
590
|
WGPUFeatureName_PrimitiveIndex = 0x00000015,
|
|
591
|
+
WGPUFeatureName_TextureComponentSwizzle = 0x00000016,
|
|
559
592
|
WGPUFeatureName_DawnInternalUsages = 0x00050000,
|
|
560
593
|
WGPUFeatureName_DawnMultiPlanarFormats = 0x00050001,
|
|
561
594
|
WGPUFeatureName_DawnNative = 0x00050002,
|
|
@@ -568,54 +601,59 @@ typedef enum WGPUFeatureName {
|
|
|
568
601
|
WGPUFeatureName_PixelLocalStorageCoherent = 0x0005000A,
|
|
569
602
|
WGPUFeatureName_PixelLocalStorageNonCoherent = 0x0005000B,
|
|
570
603
|
WGPUFeatureName_Unorm16TextureFormats = 0x0005000C,
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
604
|
+
WGPUFeatureName_MultiPlanarFormatExtendedUsages = 0x0005000D,
|
|
605
|
+
WGPUFeatureName_MultiPlanarFormatP010 = 0x0005000E,
|
|
606
|
+
WGPUFeatureName_HostMappedPointer = 0x0005000F,
|
|
607
|
+
WGPUFeatureName_MultiPlanarRenderTargets = 0x00050010,
|
|
608
|
+
WGPUFeatureName_MultiPlanarFormatNv12a = 0x00050011,
|
|
609
|
+
WGPUFeatureName_FramebufferFetch = 0x00050012,
|
|
610
|
+
WGPUFeatureName_BufferMapExtendedUsages = 0x00050013,
|
|
611
|
+
WGPUFeatureName_AdapterPropertiesMemoryHeaps = 0x00050014,
|
|
612
|
+
WGPUFeatureName_AdapterPropertiesD3D = 0x00050015,
|
|
613
|
+
WGPUFeatureName_AdapterPropertiesVk = 0x00050016,
|
|
614
|
+
WGPUFeatureName_DawnFormatCapabilities = 0x00050017,
|
|
615
|
+
WGPUFeatureName_DawnDrmFormatCapabilities = 0x00050018,
|
|
616
|
+
WGPUFeatureName_MultiPlanarFormatNv16 = 0x00050019,
|
|
617
|
+
WGPUFeatureName_MultiPlanarFormatNv24 = 0x0005001A,
|
|
618
|
+
WGPUFeatureName_MultiPlanarFormatP210 = 0x0005001B,
|
|
619
|
+
WGPUFeatureName_MultiPlanarFormatP410 = 0x0005001C,
|
|
620
|
+
WGPUFeatureName_SharedTextureMemoryVkDedicatedAllocation = 0x0005001D,
|
|
621
|
+
WGPUFeatureName_SharedTextureMemoryAHardwareBuffer = 0x0005001E,
|
|
622
|
+
WGPUFeatureName_SharedTextureMemoryDmaBuf = 0x0005001F,
|
|
623
|
+
WGPUFeatureName_SharedTextureMemoryOpaqueFD = 0x00050020,
|
|
624
|
+
WGPUFeatureName_SharedTextureMemoryZirconHandle = 0x00050021,
|
|
625
|
+
WGPUFeatureName_SharedTextureMemoryDXGISharedHandle = 0x00050022,
|
|
626
|
+
WGPUFeatureName_SharedTextureMemoryD3D11Texture2D = 0x00050023,
|
|
627
|
+
WGPUFeatureName_SharedTextureMemoryIOSurface = 0x00050024,
|
|
628
|
+
WGPUFeatureName_SharedTextureMemoryEGLImage = 0x00050025,
|
|
629
|
+
WGPUFeatureName_SharedFenceVkSemaphoreOpaqueFD = 0x00050026,
|
|
630
|
+
WGPUFeatureName_SharedFenceSyncFD = 0x00050027,
|
|
631
|
+
WGPUFeatureName_SharedFenceVkSemaphoreZirconHandle = 0x00050028,
|
|
632
|
+
WGPUFeatureName_SharedFenceDXGISharedHandle = 0x00050029,
|
|
633
|
+
WGPUFeatureName_SharedFenceMTLSharedEvent = 0x0005002A,
|
|
634
|
+
WGPUFeatureName_SharedBufferMemoryD3D12Resource = 0x0005002B,
|
|
635
|
+
WGPUFeatureName_StaticSamplers = 0x0005002C,
|
|
636
|
+
WGPUFeatureName_YCbCrVulkanSamplers = 0x0005002D,
|
|
637
|
+
WGPUFeatureName_ShaderModuleCompilationOptions = 0x0005002E,
|
|
638
|
+
WGPUFeatureName_DawnLoadResolveTexture = 0x0005002F,
|
|
639
|
+
WGPUFeatureName_DawnPartialLoadResolveTexture = 0x00050030,
|
|
640
|
+
WGPUFeatureName_MultiDrawIndirect = 0x00050031,
|
|
641
|
+
WGPUFeatureName_DawnTexelCopyBufferRowAlignment = 0x00050032,
|
|
642
|
+
WGPUFeatureName_FlexibleTextureViews = 0x00050033,
|
|
643
|
+
WGPUFeatureName_ChromiumExperimentalSubgroupMatrix = 0x00050034,
|
|
644
|
+
WGPUFeatureName_SharedFenceEGLSync = 0x00050035,
|
|
645
|
+
WGPUFeatureName_DawnDeviceAllocatorControl = 0x00050036,
|
|
646
|
+
WGPUFeatureName_AdapterPropertiesWGPU = 0x00050037,
|
|
647
|
+
WGPUFeatureName_SharedBufferMemoryD3D12SharedMemoryFileMappingHandle = 0x00050038,
|
|
648
|
+
WGPUFeatureName_SharedTextureMemoryD3D12Resource = 0x00050039,
|
|
649
|
+
WGPUFeatureName_ChromiumExperimentalSamplingResourceTable = 0x0005003A,
|
|
650
|
+
WGPUFeatureName_SubgroupSizeControl = 0x0005003B,
|
|
651
|
+
WGPUFeatureName_AtomicVec2uMinMax = 0x0005003C,
|
|
652
|
+
WGPUFeatureName_Unorm16FormatsForExternalTexture = 0x0005003D,
|
|
653
|
+
WGPUFeatureName_OpaqueYCbCrAndroidForExternalTexture = 0x0005003E,
|
|
654
|
+
WGPUFeatureName_Unorm16Filterable = 0x0005003F,
|
|
655
|
+
WGPUFeatureName_RenderPassRenderArea = 0x00050040,
|
|
656
|
+
WGPUFeatureName_AdapterPropertiesDrm = 0x00050041,
|
|
619
657
|
WGPUFeatureName_Force32 = 0x7FFFFFFF
|
|
620
658
|
} WGPUFeatureName WGPU_ENUM_ATTRIBUTE;
|
|
621
659
|
|
|
@@ -702,6 +740,8 @@ typedef enum WGPUPowerPreference {
|
|
|
702
740
|
typedef enum WGPUPredefinedColorSpace {
|
|
703
741
|
WGPUPredefinedColorSpace_SRGB = 0x00000001,
|
|
704
742
|
WGPUPredefinedColorSpace_DisplayP3 = 0x00000002,
|
|
743
|
+
WGPUPredefinedColorSpace_SRGBLinear = 0x00050003,
|
|
744
|
+
WGPUPredefinedColorSpace_DisplayP3Linear = 0x00050004,
|
|
705
745
|
WGPUPredefinedColorSpace_Force32 = 0x7FFFFFFF
|
|
706
746
|
} WGPUPredefinedColorSpace WGPU_ENUM_ATTRIBUTE;
|
|
707
747
|
|
|
@@ -818,12 +858,13 @@ typedef enum WGPUSType {
|
|
|
818
858
|
WGPUSType_SurfaceSourceXCBWindow = 0x00000009,
|
|
819
859
|
WGPUSType_SurfaceColorManagement = 0x0000000A,
|
|
820
860
|
WGPUSType_RequestAdapterWebXROptions = 0x0000000B,
|
|
821
|
-
|
|
822
|
-
|
|
861
|
+
WGPUSType_TextureComponentSwizzleDescriptor = 0x0000000C,
|
|
862
|
+
WGPUSType_ExternalTextureBindingLayout = 0x0000000D,
|
|
863
|
+
WGPUSType_ExternalTextureBindingEntry = 0x0000000E,
|
|
864
|
+
WGPUSType_CompatibilityModeLimits = 0x0000000F,
|
|
865
|
+
WGPUSType_TextureBindingViewDimension = 0x00000010,
|
|
823
866
|
WGPUSType_EmscriptenSurfaceSourceCanvasHTMLSelector = 0x00040000,
|
|
824
867
|
WGPUSType_SurfaceDescriptorFromWindowsCoreWindow = 0x00050000,
|
|
825
|
-
WGPUSType_ExternalTextureBindingEntry = 0x00050001,
|
|
826
|
-
WGPUSType_ExternalTextureBindingLayout = 0x00050002,
|
|
827
868
|
WGPUSType_SurfaceDescriptorFromWindowsUWPSwapChainPanel = 0x00050003,
|
|
828
869
|
WGPUSType_DawnTextureInternalUsageDescriptor = 0x00050004,
|
|
829
870
|
WGPUSType_DawnEncoderInternalUsageDescriptor = 0x00050005,
|
|
@@ -836,7 +877,7 @@ typedef enum WGPUSType {
|
|
|
836
877
|
WGPUSType_RequestAdapterOptionsLUID = 0x0005000C,
|
|
837
878
|
WGPUSType_RequestAdapterOptionsGetGLProc = 0x0005000D,
|
|
838
879
|
WGPUSType_RequestAdapterOptionsD3D11Device = 0x0005000E,
|
|
839
|
-
|
|
880
|
+
WGPUSType_DawnRenderPassSampleCount = 0x0005000F,
|
|
840
881
|
WGPUSType_RenderPassPixelLocalStorage = 0x00050010,
|
|
841
882
|
WGPUSType_PipelineLayoutPixelLocalStorage = 0x00050011,
|
|
842
883
|
WGPUSType_BufferHostMappedPointer = 0x00050012,
|
|
@@ -848,7 +889,7 @@ typedef enum WGPUSType {
|
|
|
848
889
|
WGPUSType_DawnDrmFormatCapabilities = 0x00050018,
|
|
849
890
|
WGPUSType_ShaderModuleCompilationOptions = 0x00050019,
|
|
850
891
|
WGPUSType_ColorTargetStateExpandResolveTextureDawn = 0x0005001A,
|
|
851
|
-
|
|
892
|
+
WGPUSType_RenderPassRenderAreaRect = 0x0005001B,
|
|
852
893
|
WGPUSType_SharedTextureMemoryVkDedicatedAllocationDescriptor = 0x0005001C,
|
|
853
894
|
WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor = 0x0005001D,
|
|
854
895
|
WGPUSType_SharedTextureMemoryDmaBufDescriptor = 0x0005001E,
|
|
@@ -891,16 +932,17 @@ typedef enum WGPUSType {
|
|
|
891
932
|
WGPUSType_RenderPassDescriptorResolveRect = 0x00050044,
|
|
892
933
|
WGPUSType_RequestAdapterWebGPUBackendOptions = 0x00050045,
|
|
893
934
|
WGPUSType_DawnFakeDeviceInitializeErrorForTesting = 0x00050046,
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
935
|
+
WGPUSType_SharedTextureMemoryD3D11BeginState = 0x00050047,
|
|
936
|
+
WGPUSType_DawnConsumeAdapterDescriptor = 0x00050048,
|
|
937
|
+
WGPUSType_TexelBufferBindingEntry = 0x00050049,
|
|
938
|
+
WGPUSType_TexelBufferBindingLayout = 0x0005004A,
|
|
939
|
+
WGPUSType_SharedTextureMemoryMetalEndAccessState = 0x0005004B,
|
|
940
|
+
WGPUSType_AdapterPropertiesWGPU = 0x0005004C,
|
|
941
|
+
WGPUSType_SharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor = 0x0005004D,
|
|
942
|
+
WGPUSType_SharedTextureMemoryD3D12ResourceDescriptor = 0x0005004E,
|
|
943
|
+
WGPUSType_RequestAdapterOptionsAngleVirtualizationGroup = 0x0005004F,
|
|
944
|
+
WGPUSType_PipelineLayoutResourceTable = 0x00050050,
|
|
945
|
+
WGPUSType_AdapterPropertiesDrm = 0x00050051,
|
|
904
946
|
WGPUSType_Force32 = 0x7FFFFFFF
|
|
905
947
|
} WGPUSType WGPU_ENUM_ATTRIBUTE;
|
|
906
948
|
|
|
@@ -1053,14 +1095,14 @@ typedef enum WGPUTextureFormat {
|
|
|
1053
1095
|
WGPUTextureFormat_ASTC12x10UnormSrgb = 0x00000063,
|
|
1054
1096
|
WGPUTextureFormat_ASTC12x12Unorm = 0x00000064,
|
|
1055
1097
|
WGPUTextureFormat_ASTC12x12UnormSrgb = 0x00000065,
|
|
1056
|
-
WGPUTextureFormat_R8BG8Biplanar420Unorm =
|
|
1057
|
-
WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm =
|
|
1058
|
-
WGPUTextureFormat_R8BG8A8Triplanar420Unorm =
|
|
1059
|
-
WGPUTextureFormat_R8BG8Biplanar422Unorm =
|
|
1060
|
-
WGPUTextureFormat_R8BG8Biplanar444Unorm =
|
|
1061
|
-
WGPUTextureFormat_R10X6BG10X6Biplanar422Unorm =
|
|
1062
|
-
WGPUTextureFormat_R10X6BG10X6Biplanar444Unorm =
|
|
1063
|
-
|
|
1098
|
+
WGPUTextureFormat_R8BG8Biplanar420Unorm = 0x00050000,
|
|
1099
|
+
WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm = 0x00050001,
|
|
1100
|
+
WGPUTextureFormat_R8BG8A8Triplanar420Unorm = 0x00050002,
|
|
1101
|
+
WGPUTextureFormat_R8BG8Biplanar422Unorm = 0x00050003,
|
|
1102
|
+
WGPUTextureFormat_R8BG8Biplanar444Unorm = 0x00050004,
|
|
1103
|
+
WGPUTextureFormat_R10X6BG10X6Biplanar422Unorm = 0x00050005,
|
|
1104
|
+
WGPUTextureFormat_R10X6BG10X6Biplanar444Unorm = 0x00050006,
|
|
1105
|
+
WGPUTextureFormat_OpaqueYCbCrAndroid = 0x00050007,
|
|
1064
1106
|
WGPUTextureFormat_Force32 = 0x7FFFFFFF
|
|
1065
1107
|
} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
|
|
1066
1108
|
|
|
@@ -1156,14 +1198,24 @@ typedef enum WGPUWGSLLanguageFeatureName {
|
|
|
1156
1198
|
WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct = 0x00000002,
|
|
1157
1199
|
WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters = 0x00000003,
|
|
1158
1200
|
WGPUWGSLLanguageFeatureName_PointerCompositeAccess = 0x00000004,
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1201
|
+
WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout = 0x00000005,
|
|
1202
|
+
WGPUWGSLLanguageFeatureName_SubgroupId = 0x00000006,
|
|
1203
|
+
WGPUWGSLLanguageFeatureName_TextureAndSamplerLet = 0x00000007,
|
|
1204
|
+
WGPUWGSLLanguageFeatureName_SubgroupUniformity = 0x00000008,
|
|
1205
|
+
WGPUWGSLLanguageFeatureName_TextureFormatsTier1 = 0x00000009,
|
|
1206
|
+
WGPUWGSLLanguageFeatureName_LinearIndexing = 0x0000000A,
|
|
1162
1207
|
WGPUWGSLLanguageFeatureName_ChromiumTestingUnimplemented = 0x00050000,
|
|
1163
1208
|
WGPUWGSLLanguageFeatureName_ChromiumTestingUnsafeExperimental = 0x00050001,
|
|
1164
1209
|
WGPUWGSLLanguageFeatureName_ChromiumTestingExperimental = 0x00050002,
|
|
1165
1210
|
WGPUWGSLLanguageFeatureName_ChromiumTestingShippedWithKillswitch = 0x00050003,
|
|
1166
1211
|
WGPUWGSLLanguageFeatureName_ChromiumTestingShipped = 0x00050004,
|
|
1212
|
+
WGPUWGSLLanguageFeatureName_SizedBindingArray = 0x00050005,
|
|
1213
|
+
WGPUWGSLLanguageFeatureName_TexelBuffers = 0x00050006,
|
|
1214
|
+
WGPUWGSLLanguageFeatureName_ChromiumPrint = 0x00050007,
|
|
1215
|
+
WGPUWGSLLanguageFeatureName_FragmentDepth = 0x00050008,
|
|
1216
|
+
WGPUWGSLLanguageFeatureName_ImmediateAddressSpace = 0x00050009,
|
|
1217
|
+
WGPUWGSLLanguageFeatureName_BufferView = 0x0005000B,
|
|
1218
|
+
WGPUWGSLLanguageFeatureName_SwizzleAssignment = 0x0005000C,
|
|
1167
1219
|
WGPUWGSLLanguageFeatureName_Force32 = 0x7FFFFFFF
|
|
1168
1220
|
} WGPUWGSLLanguageFeatureName WGPU_ENUM_ATTRIBUTE;
|
|
1169
1221
|
|
|
@@ -1437,6 +1489,30 @@ typedef struct WGPUAdapterPropertiesD3D {
|
|
|
1437
1489
|
/*.shaderModel=*/0 _wgpu_COMMA \
|
|
1438
1490
|
})
|
|
1439
1491
|
|
|
1492
|
+
// Can be chained in WGPUAdapterInfo
|
|
1493
|
+
typedef struct WGPUAdapterPropertiesDrm {
|
|
1494
|
+
WGPUChainedStruct chain;
|
|
1495
|
+
WGPUBool hasPrimary;
|
|
1496
|
+
WGPUBool hasRender;
|
|
1497
|
+
uint64_t primaryMajor;
|
|
1498
|
+
uint64_t primaryMinor;
|
|
1499
|
+
uint64_t renderMajor;
|
|
1500
|
+
uint64_t renderMinor;
|
|
1501
|
+
} WGPUAdapterPropertiesDrm WGPU_STRUCTURE_ATTRIBUTE;
|
|
1502
|
+
|
|
1503
|
+
#define WGPU_ADAPTER_PROPERTIES_DRM_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterPropertiesDrm, { \
|
|
1504
|
+
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
1505
|
+
/*.next=*/NULL _wgpu_COMMA \
|
|
1506
|
+
/*.sType=*/WGPUSType_AdapterPropertiesDrm _wgpu_COMMA \
|
|
1507
|
+
}) _wgpu_COMMA \
|
|
1508
|
+
/*.hasPrimary=*/WGPU_FALSE _wgpu_COMMA \
|
|
1509
|
+
/*.hasRender=*/WGPU_FALSE _wgpu_COMMA \
|
|
1510
|
+
/*.primaryMajor=*/0 _wgpu_COMMA \
|
|
1511
|
+
/*.primaryMinor=*/0 _wgpu_COMMA \
|
|
1512
|
+
/*.renderMajor=*/0 _wgpu_COMMA \
|
|
1513
|
+
/*.renderMinor=*/0 _wgpu_COMMA \
|
|
1514
|
+
})
|
|
1515
|
+
|
|
1440
1516
|
// Can be chained in WGPUAdapterInfo
|
|
1441
1517
|
typedef struct WGPUAdapterPropertiesVk {
|
|
1442
1518
|
WGPUChainedStruct chain;
|
|
@@ -1465,18 +1541,22 @@ typedef struct WGPUAdapterPropertiesWGPU {
|
|
|
1465
1541
|
/*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
|
|
1466
1542
|
})
|
|
1467
1543
|
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1544
|
+
typedef struct WGPUBindingResource {
|
|
1545
|
+
WGPUChainedStruct * nextInChain;
|
|
1546
|
+
WGPU_NULLABLE WGPUBuffer buffer;
|
|
1547
|
+
uint64_t offset;
|
|
1548
|
+
uint64_t size;
|
|
1549
|
+
WGPU_NULLABLE WGPUSampler sampler;
|
|
1550
|
+
WGPU_NULLABLE WGPUTextureView textureView;
|
|
1551
|
+
} WGPUBindingResource WGPU_STRUCTURE_ATTRIBUTE;
|
|
1473
1552
|
|
|
1474
|
-
#define
|
|
1475
|
-
/*.
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
/*.
|
|
1553
|
+
#define WGPU_BINDING_RESOURCE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindingResource, { \
|
|
1554
|
+
/*.nextInChain=*/NULL _wgpu_COMMA \
|
|
1555
|
+
/*.buffer=*/NULL _wgpu_COMMA \
|
|
1556
|
+
/*.offset=*/0 _wgpu_COMMA \
|
|
1557
|
+
/*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
|
|
1558
|
+
/*.sampler=*/NULL _wgpu_COMMA \
|
|
1559
|
+
/*.textureView=*/NULL _wgpu_COMMA \
|
|
1480
1560
|
})
|
|
1481
1561
|
|
|
1482
1562
|
typedef struct WGPUBlendComponent {
|
|
@@ -1537,6 +1617,22 @@ typedef struct WGPUColor {
|
|
|
1537
1617
|
/*.a=*/0. _wgpu_COMMA \
|
|
1538
1618
|
})
|
|
1539
1619
|
|
|
1620
|
+
typedef struct WGPUColorSpaceDawn {
|
|
1621
|
+
WGPUChainedStruct * nextInChain;
|
|
1622
|
+
WGPUColorSpacePrimariesDawn primaries;
|
|
1623
|
+
WGPUColorSpaceTransferDawn transfer;
|
|
1624
|
+
WGPUColorSpaceYCbCrRangeDawn yCbCrRange;
|
|
1625
|
+
WGPUColorSpaceYCbCrMatrixDawn yCbCrMatrix;
|
|
1626
|
+
} WGPUColorSpaceDawn WGPU_STRUCTURE_ATTRIBUTE;
|
|
1627
|
+
|
|
1628
|
+
#define WGPU_COLOR_SPACE_DAWN_INIT _wgpu_MAKE_INIT_STRUCT(WGPUColorSpaceDawn, { \
|
|
1629
|
+
/*.nextInChain=*/NULL _wgpu_COMMA \
|
|
1630
|
+
/*.primaries=*/_wgpu_ENUM_ZERO_INIT(WGPUColorSpacePrimariesDawn) _wgpu_COMMA \
|
|
1631
|
+
/*.transfer=*/WGPUColorSpaceTransferDawn_Identity _wgpu_COMMA \
|
|
1632
|
+
/*.yCbCrRange=*/WGPUColorSpaceYCbCrRangeDawn_Identity _wgpu_COMMA \
|
|
1633
|
+
/*.yCbCrMatrix=*/WGPUColorSpaceYCbCrMatrixDawn_Identity _wgpu_COMMA \
|
|
1634
|
+
})
|
|
1635
|
+
|
|
1540
1636
|
// Can be chained in WGPUColorTargetState
|
|
1541
1637
|
typedef struct WGPUColorTargetStateExpandResolveTextureDawn {
|
|
1542
1638
|
WGPUChainedStruct chain;
|
|
@@ -1792,18 +1888,18 @@ typedef struct WGPUDawnInjectedInvalidSType {
|
|
|
1792
1888
|
/*.invalidSType=*/_wgpu_ENUM_ZERO_INIT(WGPUSType) _wgpu_COMMA \
|
|
1793
1889
|
})
|
|
1794
1890
|
|
|
1795
|
-
// Can be chained in
|
|
1796
|
-
typedef struct
|
|
1891
|
+
// Can be chained in WGPURenderPassDescriptor
|
|
1892
|
+
typedef struct WGPUDawnRenderPassSampleCount {
|
|
1797
1893
|
WGPUChainedStruct chain;
|
|
1798
|
-
uint32_t
|
|
1799
|
-
}
|
|
1894
|
+
uint32_t sampleCount;
|
|
1895
|
+
} WGPUDawnRenderPassSampleCount WGPU_STRUCTURE_ATTRIBUTE;
|
|
1800
1896
|
|
|
1801
|
-
#define
|
|
1897
|
+
#define WGPU_DAWN_RENDER_PASS_SAMPLE_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDawnRenderPassSampleCount, { \
|
|
1802
1898
|
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
1803
1899
|
/*.next=*/NULL _wgpu_COMMA \
|
|
1804
|
-
/*.sType=*/
|
|
1900
|
+
/*.sType=*/WGPUSType_DawnRenderPassSampleCount _wgpu_COMMA \
|
|
1805
1901
|
}) _wgpu_COMMA \
|
|
1806
|
-
/*.
|
|
1902
|
+
/*.sampleCount=*/1 _wgpu_COMMA \
|
|
1807
1903
|
})
|
|
1808
1904
|
|
|
1809
1905
|
// Can be chained in WGPUShaderModuleDescriptor
|
|
@@ -1904,32 +2000,6 @@ typedef struct WGPUDawnWireWGSLControl {
|
|
|
1904
2000
|
/*.enableTesting=*/WGPU_FALSE _wgpu_COMMA \
|
|
1905
2001
|
})
|
|
1906
2002
|
|
|
1907
|
-
typedef struct WGPUDynamicBindingArrayLayout {
|
|
1908
|
-
WGPUChainedStruct * nextInChain;
|
|
1909
|
-
uint32_t start;
|
|
1910
|
-
WGPUDynamicBindingKind kind;
|
|
1911
|
-
} WGPUDynamicBindingArrayLayout WGPU_STRUCTURE_ATTRIBUTE;
|
|
1912
|
-
|
|
1913
|
-
#define WGPU_DYNAMIC_BINDING_ARRAY_LAYOUT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDynamicBindingArrayLayout, { \
|
|
1914
|
-
/*.nextInChain=*/NULL _wgpu_COMMA \
|
|
1915
|
-
/*.start=*/0 _wgpu_COMMA \
|
|
1916
|
-
/*.kind=*/WGPUDynamicBindingKind_Undefined _wgpu_COMMA \
|
|
1917
|
-
})
|
|
1918
|
-
|
|
1919
|
-
// Can be chained in WGPULimits
|
|
1920
|
-
typedef struct WGPUDynamicBindingArrayLimits {
|
|
1921
|
-
WGPUChainedStruct chain;
|
|
1922
|
-
uint32_t maxDynamicBindingArraySize;
|
|
1923
|
-
} WGPUDynamicBindingArrayLimits WGPU_STRUCTURE_ATTRIBUTE;
|
|
1924
|
-
|
|
1925
|
-
#define WGPU_DYNAMIC_BINDING_ARRAY_LIMITS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDynamicBindingArrayLimits, { \
|
|
1926
|
-
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
1927
|
-
/*.next=*/NULL _wgpu_COMMA \
|
|
1928
|
-
/*.sType=*/WGPUSType_DynamicBindingArrayLimits _wgpu_COMMA \
|
|
1929
|
-
}) _wgpu_COMMA \
|
|
1930
|
-
/*.maxDynamicBindingArraySize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
|
|
1931
|
-
})
|
|
1932
|
-
|
|
1933
2003
|
// Can be chained in WGPUSurfaceDescriptor
|
|
1934
2004
|
typedef struct WGPUEmscriptenSurfaceSourceCanvasHTMLSelector {
|
|
1935
2005
|
WGPUChainedStruct chain;
|
|
@@ -2078,6 +2148,20 @@ typedef struct WGPUPassTimestampWrites {
|
|
|
2078
2148
|
/*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
|
|
2079
2149
|
})
|
|
2080
2150
|
|
|
2151
|
+
// Can be chained in WGPUPipelineLayoutDescriptor
|
|
2152
|
+
typedef struct WGPUPipelineLayoutResourceTable {
|
|
2153
|
+
WGPUChainedStruct chain;
|
|
2154
|
+
WGPUBool usesResourceTable;
|
|
2155
|
+
} WGPUPipelineLayoutResourceTable WGPU_STRUCTURE_ATTRIBUTE;
|
|
2156
|
+
|
|
2157
|
+
#define WGPU_PIPELINE_LAYOUT_RESOURCE_TABLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutResourceTable, { \
|
|
2158
|
+
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
2159
|
+
/*.next=*/NULL _wgpu_COMMA \
|
|
2160
|
+
/*.sType=*/WGPUSType_PipelineLayoutResourceTable _wgpu_COMMA \
|
|
2161
|
+
}) _wgpu_COMMA \
|
|
2162
|
+
/*.usesResourceTable=*/WGPU_FALSE _wgpu_COMMA \
|
|
2163
|
+
})
|
|
2164
|
+
|
|
2081
2165
|
typedef struct WGPUPipelineLayoutStorageAttachment {
|
|
2082
2166
|
WGPUChainedStruct * nextInChain;
|
|
2083
2167
|
uint64_t offset;
|
|
@@ -2190,26 +2274,6 @@ typedef struct WGPURenderPassDepthStencilAttachment {
|
|
|
2190
2274
|
/*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
|
|
2191
2275
|
})
|
|
2192
2276
|
|
|
2193
|
-
// Can be chained in WGPURenderPassDescriptor
|
|
2194
|
-
typedef struct WGPURenderPassDescriptorExpandResolveRect {
|
|
2195
|
-
WGPUChainedStruct chain;
|
|
2196
|
-
uint32_t x;
|
|
2197
|
-
uint32_t y;
|
|
2198
|
-
uint32_t width;
|
|
2199
|
-
uint32_t height;
|
|
2200
|
-
} WGPURenderPassDescriptorExpandResolveRect WGPU_STRUCTURE_ATTRIBUTE;
|
|
2201
|
-
|
|
2202
|
-
#define WGPU_RENDER_PASS_DESCRIPTOR_EXPAND_RESOLVE_RECT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassDescriptorExpandResolveRect, { \
|
|
2203
|
-
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
2204
|
-
/*.next=*/NULL _wgpu_COMMA \
|
|
2205
|
-
/*.sType=*/WGPUSType_RenderPassDescriptorExpandResolveRect _wgpu_COMMA \
|
|
2206
|
-
}) _wgpu_COMMA \
|
|
2207
|
-
/*.x=*/0 _wgpu_COMMA \
|
|
2208
|
-
/*.y=*/0 _wgpu_COMMA \
|
|
2209
|
-
/*.width=*/0 _wgpu_COMMA \
|
|
2210
|
-
/*.height=*/0 _wgpu_COMMA \
|
|
2211
|
-
})
|
|
2212
|
-
|
|
2213
2277
|
// Can be chained in WGPURenderPassDescriptor
|
|
2214
2278
|
typedef struct WGPURenderPassDescriptorResolveRect {
|
|
2215
2279
|
WGPUChainedStruct chain;
|
|
@@ -2274,6 +2338,18 @@ typedef struct WGPURequestAdapterWebXROptions {
|
|
|
2274
2338
|
/*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
|
|
2275
2339
|
})
|
|
2276
2340
|
|
|
2341
|
+
typedef struct WGPUResourceTableDescriptor {
|
|
2342
|
+
WGPUChainedStruct * nextInChain;
|
|
2343
|
+
WGPUStringView label;
|
|
2344
|
+
uint32_t size;
|
|
2345
|
+
} WGPUResourceTableDescriptor WGPU_STRUCTURE_ATTRIBUTE;
|
|
2346
|
+
|
|
2347
|
+
#define WGPU_RESOURCE_TABLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUResourceTableDescriptor, { \
|
|
2348
|
+
/*.nextInChain=*/NULL _wgpu_COMMA \
|
|
2349
|
+
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
|
|
2350
|
+
/*.size=*/0 _wgpu_COMMA \
|
|
2351
|
+
})
|
|
2352
|
+
|
|
2277
2353
|
typedef struct WGPUSamplerBindingLayout {
|
|
2278
2354
|
WGPUChainedStruct * nextInChain;
|
|
2279
2355
|
WGPUSamplerBindingType type;
|
|
@@ -2344,14 +2420,20 @@ typedef struct WGPUSharedBufferMemoryBeginAccessDescriptor {
|
|
|
2344
2420
|
/*.signaledValues=*/NULL _wgpu_COMMA \
|
|
2345
2421
|
})
|
|
2346
2422
|
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2423
|
+
// Can be chained in WGPUSharedBufferMemoryDescriptor
|
|
2424
|
+
typedef struct WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor {
|
|
2425
|
+
WGPUChainedStruct chain;
|
|
2426
|
+
void * handle;
|
|
2427
|
+
uint64_t size;
|
|
2428
|
+
} WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor WGPU_STRUCTURE_ATTRIBUTE;
|
|
2351
2429
|
|
|
2352
|
-
#define
|
|
2353
|
-
/*.
|
|
2354
|
-
|
|
2430
|
+
#define WGPU_SHARED_BUFFER_MEMORY_D3D12_SHARED_MEMORY_FILE_MAPPING_HANDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor, { \
|
|
2431
|
+
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
2432
|
+
/*.next=*/NULL _wgpu_COMMA \
|
|
2433
|
+
/*.sType=*/WGPUSType_SharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor _wgpu_COMMA \
|
|
2434
|
+
}) _wgpu_COMMA \
|
|
2435
|
+
/*.handle=*/NULL _wgpu_COMMA \
|
|
2436
|
+
/*.size=*/0 _wgpu_COMMA \
|
|
2355
2437
|
})
|
|
2356
2438
|
|
|
2357
2439
|
typedef struct WGPUSharedBufferMemoryEndAccessState {
|
|
@@ -2554,7 +2636,6 @@ typedef struct WGPUSharedFenceVkSemaphoreZirconHandleExportInfo {
|
|
|
2554
2636
|
typedef struct WGPUSharedTextureMemoryAHardwareBufferDescriptor {
|
|
2555
2637
|
WGPUChainedStruct chain;
|
|
2556
2638
|
void * handle;
|
|
2557
|
-
WGPUBool useExternalFormat;
|
|
2558
2639
|
} WGPUSharedTextureMemoryAHardwareBufferDescriptor WGPU_STRUCTURE_ATTRIBUTE;
|
|
2559
2640
|
|
|
2560
2641
|
#define WGPU_SHARED_TEXTURE_MEMORY_A_HARDWARE_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSharedTextureMemoryAHardwareBufferDescriptor, { \
|
|
@@ -2563,7 +2644,6 @@ typedef struct WGPUSharedTextureMemoryAHardwareBufferDescriptor {
|
|
|
2563
2644
|
/*.sType=*/WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor _wgpu_COMMA \
|
|
2564
2645
|
}) _wgpu_COMMA \
|
|
2565
2646
|
/*.handle=*/NULL _wgpu_COMMA \
|
|
2566
|
-
/*.useExternalFormat=*/WGPU_FALSE _wgpu_COMMA \
|
|
2567
2647
|
})
|
|
2568
2648
|
|
|
2569
2649
|
// Can be chained in WGPUSharedTextureMemoryBeginAccessDescriptor
|
|
@@ -3109,15 +3189,15 @@ typedef struct WGPUTextureBindingLayout {
|
|
|
3109
3189
|
})
|
|
3110
3190
|
|
|
3111
3191
|
// Can be chained in WGPUTextureDescriptor
|
|
3112
|
-
typedef struct
|
|
3192
|
+
typedef struct WGPUTextureBindingViewDimension {
|
|
3113
3193
|
WGPUChainedStruct chain;
|
|
3114
3194
|
WGPUTextureViewDimension textureBindingViewDimension;
|
|
3115
|
-
}
|
|
3195
|
+
} WGPUTextureBindingViewDimension WGPU_STRUCTURE_ATTRIBUTE;
|
|
3116
3196
|
|
|
3117
|
-
#define
|
|
3197
|
+
#define WGPU_TEXTURE_BINDING_VIEW_DIMENSION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingViewDimension, { \
|
|
3118
3198
|
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
3119
3199
|
/*.next=*/NULL _wgpu_COMMA \
|
|
3120
|
-
/*.sType=*/
|
|
3200
|
+
/*.sType=*/WGPUSType_TextureBindingViewDimension _wgpu_COMMA \
|
|
3121
3201
|
}) _wgpu_COMMA \
|
|
3122
3202
|
/*.textureBindingViewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
|
|
3123
3203
|
})
|
|
@@ -3247,20 +3327,6 @@ typedef struct WGPUBindGroupEntry {
|
|
|
3247
3327
|
/*.textureView=*/NULL _wgpu_COMMA \
|
|
3248
3328
|
})
|
|
3249
3329
|
|
|
3250
|
-
// Can be chained in WGPUBindGroupLayoutDescriptor
|
|
3251
|
-
typedef struct WGPUBindGroupLayoutDynamicBindingArray {
|
|
3252
|
-
WGPUChainedStruct chain;
|
|
3253
|
-
WGPUDynamicBindingArrayLayout dynamicArray;
|
|
3254
|
-
} WGPUBindGroupLayoutDynamicBindingArray WGPU_STRUCTURE_ATTRIBUTE;
|
|
3255
|
-
|
|
3256
|
-
#define WGPU_BIND_GROUP_LAYOUT_DYNAMIC_BINDING_ARRAY_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindGroupLayoutDynamicBindingArray, { \
|
|
3257
|
-
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
3258
|
-
/*.next=*/NULL _wgpu_COMMA \
|
|
3259
|
-
/*.sType=*/WGPUSType_BindGroupLayoutDynamicBindingArray _wgpu_COMMA \
|
|
3260
|
-
}) _wgpu_COMMA \
|
|
3261
|
-
/*.dynamicArray=*/WGPU_DYNAMIC_BINDING_ARRAY_LAYOUT_INIT _wgpu_COMMA \
|
|
3262
|
-
})
|
|
3263
|
-
|
|
3264
3330
|
typedef struct WGPUBindGroupLayoutEntry {
|
|
3265
3331
|
WGPUChainedStruct * nextInChain;
|
|
3266
3332
|
uint32_t binding;
|
|
@@ -3593,6 +3659,22 @@ typedef struct WGPURenderPassColorAttachment {
|
|
|
3593
3659
|
/*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
|
|
3594
3660
|
})
|
|
3595
3661
|
|
|
3662
|
+
// Can be chained in WGPURenderPassDescriptor
|
|
3663
|
+
typedef struct WGPURenderPassRenderAreaRect {
|
|
3664
|
+
WGPUChainedStruct chain;
|
|
3665
|
+
WGPUOrigin2D origin;
|
|
3666
|
+
WGPUExtent2D size;
|
|
3667
|
+
} WGPURenderPassRenderAreaRect WGPU_STRUCTURE_ATTRIBUTE;
|
|
3668
|
+
|
|
3669
|
+
#define WGPU_RENDER_PASS_RENDER_AREA_RECT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassRenderAreaRect, { \
|
|
3670
|
+
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
3671
|
+
/*.next=*/NULL _wgpu_COMMA \
|
|
3672
|
+
/*.sType=*/WGPUSType_RenderPassRenderAreaRect _wgpu_COMMA \
|
|
3673
|
+
}) _wgpu_COMMA \
|
|
3674
|
+
/*.origin=*/WGPU_ORIGIN_2D_INIT _wgpu_COMMA \
|
|
3675
|
+
/*.size=*/WGPU_EXTENT_2D_INIT _wgpu_COMMA \
|
|
3676
|
+
})
|
|
3677
|
+
|
|
3596
3678
|
typedef struct WGPURenderPassStorageAttachment {
|
|
3597
3679
|
WGPUChainedStruct * nextInChain;
|
|
3598
3680
|
uint64_t offset;
|
|
@@ -3669,6 +3751,16 @@ typedef struct WGPUShaderModuleDescriptor {
|
|
|
3669
3751
|
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
|
|
3670
3752
|
})
|
|
3671
3753
|
|
|
3754
|
+
typedef struct WGPUSharedBufferMemoryDescriptor {
|
|
3755
|
+
WGPUChainedStruct * nextInChain;
|
|
3756
|
+
WGPUStringView label;
|
|
3757
|
+
} WGPUSharedBufferMemoryDescriptor WGPU_STRUCTURE_ATTRIBUTE;
|
|
3758
|
+
|
|
3759
|
+
#define WGPU_SHARED_BUFFER_MEMORY_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSharedBufferMemoryDescriptor, { \
|
|
3760
|
+
/*.nextInChain=*/NULL _wgpu_COMMA \
|
|
3761
|
+
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
|
|
3762
|
+
})
|
|
3763
|
+
|
|
3672
3764
|
typedef struct WGPUSharedFenceDescriptor {
|
|
3673
3765
|
WGPUChainedStruct * nextInChain;
|
|
3674
3766
|
WGPUStringView label;
|
|
@@ -4195,7 +4287,6 @@ typedef void (*WGPUProcAdapterPropertiesMemoryHeapsFreeMembers)(WGPUAdapterPrope
|
|
|
4195
4287
|
typedef void (*WGPUProcAdapterPropertiesSubgroupMatrixConfigsFreeMembers)(WGPUAdapterPropertiesSubgroupMatrixConfigs adapterPropertiesSubgroupMatrixConfigs) WGPU_FUNCTION_ATTRIBUTE;
|
|
4196
4288
|
|
|
4197
4289
|
// Procs of BindGroup
|
|
4198
|
-
typedef void (*WGPUProcBindGroupDestroy)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
4199
4290
|
typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4200
4291
|
typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
4201
4292
|
typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4254,9 +4345,10 @@ typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncod
|
|
|
4254
4345
|
typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4255
4346
|
typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4256
4347
|
typedef void (*WGPUProcComputePassEncoderSetBindGroup)(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
|
|
4257
|
-
typedef void (*
|
|
4348
|
+
typedef void (*WGPUProcComputePassEncoderSetImmediates)(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4258
4349
|
typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4259
4350
|
typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4351
|
+
typedef void (*WGPUProcComputePassEncoderSetResourceTable)(WGPUComputePassEncoder computePassEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4260
4352
|
typedef void (*WGPUProcComputePassEncoderWriteTimestamp)(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
|
|
4261
4353
|
typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4262
4354
|
typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4287,6 +4379,7 @@ typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuer
|
|
|
4287
4379
|
typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4288
4380
|
typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4289
4381
|
typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
|
|
4382
|
+
typedef WGPUResourceTable (*WGPUProcDeviceCreateResourceTable)(WGPUDevice device, WGPUResourceTableDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4290
4383
|
typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4291
4384
|
typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4292
4385
|
typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4370,10 +4463,11 @@ typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEnc
|
|
|
4370
4463
|
typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4371
4464
|
typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4372
4465
|
typedef void (*WGPUProcRenderBundleEncoderSetBindGroup)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
|
|
4373
|
-
typedef void (*
|
|
4466
|
+
typedef void (*WGPUProcRenderBundleEncoderSetImmediates)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4374
4467
|
typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4375
4468
|
typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4376
4469
|
typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4470
|
+
typedef void (*WGPUProcRenderBundleEncoderSetResourceTable)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4377
4471
|
typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4378
4472
|
typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4379
4473
|
typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4395,10 +4489,11 @@ typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder ren
|
|
|
4395
4489
|
typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4396
4490
|
typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
|
|
4397
4491
|
typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
|
|
4398
|
-
typedef void (*
|
|
4492
|
+
typedef void (*WGPUProcRenderPassEncoderSetImmediates)(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4399
4493
|
typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4400
4494
|
typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4401
4495
|
typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4496
|
+
typedef void (*WGPUProcRenderPassEncoderSetResourceTable)(WGPURenderPassEncoder renderPassEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4402
4497
|
typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
|
|
4403
4498
|
typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
|
|
4404
4499
|
typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4413,6 +4508,16 @@ typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline
|
|
|
4413
4508
|
typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4414
4509
|
typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4415
4510
|
|
|
4511
|
+
// Procs of ResourceTable
|
|
4512
|
+
typedef void (*WGPUProcResourceTableDestroy)(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4513
|
+
typedef uint32_t (*WGPUProcResourceTableGetSize)(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4514
|
+
typedef uint32_t (*WGPUProcResourceTableInsertBinding)(WGPUResourceTable resourceTable, WGPUBindingResource const * resource) WGPU_FUNCTION_ATTRIBUTE;
|
|
4515
|
+
typedef WGPUStatus (*WGPUProcResourceTableRemoveBinding)(WGPUResourceTable resourceTable, uint32_t slot) WGPU_FUNCTION_ATTRIBUTE;
|
|
4516
|
+
typedef void (*WGPUProcResourceTableSetLabel)(WGPUResourceTable resourceTable, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4517
|
+
typedef WGPUStatus (*WGPUProcResourceTableUpdate)(WGPUResourceTable resourceTable, uint32_t slot, WGPUBindingResource const * resource) WGPU_FUNCTION_ATTRIBUTE;
|
|
4518
|
+
typedef void (*WGPUProcResourceTableAddRef)(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4519
|
+
typedef void (*WGPUProcResourceTableRelease)(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4520
|
+
|
|
4416
4521
|
// Procs of Sampler
|
|
4417
4522
|
typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4418
4523
|
typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4439,6 +4544,7 @@ typedef void (*WGPUProcSharedBufferMemoryEndAccessStateFreeMembers)(WGPUSharedBu
|
|
|
4439
4544
|
|
|
4440
4545
|
// Procs of SharedFence
|
|
4441
4546
|
typedef void (*WGPUProcSharedFenceExportInfo)(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo * info) WGPU_FUNCTION_ATTRIBUTE;
|
|
4547
|
+
typedef void (*WGPUProcSharedFenceSetLabel)(WGPUSharedFence sharedFence, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4442
4548
|
typedef void (*WGPUProcSharedFenceAddRef)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
|
|
4443
4549
|
typedef void (*WGPUProcSharedFenceRelease)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
|
|
4444
4550
|
|
|
@@ -4492,10 +4598,12 @@ typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_
|
|
|
4492
4598
|
typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4493
4599
|
typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4494
4600
|
typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4601
|
+
typedef WGPUTextureViewDimension (*WGPUProcTextureGetTextureBindingViewDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4495
4602
|
typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4496
4603
|
typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4497
4604
|
typedef void (*WGPUProcTexturePin)(WGPUTexture texture, WGPUTextureUsage usage) WGPU_FUNCTION_ATTRIBUTE;
|
|
4498
4605
|
typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4606
|
+
typedef void (*WGPUProcTextureSetOwnershipForMemoryDump)(WGPUTexture texture, uint64_t ownerGuid) WGPU_FUNCTION_ATTRIBUTE;
|
|
4499
4607
|
typedef void (*WGPUProcTextureUnpin)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4500
4608
|
typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4501
4609
|
typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4536,7 +4644,6 @@ WGPU_EXPORT void wgpuAdapterPropertiesMemoryHeapsFreeMembers(WGPUAdapterProperti
|
|
|
4536
4644
|
WGPU_EXPORT void wgpuAdapterPropertiesSubgroupMatrixConfigsFreeMembers(WGPUAdapterPropertiesSubgroupMatrixConfigs adapterPropertiesSubgroupMatrixConfigs) WGPU_FUNCTION_ATTRIBUTE;
|
|
4537
4645
|
|
|
4538
4646
|
// Methods of BindGroup
|
|
4539
|
-
WGPU_EXPORT void wgpuBindGroupDestroy(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
4540
4647
|
WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4541
4648
|
WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
4542
4649
|
WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4595,9 +4702,10 @@ WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder
|
|
|
4595
4702
|
WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4596
4703
|
WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4597
4704
|
WGPU_EXPORT void wgpuComputePassEncoderSetBindGroup(WGPUComputePassEncoder computePassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
|
|
4598
|
-
WGPU_EXPORT void
|
|
4705
|
+
WGPU_EXPORT void wgpuComputePassEncoderSetImmediates(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4599
4706
|
WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4600
4707
|
WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4708
|
+
WGPU_EXPORT void wgpuComputePassEncoderSetResourceTable(WGPUComputePassEncoder computePassEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4601
4709
|
WGPU_EXPORT void wgpuComputePassEncoderWriteTimestamp(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
|
|
4602
4710
|
WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4603
4711
|
WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4628,6 +4736,7 @@ WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySe
|
|
|
4628
4736
|
WGPU_EXPORT WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4629
4737
|
WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4630
4738
|
WGPU_EXPORT WGPUFuture wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
|
|
4739
|
+
WGPU_EXPORT WGPUResourceTable wgpuDeviceCreateResourceTable(WGPUDevice device, WGPUResourceTableDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4631
4740
|
WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4632
4741
|
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4633
4742
|
WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4711,10 +4820,11 @@ WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncode
|
|
|
4711
4820
|
WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4712
4821
|
WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4713
4822
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetBindGroup(WGPURenderBundleEncoder renderBundleEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
|
|
4714
|
-
WGPU_EXPORT void
|
|
4823
|
+
WGPU_EXPORT void wgpuRenderBundleEncoderSetImmediates(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4715
4824
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4716
4825
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4717
4826
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4827
|
+
WGPU_EXPORT void wgpuRenderBundleEncoderSetResourceTable(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4718
4828
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4719
4829
|
WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4720
4830
|
WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4736,10 +4846,11 @@ WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder render
|
|
|
4736
4846
|
WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4737
4847
|
WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
|
|
4738
4848
|
WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
|
|
4739
|
-
WGPU_EXPORT void
|
|
4849
|
+
WGPU_EXPORT void wgpuRenderPassEncoderSetImmediates(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4740
4850
|
WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4741
4851
|
WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4742
4852
|
WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4853
|
+
WGPU_EXPORT void wgpuRenderPassEncoderSetResourceTable(WGPURenderPassEncoder renderPassEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4743
4854
|
WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
|
|
4744
4855
|
WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
|
|
4745
4856
|
WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4754,6 +4865,16 @@ WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, W
|
|
|
4754
4865
|
WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4755
4866
|
WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4756
4867
|
|
|
4868
|
+
// Methods of ResourceTable
|
|
4869
|
+
WGPU_EXPORT void wgpuResourceTableDestroy(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4870
|
+
WGPU_EXPORT uint32_t wgpuResourceTableGetSize(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4871
|
+
WGPU_EXPORT uint32_t wgpuResourceTableInsertBinding(WGPUResourceTable resourceTable, WGPUBindingResource const * resource) WGPU_FUNCTION_ATTRIBUTE;
|
|
4872
|
+
WGPU_EXPORT WGPUStatus wgpuResourceTableRemoveBinding(WGPUResourceTable resourceTable, uint32_t slot) WGPU_FUNCTION_ATTRIBUTE;
|
|
4873
|
+
WGPU_EXPORT void wgpuResourceTableSetLabel(WGPUResourceTable resourceTable, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4874
|
+
WGPU_EXPORT WGPUStatus wgpuResourceTableUpdate(WGPUResourceTable resourceTable, uint32_t slot, WGPUBindingResource const * resource) WGPU_FUNCTION_ATTRIBUTE;
|
|
4875
|
+
WGPU_EXPORT void wgpuResourceTableAddRef(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4876
|
+
WGPU_EXPORT void wgpuResourceTableRelease(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4877
|
+
|
|
4757
4878
|
// Methods of Sampler
|
|
4758
4879
|
WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4759
4880
|
WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4780,6 +4901,7 @@ WGPU_EXPORT void wgpuSharedBufferMemoryEndAccessStateFreeMembers(WGPUSharedBuffe
|
|
|
4780
4901
|
|
|
4781
4902
|
// Methods of SharedFence
|
|
4782
4903
|
WGPU_EXPORT void wgpuSharedFenceExportInfo(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo * info) WGPU_FUNCTION_ATTRIBUTE;
|
|
4904
|
+
WGPU_EXPORT void wgpuSharedFenceSetLabel(WGPUSharedFence sharedFence, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4783
4905
|
WGPU_EXPORT void wgpuSharedFenceAddRef(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
|
|
4784
4906
|
WGPU_EXPORT void wgpuSharedFenceRelease(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
|
|
4785
4907
|
|
|
@@ -4833,10 +4955,12 @@ WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUN
|
|
|
4833
4955
|
WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4834
4956
|
WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4835
4957
|
WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4958
|
+
WGPU_EXPORT WGPUTextureViewDimension wgpuTextureGetTextureBindingViewDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4836
4959
|
WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4837
4960
|
WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4838
4961
|
WGPU_EXPORT void wgpuTexturePin(WGPUTexture texture, WGPUTextureUsage usage) WGPU_FUNCTION_ATTRIBUTE;
|
|
4839
4962
|
WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4963
|
+
WGPU_EXPORT void wgpuTextureSetOwnershipForMemoryDump(WGPUTexture texture, uint64_t ownerGuid) WGPU_FUNCTION_ATTRIBUTE;
|
|
4840
4964
|
WGPU_EXPORT void wgpuTextureUnpin(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4841
4965
|
WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4842
4966
|
WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|