Just as a heads up, you're going to start seeing this a lot more going forward, I think. The latest version of Adobe CC (2022 version) has made a change in the last update a few days ago so that photoshop/illustrator now show a warning every time you launch it saying that the graphics processor is incompatible (OpenCL Unavailable, DirectX Unavailable, Insufficient VRAM, OpenGL). I've got a vm with 8gb Graphics Memory assigned, 3d Accelerated in the settings and am seeing exactly the same 4mb Display Memory (VRAM) in dxdiag that the previous posters are seeing. This is with an RTX 3080 ti with 12gb memory on the host machine, so the hardware is fine.
This really needs to be fixed. VMs in general are becoming more and more ubiquitous and widely used with the expansion of Work from Home jobs, especially outside of the typical Tech Sector users, and with that will come more graphic intensive workloads being run in VMs. Adobe sure isn't going to be reverting this change anytime soon, and there's no reason why Workstation shouldn't pass this information into the guest vm accurately. This issue is only going to grow.