Original Post
According to the Directx9 documentation, the scissor test is done AFTER the pixel shader. That is incredible. A little quote from nvidia corp in the gpu gem 2 (cp30: GF6 archi):
Quote:So, whats the truth ( on a geforce 2 ? on a radeon 8500 ? on a geforce FX ? ) ?! Do all the graphics card perform it before pixel processing (assuming the card have one:). Note that i'm a little nervous. I do some research on the net, and this subject seems to pass to the trap door.
First, the scissor test rejects the fragment if it lies outside a specified subrectangle of the frame buffer. Although the popular graphics APIs define scissoring at this location in the pipeline, it is more efficient to perform the scissor test in the rasterizer. Scissoring in x and y actually happens in the rasterizer, before fragment processing, and z scissoring happens during z-cull.