react-native-webgpu 0.6.3 → 0.6.4

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.
@@ -2409,6 +2409,7 @@ typedef struct WGPUSharedBufferMemoryBeginAccessDescriptor {
2409
2409
  WGPUBool initialized;
2410
2410
  size_t fenceCount;
2411
2411
  WGPUSharedFence const * fences;
2412
+ size_t signaledValueCount;
2412
2413
  uint64_t const * signaledValues;
2413
2414
  } WGPUSharedBufferMemoryBeginAccessDescriptor WGPU_STRUCTURE_ATTRIBUTE;
2414
2415
 
@@ -2417,6 +2418,7 @@ typedef struct WGPUSharedBufferMemoryBeginAccessDescriptor {
2417
2418
  /*.initialized=*/WGPU_FALSE _wgpu_COMMA \
2418
2419
  /*.fenceCount=*/0 _wgpu_COMMA \
2419
2420
  /*.fences=*/NULL _wgpu_COMMA \
2421
+ /*.signaledValueCount=*/0 _wgpu_COMMA \
2420
2422
  /*.signaledValues=*/NULL _wgpu_COMMA \
2421
2423
  })
2422
2424
 
@@ -2441,6 +2443,7 @@ typedef struct WGPUSharedBufferMemoryEndAccessState {
2441
2443
  WGPUBool initialized;
2442
2444
  size_t fenceCount;
2443
2445
  WGPUSharedFence const * fences;
2446
+ size_t signaledValueCount;
2444
2447
  uint64_t const * signaledValues;
2445
2448
  } WGPUSharedBufferMemoryEndAccessState WGPU_STRUCTURE_ATTRIBUTE;
2446
2449
 
@@ -2449,6 +2452,7 @@ typedef struct WGPUSharedBufferMemoryEndAccessState {
2449
2452
  /*.initialized=*/WGPU_FALSE _wgpu_COMMA \
2450
2453
  /*.fenceCount=*/0 _wgpu_COMMA \
2451
2454
  /*.fences=*/NULL _wgpu_COMMA \
2455
+ /*.signaledValueCount=*/0 _wgpu_COMMA \
2452
2456
  /*.signaledValues=*/NULL _wgpu_COMMA \
2453
2457
  })
2454
2458
 
@@ -3801,6 +3805,7 @@ typedef struct WGPUSharedTextureMemoryBeginAccessDescriptor {
3801
3805
  WGPUBool initialized;
3802
3806
  size_t fenceCount;
3803
3807
  WGPUSharedFence const * fences;
3808
+ size_t signaledValueCount;
3804
3809
  uint64_t const * signaledValues;
3805
3810
  } WGPUSharedTextureMemoryBeginAccessDescriptor WGPU_STRUCTURE_ATTRIBUTE;
3806
3811
 
@@ -3810,6 +3815,7 @@ typedef struct WGPUSharedTextureMemoryBeginAccessDescriptor {
3810
3815
  /*.initialized=*/WGPU_FALSE _wgpu_COMMA \
3811
3816
  /*.fenceCount=*/0 _wgpu_COMMA \
3812
3817
  /*.fences=*/NULL _wgpu_COMMA \
3818
+ /*.signaledValueCount=*/0 _wgpu_COMMA \
3813
3819
  /*.signaledValues=*/NULL _wgpu_COMMA \
3814
3820
  })
3815
3821
 
@@ -4116,6 +4122,7 @@ typedef struct WGPUSharedTextureMemoryEndAccessState {
4116
4122
  WGPUBool initialized;
4117
4123
  size_t fenceCount;
4118
4124
  WGPUSharedFence const * fences;
4125
+ size_t signaledValueCount;
4119
4126
  uint64_t const * signaledValues;
4120
4127
  } WGPUSharedTextureMemoryEndAccessState WGPU_STRUCTURE_ATTRIBUTE;
4121
4128
 
@@ -4124,6 +4131,7 @@ typedef struct WGPUSharedTextureMemoryEndAccessState {
4124
4131
  /*.initialized=*/WGPU_FALSE _wgpu_COMMA \
4125
4132
  /*.fenceCount=*/0 _wgpu_COMMA \
4126
4133
  /*.fences=*/NULL _wgpu_COMMA \
4134
+ /*.signaledValueCount=*/0 _wgpu_COMMA \
4127
4135
  /*.signaledValues=*/NULL _wgpu_COMMA \
4128
4136
  })
4129
4137
 
@@ -2887,6 +2887,7 @@ struct SharedBufferMemoryBeginAccessDescriptor {
2887
2887
  Bool initialized;
2888
2888
  size_t fenceCount = 0;
2889
2889
  SharedFence const * fences = nullptr;
2890
+ size_t signaledValueCount = 0;
2890
2891
  uint64_t const * signaledValues = nullptr;
2891
2892
  };
