HiresTextures: Support parsing DDS files directly

This leaves DDS textures using DXT1/3/5 compressed in-memory, which can
be passed directly to the backend.
This commit is contained in:
Stenzek
2017-04-16 19:30:11 +10:00
parent 68ee4fc932
commit bc8a96d713
14 changed files with 329 additions and 18 deletions

View File

@ -77,6 +77,15 @@ enum class APIType
Nothing
};
// Texture formats that videocommon can upload/use.
enum class HostTextureFormat : u32
{
RGBA8,
DXT1,
DXT3,
DXT5
};
inline u32 RGBA8ToRGBA6ToRGBA8(u32 src)
{
u32 color = src;