mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[rosetta] Add explicit return (#180)
This commit is contained in:
@@ -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