mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-07 05:52:33 -07:00
fix: incorrect layer count of texture view
This commit is contained in:
@@ -68,11 +68,7 @@ namespace Ryujinx.Graphics.Metal
|
||||
slices.location = (ulong)firstLayer;
|
||||
slices.length = 1;
|
||||
|
||||
if (info.Target == Target.Texture3D)
|
||||
{
|
||||
slices.length = (ulong)Info.Depth;
|
||||
}
|
||||
else if (info.Target != Target.Cubemap)
|
||||
if (info.Target != Target.Texture3D && info.Target != Target.Cubemap)
|
||||
{
|
||||
slices.length = (ulong)Info.Depth;
|
||||
}
|
||||
|
Reference in New Issue
Block a user