react-native-wgpu 0.5.9 → 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/GPUCanvasContext.cpp +3 -1
- package/cpp/rnwgpu/api/GPUFeatures.h +3 -12
- package/cpp/rnwgpu/api/GPUTexture.h +14 -2
- 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
|
@@ -453,20 +453,6 @@ namespace wgpu {
|
|
|
453
453
|
return o;
|
|
454
454
|
}
|
|
455
455
|
template <typename CharT, typename Traits>
|
|
456
|
-
std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& o, DynamicBindingKind value) {
|
|
457
|
-
switch (value) {
|
|
458
|
-
case DynamicBindingKind::Undefined:
|
|
459
|
-
o << "DynamicBindingKind::Undefined";
|
|
460
|
-
break;
|
|
461
|
-
case DynamicBindingKind::SampledTexture:
|
|
462
|
-
o << "DynamicBindingKind::SampledTexture";
|
|
463
|
-
break;
|
|
464
|
-
default:
|
|
465
|
-
o << "DynamicBindingKind::" << std::showbase << std::hex << std::setfill('0') << std::setw(4) << static_cast<typename std::underlying_type<DynamicBindingKind>::type>(value);
|
|
466
|
-
}
|
|
467
|
-
return o;
|
|
468
|
-
}
|
|
469
|
-
template <typename CharT, typename Traits>
|
|
470
456
|
std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& o, ErrorFilter value) {
|
|
471
457
|
switch (value) {
|
|
472
458
|
case ErrorFilter::Validation:
|
|
@@ -609,6 +595,9 @@ namespace wgpu {
|
|
|
609
595
|
case FeatureName::PrimitiveIndex:
|
|
610
596
|
o << "FeatureName::PrimitiveIndex";
|
|
611
597
|
break;
|
|
598
|
+
case FeatureName::TextureComponentSwizzle:
|
|
599
|
+
o << "FeatureName::TextureComponentSwizzle";
|
|
600
|
+
break;
|
|
612
601
|
case FeatureName::DawnInternalUsages:
|
|
613
602
|
o << "FeatureName::DawnInternalUsages";
|
|
614
603
|
break;
|
|
@@ -645,9 +634,6 @@ namespace wgpu {
|
|
|
645
634
|
case FeatureName::Unorm16TextureFormats:
|
|
646
635
|
o << "FeatureName::Unorm16TextureFormats";
|
|
647
636
|
break;
|
|
648
|
-
case FeatureName::Snorm16TextureFormats:
|
|
649
|
-
o << "FeatureName::Snorm16TextureFormats";
|
|
650
|
-
break;
|
|
651
637
|
case FeatureName::MultiPlanarFormatExtendedUsages:
|
|
652
638
|
o << "FeatureName::MultiPlanarFormatExtendedUsages";
|
|
653
639
|
break;
|
|
@@ -678,18 +664,12 @@ namespace wgpu {
|
|
|
678
664
|
case FeatureName::AdapterPropertiesVk:
|
|
679
665
|
o << "FeatureName::AdapterPropertiesVk";
|
|
680
666
|
break;
|
|
681
|
-
case FeatureName::R8UnormStorage:
|
|
682
|
-
o << "FeatureName::R8UnormStorage";
|
|
683
|
-
break;
|
|
684
667
|
case FeatureName::DawnFormatCapabilities:
|
|
685
668
|
o << "FeatureName::DawnFormatCapabilities";
|
|
686
669
|
break;
|
|
687
670
|
case FeatureName::DawnDrmFormatCapabilities:
|
|
688
671
|
o << "FeatureName::DawnDrmFormatCapabilities";
|
|
689
672
|
break;
|
|
690
|
-
case FeatureName::Norm16TextureFormats:
|
|
691
|
-
o << "FeatureName::Norm16TextureFormats";
|
|
692
|
-
break;
|
|
693
673
|
case FeatureName::MultiPlanarFormatNv16:
|
|
694
674
|
o << "FeatureName::MultiPlanarFormatNv16";
|
|
695
675
|
break;
|
|
@@ -780,14 +760,35 @@ namespace wgpu {
|
|
|
780
760
|
case FeatureName::DawnDeviceAllocatorControl:
|
|
781
761
|
o << "FeatureName::DawnDeviceAllocatorControl";
|
|
782
762
|
break;
|
|
783
|
-
case FeatureName::TextureComponentSwizzle:
|
|
784
|
-
o << "FeatureName::TextureComponentSwizzle";
|
|
785
|
-
break;
|
|
786
|
-
case FeatureName::ChromiumExperimentalBindless:
|
|
787
|
-
o << "FeatureName::ChromiumExperimentalBindless";
|
|
788
|
-
break;
|
|
789
763
|
case FeatureName::AdapterPropertiesWGPU:
|
|
790
764
|
o << "FeatureName::AdapterPropertiesWGPU";
|
|
765
|
+
break;
|
|
766
|
+
case FeatureName::SharedBufferMemoryD3D12SharedMemoryFileMappingHandle:
|
|
767
|
+
o << "FeatureName::SharedBufferMemoryD3D12SharedMemoryFileMappingHandle";
|
|
768
|
+
break;
|
|
769
|
+
case FeatureName::SharedTextureMemoryD3D12Resource:
|
|
770
|
+
o << "FeatureName::SharedTextureMemoryD3D12Resource";
|
|
771
|
+
break;
|
|
772
|
+
case FeatureName::ChromiumExperimentalSamplingResourceTable:
|
|
773
|
+
o << "FeatureName::ChromiumExperimentalSamplingResourceTable";
|
|
774
|
+
break;
|
|
775
|
+
case FeatureName::ChromiumExperimentalSubgroupSizeControl:
|
|
776
|
+
o << "FeatureName::ChromiumExperimentalSubgroupSizeControl";
|
|
777
|
+
break;
|
|
778
|
+
case FeatureName::AtomicVec2uMinMax:
|
|
779
|
+
o << "FeatureName::AtomicVec2uMinMax";
|
|
780
|
+
break;
|
|
781
|
+
case FeatureName::Unorm16FormatsForExternalTexture:
|
|
782
|
+
o << "FeatureName::Unorm16FormatsForExternalTexture";
|
|
783
|
+
break;
|
|
784
|
+
case FeatureName::OpaqueYCbCrAndroidForExternalTexture:
|
|
785
|
+
o << "FeatureName::OpaqueYCbCrAndroidForExternalTexture";
|
|
786
|
+
break;
|
|
787
|
+
case FeatureName::Unorm16Filterable:
|
|
788
|
+
o << "FeatureName::Unorm16Filterable";
|
|
789
|
+
break;
|
|
790
|
+
case FeatureName::RenderPassRenderArea:
|
|
791
|
+
o << "FeatureName::RenderPassRenderArea";
|
|
791
792
|
break;
|
|
792
793
|
default:
|
|
793
794
|
o << "FeatureName::" << std::showbase << std::hex << std::setfill('0') << std::setw(4) << static_cast<typename std::underlying_type<FeatureName>::type>(value);
|
|
@@ -1278,21 +1279,24 @@ namespace wgpu {
|
|
|
1278
1279
|
case SType::RequestAdapterWebXROptions:
|
|
1279
1280
|
o << "SType::RequestAdapterWebXROptions";
|
|
1280
1281
|
break;
|
|
1282
|
+
case SType::TextureComponentSwizzleDescriptor:
|
|
1283
|
+
o << "SType::TextureComponentSwizzleDescriptor";
|
|
1284
|
+
break;
|
|
1285
|
+
case SType::ExternalTextureBindingLayout:
|
|
1286
|
+
o << "SType::ExternalTextureBindingLayout";
|
|
1287
|
+
break;
|
|
1288
|
+
case SType::ExternalTextureBindingEntry:
|
|
1289
|
+
o << "SType::ExternalTextureBindingEntry";
|
|
1290
|
+
break;
|
|
1281
1291
|
case SType::CompatibilityModeLimits:
|
|
1282
1292
|
o << "SType::CompatibilityModeLimits";
|
|
1283
1293
|
break;
|
|
1284
|
-
case SType::
|
|
1285
|
-
o << "SType::
|
|
1294
|
+
case SType::TextureBindingViewDimension:
|
|
1295
|
+
o << "SType::TextureBindingViewDimension";
|
|
1286
1296
|
break;
|
|
1287
1297
|
case SType::SurfaceDescriptorFromWindowsCoreWindow:
|
|
1288
1298
|
o << "SType::SurfaceDescriptorFromWindowsCoreWindow";
|
|
1289
1299
|
break;
|
|
1290
|
-
case SType::ExternalTextureBindingEntry:
|
|
1291
|
-
o << "SType::ExternalTextureBindingEntry";
|
|
1292
|
-
break;
|
|
1293
|
-
case SType::ExternalTextureBindingLayout:
|
|
1294
|
-
o << "SType::ExternalTextureBindingLayout";
|
|
1295
|
-
break;
|
|
1296
1300
|
case SType::SurfaceDescriptorFromWindowsUWPSwapChainPanel:
|
|
1297
1301
|
o << "SType::SurfaceDescriptorFromWindowsUWPSwapChainPanel";
|
|
1298
1302
|
break;
|
|
@@ -1329,8 +1333,8 @@ namespace wgpu {
|
|
|
1329
1333
|
case SType::RequestAdapterOptionsD3D11Device:
|
|
1330
1334
|
o << "SType::RequestAdapterOptionsD3D11Device";
|
|
1331
1335
|
break;
|
|
1332
|
-
case SType::
|
|
1333
|
-
o << "SType::
|
|
1336
|
+
case SType::DawnRenderPassSampleCount:
|
|
1337
|
+
o << "SType::DawnRenderPassSampleCount";
|
|
1334
1338
|
break;
|
|
1335
1339
|
case SType::RenderPassPixelLocalStorage:
|
|
1336
1340
|
o << "SType::RenderPassPixelLocalStorage";
|
|
@@ -1365,8 +1369,8 @@ namespace wgpu {
|
|
|
1365
1369
|
case SType::ColorTargetStateExpandResolveTextureDawn:
|
|
1366
1370
|
o << "SType::ColorTargetStateExpandResolveTextureDawn";
|
|
1367
1371
|
break;
|
|
1368
|
-
case SType::
|
|
1369
|
-
o << "SType::
|
|
1372
|
+
case SType::RenderPassRenderAreaRect:
|
|
1373
|
+
o << "SType::RenderPassRenderAreaRect";
|
|
1370
1374
|
break;
|
|
1371
1375
|
case SType::SharedTextureMemoryVkDedicatedAllocationDescriptor:
|
|
1372
1376
|
o << "SType::SharedTextureMemoryVkDedicatedAllocationDescriptor";
|
|
@@ -1494,24 +1498,12 @@ namespace wgpu {
|
|
|
1494
1498
|
case SType::DawnFakeDeviceInitializeErrorForTesting:
|
|
1495
1499
|
o << "SType::DawnFakeDeviceInitializeErrorForTesting";
|
|
1496
1500
|
break;
|
|
1497
|
-
case SType::TextureComponentSwizzleDescriptor:
|
|
1498
|
-
o << "SType::TextureComponentSwizzleDescriptor";
|
|
1499
|
-
break;
|
|
1500
1501
|
case SType::SharedTextureMemoryD3D11BeginState:
|
|
1501
1502
|
o << "SType::SharedTextureMemoryD3D11BeginState";
|
|
1502
1503
|
break;
|
|
1503
1504
|
case SType::DawnConsumeAdapterDescriptor:
|
|
1504
1505
|
o << "SType::DawnConsumeAdapterDescriptor";
|
|
1505
1506
|
break;
|
|
1506
|
-
case SType::BindGroupLayoutDynamicBindingArray:
|
|
1507
|
-
o << "SType::BindGroupLayoutDynamicBindingArray";
|
|
1508
|
-
break;
|
|
1509
|
-
case SType::DynamicBindingArrayLimits:
|
|
1510
|
-
o << "SType::DynamicBindingArrayLimits";
|
|
1511
|
-
break;
|
|
1512
|
-
case SType::BindGroupDynamicBindingArray:
|
|
1513
|
-
o << "SType::BindGroupDynamicBindingArray";
|
|
1514
|
-
break;
|
|
1515
1507
|
case SType::TexelBufferBindingEntry:
|
|
1516
1508
|
o << "SType::TexelBufferBindingEntry";
|
|
1517
1509
|
break;
|
|
@@ -1523,6 +1515,21 @@ namespace wgpu {
|
|
|
1523
1515
|
break;
|
|
1524
1516
|
case SType::AdapterPropertiesWGPU:
|
|
1525
1517
|
o << "SType::AdapterPropertiesWGPU";
|
|
1518
|
+
break;
|
|
1519
|
+
case SType::SharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor:
|
|
1520
|
+
o << "SType::SharedBufferMemoryD3D12SharedMemoryFileMappingHandleDescriptor";
|
|
1521
|
+
break;
|
|
1522
|
+
case SType::SharedTextureMemoryD3D12ResourceDescriptor:
|
|
1523
|
+
o << "SType::SharedTextureMemoryD3D12ResourceDescriptor";
|
|
1524
|
+
break;
|
|
1525
|
+
case SType::RequestAdapterOptionsAngleVirtualizationGroup:
|
|
1526
|
+
o << "SType::RequestAdapterOptionsAngleVirtualizationGroup";
|
|
1527
|
+
break;
|
|
1528
|
+
case SType::PipelineLayoutResourceTable:
|
|
1529
|
+
o << "SType::PipelineLayoutResourceTable";
|
|
1530
|
+
break;
|
|
1531
|
+
case SType::AdapterPropertiesExplicitComputeSubgroupSizeConfigs:
|
|
1532
|
+
o << "SType::AdapterPropertiesExplicitComputeSubgroupSizeConfigs";
|
|
1526
1533
|
break;
|
|
1527
1534
|
default:
|
|
1528
1535
|
o << "SType::" << std::showbase << std::hex << std::setfill('0') << std::setw(4) << static_cast<typename std::underlying_type<SType>::type>(value);
|
|
@@ -1977,8 +1984,8 @@ namespace wgpu {
|
|
|
1977
1984
|
case TextureFormat::R10X6BG10X6Biplanar444Unorm:
|
|
1978
1985
|
o << "TextureFormat::R10X6BG10X6Biplanar444Unorm";
|
|
1979
1986
|
break;
|
|
1980
|
-
case TextureFormat::
|
|
1981
|
-
o << "TextureFormat::
|
|
1987
|
+
case TextureFormat::OpaqueYCbCrAndroid:
|
|
1988
|
+
o << "TextureFormat::OpaqueYCbCrAndroid";
|
|
1982
1989
|
break;
|
|
1983
1990
|
default:
|
|
1984
1991
|
o << "TextureFormat::" << std::showbase << std::hex << std::setfill('0') << std::setw(4) << static_cast<typename std::underlying_type<TextureFormat>::type>(value);
|
|
@@ -2237,14 +2244,20 @@ namespace wgpu {
|
|
|
2237
2244
|
case WGSLLanguageFeatureName::PointerCompositeAccess:
|
|
2238
2245
|
o << "WGSLLanguageFeatureName::PointerCompositeAccess";
|
|
2239
2246
|
break;
|
|
2240
|
-
case WGSLLanguageFeatureName::
|
|
2241
|
-
o << "WGSLLanguageFeatureName::
|
|
2247
|
+
case WGSLLanguageFeatureName::UniformBufferStandardLayout:
|
|
2248
|
+
o << "WGSLLanguageFeatureName::UniformBufferStandardLayout";
|
|
2242
2249
|
break;
|
|
2243
|
-
case WGSLLanguageFeatureName::
|
|
2244
|
-
o << "WGSLLanguageFeatureName::
|
|
2250
|
+
case WGSLLanguageFeatureName::SubgroupId:
|
|
2251
|
+
o << "WGSLLanguageFeatureName::SubgroupId";
|
|
2245
2252
|
break;
|
|
2246
|
-
case WGSLLanguageFeatureName::
|
|
2247
|
-
o << "WGSLLanguageFeatureName::
|
|
2253
|
+
case WGSLLanguageFeatureName::TextureAndSamplerLet:
|
|
2254
|
+
o << "WGSLLanguageFeatureName::TextureAndSamplerLet";
|
|
2255
|
+
break;
|
|
2256
|
+
case WGSLLanguageFeatureName::SubgroupUniformity:
|
|
2257
|
+
o << "WGSLLanguageFeatureName::SubgroupUniformity";
|
|
2258
|
+
break;
|
|
2259
|
+
case WGSLLanguageFeatureName::TextureFormatsTier1:
|
|
2260
|
+
o << "WGSLLanguageFeatureName::TextureFormatsTier1";
|
|
2248
2261
|
break;
|
|
2249
2262
|
case WGSLLanguageFeatureName::ChromiumTestingUnimplemented:
|
|
2250
2263
|
o << "WGSLLanguageFeatureName::ChromiumTestingUnimplemented";
|
|
@@ -2260,6 +2273,33 @@ namespace wgpu {
|
|
|
2260
2273
|
break;
|
|
2261
2274
|
case WGSLLanguageFeatureName::ChromiumTestingShipped:
|
|
2262
2275
|
o << "WGSLLanguageFeatureName::ChromiumTestingShipped";
|
|
2276
|
+
break;
|
|
2277
|
+
case WGSLLanguageFeatureName::SizedBindingArray:
|
|
2278
|
+
o << "WGSLLanguageFeatureName::SizedBindingArray";
|
|
2279
|
+
break;
|
|
2280
|
+
case WGSLLanguageFeatureName::TexelBuffers:
|
|
2281
|
+
o << "WGSLLanguageFeatureName::TexelBuffers";
|
|
2282
|
+
break;
|
|
2283
|
+
case WGSLLanguageFeatureName::ChromiumPrint:
|
|
2284
|
+
o << "WGSLLanguageFeatureName::ChromiumPrint";
|
|
2285
|
+
break;
|
|
2286
|
+
case WGSLLanguageFeatureName::FragmentDepth:
|
|
2287
|
+
o << "WGSLLanguageFeatureName::FragmentDepth";
|
|
2288
|
+
break;
|
|
2289
|
+
case WGSLLanguageFeatureName::ImmediateAddressSpace:
|
|
2290
|
+
o << "WGSLLanguageFeatureName::ImmediateAddressSpace";
|
|
2291
|
+
break;
|
|
2292
|
+
case WGSLLanguageFeatureName::BufferView:
|
|
2293
|
+
o << "WGSLLanguageFeatureName::BufferView";
|
|
2294
|
+
break;
|
|
2295
|
+
case WGSLLanguageFeatureName::FilteringParameters:
|
|
2296
|
+
o << "WGSLLanguageFeatureName::FilteringParameters";
|
|
2297
|
+
break;
|
|
2298
|
+
case WGSLLanguageFeatureName::SwizzleAssignment:
|
|
2299
|
+
o << "WGSLLanguageFeatureName::SwizzleAssignment";
|
|
2300
|
+
break;
|
|
2301
|
+
case WGSLLanguageFeatureName::LinearIndexing:
|
|
2302
|
+
o << "WGSLLanguageFeatureName::LinearIndexing";
|
|
2263
2303
|
break;
|
|
2264
2304
|
default:
|
|
2265
2305
|
o << "WGSLLanguageFeatureName::" << std::showbase << std::hex << std::setfill('0') << std::setw(4) << static_cast<typename std::underlying_type<WGSLLanguageFeatureName>::type>(value);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>libwebgpu_dawn.a</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>libwebgpu_dawn.a</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
17
18
|
</array>
|
|
18
19
|
<key>SupportedPlatform</key>
|
|
19
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
20
23
|
</dict>
|
|
21
24
|
<dict>
|
|
22
25
|
<key>BinaryPath</key>
|
|
23
26
|
<string>libwebgpu_dawn.a</string>
|
|
24
27
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
26
29
|
<key>LibraryPath</key>
|
|
27
30
|
<string>libwebgpu_dawn.a</string>
|
|
28
31
|
<key>SupportedArchitectures</key>
|
|
29
32
|
<array>
|
|
30
33
|
<string>arm64</string>
|
|
31
|
-
<string>x86_64</string>
|
|
32
34
|
</array>
|
|
33
35
|
<key>SupportedPlatform</key>
|
|
34
36
|
<string>ios</string>
|
|
35
|
-
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
<dict>
|
|
39
39
|
<key>BinaryPath</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-wgpu",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
4
4
|
"description": "React Native WebGPU",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"libs/**",
|
|
21
21
|
"*.podspec"
|
|
22
22
|
],
|
|
23
|
-
"dawn": "chromium/
|
|
23
|
+
"dawn": "chromium/7770",
|
|
24
24
|
"scripts": {
|
|
25
25
|
"test": "NODE_OPTIONS='--experimental-require-module' jest -i",
|
|
26
26
|
"test:ref": "REFERENCE=true NODE_OPTIONS='--experimental-require-module' jest -i",
|