[Vulkan] Use a static function for texture invalidation callbacks

This commit is contained in:
DrChat
2018-02-09 16:58:56 -06:00
parent 9e79babde0
commit 455dfeb39f
2 changed files with 21 additions and 31 deletions

View File

@@ -134,6 +134,9 @@ class TextureCache {
VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT);
bool FreeTexture(Texture* texture);
static void WatchCallback(void* context_ptr, void* data_ptr,
uint32_t address);
// Demands a texture. If command_buffer is null and the texture hasn't been
// uploaded to graphics memory already, we will return null and bail.
Texture* Demand(const TextureInfo& texture_info,