|
发表于 2007-10-13 20:15:00
|
显示全部楼层
Re:概念性???:深度test是在pixel shader之後?行的?
看这个图
http://www.xmission.com/~legalize/book/preview/poster/pipeline-9.0.png
//
是先运行pixel shader,然后才会走到z test,
当然这个只是软规则,一般硬件厂家都会进行自己的优化,比如ati,有段文章这么写:Prior to execution of the pixel shader, R300-based chips from ATI perform a check of the interpolated z value against the z value in the z buffer. This occurs for any pixels which passed the hierarchical z test and which are actually going to use the primitive’s interpolated z (rather than compute z in the pixel shader itself).
也就是,底层驱动实际上做了楼上兄弟说的early z culling。 |
|