learn-wgpu/code/showcase/pong/res/shaders/textured.frag.wgsl
2021-12-27 12:09:25 -07:00

18 lines
290 B
WebGPU Shading Language

struct FragmentOutput {
[[location(0)]] fColor: vec4<f32>;
};
var<private> fColor: vec4<f32>;
fn main_1() {
fColor = vec4<f32>(f32(1));
return;
}
[[stage(fragment)]]
fn main() -> FragmentOutput {
main_1();
let e3: vec4<f32> = fColor;
return FragmentOutput(e3);
}