jellyzone
WWasp-lang
•Created by jellyzone on 5/13/2024 in #đŸ™‹questions
I want to show a react gpu component using Use.GPU
Ok, thank you , I'll post a question and see how things goes!
11 replies
WWasp-lang
•Created by jellyzone on 5/13/2024 in #đŸ™‹questions
I want to show a react gpu component using Use.GPU
No, I haven't modify the package.json by hand, I just install the use-gpu by npm install. the content of package.json is like:
{
"name": "tailwindtest",
"dependencies": {
"@nextui-org/react": "^2.3.6",
"@use-gpu/inspect": "^0.11.0",
"@use-gpu/inspect-gpu": "^0.11.0",
"@use-gpu/layout": "^0.11.0",
"@use-gpu/live": "^0.11.0",
"@use-gpu/parse": "^0.11.0",
"@use-gpu/plot": "^0.11.0",
"@use-gpu/react": "^0.11.0",
"@use-gpu/scene": "^0.11.0",
"@use-gpu/traits": "^0.11.0",
"@use-gpu/webgpu": "^0.11.0",
"@use-gpu/wgsl-loader": "^0.11.0",
"@use-gpu/workbench": "^0.11.0",
"@webgpu/types": "^0.1.40",
"clsx": "^2.1.1",
"react": "^18.2.0",
"tailwind-merge": "^2.3.0",
"wasp": "file:.wasp/out/sdk/wasp"
},
"devDependencies": {
"@types/react": "^18.0.37",
"prisma": "4.16.2",
"typescript": "^5.1.0",
"vite": "^4.3.9"
}
}
11 replies
WWasp-lang
•Created by jellyzone on 5/13/2024 in #đŸ™‹questions
I want to show a react gpu component using Use.GPU
sorry, I'm a c++ programmer, just do not familiar with all these library!
I change the content of vite.config.ts to:
import { defineConfig } from 'vite'
import rollupWGSL from '@use-gpu/wgsl-loader/rollup';
export default defineConfig({
server: {
open: true,
},
plugins: [
rollupWGSL()
]
})
when execute
wasp start
, the log says:
Why!11 replies