|
|
|
@ -334,7 +334,7 @@ public: |
|
|
|
} |
|
|
|
|
|
|
|
[[nodiscard]] bool HasAspectColorBit(size_t index) const noexcept { |
|
|
|
return (image_ranges.at(index).aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) != 0; |
|
|
|
return (image_ranges.at(rt_map[index]).aspectMask & VK_IMAGE_ASPECT_COLOR_BIT) != 0; |
|
|
|
} |
|
|
|
|
|
|
|
[[nodiscard]] bool HasAspectDepthBit() const noexcept { |
|
|
|
@ -354,6 +354,7 @@ private: |
|
|
|
u32 num_images = 0; |
|
|
|
std::array<VkImage, 9> images{}; |
|
|
|
std::array<VkImageSubresourceRange, 9> image_ranges{}; |
|
|
|
std::array<size_t, NUM_RT> rt_map{}; |
|
|
|
bool has_depth{}; |
|
|
|
bool has_stencil{}; |
|
|
|
}; |
|
|
|
|