From 2f8939886bd3778839d4643270f9a9e2f5ecb4f5 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Thu, 9 Mar 2017 21:49:24 +0100 Subject: [PATCH] Added ETC2 and ASTC texture variants (Refs #174) --- scenerendering/scenerendering.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scenerendering/scenerendering.cpp b/scenerendering/scenerendering.cpp index d9b22489..91e213e6 100644 --- a/scenerendering/scenerendering.cpp +++ b/scenerendering/scenerendering.cpp @@ -155,10 +155,10 @@ private: texFormatSuffix = "_bc3_unorm"; texFormat = VK_FORMAT_BC3_UNORM_BLOCK; } - //else if (vulkanDevice->features.textureCompressionASTC_LDR) { - // texFormatSuffix = "_astc_8x8_unorm"; - // texFormat = VK_FORMAT_ASTC_8x8_UNORM_BLOCK; - //} + else if (vulkanDevice->features.textureCompressionASTC_LDR) { + texFormatSuffix = "_astc_8x8_unorm"; + texFormat = VK_FORMAT_ASTC_8x8_UNORM_BLOCK; + } else if (vulkanDevice->features.textureCompressionETC2) { texFormatSuffix = "_etc2_unorm"; texFormat = VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK;