From bb6557c2373d982d37ac16853b9c1fd389860da0 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 5 Feb 2020 19:46:50 +0000 Subject: [PATCH] Allocate more bits for aspectMask in packed image subresource range --- renderdoc/driver/vulkan/vk_resources.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/vulkan/vk_resources.h b/renderdoc/driver/vulkan/vk_resources.h index af40b27a0..11fb76201 100644 --- a/renderdoc/driver/vulkan/vk_resources.h +++ b/renderdoc/driver/vulkan/vk_resources.h @@ -2298,8 +2298,8 @@ public: // Stored as uint32_t instead of VkImageViewType to prevent signed extension. uint32_t packedViewType : 3; - // only need 4 bits for the aspects - uint32_t aspectMask : 4; + // need 7 bits for the aspects including planes + uint32_t aspectMask : 7; // 6 bits = refer to up to 62 mips = bloody huge textures. // note we also need to pack in VK_REMAINING_MIPS etc so we can't