react-native-wgpu 0.3.1 → 0.3.2

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.
@@ -1,5 +1,5 @@
1
1
  #import "MetalView.h"
2
- #import "webgpu_cpp.h"
2
+ #import "webgpu/webgpu_cpp.h"
3
3
 
4
4
  @implementation MetalView {
5
5
  BOOL _isConfigured;
@@ -12,7 +12,6 @@
12
12
  #include "rnwgpu/async/AsyncRunner.h"
13
13
  #include "rnwgpu/async/AsyncTaskHandle.h"
14
14
 
15
- #include "dawn/native/DawnNative.h"
16
15
  #include "webgpu/webgpu_cpp.h"
17
16
 
18
17
  #include "GPUAdapter.h"
@@ -82,16 +82,16 @@ async::AsyncTaskHandle GPUAdapter::requestDevice(
82
82
  auto creationRuntime = getCreationRuntime();
83
83
  return _async->postTask(
84
84
  [this, aDescriptor, descriptor, label = std::move(label),
85
- deviceLostBinding,
86
- creationRuntime](const async::AsyncTaskHandle::ResolveFunction &resolve,
87
- const async::AsyncTaskHandle::RejectFunction &reject) {
85
+ deviceLostBinding, creationRuntime](
86
+ const async::AsyncTaskHandle::ResolveFunction &resolve,
87
+ const async::AsyncTaskHandle::RejectFunction &reject) {
88
88
  (void)descriptor;
89
89
  _instance.RequestDevice(
90
90
  &aDescriptor, wgpu::CallbackMode::AllowProcessEvents,
91
- [asyncRunner = _async, resolve, reject, label, creationRuntime,
92
- deviceLostBinding](wgpu::RequestDeviceStatus status,
93
- wgpu::Device device,
94
- wgpu::StringView message) mutable {
91
+ [asyncRunner = _async, resolve, reject, label,
92
+ creationRuntime, deviceLostBinding](
93
+ wgpu::RequestDeviceStatus status, wgpu::Device device,
94
+ wgpu::StringView message) mutable {
95
95
  if (message.length) {
96
96
  fprintf(stderr, "%s", message.data);
97
97
  }