mirror of
https://github.com/handzlikchris/orillusion-webgpu-samples.git
synced 2026-11-03 01:15:57 +00:00
Basic WebGPU samples from Orillusion
- TypeScript 91.1%
- WGSL 6.2%
- HTML 2.2%
- JavaScript 0.4%
- Shell 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .vscode | ||
| public | ||
| samples | ||
| src | ||
| .gitignore | ||
| deploy.sh | ||
| index.html | ||
| LICENSE | ||
| logo_new.png | ||
| package.json | ||
| readme.md | ||
| tsconfig.json | ||
| vite.config.github.js | ||
| vite.config.js | ||
Orillusion-webgpu-samples
Install and Run
Type the following in any terminal:
# Clone the repo
git clone https://github.com/Orillusion/orillusion-webgpu-samples.git
# Go inside the folder
cd orillusion-webgpu-samples
# Start installing dependencies
npm install #or yarn
# Run project at localhost:3000
npm run dev #or yarn run dev
Project Layout
├─ 📂 node_modules/ # Dependencies
│ ├─ 📁 @webgpu # WebGPU types for TS
│ └─ 📁 ... # Other dependencies (TypeScript, Vite, etc.)
├─ 📂 src/ # Source files
│ ├─ 📁 shaders # Folder for shader files
│ └─ 📄 *.ts # TS files for each demo
├─ 📂 samples/ # Sample html
│ └─ 📄 *.html # HTML entry for each demo
├─ 📄 .gitignore # Ignore certain files in git repo
├─ 📄 index.html # Entry page
├─ 📄 LICENSE # MIT
├─ 📄 logo.png # Orillusion logo image
├─ 📄 package.json # Node package file
├─ 📄 tsconfig.json # TS configuration file
├─ 📄 vite.config.js # vite configuration file
└─ 📄 readme.md # Read Me!
Platform
Windows/Mac/Linux:
- Chrome 113+
- Edge: 113+
- Safari: 17.5+ (with
WebGPUfeature flag)
Android (Behind the enable-unsafe-webgpu flag):
- Chrome Canary 113+
- Edge Canary 113+
IOS:
- Safari: 17.5+ (with
WebGPUfeature flag)
