#pragma once #include namespace mlx { void ImageRegistry::RegisterTexture(NonOwningPtr texture) { m_textures_registry.insert(texture); } void ImageRegistry::UnregisterTexture(NonOwningPtr texture) { m_textures_registry.erase(texture); } bool ImageRegistry::IsTextureKnown(NonOwningPtr texture) { return m_textures_registry.find(texture) != m_textures_registry.end(); } }