blob: 1ef26e483ff3e44a4f11d3fd00315bbbd4c74ba0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
struct VertexOutput {
@builtin(position) position: vec4f,
@location(0) tex_coord: vec2f,
}
@vertex
fn vertex_main(@location(0) position: vec2f) -> VertexOutput {
var output: VertexOutput;
output.position = vec4f(position, 0.0, 1.0);
output.tex_coord = (position * 0.5) + vec2f(0.5, 0.5);
return output;
}
|