Enable/disable geometry shader conditionally at runtime

Started by
-1 comments, last by leonard2012 11 years, 4 months ago
I'm implementing line thickness rendering with geometry shader, i.e to create two triangles from a line segment. Although the GS works, it is not needed and thus should be disabled when graphics objects other than thickness lines are drawn, e.g. polygons. So how can I enable and disable geometry shader given certain conditions at runtime? Thanks in advance.

This topic is closed to new replies.

Advertisement