Vulkan: expose ANGLE_compressed_texture_etc

Bug: angleproject:4399
Change-Id: I51cd304c8726c985c5f70b78bd98c8af19d2a80d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2053889
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
Commit-Queue: Jonah Ryan-Davis <jonahr@google.com>
This commit is contained in:
Alexey Knyazev 2020-02-13 17:59:16 +04:00 коммит произвёл Commit Bot
Родитель e82ab75a4c
Коммит b79b57e047
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -47,6 +47,13 @@ void RendererVk::ensureCapsInitialized() const
mNativeExtensions.setTextureExtensionSupport(mNativeTextureCaps);
// To ensure that ETC2/EAC formats are enabled only on hardware that supports them natively,
// this flag is not set by the function above and must be set explicitly. It exposes
// ANGLE_compressed_texture_etc extension string.
mNativeExtensions.compressedTextureETC =
(mPhysicalDeviceFeatures.textureCompressionETC2 == VK_TRUE) &&
gl::DetermineCompressedTextureETCSupport(mNativeTextureCaps);
// Vulkan technically only supports the LDR profile but driver all appear to support the HDR
// profile as well. http://anglebug.com/1185#c8
mNativeExtensions.textureCompressionASTCHDRKHR = mNativeExtensions.textureCompressionASTCLDRKHR;