2019-10-13 00:02:07 -06:00
|
|
|
using OpenTK.Graphics.OpenGL;
|
|
|
|
|
2019-12-28 16:45:33 -07:00
|
|
|
namespace Ryujinx.Graphics.OpenGL
|
2019-10-13 00:02:07 -06:00
|
|
|
{
|
2022-12-05 06:47:39 -07:00
|
|
|
readonly struct FormatInfo
|
2019-10-13 00:02:07 -06:00
|
|
|
{
|
|
|
|
public int Components { get; }
|
|
|
|
public bool Normalized { get; }
|
|
|
|
public bool Scaled { get; }
|
|
|
|
|
|
|
|
public PixelInternalFormat PixelInternalFormat { get; }
|
|
|
|
public PixelFormat PixelFormat { get; }
|
|
|
|
public PixelType PixelType { get; }
|
|
|
|
|
|
|
|
public bool IsCompressed { get; }
|
|
|
|
|
|
|
|
public FormatInfo(
|
|
|
|
int components,
|
|
|
|
bool normalized,
|
|
|
|
bool scaled,
|
|
|
|
All pixelInternalFormat,
|
|
|
|
PixelFormat pixelFormat,
|
|
|
|
PixelType pixelType)
|
|
|
|
{
|
|
|
|
Components = components;
|
|
|
|
Normalized = normalized;
|
|
|
|
Scaled = scaled;
|
|
|
|
PixelInternalFormat = (PixelInternalFormat)pixelInternalFormat;
|
|
|
|
PixelFormat = pixelFormat;
|
|
|
|
PixelType = pixelType;
|
|
|
|
IsCompressed = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public FormatInfo(int components, bool normalized, bool scaled, All pixelFormat)
|
|
|
|
{
|
|
|
|
Components = components;
|
|
|
|
Normalized = normalized;
|
|
|
|
Scaled = scaled;
|
|
|
|
PixelInternalFormat = 0;
|
|
|
|
PixelFormat = (PixelFormat)pixelFormat;
|
|
|
|
PixelType = 0;
|
|
|
|
IsCompressed = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|