Skip to content
/ webgpu-seed Public template
forked from alaingalvan/webgpu-seed

πŸ”ΊπŸŒ± An example on how to render a hello triangle with WebGPU.

License

Notifications You must be signed in to change notification settings

cuulee/webgpu-seed

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”Ί WebGPU Seed

License Unit Tests Dependency Status devDependency Status

A WebGPU repo you can use to get started with your own renderer.

Visit the typegen branch for type generation, but otherwise you should use @types/webgpu.

Setup

First install:

Then type the following in any terminal your such as VS Code's Integrated Terminal.

# πŸ‘ Clone the repo
git clone https://github.com/alaingalvan/webgpu-seed

# πŸ’Ώ go inside the folder
cd webgpu-seed

# πŸ”¨ Start building the project
npm start

Refer to this blog post on designing web libraries and apps for more details on Node.js, packages, etc.

Project Layout

As your project becomes more complex, you'll want to separate files and organize your application to something more akin to a game or renderer, check out this post on game engine architecture and this one on real time renderer architecture for more details.

β”œβ”€ πŸ“‚ node_modules/   # πŸ‘Ά Dependencies
β”‚  β”œβ”€ πŸ“ gl-matrix      # βž• Linear Algebra
β”‚  └─ πŸ“ ...            # πŸ•š Other Dependencies (TypeScript, Webpack, etc.)
β”œβ”€ πŸ“‚ src/            # 🌟 Source Files
β”‚  β”œβ”€ πŸ“„ index.html     #  πŸ“‡ Main HTML file
β”‚  └─ πŸ“„ renderer.ts    # πŸ”Ί Triangle Renderer
β”œβ”€ πŸ“„ .gitignore      # πŸ‘οΈ Ignore certain files in git repo
β”œβ”€ πŸ“„ package.json    # πŸ“¦ Node Package File
β”œβ”€ πŸ“„ license.md      # βš–οΈ Your License (Unlicense)
└─ πŸ“ƒreadme.md        # πŸ“– Read Me!

About

πŸ”ΊπŸŒ± An example on how to render a hello triangle with WebGPU.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 93.2%
  • HTML 6.8%