-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (24 loc) · 686 Bytes
/
Copy pathindex.js
File metadata and controls
26 lines (24 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* @format
*/
import 'fast-text-encoding';
import {AppRegistry, Platform} from 'react-native';
import App from './src/App';
import {name as appName} from './app.json';
import {install, Backends, defaultBackends} from 'react-native-webgpu';
import {
ENABLE_THREADS,
install as installExperimental,
} from 'react-native-webgpu-experimental';
import 'react-native-webgpu-three';
defaultBackends.current =
Platform.OS === 'android' ? Backends.Vulkan : Backends.All;
install();
installExperimental();
if (ENABLE_THREADS) {
global.reactNativeWebGPUThreads.spawn({
bundleId: 'myThread',
threadId: 'myThread-0',
});
}
AppRegistry.registerComponent(appName, () => App);