-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(webgpu-rendering-context): import webgpu renderer #99
Conversation
…and creates a renderer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node_modules\three\examples\jsm\capabilities\WebGPU.js
or how do we add the three addons? needs to specify these instructions first.
they are already in the three package, and import will work with current configuration. |
this commits fix that vite is complaining about top-level await used in threejs. it is ok to bump the version since our support target is 2 most recent Chromium/Firefox/Safari version Signed-off-by: Bill ZHANG <[email protected]>
src/components/Simulation.tsx
Outdated
@@ -59,6 +63,15 @@ function DiffusionPlane( | |||
props: ThreeElements['mesh'] & Renderable, | |||
): React.ReactElement { | |||
// INITIALISATION | |||
|
|||
// WebGPU capability test | |||
if ( WebGPU.isAvailable() === true ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CFlowSim\src\components\Simulation.tsx
68:8 error Unsafe call of an `any` typed value @typescript-eslint/no-unsafe-call
69:11 error Unsafe assignment of an `any` value @typescript-eslint/no-unsafe-assignment
line returns these errors in npm run lint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also pls make sure that you have configured prettier
as the formatter.
Understood. pls resolve format and linting error to get it merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR closes #74