[rosetta] Add explicit return (#180)

This commit is contained in:
Pelle Johnsen
2020-09-08 07:18:07 +02:00
committed by GitHub
parent 43bad8ee50
commit 789d624710
3 changed files with 5 additions and 0 deletions

View File

@@ -99,6 +99,9 @@
pointer: 2,
value: 6,
),
Return(
value: None,
),
],
),
],

View File

@@ -6,4 +6,5 @@ layout(location = 0) out vec4 o_pos;
void main() {
float w = 1.0;
o_pos = vec4(a_pos, 0.0, w);
return;
}

View File

@@ -5,5 +5,6 @@
fn main() -> void {
var w: f32 = 1.0;
o_pos = vec4<f32>(a_pos, 0.0, w);
return;
}
entry_point vertex as "main" = main;