mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-12-01 19:23:38 +00:00
3bf7f41068
- Update parser to match the latest spec: https://github.com/gpuweb/gpuweb/pull/1326
11 lines
204 B
WebGPU Shading Language
11 lines
204 B
WebGPU Shading Language
// vertex
|
|
[[location(0)]] var<in> a_pos : vec2<f32>;
|
|
[[location(0)]] var<out> o_pos : vec4<f32>;
|
|
|
|
[[stage(vertex)]]
|
|
fn main() -> void {
|
|
var w: f32 = 1.0;
|
|
o_pos = vec4<f32>(a_pos, 0.0, w);
|
|
return;
|
|
}
|