diff options
| author | Stenzek <stenzek@users.noreply.github.com> | 2017-08-01 12:39:20 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-01 12:39:19 +1000 |
| commit | fe65b26d53606fb9edf7e0db0e5b2c52f1ea3978 (patch) | |
| tree | 3183a95deab2f3f5a2a61de84fd03680fc28204d /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | |
| parent | b93d118cef8dd8dd85bf662f5ad4abb083610d3e (diff) | |
| parent | 63305e917328d0ce9f3db6def51eaa67f23880ec (diff) | |
Merge pull request #5834 from stenzek/bc7
Support loading BC7 (BPTC) textures from DDS files
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/VulkanContext.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp index af9e249833..8bb7a5088e 100644 --- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp +++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp @@ -248,6 +248,7 @@ void VulkanContext::PopulateBackendInfo(VideoConfig* config) config->backend_info.bSupportsSSAA = false; // Dependent on features. config->backend_info.bSupportsDepthClamp = false; // Dependent on features. config->backend_info.bSupportsST3CTextures = false; // Dependent on features. + config->backend_info.bSupportsBPTCTextures = false; // Dependent on features. config->backend_info.bSupportsReversedDepthRange = false; // No support yet due to driver bugs. } @@ -287,7 +288,9 @@ void VulkanContext::PopulateBackendInfoFeatures(VideoConfig* config, VkPhysicalD (features.depthClamp == VK_TRUE && features.shaderClipDistance == VK_TRUE); // textureCompressionBC implies BC1 through BC7, which is a superset of DXT1/3/5, which we need. - config->backend_info.bSupportsST3CTextures = features.textureCompressionBC == VK_TRUE; + const bool supports_bc = features.textureCompressionBC == VK_TRUE; + config->backend_info.bSupportsST3CTextures = supports_bc; + config->backend_info.bSupportsBPTCTextures = supports_bc; // Our usage of primitive restart appears to be broken on AMD's binary drivers. // Seems to be fine on GCN Gen 1-2, unconfirmed on GCN Gen 3, causes driver resets on GCN Gen 4. |
