Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders/vulkan/frag/push-constant.vk.frag

raw
1 #version 310 es
2 precision mediump float;
3 precision highp int;
4
5 struct PushConstants
6 {
7 vec4 value0;
8 vec4 value1;
9 };
10
11 uniform PushConstants push;
12
13 layout(location = 0) out vec4 FragColor;
14 layout(location = 0) in vec4 vColor;
15
16 void main()
17 {
18 FragColor = (vColor + push.value0) + push.value1;
19 }
20