|
|
@ -817,9 +817,10 @@ bool Device::ComputeIsOptimalAstcSupported() const { |
|
|
if (!features.features.textureCompressionASTC_LDR) { |
|
|
if (!features.features.textureCompressionASTC_LDR) { |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
const auto format_feature_usage{ |
|
|
|
|
|
VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT | VK_FORMAT_FEATURE_BLIT_SRC_BIT | |
|
|
|
|
|
VK_FORMAT_FEATURE_BLIT_DST_BIT | VK_FORMAT_FEATURE_TRANSFER_SRC_BIT | |
|
|
|
|
|
|
|
|
const auto format_feature_usage{VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT | |
|
|
|
|
|
VK_FORMAT_FEATURE_BLIT_SRC_BIT | |
|
|
|
|
|
VK_FORMAT_FEATURE_BLIT_DST_BIT | |
|
|
|
|
|
VK_FORMAT_FEATURE_TRANSFER_SRC_BIT | |
|
|
VK_FORMAT_FEATURE_TRANSFER_DST_BIT}; |
|
|
VK_FORMAT_FEATURE_TRANSFER_DST_BIT}; |
|
|
for (const auto format : astc_formats) { |
|
|
for (const auto format : astc_formats) { |
|
|
const auto physical_format_properties{physical.GetFormatProperties(format)}; |
|
|
const auto physical_format_properties{physical.GetFormatProperties(format)}; |
|
|
|