[rosetta] Add explicit return (#180)

This commit is contained in:
Pelle Johnsen authored and GitHub committed 2020-09-08 01:18:07 -04:00
1 parent 43bad8ee50
commit 789d624710
3 files changed
+5

No files matched your search

+3
View File
@@ -99,6 +99,9 @@
pointer: 2,
value: 6,
),
Return(
value: None,
),
],
),
],
+1
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;
}
+1
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;