third_party/spirv-cross/reference/opt/shaders/vulkan/frag/input-attachment-ms.vk.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(binding = 0) uniform sampler2DMS uSubpass0; |
| 4 | layout(binding = 1) uniform sampler2DMS uSubpass1; |
| 5 | |
| 6 | layout(location = 0) out vec4 FragColor; |
| 7 | |
| 8 | void main() |
| 9 | { |
| 10 | FragColor = (texelFetch(uSubpass0, ivec2(gl_FragCoord.xy), 1) + texelFetch(uSubpass1, ivec2(gl_FragCoord.xy), 2)) + texelFetch(uSubpass0, ivec2(gl_FragCoord.xy), gl_SampleID); |
| 11 | } |
| 12 |