mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
68848000f7
* Texture: Fix 3D texture size when totalBlocksOfGobsInZ > 0 When there is a remainder when dividing depth by gobs in z, it is used to remove the unused part of the 3D texture's size. This was done to calculate correct sizes for single slice views of 3D textures. However, this case can also apply to 3D textures with many slices, and more than one total block of gobs in z. In this case it's meant to trim off the end of the level size. Most textures won't encounter this as their size will be aligned, but UE4 games tend to use 3D textures with funny unaligned sizes. The size offset should have been applied to the level size instead of the slice size, and it should only affect the slice size if it ends up larger. Hopefully should fix issues with UE4 games without breaking other stuff, I don't have much time to test. * Whoops |
||
---|---|---|
.. | ||
Astc | ||
Encoders | ||
Utils | ||
BC6Decoder.cs | ||
BC7Decoder.cs | ||
BCnDecoder.cs | ||
BCnEncoder.cs | ||
BlockLinearConstants.cs | ||
BlockLinearLayout.cs | ||
Bpp12Pixel.cs | ||
ETC2Decoder.cs | ||
LayoutConverter.cs | ||
OffsetCalculator.cs | ||
PixelConverter.cs | ||
Region.cs | ||
Ryujinx.Graphics.Texture.csproj | ||
Size.cs | ||
SizeCalculator.cs | ||
SizeInfo.cs |