SPIRV-Cross/shaders-msl/frag/binary-func-unpack-pack-arguments.frag
Hans-Kristian Arntzen b86bd0a265 Unpack expressions when used in functions on MSL.
OSX 10.14 broke (?) how overload resolution works,
so overloading e.g. dot(float3, packed_float3) no longer works.

Fix this by unpacking expressions before various func ops.
This fix might need to be applied elsewhere, but do so later if needed.
2018-06-11 10:56:45 +02:00

16 lines
206 B
GLSL

#version 450
layout(location = 0) out float FragColor;
layout(binding = 0, std140) uniform UBO
{
vec3 color;
float v;
};
layout(location = 0) in vec3 vIn;
void main()
{
FragColor = dot(vIn, color);
}