Lines Matching refs:iround
95 short x = iround(4095 * clamp_s(value[0], -1.0f, 1.0f)); in setFloatConstant()
96 short y = iround(4095 * clamp_s(value[1], -1.0f, 1.0f)); in setFloatConstant()
97 short z = iround(4095 * clamp_s(value[2], -1.0f, 1.0f)); in setFloatConstant()
98 short w = iround(4095 * clamp_s(value[3], -1.0f, 1.0f)); in setFloatConstant()
685 short textureFactorR = iround(4095 * textureFactor.r); in setTextureFactor()
686 short textureFactorG = iround(4095 * textureFactor.g); in setTextureFactor()
687 short textureFactorB = iround(4095 * textureFactor.b); in setTextureFactor()
688 short textureFactorA = iround(4095 * textureFactor.a); in setTextureFactor()
714 short blendConstantR = iround(65535 * blendConstant.r); in setBlendConstant()
715 short blendConstantG = iround(65535 * blendConstant.g); in setBlendConstant()
716 short blendConstantB = iround(65535 * blendConstant.b); in setBlendConstant()
717 short blendConstantA = iround(65535 * blendConstant.a); in setBlendConstant()
740 short invBlendConstantR = iround(65535 * (1 - blendConstant.r)); in setBlendConstant()
741 short invBlendConstantG = iround(65535 * (1 - blendConstant.g)); in setBlendConstant()
742 short invBlendConstantB = iround(65535 * (1 - blendConstant.b)); in setBlendConstant()
743 short invBlendConstantA = iround(65535 * (1 - blendConstant.a)); in setBlendConstant()
860 factor.alphaReference4[0] = (word)iround(alphaReference * 0x1000 / 0xFF); in setAlphaReference()
861 factor.alphaReference4[1] = (word)iround(alphaReference * 0x1000 / 0xFF); in setAlphaReference()
862 factor.alphaReference4[2] = (word)iround(alphaReference * 0x1000 / 0xFF); in setAlphaReference()
863 factor.alphaReference4[3] = (word)iround(alphaReference * 0x1000 / 0xFF); in setAlphaReference()