9 lines
177 B
WebGPU Shading Language
9 lines
177 B
WebGPU Shading Language
|
struct VertexOutputs {
|
||
|
[[builtin(position)]] position : vec4<f32>;
|
||
|
};
|
||
|
|
||
|
[[stage(vertex)]]
|
||
|
fn main() -> VertexOutputs {
|
||
|
return VertexOutputs(vec4<f32>(1.0, 2.0, 3.0, 4.0));
|
||
|
}
|