Do GLSL geometry shaders work on the GMA X3100 under OSX

Posted by GameFreak on Stack Overflow See other posts from Stack Overflow or by GameFreak
Published on 2010-03-29T03:16:45Z Indexed on 2010/03/29 3:23 UTC
Read the original article Hit count: 521

Filed under:
|
|
|
|

I am trying to use a trivial geometry shader but when run in Shader Builder on a laptop with a GMA X3100 it falls back and uses the software render. According this document the GMA X3100 does support EXT_geometry_shader4.

The input is POINTS and the output is LINE_STRIP.

What would be required to get it to run 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();
}

© Stack Overflow or respective owner

Related posts about opengl

Related posts about glsl