question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gl.getShaderInfoLog() fragment 0:109(188): error: invalid input layout qualifier used

See original GitHub issue
Description of the problem

When I open any kind of samples from threejs, I get this error : For example, when I use https://threejs.org/examples/#webgl_water this is the output that I get :

On Chrome : THREE.WebGLShader: gl.getShaderInfoLog() fragment 0:109(188): error: invalid input layout qualifier used 0:117(170): error: invalid input layout qualifier used 0:120(205): error: invalid input layout qualifier used

On FireFox : gl.getProgramInfoLog Must have an compiled fragment shader attached. 0:2(12): warning: extension GL_ARB_gpu_shader5' unsupported in vertex shader 0:2(12): warning: extension GL_ARB_gpu_shader5’ unsupported in fragment shader 0:115(188): error: invalid input layout qualifier used 0:123(170): error: invalid input layout qualifier used 0:126(205): error: invalid input layout qualifier used

Three.js version
  • Dev
  • r98
  • r97
Browser
  • Chrome
  • Firefox
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)
Name Value
Platform Linux x86_64
Browser User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Context Name webgl
GL Version WebGL 1.0 (OpenGL ES 2.0 Chromium)
Shading Language Version WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor WebKit
Renderer WebKit WebGL
Unmasked Vendor Intel Open Source Technology Center
Unmasked Renderer Mesa DRI Intel® HD Graphics 530 (Skylake GT2)
Antialiasing Available
ANGLE No
Major Performance Caveat No

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
olivierchatrycommented, Nov 7, 2018

Just got an update of mesa on fedora 29 and it fixed the issue. All good now. Closing it. Thanks for the quick support !

2reactions
kenrussellcommented, Nov 6, 2018

I’m not 100% sure. I think it means that the shader is using the syntax:

layout(location=0) in vec4 inColor;

which is OpenGL ES 3.0 / WebGL 2.0 syntax, and the driver is rejecting it for some reason.

Would need to see the text of the failing shader to know for sure.

@gyagp or @Richard-Yunchao from Intel may be able to help route this problem report to the Mesa team, but first we need to confirm the driver version on which it’s happening.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Layout Qualifier (GLSL) - OpenGL Wiki - Khronos Group
The component qualifier can be used for any shader stage input/output declaration. This includes interfaces between shaders, fragment shader ...
Read more >
ERROR: 0:3: error(#279) Invalid layout qualifier 'location'
Input layout locations qualifiers (see Vertex shader attribute index) are introduced in in GLSL 3.30 and cannot be used in GLSL 1.50.
Read more >
The OpenGL® Shading Language, Version 4.60.5
Added image formats to the layout-qualifier table in the Layout Qualifiers section. 1.1.2. Changes from Revision 3 of GLSL 4.6.
Read more >
src/compiler/translator/ParseContext.cpp - angle ... - Google Git
Used by flex/bison to output all syntax and parsing errors. //. void ... "invalid layout qualifier: only valid on shader inputs, outputs, and...
Read more >
OpenGL with Shaders - UT Computer Science
Small arbitrary programs that run on GPU. • Massively parallel. • Four kinds: vertex, geometry, tessellation, fragment. • Now used for GPGPU.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found