Question regarding geometry shaders

I’ve a question concerning the geometry shaders:
Is it possible to have the mesh data in the lines_adjacency​ or triangles_adjacency format sent to the geometry shader?
This context information makes these shaders so powerful.

@Momoko_Fan and @zzuegg isn’t that having the mesh in line strip or triangle strip mode?

Not exactly, at not sure what the usecase for triangles_adjacency, but with lines_adjacency you can get the information of a full quad on the geometry shader…

I would have to test out, in theory it might work with QUAD, but i am not sure since that i deprecated…
Additionally i am unsure what data ends up on the geometry shader if triangle strip is used… Again, in theory it should also work, since the above mentioned adjacency are only layout qualifiers for the geometry shader…

(Note, i have written that all here without consulting the specs since i am in a hurry). Will write some details if i find some freetime

1 Like

The context information provided by the triangles_adjacency format can be e.g. used to identify the sharpness of edges and the outline detection of a mesh.
Used for shadow-volumes, glare effects, …