How to switch primary gpu for wayland

I tried that but it didn’t do anything

[~ (0) ]$ glxinfo | grep -e OpenGL.vendor -e OpenGL.renderer
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)

What is this i915 in your example? how can I find it?