mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
[rosetta] Add explicit return (#180)
This commit is contained in:
1 parent
43bad8ee50
commit
789d624710
3 files changed
+5
No files matched your search
@@ -99,6 +99,9 @@
|
||||
pointer: 2,
|
||||
value: 6,
|
||||
),
|
||||
Return(
|
||||
value: None,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user