react-native-wgpu 0.2.5 → 0.2.7
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/lib/commonjs/NativeWebGPUModule.js.map +1 -1
- package/lib/commonjs/WebGPUViewNativeComponent.js +2 -3
- package/lib/commonjs/WebGPUViewNativeComponent.js.map +1 -1
- package/lib/module/NativeWebGPUModule.js.map +1 -1
- package/lib/module/WebGPUViewNativeComponent.js +1 -1
- package/lib/module/WebGPUViewNativeComponent.js.map +1 -1
- package/lib/typescript/lib/commonjs/WebGPUViewNativeComponent.d.ts +2 -1
- package/lib/typescript/lib/module/WebGPUViewNativeComponent.d.ts +1 -1
- package/lib/typescript/src/NativeWebGPUModule.d.ts +1 -1
- package/lib/typescript/src/NativeWebGPUModule.d.ts.map +1 -1
- package/lib/typescript/src/WebGPUViewNativeComponent.d.ts +2 -2
- package/lib/typescript/src/WebGPUViewNativeComponent.d.ts.map +1 -1
- package/libs/apple/arm64_iphoneos/libwebgpu_dawn.a +0 -0
- package/libs/apple/arm64_iphonesimulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/arm64_xros/libwebgpu_dawn.a +0 -0
- package/libs/apple/arm64_xrsimulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/iphonesimulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/Info.plist +15 -15
- 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/libs/apple/libwebgpu_dawn.xcframework/xros-arm64/libwebgpu_dawn.a +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/xros-arm64-simulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/universal_macosx/libwebgpu_dawn.a +0 -0
- package/libs/apple/x86_64_iphonesimulator/libwebgpu_dawn.a +0 -0
- package/package.json +8 -3
- package/src/NativeWebGPUModule.ts +1 -1
- package/src/WebGPUViewNativeComponent.ts +2 -2
- package/cpp/webgpu/webgpu_cpp_print.h +0 -33
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeWebGPUModule.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeWebGPUModule.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACeC,gCAAmB,CAACC,YAAY,CAAO,cAAc,CAAC","ignoreList":[]}
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
var _reactNative = require("react-native");
|
|
9
8
|
// eslint-disable-next-line import/no-default-export
|
|
10
|
-
var _default = exports.default = (0,
|
|
9
|
+
var _default = exports.default = (0, _reactNative.codegenNativeComponent)("WebGPUView");
|
|
11
10
|
//# sourceMappingURL=WebGPUViewNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","codegenNativeComponent"],"sourceRoot":"../../src","sources":["WebGPUViewNativeComponent.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AASA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACe,IAAAC,mCAAsB,EAAc,YAAY,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeWebGPUModule.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeWebGPUModule.ts"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,cAAc;AAOlD;AACA,eAAeA,mBAAmB,CAACC,YAAY,CAAO,cAAc,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import codegenNativeComponent from "react-native
|
|
1
|
+
import { codegenNativeComponent } from "react-native";
|
|
2
2
|
// eslint-disable-next-line import/no-default-export
|
|
3
3
|
export default codegenNativeComponent("WebGPUView");
|
|
4
4
|
//# sourceMappingURL=WebGPUViewNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../src","sources":["WebGPUViewNativeComponent.ts"],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../src","sources":["WebGPUViewNativeComponent.ts"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,cAAc;AASrD;AACA,eAAeA,sBAAsB,CAAc,YAAY,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: import("react-native
|
|
1
|
+
declare const _default: import("react-native").HostComponent<object>;
|
|
2
2
|
export default _default;
|
|
3
3
|
//# sourceMappingURL=WebGPUViewNativeComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeWebGPUModule.d.ts","sourceRoot":"","sources":["../../../src/NativeWebGPUModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeWebGPUModule.d.ts","sourceRoot":"","sources":["../../../src/NativeWebGPUModule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,OAAO,EAAE,MAAM,OAAO,CAAC;CACxB;;AAGD,wBAAsE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ViewProps } from "react-native";
|
|
2
1
|
import type { Int32 } from "react-native/Libraries/Types/CodegenTypes";
|
|
2
|
+
import type { ViewProps } from "react-native";
|
|
3
3
|
interface NativeProps extends ViewProps {
|
|
4
4
|
contextId: Int32;
|
|
5
5
|
transparent: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import("react-native
|
|
7
|
+
declare const _default: import("react-native").HostComponent<NativeProps>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=WebGPUViewNativeComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebGPUViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/WebGPUViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"WebGPUViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/WebGPUViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,UAAU,WAAY,SAAQ,SAAS;IACrC,SAAS,EAAE,KAAK,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB;;AAGD,wBAAiE"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -8,55 +8,52 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>libwebgpu_dawn.a</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>
|
|
11
|
+
<string>xros-arm64-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>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
|
-
<string>
|
|
19
|
+
<string>xros</string>
|
|
20
|
+
<key>SupportedPlatformVariant</key>
|
|
21
|
+
<string>simulator</string>
|
|
21
22
|
</dict>
|
|
22
23
|
<dict>
|
|
23
24
|
<key>BinaryPath</key>
|
|
24
25
|
<string>libwebgpu_dawn.a</string>
|
|
25
26
|
<key>LibraryIdentifier</key>
|
|
26
|
-
<string>
|
|
27
|
+
<string>xros-arm64</string>
|
|
27
28
|
<key>LibraryPath</key>
|
|
28
29
|
<string>libwebgpu_dawn.a</string>
|
|
29
30
|
<key>SupportedArchitectures</key>
|
|
30
31
|
<array>
|
|
31
32
|
<string>arm64</string>
|
|
32
|
-
<string>x86_64</string>
|
|
33
33
|
</array>
|
|
34
34
|
<key>SupportedPlatform</key>
|
|
35
|
-
<string>
|
|
36
|
-
<key>SupportedPlatformVariant</key>
|
|
37
|
-
<string>simulator</string>
|
|
35
|
+
<string>xros</string>
|
|
38
36
|
</dict>
|
|
39
37
|
<dict>
|
|
40
38
|
<key>BinaryPath</key>
|
|
41
39
|
<string>libwebgpu_dawn.a</string>
|
|
42
40
|
<key>LibraryIdentifier</key>
|
|
43
|
-
<string>
|
|
41
|
+
<string>macos-arm64_x86_64</string>
|
|
44
42
|
<key>LibraryPath</key>
|
|
45
43
|
<string>libwebgpu_dawn.a</string>
|
|
46
44
|
<key>SupportedArchitectures</key>
|
|
47
45
|
<array>
|
|
48
46
|
<string>arm64</string>
|
|
47
|
+
<string>x86_64</string>
|
|
49
48
|
</array>
|
|
50
49
|
<key>SupportedPlatform</key>
|
|
51
|
-
<string>
|
|
52
|
-
<key>SupportedPlatformVariant</key>
|
|
53
|
-
<string>simulator</string>
|
|
50
|
+
<string>macos</string>
|
|
54
51
|
</dict>
|
|
55
52
|
<dict>
|
|
56
53
|
<key>BinaryPath</key>
|
|
57
54
|
<string>libwebgpu_dawn.a</string>
|
|
58
55
|
<key>LibraryIdentifier</key>
|
|
59
|
-
<string>
|
|
56
|
+
<string>ios-arm64</string>
|
|
60
57
|
<key>LibraryPath</key>
|
|
61
58
|
<string>libwebgpu_dawn.a</string>
|
|
62
59
|
<key>SupportedArchitectures</key>
|
|
@@ -64,21 +61,24 @@
|
|
|
64
61
|
<string>arm64</string>
|
|
65
62
|
</array>
|
|
66
63
|
<key>SupportedPlatform</key>
|
|
67
|
-
<string>
|
|
64
|
+
<string>ios</string>
|
|
68
65
|
</dict>
|
|
69
66
|
<dict>
|
|
70
67
|
<key>BinaryPath</key>
|
|
71
68
|
<string>libwebgpu_dawn.a</string>
|
|
72
69
|
<key>LibraryIdentifier</key>
|
|
73
|
-
<string>ios-
|
|
70
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
74
71
|
<key>LibraryPath</key>
|
|
75
72
|
<string>libwebgpu_dawn.a</string>
|
|
76
73
|
<key>SupportedArchitectures</key>
|
|
77
74
|
<array>
|
|
78
75
|
<string>arm64</string>
|
|
76
|
+
<string>x86_64</string>
|
|
79
77
|
</array>
|
|
80
78
|
<key>SupportedPlatform</key>
|
|
81
79
|
<string>ios</string>
|
|
80
|
+
<key>SupportedPlatformVariant</key>
|
|
81
|
+
<string>simulator</string>
|
|
82
82
|
</dict>
|
|
83
83
|
</array>
|
|
84
84
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "React Native WebGPU",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"pngjs": "^7.0.0",
|
|
80
80
|
"prettier": "^3.0.3",
|
|
81
81
|
"puppeteer": "22",
|
|
82
|
-
"react": "19.
|
|
83
|
-
"react-native": "0.
|
|
82
|
+
"react": "19.1.0",
|
|
83
|
+
"react-native": "0.81.4",
|
|
84
84
|
"react-native-builder-bob": "^0.23.2",
|
|
85
85
|
"rimraf": "^5.0.7",
|
|
86
86
|
"seedrandom": "^3.0.5",
|
|
@@ -116,6 +116,11 @@
|
|
|
116
116
|
"jsSrcsDir": "src",
|
|
117
117
|
"android": {
|
|
118
118
|
"javaPackageName": "com.webgpu"
|
|
119
|
+
},
|
|
120
|
+
"ios": {
|
|
121
|
+
"componentProviders": {
|
|
122
|
+
"WebGPUView": "WebGPUView"
|
|
123
|
+
}
|
|
119
124
|
}
|
|
120
125
|
}
|
|
121
126
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import codegenNativeComponent from "react-native
|
|
2
|
-
import type { ViewProps } from "react-native";
|
|
1
|
+
import { codegenNativeComponent } from "react-native";
|
|
3
2
|
import type { Int32 } from "react-native/Libraries/Types/CodegenTypes";
|
|
3
|
+
import type { ViewProps } from "react-native";
|
|
4
4
|
|
|
5
5
|
interface NativeProps extends ViewProps {
|
|
6
6
|
contextId: Int32;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Dawn & Tint Authors
|
|
2
|
-
//
|
|
3
|
-
// Redistribution and use in source and binary forms, with or without
|
|
4
|
-
// modification, are permitted provided that the following conditions are met:
|
|
5
|
-
//
|
|
6
|
-
// 1. Redistributions of source code must retain the above copyright notice, this
|
|
7
|
-
// list of conditions and the following disclaimer.
|
|
8
|
-
//
|
|
9
|
-
// 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
-
// this list of conditions and the following disclaimer in the documentation
|
|
11
|
-
// and/or other materials provided with the distribution.
|
|
12
|
-
//
|
|
13
|
-
// 3. Neither the name of the copyright holder nor the names of its
|
|
14
|
-
// contributors may be used to endorse or promote products derived from
|
|
15
|
-
// this software without specific prior written permission.
|
|
16
|
-
//
|
|
17
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
18
|
-
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
19
|
-
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
20
|
-
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
21
|
-
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
22
|
-
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
23
|
-
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
24
|
-
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
25
|
-
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
-
|
|
28
|
-
#ifndef INCLUDE_WEBGPU_WEBGPU_CPP_PRINT_H_
|
|
29
|
-
#define INCLUDE_WEBGPU_WEBGPU_CPP_PRINT_H_
|
|
30
|
-
|
|
31
|
-
#include "dawn/webgpu_cpp_print.h"
|
|
32
|
-
|
|
33
|
-
#endif // INCLUDE_WEBGPU_WEBGPU_CPP_PRINT_H_
|