mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
* 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
9 lines
162 B
WebGPU Shading Language
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;
|