Enable/disable geometry shader conditionally at runtime
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
Popular Topics
Advertisement