Fetching WebGPU shaders. Created my first bona fide pipeline. The vertex shader compares the built-in vertex index and the numRows/numColumns uniforms to produce a grid of quads with no vertex or index buffer whatsoever!

This commit is contained in:
Rezmason
2021-10-27 01:35:23 -07:00
parent 1827fd94a6
commit 8c62146884
3 changed files with 113 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
[[stage(fragment)]] fn main([[location(0)]] UV : vec2<f32>) -> [[location(0)]] vec4<f32> {
return vec4<f32>(0.0, UV, 1.0);
}