mirror of
				https://github.com/ryujinx-mirror/ryujinx.git
				synced 2025-11-04 03:29:01 -06:00 
			
		
		
		
	Fix incorrect depth texture 3D flag (#7262)
This commit is contained in:
		@@ -415,7 +415,13 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
 | 
			
		||||
#pragma warning disable CS0649 // Field is never assigned to
 | 
			
		||||
        public int Width;
 | 
			
		||||
        public int Height;
 | 
			
		||||
        public int Depth;
 | 
			
		||||
        public ushort Depth;
 | 
			
		||||
        public ushort Flags;
 | 
			
		||||
 | 
			
		||||
        public readonly bool UnpackIsLayered()
 | 
			
		||||
        {
 | 
			
		||||
            return (Flags & 1) == 0;
 | 
			
		||||
        }
 | 
			
		||||
#pragma warning restore CS0649
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -468,13 +468,11 @@ namespace Ryujinx.Graphics.Gpu.Image
 | 
			
		||||
            int gobBlocksInY = dsState.MemoryLayout.UnpackGobBlocksInY();
 | 
			
		||||
            int gobBlocksInZ = dsState.MemoryLayout.UnpackGobBlocksInZ();
 | 
			
		||||
 | 
			
		||||
            layered &= size.UnpackIsLayered();
 | 
			
		||||
 | 
			
		||||
            Target target;
 | 
			
		||||
 | 
			
		||||
            if (dsState.MemoryLayout.UnpackIsTarget3D())
 | 
			
		||||
            {
 | 
			
		||||
                target = Target.Texture3D;
 | 
			
		||||
            }
 | 
			
		||||
            else if ((samplesInX | samplesInY) != 1)
 | 
			
		||||
            if ((samplesInX | samplesInY) != 1)
 | 
			
		||||
            {
 | 
			
		||||
                target = size.Depth > 1 && layered
 | 
			
		||||
                    ? Target.Texture2DMultisampleArray
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user