Fixed bug in CanUseSmallAlignment function

Thanks @danielkrupinski !
This commit is contained in:
Adam Sawicki 2022-01-28 14:17:45 +01:00
parent 0e558a5577
commit 721d65a5a4

View File

@ -708,8 +708,8 @@ static bool CanUseSmallAlignment(const D3D12_RESOURCE_DESC_T& resourceDesc)
if(IsFormatCompressed(resourceDesc.Format))
{
sizeX = DivideRoundingUp(sizeX / 4, 1u);
sizeY = DivideRoundingUp(sizeY / 4, 1u);
sizeX = DivideRoundingUp(sizeX, 4u);
sizeY = DivideRoundingUp(sizeY, 4u);
bitsPerPixel *= 16;
}