Unverified Commit 37dcb894 by John Kessenich Committed by GitHub

Merge pull request #1973 from KhronosGroup/fix-fmod-int

HLSL: Fix #1960: fmod() was not converting int args to float.
parents f34cdc70 e7cb9cb9
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -53,6 +53,7 @@ float PixelShaderFunctionS(float inF0, float inF1, float inF2, uint inU0, int in
float r031 = floor(inF0);
// TODO: fma(inD0, inD1, inD2);
float r033 = fmod(inF0, inF1);
float r033i = fmod(inF0, 2);
float r034 = frac(inF0);
float r036 = fwidth(inF0);
bool r037 = isinf(inF0);
......
......@@ -1129,6 +1129,7 @@ TIntermTyped* TIntermediate::addConversion(TOperator op, const TType& type, TInt
case EOpLit:
case EOpMax:
case EOpMin:
case EOpMod:
case EOpModf:
case EOpPow:
case EOpReflect:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment