You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
learn-wgpu/code/showcase/pong/res/shaders/textured.frag.wgsl

18 lines
277 B
Plaintext

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