Proper mip tail memory cleanup

Refs #882
This commit is contained in:
Sascha Willems 2021-10-17 10:45:09 +02:00
parent a5c2a8e757
commit adb0528184
2 changed files with 13 additions and 4 deletions

View file

@ -42,13 +42,15 @@ struct VirtualTexture
VkBindSparseInfo bindSparseInfo; // Sparse queue binding information
std::vector<VirtualTexturePage> pages; // Contains all virtual pages of the texture
std::vector<VkSparseImageMemoryBind> sparseImageMemoryBinds; // Sparse image memory bindings of all memory-backed virtual tables
std::vector<VkSparseMemoryBind> opaqueMemoryBinds; // Sparse ópaque memory bindings for the mip tail (if present)
std::vector<VkSparseMemoryBind> opaqueMemoryBinds; // Sparse opaque memory bindings for the mip tail (if present)
VkSparseImageMemoryBindInfo imageMemoryBindInfo; // Sparse image memory bind info
VkSparseImageOpaqueMemoryBindInfo opaqueMemoryBindInfo; // Sparse image opaque memory bind info (mip tail)
uint32_t mipTailStart; // First mip level in mip tail
VkSparseImageMemoryRequirements sparseImageMemoryRequirements; // @todo: Comment
uint32_t memoryTypeIndex; // @todo: Comment
VkSparseImageMemoryBind mipTailimageMemoryBind{};
// @todo: comment
struct MipTailInfo {
bool singleMipTail;