2018-09-08 13:51:50 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
2018-08-19 21:25:26 -04:00
|
|
|
|
{
|
2018-09-08 13:51:50 -04:00
|
|
|
|
[Flags]
|
2018-08-19 21:25:26 -04:00
|
|
|
|
public enum GalImageFormat
|
|
|
|
|
{
|
2018-09-08 13:51:50 -04:00
|
|
|
|
Snorm = 1 << 27,
|
|
|
|
|
Unorm = 1 << 28,
|
|
|
|
|
Sint = 1 << 29,
|
|
|
|
|
Uint = 1 << 30,
|
|
|
|
|
Sfloat = 1 << 31,
|
2018-08-19 21:25:26 -04:00
|
|
|
|
|
2018-09-08 13:51:50 -04:00
|
|
|
|
TypeMask = Snorm | Unorm | Sint | Uint | Sfloat,
|
2018-08-19 21:25:26 -04:00
|
|
|
|
|
2018-09-08 13:51:50 -04:00
|
|
|
|
FormatMask = ~TypeMask,
|
2018-08-19 21:25:26 -04:00
|
|
|
|
|
2018-09-08 13:51:50 -04:00
|
|
|
|
ASTC_BEGIN = ASTC_4x4,
|
2018-08-19 21:25:26 -04:00
|
|
|
|
|
2018-09-08 13:51:50 -04:00
|
|
|
|
ASTC_4x4 = 1,
|
|
|
|
|
ASTC_5x4,
|
|
|
|
|
ASTC_5x5,
|
|
|
|
|
ASTC_6x5,
|
|
|
|
|
ASTC_6x6,
|
|
|
|
|
ASTC_8x5,
|
|
|
|
|
ASTC_8x6,
|
|
|
|
|
ASTC_8x8,
|
|
|
|
|
ASTC_10x5,
|
|
|
|
|
ASTC_10x6,
|
|
|
|
|
ASTC_10x8,
|
|
|
|
|
ASTC_10x10,
|
|
|
|
|
ASTC_12x10,
|
|
|
|
|
ASTC_12x12,
|
2018-08-19 21:25:26 -04:00
|
|
|
|
|
2018-09-08 13:51:50 -04:00
|
|
|
|
ASTC_END = ASTC_12x12,
|
2018-08-19 21:25:26 -04:00
|
|
|
|
|
2018-09-08 13:51:50 -04:00
|
|
|
|
R4G4,
|
|
|
|
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