Beispiel #1
0
        public static void UnmarkUnowned(SurfaceFormat format, int texels)
        {
            if (!Config.GarbageCollectAccountUnownedTextures)
            {
                return;
            }
            Contract.AssertPositiveOrZero(texels);
            var size = format.SizeBytes(texels);

            Unmark(size);
        }
Beispiel #2
0
 internal readonly long SizeBytes(int area)
 {
     return(surfaceFormat.SizeBytes(area));
 }
 internal long SizeBytes(int area) => SurfaceFormat.SizeBytes(area);