(RGUI) Add DECLARE_DEVICE_PTR macro for D3D8/D3D9