mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-01 02:51:41 +00:00
[TEST] ASTC fixes
This commit is contained in:
@@ -837,7 +837,8 @@ bool Device::ComputeIsOptimalAstcSupported() const {
|
||||
VK_FORMAT_ASTC_12x10_UNORM_BLOCK, VK_FORMAT_ASTC_12x10_SRGB_BLOCK,
|
||||
VK_FORMAT_ASTC_12x12_UNORM_BLOCK, VK_FORMAT_ASTC_12x12_SRGB_BLOCK,
|
||||
};
|
||||
if (!features.features.textureCompressionASTC_LDR) {
|
||||
if (!features.features.textureCompressionASTC_LDR ||
|
||||
!features.texture_compression_astc_hdr.textureCompressionASTC_HDR) {
|
||||
return false;
|
||||
}
|
||||
const auto format_feature_usage{VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT |
|
||||
|
||||
@@ -380,8 +380,7 @@ FN_MAX_LIMIT_LIST
|
||||
}
|
||||
|
||||
bool IsOptimalAstcSupported() const {
|
||||
return features.features.textureCompressionASTC_LDR &&
|
||||
features.texture_compression_astc_hdr.textureCompressionASTC_HDR;
|
||||
return is_optimal_astc_supported;
|
||||
}
|
||||
|
||||
/// Returns true if BCn is natively supported.
|
||||
|
||||
Reference in New Issue
Block a user