I have a question about setScissorRect. When it is applied will it prevent computation of pixels outside of this rectangle or does it just clip the output when everything is computed ?
In other words, can it be used as an optimization tool to limit shader computations ?
The documentation says The rendering pipeline discards fragments that lie outside the scissor rectangle.
So yes it is an optimization - fragment functions wonโt be performed on fragments outside the scissor rectangle.