third_party/spirv-cross/shaders-msl/frag/separate-image-sampler-argument.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | |
| 4 | layout(set = 0, binding = 0) uniform mediump sampler uSampler; |
| 5 | layout(set = 0, binding = 1) uniform mediump texture2D uDepth; |
| 6 | layout(location = 0) out vec4 FragColor; |
| 7 | |
| 8 | vec4 samp(texture2D t, mediump sampler s) |
| 9 | { |
| 10 | return texture(sampler2D(t, s), vec2(0.5)); |
| 11 | } |
| 12 | |
| 13 | void main() |
| 14 | { |
| 15 | FragColor = samp(uDepth, uSampler); |
| 16 | } |