Beginning refactoring of KRTexture for Vulkan. Added KRTexture::TextureHandle.

This commit is contained in:
2022-07-13 23:24:46 -07:00
parent 0382c15fe3
commit 85847fd2e0
4 changed files with 31 additions and 9 deletions

View File

@@ -91,7 +91,16 @@ protected:
virtual bool createGLTexture(int lod_max_dim) = 0;
GLuint getHandle();
struct TextureHandle {
VkImage image;
KrDeviceHandle device;
VmaAllocation allocation;
};
std::vector<TextureHandle> m_handles;
std::vector<TextureHandle> m_newHandles;
// TODO - Remove m_iHandle and m_iNewHandle once Vulkan refactoring complete
GLuint m_iHandle;
GLuint m_iNewHandle;
std::atomic_flag m_handle_lock;