public void Dispose() { TextureResource.Dispose(); TextureResourceView.Dispose(); }
public override void Dispose() { TextureResourceView?.Dispose(); sampleState?.Dispose(); }