public void Dispose() { if (_disposed) { return; } DeviceManager.Dispose(); MaterialManager.Dispose(); TextureResourceManager.Dispose(); TextureSamplerManager.Dispose(); BlendStateManager.Dispose(); RasterizerStateManager.Dispose(); _disposed = true; }