diff --git a/Source/Engine/Graphics/PixelFormatExtensions.cpp b/Source/Engine/Graphics/PixelFormatExtensions.cpp index 00aa76f5f..fafda87bf 100644 --- a/Source/Engine/Graphics/PixelFormatExtensions.cpp +++ b/Source/Engine/Graphics/PixelFormatExtensions.cpp @@ -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) diff --git a/Source/Engine/Graphics/PixelFormatExtensions.h b/Source/Engine/Graphics/PixelFormatExtensions.h index 8739cbadc..7b793cdfd 100644 --- a/Source/Engine/Graphics/PixelFormatExtensions.h +++ b/Source/Engine/Graphics/PixelFormatExtensions.h @@ -165,14 +165,6 @@ public: /// True if given format contains integer data type (signed or unsigned), otherwise false. API_FUNCTION() static bool IsInteger(PixelFormat format); - /// - /// Computes the scanline count (number of scanlines). - /// - /// The . - /// The height. - /// The scanline count. - API_FUNCTION() static int32 ComputeScanlineCount(PixelFormat format, int32 height); - /// /// Computes the format components count (number of R, G, B, A channels). ///