third_party/spirv-cross/reference/opt/shaders/vulkan/frag/input-attachment.vk.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | precision highp int; |
| 4 | |
| 5 | layout(binding = 0) uniform mediump sampler2D uSubpass0; |
| 6 | layout(binding = 1) uniform mediump sampler2D uSubpass1; |
| 7 | |
| 8 | layout(location = 0) out vec4 FragColor; |
| 9 | |
| 10 | void main() |
| 11 | { |
| 12 | FragColor = texelFetch(uSubpass0, ivec2(gl_FragCoord.xy), 0) + texelFetch(uSubpass1, ivec2(gl_FragCoord.xy), 0); |
| 13 | } |
| 14 |