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.
- package/apple/MetalView.mm +1 -1
- package/cpp/rnwgpu/api/GPU.h +0 -1
- package/cpp/rnwgpu/api/GPUAdapter.cpp +7 -7
- package/cpp/webgpu/webgpu.h +4827 -5
- package/cpp/webgpu/webgpu_cpp.h +10140 -5
- package/cpp/webgpu/webgpu_cpp_print.h +2687 -5
- package/package.json +1 -1
- package/cpp/dawn/dawn_proc_table.h +0 -313
- package/cpp/dawn/native/DawnNative.h +0 -361
- package/cpp/dawn/native/NullBackend.h +0 -39
- package/cpp/dawn/native/OpenGLBackend.h +0 -82
- package/cpp/dawn/native/VulkanBackend.h +0 -183
- package/cpp/dawn/native/dawn_native_export.h +0 -49
- package/cpp/dawn/webgpu.h +0 -4855
- package/cpp/dawn/webgpu_cpp.h +0 -10168
- package/cpp/dawn/webgpu_cpp_print.h +0 -2715
- package/cpp/dawn/wire/client/webgpu.h +0 -354
- package/cpp/dawn/wire/client/webgpu_cpp.h +0 -10343
- package/cpp/dawn/wire/client/webgpu_cpp_print.h +0 -2715
package/apple/MetalView.mm
CHANGED
package/cpp/rnwgpu/api/GPU.h
CHANGED
|
@@ -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
|
-
|
|
87
|
-
|
|
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,
|
|
92
|
-
deviceLostBinding](
|
|
93
|
-
|
|
94
|
-
|
|
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
|
}
|