I am trying to use a trivial geometry shader, but when I run it in Shader Builder on a laptop with the GMA X3100, it is discarded and uses software rendering. In accordance with this document, the GMA X3100 supports EXT_geometry_shader4.
Entrance POINTSand exit - LINE_STRIP.
What it takes to run it on the GPU (if possible)
uniform vec2 offset;
void main()
{
gl_Position = gl_PositionIn[0];
EmitVertex();
gl_Position = gl_PositionIn[0] + vec4(offset.x,offset.y,0,0);
EmitVertex();
EndPrimitive();
}
source
share