且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

进给GL_POINTS时,几何着色器不执行任何操作

更新时间:2022-02-02 09:30:47

我使用GL_EXT_geometry_shader4规范对代码进行了交叉检查,至少看不到任何明显的错误.根据规范,所有输入图元都可以与所有类型的输出图元一起使用.如果OpenGL通过glGetError没有返回任何错误,并且没有着色器链接器/编译错误,那么我会说这是与ATI或pyOpenGL有关的问题.

I cross-checked the code with the GL_EXT_geometry_shader4 specification, and I don't see any obvious errors at least. According to the specification, all input primitives work with all types of output primitives. If OpenGL returns no errors via glGetError, and no shader linker/compilation errors, I'd say this is an ATI or pyOpenGL-related issue.

我相当确定我已经测试了几何着色器的大多数输入和输出原语组合,并且它们都可以在我的Nvidia卡上使用.我虽然使用本机C OpenGL库,但未使用绑定.

I'm fairly sure I've tested most combinations of input and output primitives for geometry shaders, and they all work on my Nvidia card. I use the native C OpenGL libraries though, not a binding.