mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
ce1d5be212
* Move GPU LLE emulation from HLE to Graphics * Graphics: Move Gal/Texture to Texture * Remove Engines/ directory and namespace * Use tables for image formats * Abstract OpCode decoding * Simplify image table * Do not leak Read* symbols in TextureReader * Fixups * Rename IGalFrameBuffer -> IGalRenderTarget * Remove MaxBpp hardcoded value * Change yet again texture data and add G8R8 flipping * Rename GalFrameBufferFormat to GalSurfaceFormat * Unident EnsureSetup in ImageHandler * Add IsCompressed * Address some feedback
93 lines
1.6 KiB
C#
93 lines
1.6 KiB
C#
using System;
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
{
|
|
[Flags]
|
|
public enum GalImageFormat
|
|
{
|
|
Snorm = 1 << 27,
|
|
Unorm = 1 << 28,
|
|
Sint = 1 << 29,
|
|
Uint = 1 << 30,
|
|
Sfloat = 1 << 31,
|
|
|
|
TypeMask = Snorm | Unorm | Sint | Uint | Sfloat,
|
|
|
|
FormatMask = ~TypeMask,
|
|
|
|
ASTC_BEGIN = ASTC_4x4,
|
|
|
|
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,
|
|
|
|
ASTC_END = ASTC_12x12,
|
|
|
|
R4G4,
|
|
R4G4B4A4,
|
|
B4G4R4A4,
|
|
A4B4G4R4,
|
|
R5G6B5,
|
|
B5G6R5,
|
|
R5G5B5A1,
|
|
B5G5R5A1,
|
|
A1R5G5B5,
|
|
R8,
|
|
R8G8,
|
|
G8R8,
|
|
R8G8B8,
|
|
B8G8R8,
|
|
R8G8B8A8,
|
|
B8G8R8A8,
|
|
A8B8G8R8,
|
|
A8B8G8R8_SRGB,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