Add inline for float16 compression and add code reference note
This commit is contained in:
@@ -489,11 +489,11 @@ TextureTool::PixelFormatSampler PixelFormatSamplers[] =
|
||||
sizeof(Half),
|
||||
[](const void* ptr)
|
||||
{
|
||||
return Color(ConvertHalfToFloat(*(Half*)ptr), 0, 0, 1);
|
||||
return Color(Float16Compressor::Decompress(*(Half*)ptr), 0, 0, 1);
|
||||
},
|
||||
[](const void* ptr, const Color& color)
|
||||
{
|
||||
*(Half*)ptr = ConvertFloatToHalf(color.R);
|
||||
*(Half*)ptr = Float16Compressor::Compress(color.R);
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user