Skip to content

Parse error from GLSL Geometry shader #29

Closed
@wrightwriter

Description

@wrightwriter

Related: GLSL Compute shader throws same error #22

Passthrough compute shade:

#version 330

layout(triangles) in;
layout(triangle_strip, max_vertices = 3) out;

void main() {
  for(int i = 0; i < 3; i++) { 
    gl_Position = gl_in[i].gl_Position;
    EmitVertex();
  }
  EndPrimitive();
}

results in:

Parse error: Error in triGeometry_g.geom: Ln: 3 Col: 21
layout(triangles) in;
^
Expecting: Type qualifier, identifier, 'layout' or 'struct'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions