blob: b7aaaa41189f3aa4879e1cfb7912b9e66aadf07e [file] [log] [blame]
// flags: --transform renamer
// Evilness 😈. Don't go getting any ideas!
fn vec4f() -> i32 { return 0; }
fn vec2f(i : i32) -> f32 { return f32(i); }
fn vec2i(f : f32) -> bool { return bool(f); }
@vertex fn main(@builtin(vertex_index) VertexIndex : u32) -> @builtin(position) vec4<f32> {
return select(vec4<f32>(), vec4<f32>(1), vec2i(vec2f(vec4f())));
}