19 lines
401 B
Plaintext
19 lines
401 B
Plaintext
struct VertexInput {
|
|
@location(0) position: vec3<f32>,
|
|
@location(1) tex_coord: vec2<f32>,
|
|
}
|
|
|
|
struct VertexOutput {
|
|
@builtin(position) position: vec4<f32>,
|
|
@location(0) tex_coord: vec2<f32>,
|
|
}
|
|
|
|
@vertex
|
|
fn vs_main(input: VertexInput) -> VertexOutput {
|
|
var out: VertexOutput;
|
|
out.position = vec4<f32>(input.position, 1.);
|
|
out.tex_coord = input.tex_coord;
|
|
return out;
|
|
}
|
|
|