examples: prepare for adding more examples

This commit is contained in:
Andrew Gutekanst 2022-04-12 17:51:42 -04:00 committed by Stephen Gutekanst
parent 2496b50b16
commit 9489fe7083
4 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,10 @@
@stage(vertex) fn main(
@builtin(vertex_index) VertexIndex : u32
) -> @builtin(position) vec4<f32> {
var pos = array<vec2<f32>, 3>(
vec2<f32>( 0.0, 0.5),
vec2<f32>(-0.5, -0.5),
vec2<f32>( 0.5, -0.5)
);
return vec4<f32>(pos[VertexIndex], 0.0, 1.0);
}