/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> internal void CleanUp() { if (_disposed) { return; } if (_cache != null) { _cache.EvictCache(); } _cache = null; _disposed = true; }
/// <summary> /// Initializes a new instance of the <see cref="GorgonState{T}" /> class. /// </summary> /// <param name="graphics">The graphics interface that owns this object.</param> protected GorgonState(GorgonGraphics graphics) { Graphics = graphics; _cache = new GorgonStateCache <T>(); }