third_party/spirv-cross/shaders-hlsl/frag/tex-sampling-ms.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(location = 0) out vec4 FragColor; |
| 4 | layout(binding = 0) uniform sampler2DMS uTex; |
| 5 | |
| 6 | void main() |
| 7 | { |
| 8 | FragColor = |
| 9 | texelFetch(uTex, ivec2(gl_FragCoord.xy), 0); |
| 10 | FragColor += |
| 11 | texelFetch(uTex, ivec2(gl_FragCoord.xy), 1); |
| 12 | FragColor += |
| 13 | texelFetch(uTex, ivec2(gl_FragCoord.xy), 2); |
| 14 | FragColor += |
| 15 | texelFetch(uTex, ivec2(gl_FragCoord.xy), 3); |
| 16 | } |