Skip to content

webgpu/webgpu-samples

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

* Use rVFC for video uploading sample

video.rVFC plays video more smoothly than rAF. Use video.rVFC to
trigger rendering if this API is available

* Fix format issue
3951eb1

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

WebGPU Samples

The WebGPU Samples are a set of samples demonstrating the use of the WebGPU API. Please see the current implementation status and how to run WebGPU in your browser at webgpu.io.

Building

webgpu-samples is built with Typescript and compiled using Next.js. Building the project requires an installation of Node.js.

  • Install dependencies: npm install.
  • For development, start the dev server which will watch and recompile sources: npm start. You can navigate to http://localhost:3000 to view the project.
  • For production, compile the project: npm run build.
  • To run a production server to serve the built assets, do npm run serve.