public void Dispose() { _vb?.Dispose(); _ib?.Dispose(); _material?.Dispose(); _texture?.Dispose(); _textureBinding?.Dispose(); _wireframeState?.Dispose(); }
protected override void Removed(SystemRegistry registry) { _vb?.Dispose(); _ib?.Dispose(); _material?.Dispose(); _rasterizerState?.Dispose(); _cubemapBinding?.Dispose(); _cubemapBinding?.BoundTexture?.Dispose(); }