private bool TryReuse(NvGpuVmm Vmm, long Position, GalImage NewImage) { if (Gpu.Renderer.Texture.TryGetImage(Position, out GalImage CachedImage) && CachedImage.SizeMatches(NewImage)) { Gpu.Renderer.RenderTarget.Reinterpret(Position, NewImage); return(true); } return(false); }