Most BIOS has a setting where you can adjust the amount of Integrated Graphic Memory to use by the APU. Generally, the Maximum is 2 Gbytes of Memory.
You need to know and post what Motherboard you are planning on purchasing or you have now.
Here are the Ryzen 5 2400G Specs: