Add inline for float16 compression and add code reference note
This commit is contained in:
@@ -240,7 +240,7 @@ float IESLoader::ExtractInR16(Array<byte>& output)
|
||||
float result = 0.0f;
|
||||
for (uint32 i = 0; i < hAnglesCount; i++)
|
||||
result += InterpolateBilinear(static_cast<float>(i), v);
|
||||
*out++ = ConvertFloatToHalf(invMaxValue * result / (float)hAnglesCount);
|
||||
*out++ = Float16Compressor::Compress(invMaxValue * result / (float)hAnglesCount);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user