blob: e48655f5e45ed871fd6e1d2f4479ecf6045e6482 [file] [log] [blame]
James Pricebb0496e2021-06-03 09:38:34 +00001struct VertexInputs {
Ben Clayton01e4b6f2022-01-19 22:46:57 +00002 @builtin(vertex_index)
James Pricebb0496e2021-06-03 09:38:34 +00003 vertex_index : u32;
Ben Clayton01e4b6f2022-01-19 22:46:57 +00004 @builtin(instance_index)
James Pricebb0496e2021-06-03 09:38:34 +00005 instance_index : u32;
James Price6b1e5f52022-01-19 18:11:17 +00006}
James Pricebb0496e2021-06-03 09:38:34 +00007
Ben Clayton01e4b6f2022-01-19 22:46:57 +00008@stage(vertex)
9fn main(inputs : VertexInputs) -> @builtin(position) vec4<f32> {
James Pricebb0496e2021-06-03 09:38:34 +000010 let foo : u32 = (inputs.vertex_index + inputs.instance_index);
11 return vec4<f32>();
12}