Lines Matching refs:iround
99 short x = iround(4095 * clamp_s(value[0], -1.0f, 1.0f)); in setFloatConstant()
100 short y = iround(4095 * clamp_s(value[1], -1.0f, 1.0f)); in setFloatConstant()
101 short z = iround(4095 * clamp_s(value[2], -1.0f, 1.0f)); in setFloatConstant()
102 short w = iround(4095 * clamp_s(value[3], -1.0f, 1.0f)); in setFloatConstant()
689 short textureFactorR = iround(4095 * textureFactor.r); in setTextureFactor()
690 short textureFactorG = iround(4095 * textureFactor.g); in setTextureFactor()
691 short textureFactorB = iround(4095 * textureFactor.b); in setTextureFactor()
692 short textureFactorA = iround(4095 * textureFactor.a); in setTextureFactor()
718 short blendConstantR = iround(65535 * blendConstant.r); in setBlendConstant()
719 short blendConstantG = iround(65535 * blendConstant.g); in setBlendConstant()
720 short blendConstantB = iround(65535 * blendConstant.b); in setBlendConstant()
721 short blendConstantA = iround(65535 * blendConstant.a); in setBlendConstant()
744 short invBlendConstantR = iround(65535 * (1 - blendConstant.r)); in setBlendConstant()
745 short invBlendConstantG = iround(65535 * (1 - blendConstant.g)); in setBlendConstant()
746 short invBlendConstantB = iround(65535 * (1 - blendConstant.b)); in setBlendConstant()
747 short invBlendConstantA = iround(65535 * (1 - blendConstant.a)); in setBlendConstant()
864 factor.alphaReference4[0] = (word)iround(alphaReference * 0x1000 / 0xFF); in setAlphaReference()
865 factor.alphaReference4[1] = (word)iround(alphaReference * 0x1000 / 0xFF); in setAlphaReference()
866 factor.alphaReference4[2] = (word)iround(alphaReference * 0x1000 / 0xFF); in setAlphaReference()
867 factor.alphaReference4[3] = (word)iround(alphaReference * 0x1000 / 0xFF); in setAlphaReference()