[Vulkan] Single block-compressed flag for host texture formats, not block sizes

This commit is contained in:
Triang3l
2022-05-23 13:27:43 +03:00
parent f7b0edee6b
commit f994d3ebb3
2 changed files with 25 additions and 32 deletions

View File

@@ -121,8 +121,10 @@ class VulkanTextureCache final : public TextureCache {
// set to 1 though), add a constant buffer containing multipliers for the
// textures and multiplication to the tfetch implementation.
VkFormat format;
uint32_t block_width_log2;
uint32_t block_height_log2;
// Whether the format is block-compressed on the host (the host block size
// matches the guest format block size in this case), and isn't decompressed
// on load.
bool block_compressed;
// Set up dynamically based on what's supported by the device.
bool linear_filterable;