react-native-wgpu 0.5.10 → 0.5.11
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/android/cpp/AndroidPlatformContext.h +6 -5
- package/apple/ApplePlatformContext.h +4 -4
- package/apple/ApplePlatformContext.mm +16 -16
- package/apple/WebGPUModule.h +2 -1
- package/apple/WebGPUModule.mm +4 -2
- package/cpp/rnwgpu/PlatformContext.h +10 -8
- package/cpp/rnwgpu/api/GPUFeatures.h +3 -12
- package/cpp/rnwgpu/api/RNWebGPU.h +8 -12
- package/cpp/rnwgpu/api/descriptors/Unions.h +0 -15
- package/cpp/webgpu/webgpu.h +251 -188
- package/cpp/webgpu/webgpu_cpp.h +687 -561
- package/cpp/webgpu/webgpu_cpp_print.h +101 -61
- 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 +5 -5
- 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 +2 -2
- 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,9 +150,10 @@ typedef struct WGPUTextureViewImpl* WGPUTextureView WGPU_OBJECT_ATTRIBUTE;
|
|
|
148
150
|
|
|
149
151
|
// Structure forward declarations
|
|
150
152
|
struct WGPUAdapterPropertiesD3D;
|
|
153
|
+
struct WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs;
|
|
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;
|
|
@@ -172,15 +175,13 @@ struct WGPUDawnFakeBufferOOMForTesting;
|
|
|
172
175
|
struct WGPUDawnFakeDeviceInitializeErrorForTesting;
|
|
173
176
|
struct WGPUDawnHostMappedPointerLimits;
|
|
174
177
|
struct WGPUDawnInjectedInvalidSType;
|
|
175
|
-
struct
|
|
178
|
+
struct WGPUDawnRenderPassSampleCount;
|
|
176
179
|
struct WGPUDawnShaderModuleSPIRVOptionsDescriptor;
|
|
177
180
|
struct WGPUDawnTexelCopyBufferRowAlignmentLimits;
|
|
178
181
|
struct WGPUDawnTextureInternalUsageDescriptor;
|
|
179
182
|
struct WGPUDawnTogglesDescriptor;
|
|
180
183
|
struct WGPUDawnWGSLBlocklist;
|
|
181
184
|
struct WGPUDawnWireWGSLControl;
|
|
182
|
-
struct WGPUDynamicBindingArrayLayout;
|
|
183
|
-
struct WGPUDynamicBindingArrayLimits;
|
|
184
185
|
struct WGPUEmscriptenSurfaceSourceCanvasHTMLSelector;
|
|
185
186
|
struct WGPUExtent2D;
|
|
186
187
|
struct WGPUExtent3D;
|
|
@@ -194,6 +195,7 @@ struct WGPUMultisampleState;
|
|
|
194
195
|
struct WGPUOrigin2D;
|
|
195
196
|
struct WGPUOrigin3D;
|
|
196
197
|
struct WGPUPassTimestampWrites;
|
|
198
|
+
struct WGPUPipelineLayoutResourceTable;
|
|
197
199
|
struct WGPUPipelineLayoutStorageAttachment;
|
|
198
200
|
struct WGPUPrimitiveState;
|
|
199
201
|
struct WGPUQuerySetDescriptor;
|
|
@@ -201,17 +203,17 @@ struct WGPUQueueDescriptor;
|
|
|
201
203
|
struct WGPURenderBundleDescriptor;
|
|
202
204
|
struct WGPURenderBundleEncoderDescriptor;
|
|
203
205
|
struct WGPURenderPassDepthStencilAttachment;
|
|
204
|
-
struct WGPURenderPassDescriptorExpandResolveRect;
|
|
205
206
|
struct WGPURenderPassDescriptorResolveRect;
|
|
206
207
|
struct WGPURenderPassMaxDrawCount;
|
|
207
208
|
struct WGPURequestAdapterWebGPUBackendOptions;
|
|
208
209
|
struct WGPURequestAdapterWebXROptions;
|
|
210
|
+
struct WGPUResourceTableDescriptor;
|
|
209
211
|
struct WGPUSamplerBindingLayout;
|
|
210
212
|
struct WGPUShaderModuleCompilationOptions;
|
|
211
213
|
struct WGPUShaderSourceSPIRV;
|
|
212
214
|
struct WGPUShaderSourceWGSL;
|
|
213
215
|
struct WGPUSharedBufferMemoryBeginAccessDescriptor;
|
|
214
|
-
struct
|
|
216
|
+
struct WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor;
|
|
215
217
|
struct WGPUSharedBufferMemoryEndAccessState;
|
|
216
218
|
struct WGPUSharedBufferMemoryProperties;
|
|
217
219
|
struct WGPUSharedFenceDXGISharedHandleDescriptor;
|
|
@@ -263,7 +265,7 @@ struct WGPUTexelBufferBindingLayout;
|
|
|
263
265
|
struct WGPUTexelBufferViewDescriptor;
|
|
264
266
|
struct WGPUTexelCopyBufferLayout;
|
|
265
267
|
struct WGPUTextureBindingLayout;
|
|
266
|
-
struct
|
|
268
|
+
struct WGPUTextureBindingViewDimension;
|
|
267
269
|
struct WGPUTextureComponentSwizzle;
|
|
268
270
|
struct WGPUVertexAttribute;
|
|
269
271
|
struct WGPUYCbCrVkDescriptor;
|
|
@@ -271,7 +273,6 @@ struct WGPUAdapterPropertiesMemoryHeaps;
|
|
|
271
273
|
struct WGPUAdapterPropertiesSubgroupMatrixConfigs;
|
|
272
274
|
struct WGPUAHardwareBufferProperties;
|
|
273
275
|
struct WGPUBindGroupEntry;
|
|
274
|
-
struct WGPUBindGroupLayoutDynamicBindingArray;
|
|
275
276
|
struct WGPUBindGroupLayoutEntry;
|
|
276
277
|
struct WGPUBlendState;
|
|
277
278
|
struct WGPUBufferDescriptor;
|
|
@@ -288,10 +289,12 @@ struct WGPUInstanceDescriptor;
|
|
|
288
289
|
struct WGPULimits;
|
|
289
290
|
struct WGPUPipelineLayoutPixelLocalStorage;
|
|
290
291
|
struct WGPURenderPassColorAttachment;
|
|
292
|
+
struct WGPURenderPassRenderAreaRect;
|
|
291
293
|
struct WGPURenderPassStorageAttachment;
|
|
292
294
|
struct WGPURequestAdapterOptions;
|
|
293
295
|
struct WGPUSamplerDescriptor;
|
|
294
296
|
struct WGPUShaderModuleDescriptor;
|
|
297
|
+
struct WGPUSharedBufferMemoryDescriptor;
|
|
295
298
|
struct WGPUSharedFenceDescriptor;
|
|
296
299
|
struct WGPUSharedFenceExportInfo;
|
|
297
300
|
struct WGPUSharedTextureMemoryAHardwareBufferProperties;
|
|
@@ -497,12 +500,6 @@ typedef enum WGPUDeviceLostReason {
|
|
|
497
500
|
WGPUDeviceLostReason_Force32 = 0x7FFFFFFF
|
|
498
501
|
} WGPUDeviceLostReason WGPU_ENUM_ATTRIBUTE;
|
|
499
502
|
|
|
500
|
-
typedef enum WGPUDynamicBindingKind {
|
|
501
|
-
WGPUDynamicBindingKind_Undefined = 0x00000000,
|
|
502
|
-
WGPUDynamicBindingKind_SampledTexture = 0x00000001,
|
|
503
|
-
WGPUDynamicBindingKind_Force32 = 0x7FFFFFFF
|
|
504
|
-
} WGPUDynamicBindingKind WGPU_ENUM_ATTRIBUTE;
|
|
505
|
-
|
|
506
503
|
typedef enum WGPUErrorFilter {
|
|
507
504
|
WGPUErrorFilter_Validation = 0x00000001,
|
|
508
505
|
WGPUErrorFilter_OutOfMemory = 0x00000002,
|
|
@@ -556,6 +553,7 @@ typedef enum WGPUFeatureName {
|
|
|
556
553
|
WGPUFeatureName_TextureFormatsTier1 = 0x00000013,
|
|
557
554
|
WGPUFeatureName_TextureFormatsTier2 = 0x00000014,
|
|
558
555
|
WGPUFeatureName_PrimitiveIndex = 0x00000015,
|
|
556
|
+
WGPUFeatureName_TextureComponentSwizzle = 0x00000016,
|
|
559
557
|
WGPUFeatureName_DawnInternalUsages = 0x00050000,
|
|
560
558
|
WGPUFeatureName_DawnMultiPlanarFormats = 0x00050001,
|
|
561
559
|
WGPUFeatureName_DawnNative = 0x00050002,
|
|
@@ -568,54 +566,58 @@ typedef enum WGPUFeatureName {
|
|
|
568
566
|
WGPUFeatureName_PixelLocalStorageCoherent = 0x0005000A,
|
|
569
567
|
WGPUFeatureName_PixelLocalStorageNonCoherent = 0x0005000B,
|
|
570
568
|
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
|
-
|
|
569
|
+
WGPUFeatureName_MultiPlanarFormatExtendedUsages = 0x0005000D,
|
|
570
|
+
WGPUFeatureName_MultiPlanarFormatP010 = 0x0005000E,
|
|
571
|
+
WGPUFeatureName_HostMappedPointer = 0x0005000F,
|
|
572
|
+
WGPUFeatureName_MultiPlanarRenderTargets = 0x00050010,
|
|
573
|
+
WGPUFeatureName_MultiPlanarFormatNv12a = 0x00050011,
|
|
574
|
+
WGPUFeatureName_FramebufferFetch = 0x00050012,
|
|
575
|
+
WGPUFeatureName_BufferMapExtendedUsages = 0x00050013,
|
|
576
|
+
WGPUFeatureName_AdapterPropertiesMemoryHeaps = 0x00050014,
|
|
577
|
+
WGPUFeatureName_AdapterPropertiesD3D = 0x00050015,
|
|
578
|
+
WGPUFeatureName_AdapterPropertiesVk = 0x00050016,
|
|
579
|
+
WGPUFeatureName_DawnFormatCapabilities = 0x00050017,
|
|
580
|
+
WGPUFeatureName_DawnDrmFormatCapabilities = 0x00050018,
|
|
581
|
+
WGPUFeatureName_MultiPlanarFormatNv16 = 0x00050019,
|
|
582
|
+
WGPUFeatureName_MultiPlanarFormatNv24 = 0x0005001A,
|
|
583
|
+
WGPUFeatureName_MultiPlanarFormatP210 = 0x0005001B,
|
|
584
|
+
WGPUFeatureName_MultiPlanarFormatP410 = 0x0005001C,
|
|
585
|
+
WGPUFeatureName_SharedTextureMemoryVkDedicatedAllocation = 0x0005001D,
|
|
586
|
+
WGPUFeatureName_SharedTextureMemoryAHardwareBuffer = 0x0005001E,
|
|
587
|
+
WGPUFeatureName_SharedTextureMemoryDmaBuf = 0x0005001F,
|
|
588
|
+
WGPUFeatureName_SharedTextureMemoryOpaqueFD = 0x00050020,
|
|
589
|
+
WGPUFeatureName_SharedTextureMemoryZirconHandle = 0x00050021,
|
|
590
|
+
WGPUFeatureName_SharedTextureMemoryDXGISharedHandle = 0x00050022,
|
|
591
|
+
WGPUFeatureName_SharedTextureMemoryD3D11Texture2D = 0x00050023,
|
|
592
|
+
WGPUFeatureName_SharedTextureMemoryIOSurface = 0x00050024,
|
|
593
|
+
WGPUFeatureName_SharedTextureMemoryEGLImage = 0x00050025,
|
|
594
|
+
WGPUFeatureName_SharedFenceVkSemaphoreOpaqueFD = 0x00050026,
|
|
595
|
+
WGPUFeatureName_SharedFenceSyncFD = 0x00050027,
|
|
596
|
+
WGPUFeatureName_SharedFenceVkSemaphoreZirconHandle = 0x00050028,
|
|
597
|
+
WGPUFeatureName_SharedFenceDXGISharedHandle = 0x00050029,
|
|
598
|
+
WGPUFeatureName_SharedFenceMTLSharedEvent = 0x0005002A,
|
|
599
|
+
WGPUFeatureName_SharedBufferMemoryD3D12Resource = 0x0005002B,
|
|
600
|
+
WGPUFeatureName_StaticSamplers = 0x0005002C,
|
|
601
|
+
WGPUFeatureName_YCbCrVulkanSamplers = 0x0005002D,
|
|
602
|
+
WGPUFeatureName_ShaderModuleCompilationOptions = 0x0005002E,
|
|
603
|
+
WGPUFeatureName_DawnLoadResolveTexture = 0x0005002F,
|
|
604
|
+
WGPUFeatureName_DawnPartialLoadResolveTexture = 0x00050030,
|
|
605
|
+
WGPUFeatureName_MultiDrawIndirect = 0x00050031,
|
|
606
|
+
WGPUFeatureName_DawnTexelCopyBufferRowAlignment = 0x00050032,
|
|
607
|
+
WGPUFeatureName_FlexibleTextureViews = 0x00050033,
|
|
608
|
+
WGPUFeatureName_ChromiumExperimentalSubgroupMatrix = 0x00050034,
|
|
609
|
+
WGPUFeatureName_SharedFenceEGLSync = 0x00050035,
|
|
610
|
+
WGPUFeatureName_DawnDeviceAllocatorControl = 0x00050036,
|
|
611
|
+
WGPUFeatureName_AdapterPropertiesWGPU = 0x00050037,
|
|
612
|
+
WGPUFeatureName_SharedBufferMemoryD3D12SharedMemoryFileMappingHandle = 0x00050038,
|
|
613
|
+
WGPUFeatureName_SharedTextureMemoryD3D12Resource = 0x00050039,
|
|
614
|
+
WGPUFeatureName_ChromiumExperimentalSamplingResourceTable = 0x0005003A,
|
|
615
|
+
WGPUFeatureName_ChromiumExperimentalSubgroupSizeControl = 0x0005003B,
|
|
616
|
+
WGPUFeatureName_AtomicVec2uMinMax = 0x0005003C,
|
|
617
|
+
WGPUFeatureName_Unorm16FormatsForExternalTexture = 0x0005003D,
|
|
618
|
+
WGPUFeatureName_OpaqueYCbCrAndroidForExternalTexture = 0x0005003E,
|
|
619
|
+
WGPUFeatureName_Unorm16Filterable = 0x0005003F,
|
|
620
|
+
WGPUFeatureName_RenderPassRenderArea = 0x00050040,
|
|
619
621
|
WGPUFeatureName_Force32 = 0x7FFFFFFF
|
|
620
622
|
} WGPUFeatureName WGPU_ENUM_ATTRIBUTE;
|
|
621
623
|
|
|
@@ -818,12 +820,13 @@ typedef enum WGPUSType {
|
|
|
818
820
|
WGPUSType_SurfaceSourceXCBWindow = 0x00000009,
|
|
819
821
|
WGPUSType_SurfaceColorManagement = 0x0000000A,
|
|
820
822
|
WGPUSType_RequestAdapterWebXROptions = 0x0000000B,
|
|
821
|
-
|
|
822
|
-
|
|
823
|
+
WGPUSType_TextureComponentSwizzleDescriptor = 0x0000000C,
|
|
824
|
+
WGPUSType_ExternalTextureBindingLayout = 0x0000000D,
|
|
825
|
+
WGPUSType_ExternalTextureBindingEntry = 0x0000000E,
|
|
826
|
+
WGPUSType_CompatibilityModeLimits = 0x0000000F,
|
|
827
|
+
WGPUSType_TextureBindingViewDimension = 0x00000010,
|
|
823
828
|
WGPUSType_EmscriptenSurfaceSourceCanvasHTMLSelector = 0x00040000,
|
|
824
829
|
WGPUSType_SurfaceDescriptorFromWindowsCoreWindow = 0x00050000,
|
|
825
|
-
WGPUSType_ExternalTextureBindingEntry = 0x00050001,
|
|
826
|
-
WGPUSType_ExternalTextureBindingLayout = 0x00050002,
|
|
827
830
|
WGPUSType_SurfaceDescriptorFromWindowsUWPSwapChainPanel = 0x00050003,
|
|
828
831
|
WGPUSType_DawnTextureInternalUsageDescriptor = 0x00050004,
|
|
829
832
|
WGPUSType_DawnEncoderInternalUsageDescriptor = 0x00050005,
|
|
@@ -836,7 +839,7 @@ typedef enum WGPUSType {
|
|
|
836
839
|
WGPUSType_RequestAdapterOptionsLUID = 0x0005000C,
|
|
837
840
|
WGPUSType_RequestAdapterOptionsGetGLProc = 0x0005000D,
|
|
838
841
|
WGPUSType_RequestAdapterOptionsD3D11Device = 0x0005000E,
|
|
839
|
-
|
|
842
|
+
WGPUSType_DawnRenderPassSampleCount = 0x0005000F,
|
|
840
843
|
WGPUSType_RenderPassPixelLocalStorage = 0x00050010,
|
|
841
844
|
WGPUSType_PipelineLayoutPixelLocalStorage = 0x00050011,
|
|
842
845
|
WGPUSType_BufferHostMappedPointer = 0x00050012,
|
|
@@ -848,7 +851,7 @@ typedef enum WGPUSType {
|
|
|
848
851
|
WGPUSType_DawnDrmFormatCapabilities = 0x00050018,
|
|
849
852
|
WGPUSType_ShaderModuleCompilationOptions = 0x00050019,
|
|
850
853
|
WGPUSType_ColorTargetStateExpandResolveTextureDawn = 0x0005001A,
|
|
851
|
-
|
|
854
|
+
WGPUSType_RenderPassRenderAreaRect = 0x0005001B,
|
|
852
855
|
WGPUSType_SharedTextureMemoryVkDedicatedAllocationDescriptor = 0x0005001C,
|
|
853
856
|
WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor = 0x0005001D,
|
|
854
857
|
WGPUSType_SharedTextureMemoryDmaBufDescriptor = 0x0005001E,
|
|
@@ -891,16 +894,17 @@ typedef enum WGPUSType {
|
|
|
891
894
|
WGPUSType_RenderPassDescriptorResolveRect = 0x00050044,
|
|
892
895
|
WGPUSType_RequestAdapterWebGPUBackendOptions = 0x00050045,
|
|
893
896
|
WGPUSType_DawnFakeDeviceInitializeErrorForTesting = 0x00050046,
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
897
|
+
WGPUSType_SharedTextureMemoryD3D11BeginState = 0x00050047,
|
|
898
|
+
WGPUSType_DawnConsumeAdapterDescriptor = 0x00050048,
|
|
899
|
+
WGPUSType_TexelBufferBindingEntry = 0x00050049,
|
|
900
|
+
WGPUSType_TexelBufferBindingLayout = 0x0005004A,
|
|
901
|
+
WGPUSType_SharedTextureMemoryMetalEndAccessState = 0x0005004B,
|
|
902
|
+
WGPUSType_AdapterPropertiesWGPU = 0x0005004C,
|
|
903
|
+
WGPUSType_SharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor = 0x0005004D,
|
|
904
|
+
WGPUSType_SharedTextureMemoryD3D12ResourceDescriptor = 0x0005004E,
|
|
905
|
+
WGPUSType_RequestAdapterOptionsAngleVirtualizationGroup = 0x0005004F,
|
|
906
|
+
WGPUSType_PipelineLayoutResourceTable = 0x00050050,
|
|
907
|
+
WGPUSType_AdapterPropertiesExplicitComputeSubgroupSizeConfigs = 0x00050051,
|
|
904
908
|
WGPUSType_Force32 = 0x7FFFFFFF
|
|
905
909
|
} WGPUSType WGPU_ENUM_ATTRIBUTE;
|
|
906
910
|
|
|
@@ -1053,14 +1057,14 @@ typedef enum WGPUTextureFormat {
|
|
|
1053
1057
|
WGPUTextureFormat_ASTC12x10UnormSrgb = 0x00000063,
|
|
1054
1058
|
WGPUTextureFormat_ASTC12x12Unorm = 0x00000064,
|
|
1055
1059
|
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
|
-
|
|
1060
|
+
WGPUTextureFormat_R8BG8Biplanar420Unorm = 0x00050000,
|
|
1061
|
+
WGPUTextureFormat_R10X6BG10X6Biplanar420Unorm = 0x00050001,
|
|
1062
|
+
WGPUTextureFormat_R8BG8A8Triplanar420Unorm = 0x00050002,
|
|
1063
|
+
WGPUTextureFormat_R8BG8Biplanar422Unorm = 0x00050003,
|
|
1064
|
+
WGPUTextureFormat_R8BG8Biplanar444Unorm = 0x00050004,
|
|
1065
|
+
WGPUTextureFormat_R10X6BG10X6Biplanar422Unorm = 0x00050005,
|
|
1066
|
+
WGPUTextureFormat_R10X6BG10X6Biplanar444Unorm = 0x00050006,
|
|
1067
|
+
WGPUTextureFormat_OpaqueYCbCrAndroid = 0x00050007,
|
|
1064
1068
|
WGPUTextureFormat_Force32 = 0x7FFFFFFF
|
|
1065
1069
|
} WGPUTextureFormat WGPU_ENUM_ATTRIBUTE;
|
|
1066
1070
|
|
|
@@ -1156,14 +1160,25 @@ typedef enum WGPUWGSLLanguageFeatureName {
|
|
|
1156
1160
|
WGPUWGSLLanguageFeatureName_Packed4x8IntegerDotProduct = 0x00000002,
|
|
1157
1161
|
WGPUWGSLLanguageFeatureName_UnrestrictedPointerParameters = 0x00000003,
|
|
1158
1162
|
WGPUWGSLLanguageFeatureName_PointerCompositeAccess = 0x00000004,
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1163
|
+
WGPUWGSLLanguageFeatureName_UniformBufferStandardLayout = 0x00000005,
|
|
1164
|
+
WGPUWGSLLanguageFeatureName_SubgroupId = 0x00000006,
|
|
1165
|
+
WGPUWGSLLanguageFeatureName_TextureAndSamplerLet = 0x00000007,
|
|
1166
|
+
WGPUWGSLLanguageFeatureName_SubgroupUniformity = 0x00000008,
|
|
1167
|
+
WGPUWGSLLanguageFeatureName_TextureFormatsTier1 = 0x00000009,
|
|
1162
1168
|
WGPUWGSLLanguageFeatureName_ChromiumTestingUnimplemented = 0x00050000,
|
|
1163
1169
|
WGPUWGSLLanguageFeatureName_ChromiumTestingUnsafeExperimental = 0x00050001,
|
|
1164
1170
|
WGPUWGSLLanguageFeatureName_ChromiumTestingExperimental = 0x00050002,
|
|
1165
1171
|
WGPUWGSLLanguageFeatureName_ChromiumTestingShippedWithKillswitch = 0x00050003,
|
|
1166
1172
|
WGPUWGSLLanguageFeatureName_ChromiumTestingShipped = 0x00050004,
|
|
1173
|
+
WGPUWGSLLanguageFeatureName_SizedBindingArray = 0x00050005,
|
|
1174
|
+
WGPUWGSLLanguageFeatureName_TexelBuffers = 0x00050006,
|
|
1175
|
+
WGPUWGSLLanguageFeatureName_ChromiumPrint = 0x00050007,
|
|
1176
|
+
WGPUWGSLLanguageFeatureName_FragmentDepth = 0x00050008,
|
|
1177
|
+
WGPUWGSLLanguageFeatureName_ImmediateAddressSpace = 0x00050009,
|
|
1178
|
+
WGPUWGSLLanguageFeatureName_BufferView = 0x0005000B,
|
|
1179
|
+
WGPUWGSLLanguageFeatureName_FilteringParameters = 0x0005000C,
|
|
1180
|
+
WGPUWGSLLanguageFeatureName_SwizzleAssignment = 0x0005000D,
|
|
1181
|
+
WGPUWGSLLanguageFeatureName_LinearIndexing = 0x0005000E,
|
|
1167
1182
|
WGPUWGSLLanguageFeatureName_Force32 = 0x7FFFFFFF
|
|
1168
1183
|
} WGPUWGSLLanguageFeatureName WGPU_ENUM_ATTRIBUTE;
|
|
1169
1184
|
|
|
@@ -1437,6 +1452,24 @@ typedef struct WGPUAdapterPropertiesD3D {
|
|
|
1437
1452
|
/*.shaderModel=*/0 _wgpu_COMMA \
|
|
1438
1453
|
})
|
|
1439
1454
|
|
|
1455
|
+
// Can be chained in WGPUAdapterInfo
|
|
1456
|
+
typedef struct WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs {
|
|
1457
|
+
WGPUChainedStruct chain;
|
|
1458
|
+
uint32_t minExplicitComputeSubgroupSize;
|
|
1459
|
+
uint32_t maxExplicitComputeSubgroupSize;
|
|
1460
|
+
uint32_t maxComputeWorkgroupSubgroups;
|
|
1461
|
+
} WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs WGPU_STRUCTURE_ATTRIBUTE;
|
|
1462
|
+
|
|
1463
|
+
#define WGPU_ADAPTER_PROPERTIES_EXPLICIT_COMPUTE_SUBGROUP_SIZE_CONFIGS_INIT _wgpu_MAKE_INIT_STRUCT(WGPUAdapterPropertiesExplicitComputeSubgroupSizeConfigs, { \
|
|
1464
|
+
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
1465
|
+
/*.next=*/NULL _wgpu_COMMA \
|
|
1466
|
+
/*.sType=*/WGPUSType_AdapterPropertiesExplicitComputeSubgroupSizeConfigs _wgpu_COMMA \
|
|
1467
|
+
}) _wgpu_COMMA \
|
|
1468
|
+
/*.minExplicitComputeSubgroupSize=*/0 _wgpu_COMMA \
|
|
1469
|
+
/*.maxExplicitComputeSubgroupSize=*/0 _wgpu_COMMA \
|
|
1470
|
+
/*.maxComputeWorkgroupSubgroups=*/0 _wgpu_COMMA \
|
|
1471
|
+
})
|
|
1472
|
+
|
|
1440
1473
|
// Can be chained in WGPUAdapterInfo
|
|
1441
1474
|
typedef struct WGPUAdapterPropertiesVk {
|
|
1442
1475
|
WGPUChainedStruct chain;
|
|
@@ -1465,18 +1498,22 @@ typedef struct WGPUAdapterPropertiesWGPU {
|
|
|
1465
1498
|
/*.backendType=*/WGPUBackendType_Undefined _wgpu_COMMA \
|
|
1466
1499
|
})
|
|
1467
1500
|
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1501
|
+
typedef struct WGPUBindingResource {
|
|
1502
|
+
WGPUChainedStruct * nextInChain;
|
|
1503
|
+
WGPU_NULLABLE WGPUBuffer buffer;
|
|
1504
|
+
uint64_t offset;
|
|
1505
|
+
uint64_t size;
|
|
1506
|
+
WGPU_NULLABLE WGPUSampler sampler;
|
|
1507
|
+
WGPU_NULLABLE WGPUTextureView textureView;
|
|
1508
|
+
} WGPUBindingResource WGPU_STRUCTURE_ATTRIBUTE;
|
|
1473
1509
|
|
|
1474
|
-
#define
|
|
1475
|
-
/*.
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
/*.
|
|
1510
|
+
#define WGPU_BINDING_RESOURCE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUBindingResource, { \
|
|
1511
|
+
/*.nextInChain=*/NULL _wgpu_COMMA \
|
|
1512
|
+
/*.buffer=*/NULL _wgpu_COMMA \
|
|
1513
|
+
/*.offset=*/0 _wgpu_COMMA \
|
|
1514
|
+
/*.size=*/WGPU_WHOLE_SIZE _wgpu_COMMA \
|
|
1515
|
+
/*.sampler=*/NULL _wgpu_COMMA \
|
|
1516
|
+
/*.textureView=*/NULL _wgpu_COMMA \
|
|
1480
1517
|
})
|
|
1481
1518
|
|
|
1482
1519
|
typedef struct WGPUBlendComponent {
|
|
@@ -1792,18 +1829,18 @@ typedef struct WGPUDawnInjectedInvalidSType {
|
|
|
1792
1829
|
/*.invalidSType=*/_wgpu_ENUM_ZERO_INIT(WGPUSType) _wgpu_COMMA \
|
|
1793
1830
|
})
|
|
1794
1831
|
|
|
1795
|
-
// Can be chained in
|
|
1796
|
-
typedef struct
|
|
1832
|
+
// Can be chained in WGPURenderPassDescriptor
|
|
1833
|
+
typedef struct WGPUDawnRenderPassSampleCount {
|
|
1797
1834
|
WGPUChainedStruct chain;
|
|
1798
|
-
uint32_t
|
|
1799
|
-
}
|
|
1835
|
+
uint32_t sampleCount;
|
|
1836
|
+
} WGPUDawnRenderPassSampleCount WGPU_STRUCTURE_ATTRIBUTE;
|
|
1800
1837
|
|
|
1801
|
-
#define
|
|
1838
|
+
#define WGPU_DAWN_RENDER_PASS_SAMPLE_COUNT_INIT _wgpu_MAKE_INIT_STRUCT(WGPUDawnRenderPassSampleCount, { \
|
|
1802
1839
|
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
1803
1840
|
/*.next=*/NULL _wgpu_COMMA \
|
|
1804
|
-
/*.sType=*/
|
|
1841
|
+
/*.sType=*/WGPUSType_DawnRenderPassSampleCount _wgpu_COMMA \
|
|
1805
1842
|
}) _wgpu_COMMA \
|
|
1806
|
-
/*.
|
|
1843
|
+
/*.sampleCount=*/1 _wgpu_COMMA \
|
|
1807
1844
|
})
|
|
1808
1845
|
|
|
1809
1846
|
// Can be chained in WGPUShaderModuleDescriptor
|
|
@@ -1904,32 +1941,6 @@ typedef struct WGPUDawnWireWGSLControl {
|
|
|
1904
1941
|
/*.enableTesting=*/WGPU_FALSE _wgpu_COMMA \
|
|
1905
1942
|
})
|
|
1906
1943
|
|
|
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
1944
|
// Can be chained in WGPUSurfaceDescriptor
|
|
1934
1945
|
typedef struct WGPUEmscriptenSurfaceSourceCanvasHTMLSelector {
|
|
1935
1946
|
WGPUChainedStruct chain;
|
|
@@ -2078,6 +2089,20 @@ typedef struct WGPUPassTimestampWrites {
|
|
|
2078
2089
|
/*.endOfPassWriteIndex=*/WGPU_QUERY_SET_INDEX_UNDEFINED _wgpu_COMMA \
|
|
2079
2090
|
})
|
|
2080
2091
|
|
|
2092
|
+
// Can be chained in WGPUPipelineLayoutDescriptor
|
|
2093
|
+
typedef struct WGPUPipelineLayoutResourceTable {
|
|
2094
|
+
WGPUChainedStruct chain;
|
|
2095
|
+
WGPUBool usesResourceTable;
|
|
2096
|
+
} WGPUPipelineLayoutResourceTable WGPU_STRUCTURE_ATTRIBUTE;
|
|
2097
|
+
|
|
2098
|
+
#define WGPU_PIPELINE_LAYOUT_RESOURCE_TABLE_INIT _wgpu_MAKE_INIT_STRUCT(WGPUPipelineLayoutResourceTable, { \
|
|
2099
|
+
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
2100
|
+
/*.next=*/NULL _wgpu_COMMA \
|
|
2101
|
+
/*.sType=*/WGPUSType_PipelineLayoutResourceTable _wgpu_COMMA \
|
|
2102
|
+
}) _wgpu_COMMA \
|
|
2103
|
+
/*.usesResourceTable=*/WGPU_FALSE _wgpu_COMMA \
|
|
2104
|
+
})
|
|
2105
|
+
|
|
2081
2106
|
typedef struct WGPUPipelineLayoutStorageAttachment {
|
|
2082
2107
|
WGPUChainedStruct * nextInChain;
|
|
2083
2108
|
uint64_t offset;
|
|
@@ -2190,26 +2215,6 @@ typedef struct WGPURenderPassDepthStencilAttachment {
|
|
|
2190
2215
|
/*.stencilReadOnly=*/WGPU_FALSE _wgpu_COMMA \
|
|
2191
2216
|
})
|
|
2192
2217
|
|
|
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
2218
|
// Can be chained in WGPURenderPassDescriptor
|
|
2214
2219
|
typedef struct WGPURenderPassDescriptorResolveRect {
|
|
2215
2220
|
WGPUChainedStruct chain;
|
|
@@ -2274,6 +2279,18 @@ typedef struct WGPURequestAdapterWebXROptions {
|
|
|
2274
2279
|
/*.xrCompatible=*/WGPU_FALSE _wgpu_COMMA \
|
|
2275
2280
|
})
|
|
2276
2281
|
|
|
2282
|
+
typedef struct WGPUResourceTableDescriptor {
|
|
2283
|
+
WGPUChainedStruct * nextInChain;
|
|
2284
|
+
WGPUStringView label;
|
|
2285
|
+
uint32_t size;
|
|
2286
|
+
} WGPUResourceTableDescriptor WGPU_STRUCTURE_ATTRIBUTE;
|
|
2287
|
+
|
|
2288
|
+
#define WGPU_RESOURCE_TABLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUResourceTableDescriptor, { \
|
|
2289
|
+
/*.nextInChain=*/NULL _wgpu_COMMA \
|
|
2290
|
+
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
|
|
2291
|
+
/*.size=*/0 _wgpu_COMMA \
|
|
2292
|
+
})
|
|
2293
|
+
|
|
2277
2294
|
typedef struct WGPUSamplerBindingLayout {
|
|
2278
2295
|
WGPUChainedStruct * nextInChain;
|
|
2279
2296
|
WGPUSamplerBindingType type;
|
|
@@ -2344,14 +2361,20 @@ typedef struct WGPUSharedBufferMemoryBeginAccessDescriptor {
|
|
|
2344
2361
|
/*.signaledValues=*/NULL _wgpu_COMMA \
|
|
2345
2362
|
})
|
|
2346
2363
|
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2364
|
+
// Can be chained in WGPUSharedBufferMemoryDescriptor
|
|
2365
|
+
typedef struct WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor {
|
|
2366
|
+
WGPUChainedStruct chain;
|
|
2367
|
+
void * handle;
|
|
2368
|
+
uint64_t size;
|
|
2369
|
+
} WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor WGPU_STRUCTURE_ATTRIBUTE;
|
|
2351
2370
|
|
|
2352
|
-
#define
|
|
2353
|
-
/*.
|
|
2354
|
-
|
|
2371
|
+
#define WGPU_SHARED_BUFFER_MEMORY_D3D12_SHARED_MEMORY_FILE_MAPPING_HANDLE_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor, { \
|
|
2372
|
+
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
2373
|
+
/*.next=*/NULL _wgpu_COMMA \
|
|
2374
|
+
/*.sType=*/WGPUSType_SharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor _wgpu_COMMA \
|
|
2375
|
+
}) _wgpu_COMMA \
|
|
2376
|
+
/*.handle=*/NULL _wgpu_COMMA \
|
|
2377
|
+
/*.size=*/0 _wgpu_COMMA \
|
|
2355
2378
|
})
|
|
2356
2379
|
|
|
2357
2380
|
typedef struct WGPUSharedBufferMemoryEndAccessState {
|
|
@@ -2554,7 +2577,6 @@ typedef struct WGPUSharedFenceVkSemaphoreZirconHandleExportInfo {
|
|
|
2554
2577
|
typedef struct WGPUSharedTextureMemoryAHardwareBufferDescriptor {
|
|
2555
2578
|
WGPUChainedStruct chain;
|
|
2556
2579
|
void * handle;
|
|
2557
|
-
WGPUBool useExternalFormat;
|
|
2558
2580
|
} WGPUSharedTextureMemoryAHardwareBufferDescriptor WGPU_STRUCTURE_ATTRIBUTE;
|
|
2559
2581
|
|
|
2560
2582
|
#define WGPU_SHARED_TEXTURE_MEMORY_A_HARDWARE_BUFFER_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSharedTextureMemoryAHardwareBufferDescriptor, { \
|
|
@@ -2563,7 +2585,6 @@ typedef struct WGPUSharedTextureMemoryAHardwareBufferDescriptor {
|
|
|
2563
2585
|
/*.sType=*/WGPUSType_SharedTextureMemoryAHardwareBufferDescriptor _wgpu_COMMA \
|
|
2564
2586
|
}) _wgpu_COMMA \
|
|
2565
2587
|
/*.handle=*/NULL _wgpu_COMMA \
|
|
2566
|
-
/*.useExternalFormat=*/WGPU_FALSE _wgpu_COMMA \
|
|
2567
2588
|
})
|
|
2568
2589
|
|
|
2569
2590
|
// Can be chained in WGPUSharedTextureMemoryBeginAccessDescriptor
|
|
@@ -3109,15 +3130,15 @@ typedef struct WGPUTextureBindingLayout {
|
|
|
3109
3130
|
})
|
|
3110
3131
|
|
|
3111
3132
|
// Can be chained in WGPUTextureDescriptor
|
|
3112
|
-
typedef struct
|
|
3133
|
+
typedef struct WGPUTextureBindingViewDimension {
|
|
3113
3134
|
WGPUChainedStruct chain;
|
|
3114
3135
|
WGPUTextureViewDimension textureBindingViewDimension;
|
|
3115
|
-
}
|
|
3136
|
+
} WGPUTextureBindingViewDimension WGPU_STRUCTURE_ATTRIBUTE;
|
|
3116
3137
|
|
|
3117
|
-
#define
|
|
3138
|
+
#define WGPU_TEXTURE_BINDING_VIEW_DIMENSION_INIT _wgpu_MAKE_INIT_STRUCT(WGPUTextureBindingViewDimension, { \
|
|
3118
3139
|
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
3119
3140
|
/*.next=*/NULL _wgpu_COMMA \
|
|
3120
|
-
/*.sType=*/
|
|
3141
|
+
/*.sType=*/WGPUSType_TextureBindingViewDimension _wgpu_COMMA \
|
|
3121
3142
|
}) _wgpu_COMMA \
|
|
3122
3143
|
/*.textureBindingViewDimension=*/WGPUTextureViewDimension_Undefined _wgpu_COMMA \
|
|
3123
3144
|
})
|
|
@@ -3247,20 +3268,6 @@ typedef struct WGPUBindGroupEntry {
|
|
|
3247
3268
|
/*.textureView=*/NULL _wgpu_COMMA \
|
|
3248
3269
|
})
|
|
3249
3270
|
|
|
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
3271
|
typedef struct WGPUBindGroupLayoutEntry {
|
|
3265
3272
|
WGPUChainedStruct * nextInChain;
|
|
3266
3273
|
uint32_t binding;
|
|
@@ -3593,6 +3600,22 @@ typedef struct WGPURenderPassColorAttachment {
|
|
|
3593
3600
|
/*.clearValue=*/WGPU_COLOR_INIT _wgpu_COMMA \
|
|
3594
3601
|
})
|
|
3595
3602
|
|
|
3603
|
+
// Can be chained in WGPURenderPassDescriptor
|
|
3604
|
+
typedef struct WGPURenderPassRenderAreaRect {
|
|
3605
|
+
WGPUChainedStruct chain;
|
|
3606
|
+
WGPUOrigin2D origin;
|
|
3607
|
+
WGPUExtent2D size;
|
|
3608
|
+
} WGPURenderPassRenderAreaRect WGPU_STRUCTURE_ATTRIBUTE;
|
|
3609
|
+
|
|
3610
|
+
#define WGPU_RENDER_PASS_RENDER_AREA_RECT_INIT _wgpu_MAKE_INIT_STRUCT(WGPURenderPassRenderAreaRect, { \
|
|
3611
|
+
/*.chain=*/_wgpu_MAKE_INIT_STRUCT(WGPUChainedStruct, { \
|
|
3612
|
+
/*.next=*/NULL _wgpu_COMMA \
|
|
3613
|
+
/*.sType=*/WGPUSType_RenderPassRenderAreaRect _wgpu_COMMA \
|
|
3614
|
+
}) _wgpu_COMMA \
|
|
3615
|
+
/*.origin=*/WGPU_ORIGIN_2D_INIT _wgpu_COMMA \
|
|
3616
|
+
/*.size=*/WGPU_EXTENT_2D_INIT _wgpu_COMMA \
|
|
3617
|
+
})
|
|
3618
|
+
|
|
3596
3619
|
typedef struct WGPURenderPassStorageAttachment {
|
|
3597
3620
|
WGPUChainedStruct * nextInChain;
|
|
3598
3621
|
uint64_t offset;
|
|
@@ -3669,6 +3692,16 @@ typedef struct WGPUShaderModuleDescriptor {
|
|
|
3669
3692
|
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
|
|
3670
3693
|
})
|
|
3671
3694
|
|
|
3695
|
+
typedef struct WGPUSharedBufferMemoryDescriptor {
|
|
3696
|
+
WGPUChainedStruct * nextInChain;
|
|
3697
|
+
WGPUStringView label;
|
|
3698
|
+
} WGPUSharedBufferMemoryDescriptor WGPU_STRUCTURE_ATTRIBUTE;
|
|
3699
|
+
|
|
3700
|
+
#define WGPU_SHARED_BUFFER_MEMORY_DESCRIPTOR_INIT _wgpu_MAKE_INIT_STRUCT(WGPUSharedBufferMemoryDescriptor, { \
|
|
3701
|
+
/*.nextInChain=*/NULL _wgpu_COMMA \
|
|
3702
|
+
/*.label=*/WGPU_STRING_VIEW_INIT _wgpu_COMMA \
|
|
3703
|
+
})
|
|
3704
|
+
|
|
3672
3705
|
typedef struct WGPUSharedFenceDescriptor {
|
|
3673
3706
|
WGPUChainedStruct * nextInChain;
|
|
3674
3707
|
WGPUStringView label;
|
|
@@ -4195,7 +4228,6 @@ typedef void (*WGPUProcAdapterPropertiesMemoryHeapsFreeMembers)(WGPUAdapterPrope
|
|
|
4195
4228
|
typedef void (*WGPUProcAdapterPropertiesSubgroupMatrixConfigsFreeMembers)(WGPUAdapterPropertiesSubgroupMatrixConfigs adapterPropertiesSubgroupMatrixConfigs) WGPU_FUNCTION_ATTRIBUTE;
|
|
4196
4229
|
|
|
4197
4230
|
// Procs of BindGroup
|
|
4198
|
-
typedef void (*WGPUProcBindGroupDestroy)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
4199
4231
|
typedef void (*WGPUProcBindGroupSetLabel)(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4200
4232
|
typedef void (*WGPUProcBindGroupAddRef)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
4201
4233
|
typedef void (*WGPUProcBindGroupRelease)(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4254,9 +4286,10 @@ typedef void (*WGPUProcComputePassEncoderInsertDebugMarker)(WGPUComputePassEncod
|
|
|
4254
4286
|
typedef void (*WGPUProcComputePassEncoderPopDebugGroup)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4255
4287
|
typedef void (*WGPUProcComputePassEncoderPushDebugGroup)(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4256
4288
|
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 (*
|
|
4289
|
+
typedef void (*WGPUProcComputePassEncoderSetImmediates)(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4258
4290
|
typedef void (*WGPUProcComputePassEncoderSetLabel)(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4259
4291
|
typedef void (*WGPUProcComputePassEncoderSetPipeline)(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4292
|
+
typedef void (*WGPUProcComputePassEncoderSetResourceTable)(WGPUComputePassEncoder computePassEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4260
4293
|
typedef void (*WGPUProcComputePassEncoderWriteTimestamp)(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
|
|
4261
4294
|
typedef void (*WGPUProcComputePassEncoderAddRef)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4262
4295
|
typedef void (*WGPUProcComputePassEncoderRelease)(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4287,6 +4320,7 @@ typedef WGPUQuerySet (*WGPUProcDeviceCreateQuerySet)(WGPUDevice device, WGPUQuer
|
|
|
4287
4320
|
typedef WGPURenderBundleEncoder (*WGPUProcDeviceCreateRenderBundleEncoder)(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4288
4321
|
typedef WGPURenderPipeline (*WGPUProcDeviceCreateRenderPipeline)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4289
4322
|
typedef WGPUFuture (*WGPUProcDeviceCreateRenderPipelineAsync)(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
|
|
4323
|
+
typedef WGPUResourceTable (*WGPUProcDeviceCreateResourceTable)(WGPUDevice device, WGPUResourceTableDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4290
4324
|
typedef WGPUSampler (*WGPUProcDeviceCreateSampler)(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4291
4325
|
typedef WGPUShaderModule (*WGPUProcDeviceCreateShaderModule)(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4292
4326
|
typedef WGPUTexture (*WGPUProcDeviceCreateTexture)(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4370,10 +4404,11 @@ typedef void (*WGPUProcRenderBundleEncoderInsertDebugMarker)(WGPURenderBundleEnc
|
|
|
4370
4404
|
typedef void (*WGPUProcRenderBundleEncoderPopDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4371
4405
|
typedef void (*WGPUProcRenderBundleEncoderPushDebugGroup)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4372
4406
|
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 (*
|
|
4407
|
+
typedef void (*WGPUProcRenderBundleEncoderSetImmediates)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4374
4408
|
typedef void (*WGPUProcRenderBundleEncoderSetIndexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4375
4409
|
typedef void (*WGPUProcRenderBundleEncoderSetLabel)(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4376
4410
|
typedef void (*WGPUProcRenderBundleEncoderSetPipeline)(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4411
|
+
typedef void (*WGPUProcRenderBundleEncoderSetResourceTable)(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4377
4412
|
typedef void (*WGPUProcRenderBundleEncoderSetVertexBuffer)(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4378
4413
|
typedef void (*WGPUProcRenderBundleEncoderAddRef)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4379
4414
|
typedef void (*WGPUProcRenderBundleEncoderRelease)(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4395,10 +4430,11 @@ typedef void (*WGPUProcRenderPassEncoderPopDebugGroup)(WGPURenderPassEncoder ren
|
|
|
4395
4430
|
typedef void (*WGPUProcRenderPassEncoderPushDebugGroup)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4396
4431
|
typedef void (*WGPUProcRenderPassEncoderSetBindGroup)(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
|
|
4397
4432
|
typedef void (*WGPUProcRenderPassEncoderSetBlendConstant)(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
|
|
4398
|
-
typedef void (*
|
|
4433
|
+
typedef void (*WGPUProcRenderPassEncoderSetImmediates)(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4399
4434
|
typedef void (*WGPUProcRenderPassEncoderSetIndexBuffer)(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4400
4435
|
typedef void (*WGPUProcRenderPassEncoderSetLabel)(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4401
4436
|
typedef void (*WGPUProcRenderPassEncoderSetPipeline)(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4437
|
+
typedef void (*WGPUProcRenderPassEncoderSetResourceTable)(WGPURenderPassEncoder renderPassEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4402
4438
|
typedef void (*WGPUProcRenderPassEncoderSetScissorRect)(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
|
|
4403
4439
|
typedef void (*WGPUProcRenderPassEncoderSetStencilReference)(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
|
|
4404
4440
|
typedef void (*WGPUProcRenderPassEncoderSetVertexBuffer)(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4413,6 +4449,15 @@ typedef void (*WGPUProcRenderPipelineSetLabel)(WGPURenderPipeline renderPipeline
|
|
|
4413
4449
|
typedef void (*WGPUProcRenderPipelineAddRef)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4414
4450
|
typedef void (*WGPUProcRenderPipelineRelease)(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4415
4451
|
|
|
4452
|
+
// Procs of ResourceTable
|
|
4453
|
+
typedef void (*WGPUProcResourceTableDestroy)(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4454
|
+
typedef uint32_t (*WGPUProcResourceTableGetSize)(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4455
|
+
typedef uint32_t (*WGPUProcResourceTableInsertBinding)(WGPUResourceTable resourceTable, WGPUBindingResource const * resource) WGPU_FUNCTION_ATTRIBUTE;
|
|
4456
|
+
typedef WGPUStatus (*WGPUProcResourceTableRemoveBinding)(WGPUResourceTable resourceTable, uint32_t slot) WGPU_FUNCTION_ATTRIBUTE;
|
|
4457
|
+
typedef WGPUStatus (*WGPUProcResourceTableUpdate)(WGPUResourceTable resourceTable, uint32_t slot, WGPUBindingResource const * resource) WGPU_FUNCTION_ATTRIBUTE;
|
|
4458
|
+
typedef void (*WGPUProcResourceTableAddRef)(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4459
|
+
typedef void (*WGPUProcResourceTableRelease)(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4460
|
+
|
|
4416
4461
|
// Procs of Sampler
|
|
4417
4462
|
typedef void (*WGPUProcSamplerSetLabel)(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4418
4463
|
typedef void (*WGPUProcSamplerAddRef)(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4439,6 +4484,7 @@ typedef void (*WGPUProcSharedBufferMemoryEndAccessStateFreeMembers)(WGPUSharedBu
|
|
|
4439
4484
|
|
|
4440
4485
|
// Procs of SharedFence
|
|
4441
4486
|
typedef void (*WGPUProcSharedFenceExportInfo)(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo * info) WGPU_FUNCTION_ATTRIBUTE;
|
|
4487
|
+
typedef void (*WGPUProcSharedFenceSetLabel)(WGPUSharedFence sharedFence, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4442
4488
|
typedef void (*WGPUProcSharedFenceAddRef)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
|
|
4443
4489
|
typedef void (*WGPUProcSharedFenceRelease)(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
|
|
4444
4490
|
|
|
@@ -4492,10 +4538,12 @@ typedef WGPUTextureFormat (*WGPUProcTextureGetFormat)(WGPUTexture texture) WGPU_
|
|
|
4492
4538
|
typedef uint32_t (*WGPUProcTextureGetHeight)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4493
4539
|
typedef uint32_t (*WGPUProcTextureGetMipLevelCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4494
4540
|
typedef uint32_t (*WGPUProcTextureGetSampleCount)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4541
|
+
typedef WGPUTextureViewDimension (*WGPUProcTextureGetTextureBindingViewDimension)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4495
4542
|
typedef WGPUTextureUsage (*WGPUProcTextureGetUsage)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4496
4543
|
typedef uint32_t (*WGPUProcTextureGetWidth)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4497
4544
|
typedef void (*WGPUProcTexturePin)(WGPUTexture texture, WGPUTextureUsage usage) WGPU_FUNCTION_ATTRIBUTE;
|
|
4498
4545
|
typedef void (*WGPUProcTextureSetLabel)(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4546
|
+
typedef void (*WGPUProcTextureSetOwnershipForMemoryDump)(WGPUTexture texture, uint64_t ownerGuid) WGPU_FUNCTION_ATTRIBUTE;
|
|
4499
4547
|
typedef void (*WGPUProcTextureUnpin)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4500
4548
|
typedef void (*WGPUProcTextureAddRef)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4501
4549
|
typedef void (*WGPUProcTextureRelease)(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4536,7 +4584,6 @@ WGPU_EXPORT void wgpuAdapterPropertiesMemoryHeapsFreeMembers(WGPUAdapterProperti
|
|
|
4536
4584
|
WGPU_EXPORT void wgpuAdapterPropertiesSubgroupMatrixConfigsFreeMembers(WGPUAdapterPropertiesSubgroupMatrixConfigs adapterPropertiesSubgroupMatrixConfigs) WGPU_FUNCTION_ATTRIBUTE;
|
|
4537
4585
|
|
|
4538
4586
|
// Methods of BindGroup
|
|
4539
|
-
WGPU_EXPORT void wgpuBindGroupDestroy(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
4540
4587
|
WGPU_EXPORT void wgpuBindGroupSetLabel(WGPUBindGroup bindGroup, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4541
4588
|
WGPU_EXPORT void wgpuBindGroupAddRef(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
4542
4589
|
WGPU_EXPORT void wgpuBindGroupRelease(WGPUBindGroup bindGroup) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4595,9 +4642,10 @@ WGPU_EXPORT void wgpuComputePassEncoderInsertDebugMarker(WGPUComputePassEncoder
|
|
|
4595
4642
|
WGPU_EXPORT void wgpuComputePassEncoderPopDebugGroup(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4596
4643
|
WGPU_EXPORT void wgpuComputePassEncoderPushDebugGroup(WGPUComputePassEncoder computePassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4597
4644
|
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
|
|
4645
|
+
WGPU_EXPORT void wgpuComputePassEncoderSetImmediates(WGPUComputePassEncoder computePassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4599
4646
|
WGPU_EXPORT void wgpuComputePassEncoderSetLabel(WGPUComputePassEncoder computePassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4600
4647
|
WGPU_EXPORT void wgpuComputePassEncoderSetPipeline(WGPUComputePassEncoder computePassEncoder, WGPUComputePipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4648
|
+
WGPU_EXPORT void wgpuComputePassEncoderSetResourceTable(WGPUComputePassEncoder computePassEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4601
4649
|
WGPU_EXPORT void wgpuComputePassEncoderWriteTimestamp(WGPUComputePassEncoder computePassEncoder, WGPUQuerySet querySet, uint32_t queryIndex) WGPU_FUNCTION_ATTRIBUTE;
|
|
4602
4650
|
WGPU_EXPORT void wgpuComputePassEncoderAddRef(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4603
4651
|
WGPU_EXPORT void wgpuComputePassEncoderRelease(WGPUComputePassEncoder computePassEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4628,6 +4676,7 @@ WGPU_EXPORT WGPUQuerySet wgpuDeviceCreateQuerySet(WGPUDevice device, WGPUQuerySe
|
|
|
4628
4676
|
WGPU_EXPORT WGPURenderBundleEncoder wgpuDeviceCreateRenderBundleEncoder(WGPUDevice device, WGPURenderBundleEncoderDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4629
4677
|
WGPU_EXPORT WGPURenderPipeline wgpuDeviceCreateRenderPipeline(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4630
4678
|
WGPU_EXPORT WGPUFuture wgpuDeviceCreateRenderPipelineAsync(WGPUDevice device, WGPURenderPipelineDescriptor const * descriptor, WGPUCreateRenderPipelineAsyncCallbackInfo callbackInfo) WGPU_FUNCTION_ATTRIBUTE;
|
|
4679
|
+
WGPU_EXPORT WGPUResourceTable wgpuDeviceCreateResourceTable(WGPUDevice device, WGPUResourceTableDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4631
4680
|
WGPU_EXPORT WGPUSampler wgpuDeviceCreateSampler(WGPUDevice device, WGPU_NULLABLE WGPUSamplerDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4632
4681
|
WGPU_EXPORT WGPUShaderModule wgpuDeviceCreateShaderModule(WGPUDevice device, WGPUShaderModuleDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
4633
4682
|
WGPU_EXPORT WGPUTexture wgpuDeviceCreateTexture(WGPUDevice device, WGPUTextureDescriptor const * descriptor) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4711,10 +4760,11 @@ WGPU_EXPORT void wgpuRenderBundleEncoderInsertDebugMarker(WGPURenderBundleEncode
|
|
|
4711
4760
|
WGPU_EXPORT void wgpuRenderBundleEncoderPopDebugGroup(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4712
4761
|
WGPU_EXPORT void wgpuRenderBundleEncoderPushDebugGroup(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4713
4762
|
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
|
|
4763
|
+
WGPU_EXPORT void wgpuRenderBundleEncoderSetImmediates(WGPURenderBundleEncoder renderBundleEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4715
4764
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetIndexBuffer(WGPURenderBundleEncoder renderBundleEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4716
4765
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetLabel(WGPURenderBundleEncoder renderBundleEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4717
4766
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetPipeline(WGPURenderBundleEncoder renderBundleEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4767
|
+
WGPU_EXPORT void wgpuRenderBundleEncoderSetResourceTable(WGPURenderBundleEncoder renderBundleEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4718
4768
|
WGPU_EXPORT void wgpuRenderBundleEncoderSetVertexBuffer(WGPURenderBundleEncoder renderBundleEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4719
4769
|
WGPU_EXPORT void wgpuRenderBundleEncoderAddRef(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
4720
4770
|
WGPU_EXPORT void wgpuRenderBundleEncoderRelease(WGPURenderBundleEncoder renderBundleEncoder) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4736,10 +4786,11 @@ WGPU_EXPORT void wgpuRenderPassEncoderPopDebugGroup(WGPURenderPassEncoder render
|
|
|
4736
4786
|
WGPU_EXPORT void wgpuRenderPassEncoderPushDebugGroup(WGPURenderPassEncoder renderPassEncoder, WGPUStringView groupLabel) WGPU_FUNCTION_ATTRIBUTE;
|
|
4737
4787
|
WGPU_EXPORT void wgpuRenderPassEncoderSetBindGroup(WGPURenderPassEncoder renderPassEncoder, uint32_t groupIndex, WGPU_NULLABLE WGPUBindGroup group, size_t dynamicOffsetCount, uint32_t const * dynamicOffsets) WGPU_FUNCTION_ATTRIBUTE;
|
|
4738
4788
|
WGPU_EXPORT void wgpuRenderPassEncoderSetBlendConstant(WGPURenderPassEncoder renderPassEncoder, WGPUColor const * color) WGPU_FUNCTION_ATTRIBUTE;
|
|
4739
|
-
WGPU_EXPORT void
|
|
4789
|
+
WGPU_EXPORT void wgpuRenderPassEncoderSetImmediates(WGPURenderPassEncoder renderPassEncoder, uint32_t offset, void const * data, size_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4740
4790
|
WGPU_EXPORT void wgpuRenderPassEncoderSetIndexBuffer(WGPURenderPassEncoder renderPassEncoder, WGPUBuffer buffer, WGPUIndexFormat format, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
4741
4791
|
WGPU_EXPORT void wgpuRenderPassEncoderSetLabel(WGPURenderPassEncoder renderPassEncoder, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4742
4792
|
WGPU_EXPORT void wgpuRenderPassEncoderSetPipeline(WGPURenderPassEncoder renderPassEncoder, WGPURenderPipeline pipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4793
|
+
WGPU_EXPORT void wgpuRenderPassEncoderSetResourceTable(WGPURenderPassEncoder renderPassEncoder, WGPU_NULLABLE WGPUResourceTable table) WGPU_FUNCTION_ATTRIBUTE;
|
|
4743
4794
|
WGPU_EXPORT void wgpuRenderPassEncoderSetScissorRect(WGPURenderPassEncoder renderPassEncoder, uint32_t x, uint32_t y, uint32_t width, uint32_t height) WGPU_FUNCTION_ATTRIBUTE;
|
|
4744
4795
|
WGPU_EXPORT void wgpuRenderPassEncoderSetStencilReference(WGPURenderPassEncoder renderPassEncoder, uint32_t reference) WGPU_FUNCTION_ATTRIBUTE;
|
|
4745
4796
|
WGPU_EXPORT void wgpuRenderPassEncoderSetVertexBuffer(WGPURenderPassEncoder renderPassEncoder, uint32_t slot, WGPU_NULLABLE WGPUBuffer buffer, uint64_t offset, uint64_t size) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4754,6 +4805,15 @@ WGPU_EXPORT void wgpuRenderPipelineSetLabel(WGPURenderPipeline renderPipeline, W
|
|
|
4754
4805
|
WGPU_EXPORT void wgpuRenderPipelineAddRef(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4755
4806
|
WGPU_EXPORT void wgpuRenderPipelineRelease(WGPURenderPipeline renderPipeline) WGPU_FUNCTION_ATTRIBUTE;
|
|
4756
4807
|
|
|
4808
|
+
// Methods of ResourceTable
|
|
4809
|
+
WGPU_EXPORT void wgpuResourceTableDestroy(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4810
|
+
WGPU_EXPORT uint32_t wgpuResourceTableGetSize(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4811
|
+
WGPU_EXPORT uint32_t wgpuResourceTableInsertBinding(WGPUResourceTable resourceTable, WGPUBindingResource const * resource) WGPU_FUNCTION_ATTRIBUTE;
|
|
4812
|
+
WGPU_EXPORT WGPUStatus wgpuResourceTableRemoveBinding(WGPUResourceTable resourceTable, uint32_t slot) WGPU_FUNCTION_ATTRIBUTE;
|
|
4813
|
+
WGPU_EXPORT WGPUStatus wgpuResourceTableUpdate(WGPUResourceTable resourceTable, uint32_t slot, WGPUBindingResource const * resource) WGPU_FUNCTION_ATTRIBUTE;
|
|
4814
|
+
WGPU_EXPORT void wgpuResourceTableAddRef(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4815
|
+
WGPU_EXPORT void wgpuResourceTableRelease(WGPUResourceTable resourceTable) WGPU_FUNCTION_ATTRIBUTE;
|
|
4816
|
+
|
|
4757
4817
|
// Methods of Sampler
|
|
4758
4818
|
WGPU_EXPORT void wgpuSamplerSetLabel(WGPUSampler sampler, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4759
4819
|
WGPU_EXPORT void wgpuSamplerAddRef(WGPUSampler sampler) WGPU_FUNCTION_ATTRIBUTE;
|
|
@@ -4780,6 +4840,7 @@ WGPU_EXPORT void wgpuSharedBufferMemoryEndAccessStateFreeMembers(WGPUSharedBuffe
|
|
|
4780
4840
|
|
|
4781
4841
|
// Methods of SharedFence
|
|
4782
4842
|
WGPU_EXPORT void wgpuSharedFenceExportInfo(WGPUSharedFence sharedFence, WGPUSharedFenceExportInfo * info) WGPU_FUNCTION_ATTRIBUTE;
|
|
4843
|
+
WGPU_EXPORT void wgpuSharedFenceSetLabel(WGPUSharedFence sharedFence, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4783
4844
|
WGPU_EXPORT void wgpuSharedFenceAddRef(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
|
|
4784
4845
|
WGPU_EXPORT void wgpuSharedFenceRelease(WGPUSharedFence sharedFence) WGPU_FUNCTION_ATTRIBUTE;
|
|
4785
4846
|
|
|
@@ -4833,10 +4894,12 @@ WGPU_EXPORT WGPUTextureFormat wgpuTextureGetFormat(WGPUTexture texture) WGPU_FUN
|
|
|
4833
4894
|
WGPU_EXPORT uint32_t wgpuTextureGetHeight(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4834
4895
|
WGPU_EXPORT uint32_t wgpuTextureGetMipLevelCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4835
4896
|
WGPU_EXPORT uint32_t wgpuTextureGetSampleCount(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4897
|
+
WGPU_EXPORT WGPUTextureViewDimension wgpuTextureGetTextureBindingViewDimension(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4836
4898
|
WGPU_EXPORT WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4837
4899
|
WGPU_EXPORT uint32_t wgpuTextureGetWidth(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4838
4900
|
WGPU_EXPORT void wgpuTexturePin(WGPUTexture texture, WGPUTextureUsage usage) WGPU_FUNCTION_ATTRIBUTE;
|
|
4839
4901
|
WGPU_EXPORT void wgpuTextureSetLabel(WGPUTexture texture, WGPUStringView label) WGPU_FUNCTION_ATTRIBUTE;
|
|
4902
|
+
WGPU_EXPORT void wgpuTextureSetOwnershipForMemoryDump(WGPUTexture texture, uint64_t ownerGuid) WGPU_FUNCTION_ATTRIBUTE;
|
|
4840
4903
|
WGPU_EXPORT void wgpuTextureUnpin(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4841
4904
|
WGPU_EXPORT void wgpuTextureAddRef(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|
|
4842
4905
|
WGPU_EXPORT void wgpuTextureRelease(WGPUTexture texture) WGPU_FUNCTION_ATTRIBUTE;
|