mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-01-19 01:43:44 +00:00
fix: incorrect layer count of texture view
This commit is contained in:
parent
f5cffa0b46
commit
bd14efb220
@ -51,7 +51,7 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
|
|
||||||
public void BackgroundContextAction(Action action, bool alwaysBackground = false)
|
public void BackgroundContextAction(Action action, bool alwaysBackground = false)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
Logger.Warning?.Print(LogClass.Gpu, "Not Implemented!");
|
||||||
}
|
}
|
||||||
|
|
||||||
public BufferHandle CreateBuffer(int size, BufferAccess access, BufferHandle storageHint)
|
public BufferHandle CreateBuffer(int size, BufferAccess access, BufferHandle storageHint)
|
||||||
|
@ -68,11 +68,7 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
slices.location = (ulong)firstLayer;
|
slices.location = (ulong)firstLayer;
|
||||||
slices.length = 1;
|
slices.length = 1;
|
||||||
|
|
||||||
if (info.Target == Target.Texture3D)
|
if (info.Target != Target.Texture3D && info.Target != Target.Cubemap)
|
||||||
{
|
|
||||||
slices.length = (ulong)Info.Depth;
|
|
||||||
}
|
|
||||||
else if (info.Target != Target.Cubemap)
|
|
||||||
{
|
{
|
||||||
slices.length = (ulong)Info.Depth;
|
slices.length = (ulong)Info.Depth;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user