mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Update simple.wgsl to latest syntax
This commit is contained in:
4
test-data/simple.param.ron
Normal file
4
test-data/simple.param.ron
Normal file
@@ -0,0 +1,4 @@
|
||||
(
|
||||
spv_capabilities: [ Shader ],
|
||||
mtl_bindings: { }
|
||||
)
|
||||
@@ -1,8 +1,13 @@
|
||||
# vertex
|
||||
[[builtin position]] var<out> o_position : vec4<f32>;
|
||||
[[builtin(position)]] var<out> o_position : vec4<f32>;
|
||||
|
||||
[[stage(vertex)]]
|
||||
fn main() -> void {
|
||||
o_position = vec4<f32>(1);
|
||||
o_position = vec4<f32>(1.0, 1.0, 1.0, 1.0);
|
||||
|
||||
if (1 == 1) {
|
||||
var a: f32 = 1.0;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
entry_point vertex as "main" = main;
|
||||
|
||||
Reference in New Issue
Block a user