2892
2893
 
@@ -2915,6 +2916,7 @@ struct SharedBufferMemoryEndAccessState {
2915
2916
  Bool const initialized = {};
2916
2917
  size_t const fenceCount = 0;
2917
2918
  SharedFence const * const fences = nullptr;
2919
+ size_t const signaledValueCount = 0;
2918
2920
  uint64_t const * const signaledValues = nullptr;
2919
2921
 
2920
2922
  private:
@@ -3923,6 +3925,7 @@ struct SharedTextureMemoryBeginAccessDescriptor {
3923
3925
  Bool initialized;
3924
3926
  size_t fenceCount;
3925
3927
  SharedFence const * fences = nullptr;
3928
+ size_t signaledValueCount = 0;
3926
3929
  uint64_t const * signaledValues = nullptr;
3927
3930
  };
3928
3931
 
@@ -4166,6 +4169,7 @@ struct SharedTextureMemoryEndAccessState {
4166
4169
  Bool const initialized = {};
4167
4170
  size_t const fenceCount = {};
4168
4171
  SharedFence const * const fences = nullptr;
4172
+ size_t const signaledValueCount = 0;
4169
4173
  uint64_t const * const signaledValues = nullptr;
4170
4174
 
4171
4175
  private:
@@ -4271,7 +4275,7 @@ struct CppFTraitsImpl<CppFT, R(*)(CppArgs...), T> {
4271
4275
  static constexpr bool capturing = false;
4272
4276
 
4273
4277
  static constexpr size_t NumCppArgs = sizeof...(CppArgs);
4274
- using BaseArgsTuple = decltype([]<std::size_t... Is>(std::index_sequence<Is...>) {
4278
+ using BaseArgsTuple = typename decltype([]<std::size_t... Is>(std::index_sequence<Is...>) {
4275
4279
  return std::type_identity<std::tuple<std::tuple_element_t<Is, std::tuple<CppArgs...>>...>>{};
4276
4280
  }(std::make_index_sequence<std::is_same_v<T, Untyped> ? NumCppArgs : NumCppArgs - 1>{})
4277
4281
  )::type;
@@ -4283,7 +4287,7 @@ struct CppFTraitsImpl<CppFT, R(C::*)(CppArgs...) const, T> {
4283
4287
  static constexpr bool capturing = !std::is_convertible_v<CppFT, PtrT>;
4284
4288
 
4285
4289
  static constexpr size_t NumCppArgs = sizeof...(CppArgs);
4286
- using BaseArgsTuple = decltype([]<std::size_t... Is>(std::index_sequence<Is...>) {
4290
+ using BaseArgsTuple = typename decltype([]<std::size_t... Is>(std::index_sequence<Is...>) {
4287
4291
  return std::type_identity<std::tuple<std::tuple_element_t<Is, std::tuple<CppArgs...>>...>>{};
4288
4292
  }(std::make_index_sequence<std::is_same_v<T, Untyped> ? NumCppArgs : NumCppArgs - 1>{})
4289
4293
  )::type;
@@ -4487,8 +4491,11 @@ struct CallbackInfoHelper {
4487
4491
  std::unique_ptr<F> alloc = std::make_unique<F>(std::move(lambda));
4488
4492
  info.userdata1 = reinterpret_cast<void*>(alloc.release());
4489
4493
  } else {
4494
+ // MSVC <=19.39 doesn't support static_assert(false) and this was fixed in later C++
4495
+ // standards https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2593r1.html
4496
+ constexpr bool kAlwaysFalse = sizeof(F) == 0;
4490
4497
  static_assert(
4491
- false, "capturing lambdas aren't supported for repeatable callbacks"
4498
+ kAlwaysFalse, "capturing lambdas aren't supported for repeatable callbacks"
4492
4499
  );
4493
4500
  }
4494
4501
  } else {
@@ -5816,6 +5823,8 @@ static_assert(offsetof(SharedBufferMemoryBeginAccessDescriptor, fenceCount) == o
5816
5823
  "offsetof mismatch for SharedBufferMemoryBeginAccessDescriptor::fenceCount");
5817
5824
  static_assert(offsetof(SharedBufferMemoryBeginAccessDescriptor, fences) == offsetof(WGPUSharedBufferMemoryBeginAccessDescriptor, fences),
5818
5825
  "offsetof mismatch for SharedBufferMemoryBeginAccessDescriptor::fences");
5826
+ static_assert(offsetof(SharedBufferMemoryBeginAccessDescriptor, signaledValueCount) == offsetof(WGPUSharedBufferMemoryBeginAccessDescriptor, signaledValueCount),
5827
+ "offsetof mismatch for SharedBufferMemoryBeginAccessDescriptor::signaledValueCount");
5819
5828
  static_assert(offsetof(SharedBufferMemoryBeginAccessDescriptor, signaledValues) == offsetof(WGPUSharedBufferMemoryBeginAccessDescriptor, signaledValues),
5820
5829
  "offsetof mismatch for SharedBufferMemoryBeginAccessDescriptor::signaledValues");
5821
5830
 
@@ -5853,6 +5862,7 @@ SharedBufferMemoryEndAccessState::SharedBufferMemoryEndAccessState(SharedBufferM
5853
5862
  : initialized(rhs.initialized),
5854
5863
  fenceCount(rhs.fenceCount),
5855
5864
  fences(rhs.fences),
5865
+ signaledValueCount(rhs.signaledValueCount),
5856
5866
  signaledValues(rhs.signaledValues){
5857
5867
  Reset(rhs);
5858
5868
  }
@@ -5865,6 +5875,7 @@ SharedBufferMemoryEndAccessState& SharedBufferMemoryEndAccessState::operator=(Sh
5865
5875
  detail::AsNonConstReference(this->initialized) = std::move(rhs.initialized);
5866
5876
  detail::AsNonConstReference(this->fenceCount) = std::move(rhs.fenceCount);
5867
5877
  detail::AsNonConstReference(this->fences) = std::move(rhs.fences);
5878
+ detail::AsNonConstReference(this->signaledValueCount) = std::move(rhs.signaledValueCount);
5868
5879
  detail::AsNonConstReference(this->signaledValues) = std::move(rhs.signaledValues);
5869
5880
  Reset(rhs);
5870
5881
  return *this;
@@ -5883,6 +5894,7 @@ void SharedBufferMemoryEndAccessState::Reset(SharedBufferMemoryEndAccessState& v
5883
5894
  detail::AsNonConstReference(value.initialized) = defaultValue.initialized;
5884
5895
  detail::AsNonConstReference(value.fenceCount) = defaultValue.fenceCount;
5885
5896
  detail::AsNonConstReference(value.fences) = defaultValue.fences;
5897
+ detail::AsNonConstReference(value.signaledValueCount) = defaultValue.signaledValueCount;
5886
5898
  detail::AsNonConstReference(value.signaledValues) = defaultValue.signaledValues;
5887
5899
  }
5888
5900
 
@@ -5900,6 +5912,8 @@ static_assert(offsetof(SharedBufferMemoryEndAccessState, fenceCount) == offsetof
5900
5912
  "offsetof mismatch for SharedBufferMemoryEndAccessState::fenceCount");
5901
5913
  static_assert(offsetof(SharedBufferMemoryEndAccessState, fences) == offsetof(WGPUSharedBufferMemoryEndAccessState, fences),
5902
5914
  "offsetof mismatch for SharedBufferMemoryEndAccessState::fences");
5915
+ static_assert(offsetof(SharedBufferMemoryEndAccessState, signaledValueCount) == offsetof(WGPUSharedBufferMemoryEndAccessState, signaledValueCount),
5916
+ "offsetof mismatch for SharedBufferMemoryEndAccessState::signaledValueCount");
5903
5917
  static_assert(offsetof(SharedBufferMemoryEndAccessState, signaledValues) == offsetof(WGPUSharedBufferMemoryEndAccessState, signaledValues),
5904
5918
  "offsetof mismatch for SharedBufferMemoryEndAccessState::signaledValues");
5905
5919
 
@@ -7967,6 +7981,8 @@ static_assert(offsetof(SharedTextureMemoryBeginAccessDescriptor, fenceCount) ==
7967
7981
  "offsetof mismatch for SharedTextureMemoryBeginAccessDescriptor::fenceCount");
7968
7982
  static_assert(offsetof(SharedTextureMemoryBeginAccessDescriptor, fences) == offsetof(WGPUSharedTextureMemoryBeginAccessDescriptor, fences),
7969
7983
  "offsetof mismatch for SharedTextureMemoryBeginAccessDescriptor::fences");
7984
+ static_assert(offsetof(SharedTextureMemoryBeginAccessDescriptor, signaledValueCount) == offsetof(WGPUSharedTextureMemoryBeginAccessDescriptor, signaledValueCount),
7985
+ "offsetof mismatch for SharedTextureMemoryBeginAccessDescriptor::signaledValueCount");
7970
7986
  static_assert(offsetof(SharedTextureMemoryBeginAccessDescriptor, signaledValues) == offsetof(WGPUSharedTextureMemoryBeginAccessDescriptor, signaledValues),
7971
7987
  "offsetof mismatch for SharedTextureMemoryBeginAccessDescriptor::signaledValues");
7972
7988
 
@@ -8460,6 +8476,7 @@ SharedTextureMemoryEndAccessState::SharedTextureMemoryEndAccessState(SharedTextu
8460
8476
  : initialized(rhs.initialized),
8461
8477
  fenceCount(rhs.fenceCount),
8462
8478
  fences(rhs.fences),
8479
+ signaledValueCount(rhs.signaledValueCount),
8463
8480
  signaledValues(rhs.signaledValues){
8464
8481
  Reset(rhs);
8465
8482
  }
@@ -8472,6 +8489,7 @@ SharedTextureMemoryEndAccessState& SharedTextureMemoryEndAccessState::operator=(
8472
8489
  detail::AsNonConstReference(this->initialized) = std::move(rhs.initialized);
8473
8490
  detail::AsNonConstReference(this->fenceCount) = std::move(rhs.fenceCount);
8474
8491
  detail::AsNonConstReference(this->fences) = std::move(rhs.fences);
8492
+ detail::AsNonConstReference(this->signaledValueCount) = std::move(rhs.signaledValueCount);
8475
8493
  detail::AsNonConstReference(this->signaledValues) = std::move(rhs.signaledValues);
8476
8494
  Reset(rhs);
8477
8495
  return *this;
@@ -8490,6 +8508,7 @@ void SharedTextureMemoryEndAccessState::Reset(SharedTextureMemoryEndAccessState&
8490
8508
  detail::AsNonConstReference(value.initialized) = defaultValue.initialized;
8491
8509
  detail::AsNonConstReference(value.fenceCount) = defaultValue.fenceCount;
8492
8510
  detail::AsNonConstReference(value.fences) = defaultValue.fences;
8511
+ detail::AsNonConstReference(value.signaledValueCount) = defaultValue.signaledValueCount;
8493
8512
  detail::AsNonConstReference(value.signaledValues) = defaultValue.signaledValues;
8494
8513
  }
8495
8514
 
@@ -8507,6 +8526,8 @@ static_assert(offsetof(SharedTextureMemoryEndAccessState, fenceCount) == offseto
8507
8526
  "offsetof mismatch for SharedTextureMemoryEndAccessState::fenceCount");
8508
8527
  static_assert(offsetof(SharedTextureMemoryEndAccessState, fences) == offsetof(WGPUSharedTextureMemoryEndAccessState, fences),
8509
8528
  "offsetof mismatch for SharedTextureMemoryEndAccessState::fences");
8529
+ static_assert(offsetof(SharedTextureMemoryEndAccessState, signaledValueCount) == offsetof(WGPUSharedTextureMemoryEndAccessState, signaledValueCount),
8530
+ "offsetof mismatch for SharedTextureMemoryEndAccessState::signaledValueCount");
8510
8531
  static_assert(offsetof(SharedTextureMemoryEndAccessState, signaledValues) == offsetof(WGPUSharedTextureMemoryEndAccessState, signaledValues),
8511
8532
  "offsetof mismatch for SharedTextureMemoryEndAccessState::signaledValues");
8512
8533
 
Binary file
@@ -8,7 +8,7 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>libwebgpu_dawn.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>macos-arm64_x86_64</string>
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>
@@ -17,7 +17,9 @@
17
17
  <string>x86_64</string>
18
18
  </array>
19
19
  <key>SupportedPlatform</key>
20
- <string>macos</string>
20
+ <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
21
23
  </dict>
22
24
  <dict>
23
25
  <key>BinaryPath</key>
@@ -37,7 +39,7 @@
37
39
  <key>BinaryPath</key>
38
40
  <string>libwebgpu_dawn.a</string>
39
41
  <key>LibraryIdentifier</key>
40
- <string>ios-arm64_x86_64-simulator</string>
42
+ <string>macos-arm64_x86_64</string>
41
43
  <key>LibraryPath</key>
42
44
  <string>libwebgpu_dawn.a</string>
43
45
  <key>SupportedArchitectures</key>
@@ -46,9 +48,7 @@
46
48
  <string>x86_64</string>
47
49
  </array>
48
50
  <key>SupportedPlatform</key>
49
- <string>ios</string>
50
- <key>SupportedPlatformVariant</key>
51
- <string>simulator</string>
51
+ <string>macos</string>
52
52
  </dict>
53
53
  </array>
54
54
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-webgpu",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "React Native WebGPU",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -22,7 +22,8 @@
22
22
  "app.plugin.js",
23
23
  "plugin/build/**"
24
24
  ],
25
- "dawn": "chromium/7849",
25
+ "dawn": "chrome-m150",
26
+ "dawnCommit": "63f25feec51e9351fb25222b6d5de1af791d7c4f",
26
27
  "scripts": {
27
28
  "test": "NODE_OPTIONS='--experimental-require-module' jest -i",
28
29
  "test:ref": "REFERENCE=true NODE_OPTIONS='--experimental-require-module' jest -i",