GithubHelp home page GithubHelp logo

xudaotutou / orillusion-webgpu-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from orillusion/orillusion-webgpu-samples

1.0 0.0 0.0 1.32 MB

Basic WebGPU samples from Orillusion

Home Page: https://orillusion.github.io/orillusion-webgpu-samples/

License: Other

Shell 0.16% JavaScript 0.84% TypeScript 96.24% HTML 2.76%

orillusion-webgpu-samples's Introduction

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!

How to enable WebGPU

  1. We have embedded a WebGPU Origin-Trail token in vite.config.js, you can use WebGPU at localhost:3000 via Chrome v94-105
  2. For Edge Canary, please open edge://flags/#enable-unsafe-webgpu, and enable the flag
  3. For FireFox Nightly, please open about:config, and change dom.webgpu.enabled to true

orillusion-webgpu-samples's People

Contributors

jingwenbai avatar lizhiyu-me avatar lslzl3000 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.