HorrorTroll 7 лет назад
Родитель
Сommit
e7fe7d7247

+ 1 - 0
Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs

@@ -136,6 +136,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
                 case GalImageFormat.RGBA16    | GalImageFormat.Float: return (PixelInternalFormat.Rgba16f,      PixelFormat.Rgba,        PixelType.HalfFloat);
                 case GalImageFormat.RGBA16    | GalImageFormat.Sint:  return (PixelInternalFormat.Rgba16i,      PixelFormat.RgbaInteger, PixelType.Short);
                 case GalImageFormat.RGBA16    | GalImageFormat.Uint:  return (PixelInternalFormat.Rgba16ui,     PixelFormat.RgbaInteger, PixelType.UnsignedShort);
+                case GalImageFormat.RGBA16    | GalImageFormat.Unorm: return (PixelInternalFormat.Rgba16,       PixelFormat.Rgba,        PixelType.UnsignedShort);
                 case GalImageFormat.RG32      | GalImageFormat.Float: return (PixelInternalFormat.Rg32f,        PixelFormat.Rg,          PixelType.Float);
                 case GalImageFormat.RG32      | GalImageFormat.Sint:  return (PixelInternalFormat.Rg32i,        PixelFormat.RgInteger,   PixelType.Int);
                 case GalImageFormat.RG32      | GalImageFormat.Uint:  return (PixelInternalFormat.Rg32ui,       PixelFormat.RgInteger,   PixelType.UnsignedInt);

+ 1 - 0
Ryujinx.Graphics/Texture/ImageUtils.cs

@@ -176,6 +176,7 @@ namespace Ryujinx.Graphics.Texture
                 case GalSurfaceFormat.RGBA32Float:    return GalImageFormat.RGBA32    | Float;
                 case GalSurfaceFormat.RGBA32Uint:     return GalImageFormat.RGBA32    | Uint;
                 case GalSurfaceFormat.RGBA16Float:    return GalImageFormat.RGBA16    | Float;
+                case GalSurfaceFormat.RGBA16Unorm:    return GalImageFormat.RGBA16    | Unorm;
                 case GalSurfaceFormat.RG32Float:      return GalImageFormat.RG32      | Float;
                 case GalSurfaceFormat.RG32Sint:       return GalImageFormat.RG32      | Sint;
                 case GalSurfaceFormat.RG32Uint:       return GalImageFormat.RG32      | Uint;