- fixed the hardware rendering precacher not to evict secondary layers of multi-layer textures.
It will now check all layers of a material. Additionally it will also delete all descriptor sets of Vulkan hardware textures before precaching to make sure that nothing here can accidentally still reference a deleted texture.
This commit is contained in:
parent
4aef99632d
commit
3ad9783d8f
10 changed files with 66 additions and 7 deletions
|
|
@ -57,9 +57,6 @@ VkHardwareTexture::~VkHardwareTexture()
|
|||
if (fb)
|
||||
{
|
||||
auto &deleteList = fb->FrameDeleteList;
|
||||
for (auto &it : mDescriptorSets)
|
||||
deleteList.Descriptors.push_back(std::move(it.second));
|
||||
mDescriptorSets.clear();
|
||||
if (mImage) deleteList.Images.push_back(std::move(mImage));
|
||||
if (mImageView) deleteList.ImageViews.push_back(std::move(mImageView));
|
||||
if (mStagingBuffer) deleteList.Buffers.push_back(std::move(mStagingBuffer));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue