PDA

View Full Version : Is it valid to emit less than max_verts from a GS?



BrianDFS
01-02-2011, 01:05 PM
I have a geometry shader that does some manual culling in order to reduce the number of vertices that it emits. Initial tests indicate that this is indeed a performance win.

However, I just wanted to make sure it's valid to emit less than the declared max_vertices from a geometry shader.

The reason I ask, is because my NVidia card is rendering the geometry correctly along with a bunch of stray verts. When I disable the variable vertex emission code, everything renders as expected with no stray verts.

On ATI, everything is rendered correctly in either case.

Thanks.


P.S. This may end up needing to be moved into the driver section.

randall
01-02-2011, 04:08 PM
Yes, it is valid.