Hello there,
I face some issue making a point geometry shader works in Unity on OSX:
I have a component on a game object with mesh filter and renderer that generate a mesh with point topology and a bunch of vertices, nothing fancy here, then I have a shader with a geometry function using point topology, that function does nothing fancy except building a triangle around the vertex coordinates, but Unity always throw me a The given primitive topology does not match with the topology expected by the geometry shader
error.
Sorry if the question was asked before but I apparently haven’t found any recent and clear information on this during my research time.
I’ve found that issue on the tracker that looks like the problem I’m facing, except it doesn’t help at all given it was closed without any solution nor explanation.
I was able to workaround that issue by building a mesh with triangles topology instead and build 3 triangles instead of one in my geometry function (that obviously now works on triangles instead) but I’m wondering whether it’s something wrong with my mesh setup or if it’s some known issue that is not made explicit in Unity documentation (docs only mention issues with shader level 5 on osx but geometry shaders should only be level 4 and thus fully available on macos openGL).