blob: 9c84aebd40bca956d36bb8a41c357f3a91541257 [file] [log] [blame]
James Price114bae22023-05-09 10:36:41 +00001var<private> gl_Position : vec4f;
Ben Claytond1232672021-05-18 09:24:18 +00002
David Neto1e19b552021-06-17 09:10:04 +00003fn main_1() {
James Price1104ad12023-06-19 20:03:32 +00004 gl_Position = vec4f();
Ben Claytond1232672021-05-18 09:24:18 +00005 return;
6}
David Neto1e19b552021-06-17 09:10:04 +00007
8struct main_out {
Ben Clayton01e4b6f2022-01-19 22:46:57 +00009 @builtin(position)
James Price114bae22023-05-09 10:36:41 +000010 gl_Position : vec4f,
James Price6b1e5f52022-01-19 18:11:17 +000011}
David Neto1e19b552021-06-17 09:10:04 +000012
dan sinclairb29892b2022-06-07 13:55:34 +000013@vertex
David Neto1e19b552021-06-17 09:10:04 +000014fn main() -> main_out {
15 main_1();
16 return main_out(gl_Position);
17}