don't recreate render pipeline unless we're about to draw, pass view depth properly (#22)

This commit is contained in:
riperiperi
2024-06-19 23:14:23 +01:00
committed by Isaac Marovitz
parent 58b3e2e82b
commit 02de48a6f2
3 changed files with 16 additions and 18 deletions

View File

@@ -46,12 +46,7 @@ namespace Ryujinx.Graphics.Metal
levels.length = (ulong)Info.Levels;
NSRange slices;
slices.location = (ulong)firstLayer;
slices.length = 1;
if (info.Target != Target.Texture3D && info.Target != Target.Cubemap)
{
slices.length = (ulong)Info.Depth;
}
slices.length = (ulong)Info.Depth;
var swizzle = GetSwizzle(info, pixelFormat);