Setting the texture quality in HDRP using C#

I am working on an options menu for a game and one of the settings is modifying texture quality using the masterTextureLimit parameter. In standard Unity, this works without a hassle, however, in HDRP, as soon as I change this value, the scene turns black and only the UI is visible. Does HDRP have its own functions for this or am I not doing something right? Any help would be greatly appreciated.

This behaviour no longer occurred when updating to Unity 2019.3.0f3 and using HDRP 7.1.6. Not sure what was changed, possibly a bug fix.