Vulkan: Avoid calling vkCmdClearColorImage() on compressed textures

This is not allowed according to the spec and can crash drivers. Fixes #1100
This commit is contained in:
Exzap 2024-03-08 03:12:26 +01:00
parent b8d81283e8
commit 9f9bc9865f
2 changed files with 36 additions and 23 deletions

View file

@ -130,7 +130,6 @@ class VulkanRenderer : public Renderer
using QueueFamilyIndices = SwapchainInfoVk::QueueFamilyIndices;
static const inline int UNIFORMVAR_RINGBUFFER_SIZE = 1024 * 1024 * 16; // 16MB
static const inline int INDEX_STREAM_BUFFER_SIZE = 16 * 1024 * 1024; // 16 MB
static const inline int TEXTURE_READBACK_SIZE = 32 * 1024 * 1024; // 32 MB