Vulkan refactoring - Eliminated KRTexture::m_iHandle

This commit is contained in:
2022-07-18 22:30:36 -07:00
parent 41679f0497
commit c8af34bc0b
2 changed files with 2 additions and 4 deletions

View File

@@ -39,7 +39,6 @@ KRTexture::KRTexture(KRContext &context, std::string name) : KRResource(context,
{ {
m_current_lod_max_dim = 0; m_current_lod_max_dim = 0;
m_new_lod_max_dim = 0; m_new_lod_max_dim = 0;
m_iHandle = 0;
m_textureMemUsed = 0; m_textureMemUsed = 0;
m_newTextureMemUsed = 0; m_newTextureMemUsed = 0;
m_last_frame_used = 0; m_last_frame_used = 0;
@@ -122,8 +121,9 @@ void KRTexture::resize(int max_dim)
} }
GLuint KRTexture::getHandle() { GLuint KRTexture::getHandle() {
assert(false); // TODO - Vulkan refactoring required
resetPoolExpiry(0.0f, KRTexture::TEXTURE_USAGE_NONE); // TODO - Pass through getHandle() arguements to replace extraneous resetPoolExpiry calls? resetPoolExpiry(0.0f, KRTexture::TEXTURE_USAGE_NONE); // TODO - Pass through getHandle() arguements to replace extraneous resetPoolExpiry calls?
return m_iHandle; return 0;
} }
void KRTexture::resetPoolExpiry(float lodCoverage, KRTexture::texture_usage_t textureUsage) void KRTexture::resetPoolExpiry(float lodCoverage, KRTexture::texture_usage_t textureUsage)

View File

@@ -101,8 +101,6 @@ protected:
std::vector<TextureHandle> m_newHandles; std::vector<TextureHandle> m_newHandles;
std::atomic_bool m_haveNewHandles; std::atomic_bool m_haveNewHandles;
// TODO - Remove m_iHandle once Vulkan refactoring complete
GLuint m_iHandle;
std::atomic_flag m_handle_lock; std::atomic_flag m_handle_lock;
int m_current_lod_max_dim; int m_current_lod_max_dim;