Implement R16 texture format (#147)
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Ryujinx.Graphics.Gal
|
||||
B5G6R5 = 0x15,
|
||||
BC7U = 0x17,
|
||||
G8R8 = 0x18,
|
||||
R16 = 0x1b,
|
||||
R8 = 0x1d,
|
||||
BC1 = 0x24,
|
||||
BC2 = 0x25,
|
||||
|
@@ -66,6 +66,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||
case GalTextureFormat.A1B5G5R5: return (PixelFormat.Rgba, PixelType.UnsignedShort5551);
|
||||
case GalTextureFormat.B5G6R5: return (PixelFormat.Rgb, PixelType.UnsignedShort565);
|
||||
case GalTextureFormat.G8R8: return (PixelFormat.Rg, PixelType.UnsignedByte);
|
||||
case GalTextureFormat.R16: return (PixelFormat.Red, PixelType.HalfFloat);
|
||||
case GalTextureFormat.R8: return (PixelFormat.Red, PixelType.UnsignedByte);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user