examples: add triangle-msaa

This commit is contained in:
Ali Chraghi 2022-09-04 20:59:21 +04:30 committed by Stephen Gutekanst
parent 194971586d
commit 06b0609ada
4 changed files with 128 additions and 0 deletions

View file

@ -0,0 +1,10 @@
@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);
}