/// <summary> /// Release the memory from the VRAM. /// </summary> public void ReleaseMemory() { StagingBuffer?.Dispose(); StagingBuffer = null; IndexBuffer?.Dispose(); IndexBuffer = null; StagingVRAM?.Free(); VertexVRAM?.Free(); }
public virtual void Dispose() { StagingBuffer.Dispose(); DeviceBuffer.Dispose(); }