Remove unused 'PixelFormatExtensions::ComputeScanlineCount'

This commit is contained in:
Wojtek Figat
2023-12-18 09:55:17 +01:00
parent 4726552d8b
commit 5958b2f4ea
2 changed files with 0 additions and 41 deletions

View File

@@ -537,39 +537,6 @@ bool PixelFormatExtensions::IsInteger(const PixelFormat format)
}
}
int32 PixelFormatExtensions::ComputeScanlineCount(const PixelFormat format, int32 height)
{
switch (format)
{
case PixelFormat::BC1_Typeless:
case PixelFormat::BC1_UNorm:
case PixelFormat::BC1_UNorm_sRGB:
case PixelFormat::BC2_Typeless:
case PixelFormat::BC2_UNorm:
case PixelFormat::BC2_UNorm_sRGB:
case PixelFormat::BC3_Typeless:
case PixelFormat::BC3_UNorm:
case PixelFormat::BC3_UNorm_sRGB:
case PixelFormat::BC4_Typeless:
case PixelFormat::BC4_UNorm:
case PixelFormat::BC4_SNorm:
case PixelFormat::BC5_Typeless:
case PixelFormat::BC5_UNorm:
case PixelFormat::BC5_SNorm:
case PixelFormat::BC6H_Typeless:
case PixelFormat::BC6H_Uf16:
case PixelFormat::BC6H_Sf16:
case PixelFormat::BC7_Typeless:
case PixelFormat::BC7_UNorm:
case PixelFormat::BC7_UNorm_sRGB:
case PixelFormat::ASTC_4x4_UNorm:
case PixelFormat::ASTC_4x4_UNorm_sRGB:
return Math::Max(1, (height + 3) / 4);
default:
return height;
}
}
int32 PixelFormatExtensions::ComputeComponentsCount(const PixelFormat format)
{
switch (format)