From 6738df64f49e30eda3e90548e40440d71fa76f1f Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Wed, 12 Mar 2014 18:43:48 -0400 Subject: [PATCH] Add ASTC values to KTX loader --- IO/src/ImageLoaderKTX.cpp | 57 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/IO/src/ImageLoaderKTX.cpp b/IO/src/ImageLoaderKTX.cpp index 50f3511..4e05201 100644 --- a/IO/src/ImageLoaderKTX.cpp +++ b/IO/src/ImageLoaderKTX.cpp @@ -279,6 +279,63 @@ bool ImageLoaderKTX::ReadData() { case GL_COMPRESSED_RGBA_BPTC_UNORM: m_Format = FasTC::eCompressionFormat_BPTC; break; + + case COMPRESSED_RGBA_ASTC_4x4_KHR: + m_Format = FasTC::eCompressionFormat_ASTC4x4; + break; + + case COMPRESSED_RGBA_ASTC_5x4_KHR: + m_Format = FasTC::eCompressionFormat_ASTC5x4; + break; + + case COMPRESSED_RGBA_ASTC_5x5_KHR: + m_Format = FasTC::eCompressionFormat_ASTC5x5; + break; + + case COMPRESSED_RGBA_ASTC_6x5_KHR: + m_Format = FasTC::eCompressionFormat_ASTC6x5; + break; + + case COMPRESSED_RGBA_ASTC_6x6_KHR: + m_Format = FasTC::eCompressionFormat_ASTC6x6; + break; + + case COMPRESSED_RGBA_ASTC_8x5_KHR: + m_Format = FasTC::eCompressionFormat_ASTC8x5; + break; + + case COMPRESSED_RGBA_ASTC_8x6_KHR: + m_Format = FasTC::eCompressionFormat_ASTC8x6; + break; + + case COMPRESSED_RGBA_ASTC_8x8_KHR: + m_Format = FasTC::eCompressionFormat_ASTC8x8; + break; + + case COMPRESSED_RGBA_ASTC_10x5_KHR: + m_Format = FasTC::eCompressionFormat_ASTC10x5; + break; + + case COMPRESSED_RGBA_ASTC_10x6_KHR: + m_Format = FasTC::eCompressionFormat_ASTC10x6; + break; + + case COMPRESSED_RGBA_ASTC_10x8_KHR: + m_Format = FasTC::eCompressionFormat_ASTC10x8; + break; + + case COMPRESSED_RGBA_ASTC_10x10_KHR: + m_Format = FasTC::eCompressionFormat_ASTC10x10; + break; + + case COMPRESSED_RGBA_ASTC_12x10_KHR: + m_Format = FasTC::eCompressionFormat_ASTC12x10; + break; + + case COMPRESSED_RGBA_ASTC_12x12_KHR: + m_Format = FasTC::eCompressionFormat_ASTC12x12; + break; + default: fprintf(stderr, "KTX loader - texture format (0x%x) unsupported!\n", glInternalFormat); return false;