Просмотр исходного кода

Fast D32S8 2D depth texture copy (#6636)

gdkchan 2 лет назад
Родитель
Сommit
80201466ae
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs

+ 4 - 0
src/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs

@@ -247,6 +247,10 @@ namespace Ryujinx.Graphics.Gpu.Image
                 {
                     return TextureMatchQuality.FormatAlias;
                 }
+                else if (lhs.FormatInfo.Format == Format.D32FloatS8Uint && rhs.FormatInfo.Format == Format.R32G32Float)
+                {
+                    return TextureMatchQuality.FormatAlias;
+                }
             }
 
             return lhs.FormatInfo.Format == rhs.FormatInfo.Format ? TextureMatchQuality.Perfect : TextureMatchQuality.NoMatch;