Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/camilotk/webgpu-hello
https://github.com/camilotk/webgpu-hello
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/camilotk/webgpu-hello
- Owner: Camilotk
- Created: 2022-11-18T22:39:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-19T21:09:28.000Z (about 2 years ago)
- Last Synced: 2024-10-28T21:15:25.694Z (about 2 months ago)
- Language: TypeScript
- Size: 87.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello WebGPU
Aplicação de exemplo para demonstrar como funcionam shaders e WebGPU.
![](./dist/triangulo.png)
## Requisitos
### Necessário usar o [Chrome Canary](https://www.google.com/intl/pt-BR/chrome/canary/) com as flags de WebGPU
Habilite as flags:
1. Acesse a url [chrome://flags](chrome://flag) no Chrome
2. Procure por "WebGPU"
3. Habilite as flags "Unsafe WebGPU" e "WebGPU Developer Features"## Como rodar
Rodar os comandos:
```
$ npm i
$ npm run prod
$ npm run serve
```
> Por algum motivo `$ npm run watch` dá erro de build. Use `$ npm run prod` sempre.E acessar [http://localhost:8000/](http://localhost:8000/).