Do geometry create GLSL shaders on the GMA X3100 under OSX

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();
}
+5
source share
4 answers

Of the documents that you refer to it, of course, must be confirmed.

You can try

int hasGEOM = isExtensionSupported("EXT_geometry_shader4");

, , .

GLSL Spec (1.20.8) " . #extension "

, ,

#extension GL_EXT_geometry_shader4 : enable

.

+2

OpenGL Extensions Viewer, . , , Apple. , wikipedia , GLSL OpenGL 3.2.

- , EXT_geometry_shader4 GLSL - ?

+1

, , Intel . -, X3100 OpenGL 1.4 ( , , ).

0

HP Intel x3100 Windows 7 x64 (v8.15.10.1930 (9-23-2009)) Intel "EXT_geometry_shader4" ( ) . "GPU Caps Viewer" ( , ). Windows, , , , OSX , .

-2

All Articles