public bool TryGetCachedTexture(long Key, long DataSize, out GalTexture Texture) { if (TextureCache.TryGetSize(Key, out long Size) && Size == DataSize) { if (TextureCache.TryGetValue(Key, out TCE CachedTexture)) { Texture = CachedTexture.Texture; return(true); } } Texture = default(GalTexture); return(false); }
public bool TryGetCachedTexture(long Key, long DataSize, out GalImage Image) { if (TextureCache.TryGetSize(Key, out long Size) && Size == DataSize) { if (TextureCache.TryGetValue(Key, out ImageHandler CachedImage)) { Image = CachedImage.Image; return(true); } } Image = default(GalImage); return(false); }
public bool IsVboCached(long Key, long DataSize) { return(VboCache.TryGetSize(Key, out long Size) && Size == DataSize); }
public bool IsCached(long Key, long Size) { return(Cache.TryGetSize(Key, out long CachedSize) && CachedSize == Size); }
public bool IsIboCached(long Tag, long DataSize) { return(IboCache.TryGetSize(Tag, out long Size) && Size == DataSize); }