Basic WebGPU samples from Orillusion
  • TypeScript 91.1%
  • WGSL 6.2%
  • HTML 2.2%
  • JavaScript 0.4%
  • Shell 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-11-27 16:07:56 +00:00
.vscode add vscode recommandations 2022-03-05 20:19:07 +08:00
public add UV sprites texture dmeo 2022-09-08 22:18:04 +08:00
samples add UV sprites texture dmeo 2022-09-08 22:18:04 +08:00
src draw will use 200 command encoders to make leak easier to confirm 2025-11-27 16:07:56 +00:00
.gitignore orillusion first webgpu sample template 2022-02-20 18:11:51 +08:00
deploy.sh update package 2022-07-15 14:46:09 +08:00
index.html fix msaa 2022-09-11 05:17:25 +08:00
LICENSE update license and logo 2022-02-20 18:30:13 +08:00
logo_new.png rename logo 2023-05-08 20:44:37 +08:00
package.json update webgpu & webcodecs types 2023-05-09 09:41:00 +08:00
readme.md Update readme.md 2024-07-24 04:23:21 +08:00
tsconfig.json update webgpu & webcodecs types 2023-05-09 09:41:00 +08:00
vite.config.github.js deploy on github pages 2022-06-04 13:45:26 +08:00
vite.config.js fix: video texture 2023-05-08 20:20:40 +08:00

Cover Art

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 WebGPU feature flag)

Android (Behind the enable-unsafe-webgpu flag):

  • Chrome Canary 113+
  • Edge Canary 113+

IOS:

  • Safari: 17.5+ (with WebGPU feature flag)