Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public bool IsVboCached(long Key, long DataSize)
 {
     return(VboCache.TryGetSize(Key, out long Size) && Size == DataSize);
 }
Beispiel #4
0
 public bool IsCached(long Key, long Size)
 {
     return(Cache.TryGetSize(Key, out long CachedSize) && CachedSize == Size);
 }
Beispiel #5
0
 public bool IsIboCached(long Tag, long DataSize)
 {
     return(IboCache.TryGetSize(Tag, out long Size) && Size == DataSize);
 }