Beispiel #1
0
    internal static void UnmarkOwned(SurfaceFormat format, int texels)
    {
        texels.AssertPositiveOrZero();
        var size = format.SizeBytesLong(texels);

        Unmark(size);
    }
Beispiel #2
0
    internal static void UnmarkUnowned(SurfaceFormat format, int texels)
    {
        if (!Config.Garbage.CollectAccountUnownedTextures)
        {
            return;
        }
        texels.AssertPositiveOrZero();
        var size = format.SizeBytesLong(texels);

        Unmark(size);
    }