third_party/spirv-cross/shaders-msl/frag/texel-fetch-offset.1d-as-2d.frag
raw| 1 | #version 450 |
| 2 | layout(location = 0) out vec4 FragColor; |
| 3 | layout(binding = 0) uniform sampler2D uTexture; |
| 4 | layout(binding = 1) uniform sampler1D uTexture2; |
| 5 | |
| 6 | void main() |
| 7 | { |
| 8 | FragColor = texelFetchOffset(uTexture, ivec2(gl_FragCoord.xy), 0, ivec2(1, 1)); |
| 9 | FragColor += texelFetchOffset(uTexture2, int(gl_FragCoord.x), 0, int(-1)); |
| 10 | } |