SPIRV-Cross/reference/opt/shaders/vert/no-contraction.vert
Hans-Kristian Arntzen e47a30e807 Honor NoContraction qualifier.
We'll need to force a temporary and mark it as precise.
MSL is a little weird here, but we can piggyback on top of the invariant
float math option here to force fma() operations everywhere.
2021-05-07 12:59:47 +02:00

19 lines
385 B
GLSL

#version 450
layout(location = 0) in vec4 vA;
layout(location = 1) in vec4 vB;
layout(location = 2) in vec4 vC;
void main()
{
precise vec4 _15 = vA * vB;
precise vec4 _19 = vA + vB;
precise vec4 _23 = vA - vB;
precise vec4 _30 = _15 + vC;
precise vec4 _34 = _15 + _19;
precise vec4 _36 = _34 + _23;
precise vec4 _38 = _36 + _30;
gl_Position = _38;
}