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
Other Pages
Workload Simulator ↗️
Textured Cube
See it on Github!
This example shows how to bind and sample textures.
main.ts
../../shaders/basic.vert.wgsl
./sampleTextureMixColor.frag.wgsl
../../meshes/cube.ts