fleeting-garden/src/utils/full-screen-quad.wgsl
2023-04-16 14:05:47 +01:00

12 lines
260 B
WebGPU Shading Language

struct VertexOutput {
@builtin(position) position : vec4<f32>,
@location(0) uv : vec2<f32>,
}
@vertex
fn vertex(
@location(0) position : vec2<f32>,
@location(1) uv : vec2<f32>
) -> VertexOutput {
return VertexOutput(vec4(position, 0.0, 1.0), uv);
}