mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
Update simple.wgsl to latest syntax
This commit is contained in:
1 parent
b7744a1ec5
commit
6a6e3c28f9
2 files changed
+12
-3
No files matched your search
@@ -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