mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-14 16:01:07 +00:00
547c29f7bb
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.
12 lines
276 B
GLSL
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);
|
|
}
|