Skip to content

Orillusion/orillusion-webgpu-samples

Repository files navigation

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)

About

Basic WebGPU samples from Orillusion

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published