Files
wgpu/test-data/simple.wgsl
Pelle Johnsen 6f0f551bac New GLSL frontend using pomelo (#87)
* Add initial pomelo glsl work

* Fix ref to glsl_old

* Fix idents with numbers in lexer

* Use glsl_new for .vert in convert example

Controlled by PREFER_GLSL_NEW=1 env var

Also add simple test files

* Start making parser look like spec

* Port 'old' lex.rs to glsl_new

* Apply fixes after rebasing

* Fix clippy issue

* Fix PR comments

- Make into optional feature glsl-new

- Minor code style improvements
2020-06-30 10:42:50 -04:00

9 lines
162 B
WebGPU Shading Language

# vertex
[[builtin position]] var<out> o_position : vec4<f32>;
fn main() -> void {
o_position = vec4<f32>(1);
return;
}
entry_point vertex as "main" = main;