WebGPU Samples
Github
helloTriangle
helloTriangleMSAA
resizeCanvas
rotatingCube
twoCubes
texturedCube
instancedCube
fractalCube
cameras
cubemap
computeBoids
animometer
videoUploading
videoUploadingWebCodecs
samplerParameters
imageBlur
shadowMapping
reversedZ
deferredRendering
particles
cornell
gameOfLife
renderBundles
worker
A-buffer
bitonicSort
normalMap
Other Pages
Workload Simulator ↗️
Video Uploading with WebCodecs
See it on Github!
This example shows how to upload a WebCodecs VideoFrame to WebGPU.
main.ts
../../shaders/fullscreenTexturedQuad.wgsl
../../shaders/sampleExternalTexture.wgsl