mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
11 lines
220 B
WebGPU Shading Language
11 lines
220 B
WebGPU Shading Language
# vertex
|
|
[[location 0]] var<in> a_pos : vec2<f32>;
|
|
[[location 0]] var<out> o_pos : vec4<f32>;
|
|
|
|
fn main() -> void {
|
|
var w: f32 = 1.0;
|
|
o_pos = vec4<f32>(a_pos, 0.0, w);
|
|
return;
|
|
}
|
|
entry_point vertex as "main" = main;
|