Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Nov 1, 2024
1 parent 8e6070f commit 1b8c39f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/webgpu/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static def findNodeModules(baseDir) {
basePath = basePath.getParent()
}

throw new GradleException("react-native-filament: Failed to find node_modules/ path!")
throw new GradleException("react-native-wgpu: Failed to find node_modules/ path!")
}

def nodeModules = findNodeModules(projectDir)
Expand Down
15 changes: 3 additions & 12 deletions packages/webgpu/apple/WebGPUModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ - (void)invalidate {
}
RCTCxxBridge *cxxBridge = (RCTCxxBridge *)[RCTBridge currentBridge];
if (!cxxBridge.runtime) {
NSLog(@"Failed to install react-native-filament: RCTBridge is not a "
NSLog(@"Failed to install react-native-wgpu: RCTBridge is not a "
@"RCTCxxBridge!");
return [NSNumber numberWithBool:NO];
}

jsi::Runtime *runtime = (jsi::Runtime *)cxxBridge.runtime;
if (!runtime) {
NSLog(@"Failed to install react-native-filament: jsi::Runtime* was null!");
NSLog(@"Failed to install react-native-wgpu: jsi::Runtime* was null!");
return [NSNumber numberWithBool:NO];
}
std::shared_ptr<react::CallInvoker> jsInvoker = cxxBridge.jsCallInvoker;
if (!jsInvoker) {
NSLog(@"Failed to install react-native-filament: react::CallInvoker was "
NSLog(@"Failed to install react-native-wgpu: react::CallInvoker was "
@"null!");
return [NSNumber numberWithBool:NO];
}
Expand All @@ -74,15 +74,6 @@ - (void)invalidate {
return @true;
}

// RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(createSurfaceContext
// : (double)contextId) {
// int contextIdInt = contextId;
// RCTCxxBridge *cxxBridge = (RCTCxxBridge *)self.bridge;
// auto runtime = (jsi::Runtime *)cxxBridge.runtime;

// return @true;
// }

#ifdef RCT_NEW_ARCH_ENABLED
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
(const facebook::react::ObjCTurboModule::InitParams &)params {
Expand Down

0 comments on commit 1b8c39f

Please sign in to comment.