Sunshine captures the screen at whatever its native resolution is, and streams it to Moonlight at whatever resolution is requested by Moonlight.
If you are trying to dynamically change the resolution things are rendered at, thats not going to be easy. Sunshine might not be the right tool.
Or the Supreme Court makes something up about why it doesn’t count