It should work to update those properties in OnBeginRenderPass though. But I haven't followed the details of this thread so I guess there is a reason you are not doing that.

He's using 2 render passes ( one for each eye ) but wants the mouse coordinates for the entire screen ... and since mouse coordinates are mapped & clamped to the active viewport that's not possible by only updating the properties in OnBeginRenderPass.