- make the VkHardwareTexture and VKBuffer linked lists private

This commit is contained in:
Magnus Norddahl 2019-04-30 19:49:29 +02:00
commit ab8378152f
5 changed files with 25 additions and 13 deletions

View file

@ -56,6 +56,12 @@ VkHardwareTexture::~VkHardwareTexture()
Reset();
}
void VkHardwareTexture::ResetAll()
{
for (VkHardwareTexture *cur = VkHardwareTexture::First; cur; cur = cur->Next)
cur->Reset();
}
void VkHardwareTexture::Reset()
{
if (auto fb = GetVulkanFrameBuffer())