How to change ram allocated to graphics?

How in Ubuntu 22.04 do you view/edit the amount of dedicated memory to the graphics?