don't recreate render pipeline unless we're about to draw, pass view depth properly (#22)
This commit is contained in:
parent
58b3e2e82b
commit
02de48a6f2
3 changed files with 16 additions and 18 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue