SPIRV-Cross/shaders-msl/frag/sampler-compare-bias.msl23.1d-as-2d.frag
Chip Davis 547c29f7bb MSL: Allow Bias and Grad arguments with comparison on Mac in MSL 2.3.
I kept the code to replace constant zero arguments, because `Bias` and
`Grad` still have some problems on desktop GPUs.

`Bias` works on AMD GPUs. `Grad` does not. Both work on Intel. Still
needs testing on NV. It will definitely work with Apple GPUs.
2020-10-30 11:14:59 -05:00

12 lines
276 B
GLSL

#version 450
layout(binding = 0) uniform texture1DArray uTex;
layout(binding = 1) uniform samplerShadow uShadow;
layout(location = 0) in vec3 vUV;
layout(location = 0) out float FragColor;
void main()
{
FragColor = texture(sampler1DArrayShadow(uTex, uShadow), vUV, 1.0);
}