15 lines
211 B
WebGPU Shading Language
15 lines
211 B
WebGPU Shading Language
|
struct Input {
|
||
|
[[location(0)]]
|
||
|
position : vec4<f32>;
|
||
|
};
|
||
|
|
||
|
struct Output {
|
||
|
[[builtin(position)]]
|
||
|
position : vec4<f32>;
|
||
|
};
|
||
|
|
||
|
[[stage(vertex)]]
|
||
|
fn main(in : Input) -> Output {
|
||
|
return Output(in.position);
|
||
|
}
|