mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-31 06:47:09 +02:00
Apply new naming rule to all projects except Vp9 (#5407)
This commit is contained in:
parent
1ae3d313f4
commit
a0f9f6d566
42 changed files with 334 additions and 335 deletions
|
@ -354,16 +354,16 @@ namespace Ryujinx.HLE.HOS.Services.Vi.RootService
|
|||
|
||||
private ulong GetA8B8G8R8LayerSize(int width, int height, out int pitch, out int alignment)
|
||||
{
|
||||
const int defaultAlignment = 0x1000;
|
||||
const ulong defaultSize = 0x20000;
|
||||
const int DefaultAlignment = 0x1000;
|
||||
const ulong DefaultSize = 0x20000;
|
||||
|
||||
alignment = defaultAlignment;
|
||||
alignment = DefaultAlignment;
|
||||
pitch = BitUtils.AlignUp(BitUtils.DivRoundUp(width * 32, 8), 64);
|
||||
|
||||
int memorySize = pitch * BitUtils.AlignUp(height, 64);
|
||||
ulong requiredMemorySize = (ulong)BitUtils.AlignUp(memorySize, alignment);
|
||||
|
||||
return (requiredMemorySize + defaultSize - 1) / defaultSize * defaultSize;
|
||||
return (requiredMemorySize + DefaultSize - 1) / DefaultSize * DefaultSize;
|
||||
}
|
||||
|
||||
[CommandCmif(2450)]
|
||||
|
@ -484,4 +484,4 @@ namespace Ryujinx.HLE.HOS.Services.Vi.RootService
|
|||
return ResultCode.Success;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue