• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1struct VertexInputs0 {
2  [[builtin(vertex_index)]] vertex_index : u32;
3  [[location(0)]] loc0 : i32;
4};
5struct VertexInputs1 {
6  [[location(2)]] loc1 : u32;
7  [[location(3)]] loc3 : vec4<f32>;
8};
9
10[[stage(vertex)]]
11fn main(
12  inputs0 : VertexInputs0,
13  [[location(1)]] loc1 : u32,
14  [[builtin(instance_index)]] instance_index : u32,
15  inputs1 : VertexInputs1,
16) -> [[builtin(position)]] vec4<f32> {
17  let foo : u32 = inputs0.vertex_index + instance_index;
18  return vec4<f32>();
19}
20