Searched refs:convertSatRte (Results 1 – 2 of 2) sorted by relevance
226 inline T convertSatRte (float f) in convertSatRte() function255 const deUint32 rounded = convertSatRte<deUint32>(f); in convertSatRteUint24()262 const deUint16 rounded = convertSatRte<deUint16>(f); in convertSatRteUint10()269 const deUint16 rounded = convertSatRte<deUint16>(f); in convertSatRteUint12()345 …case TextureFormat::SNORM_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src * 127.0f); br… in floatToChannel()346 …case TextureFormat::SNORM_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src * 32767.0f); b… in floatToChannel()347 …case TextureFormat::SNORM_INT32: *((deInt32*)dst) = convertSatRte<deInt32> (src * 2147483647.0f)… in floatToChannel()348 …case TextureFormat::UNORM_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src * 255.0f); br… in floatToChannel()349 …case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src * 65535.0f); … in floatToChannel()351 …case TextureFormat::UNORM_INT32: *((deUint32*)dst) = convertSatRte<deUint32> (src * 4294967295.0… in floatToChannel()[all …]
716 inline T convertSatRte (float f) in convertSatRte() function889 … const deUint32 value (de::min(maxValue, (deUint32)convertSatRte<deUint32>(x * (float)maxValue))); in setChannel()897 …const deUint32 value ((deUint32)de::clamp<deInt32>(convertSatRte<deInt32>(x * (float)range), -rang… in setChannel()