SPIRV-Cross/reference/shaders/asm/frag/invalidation.asm.frag
Hans-Kristian Arntzen ad2b7c05e7 Implement workaround for textureLod on 2D array shadow.
This does not exist in GLSL, but it exists in HLSL if LOD == 0.0.
2017-06-23 09:45:42 +02:00

16 lines
240 B
GLSL

#version 450
layout(location = 0) in float v0;
layout(location = 1) in float v1;
layout(location = 0) out float FragColor;
void main()
{
float a = v0;
float b = v1;
float _17 = a;
a = v1;
FragColor = (_17 + b) * b;
}