mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-25 02:33:02 -03:00
Fix cubemap array length
Fixes crash in Sonic Frontiers
This commit is contained in:
parent
c0d20f8689
commit
b5e6f26296
1 changed files with 8 additions and 1 deletions
|
@ -35,7 +35,14 @@ namespace Ryujinx.Graphics.Metal
|
||||||
}
|
}
|
||||||
else if (info.Target != Target.Cubemap)
|
else if (info.Target != Target.Cubemap)
|
||||||
{
|
{
|
||||||
descriptor.ArrayLength = (ulong)Info.Depth;
|
if (info.Target == Target.CubemapArray)
|
||||||
|
{
|
||||||
|
descriptor.ArrayLength = (ulong)(Info.Depth / 6);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
descriptor.ArrayLength = (ulong)Info.Depth;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MTLTextureSwizzleChannels swizzle = GetSwizzle(info, descriptor.PixelFormat);
|
MTLTextureSwizzleChannels swizzle = GetSwizzle(info, descriptor.PixelFormat);
|
||||||
|
|
Loading…
Add table
Reference in a new issue