Shared memory is just the amount of extra memory the graphics card is aloud to use if it surpasses the amount of dedicated memory(whats on the card), it can come from ur R.A.M or your HDD/SDD depending on how much youve allocated ur page file.
Dedicated memiry in your gpu is a real ram of your card and when in game you have to low memory then te gpu can take memory from hdd or ram memory system but this memory is very slow
Just read in google dedicated vs shared memory