KhronosGroup / KhronosGroup/glslang

#extension GL_ARB_arrays_of_arrays meet compiler error

Open
#2,649 2 comments 0 reactions 0 assignees View on GitHub
bug GLSL/ESSL
Dominant language
C++
Stars
3.6k
Forks
989
Avg merge
1d 2h
Merged PRs (30d)
31

Description

Hi, when version is small than 430 and enable #extension GL_ARB_arrays_of_arrays, glslang can't solved.

1> need add "GL_ARB_arrays_of_arrays" tags
2> need fix arrayOfArrayVersionCheck() in parseHelper.cpp
PS: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_arrays_of_arrays.txt

#version 400 core
#extension GL_ARB_arrays_of_arrays : require

uniform int uarray2[2][4];

out int out_result;

void main()
{
out_result = uarray2[0][1];
}

ERROR: 0:4: 'arrays of arrays' : not supported for this version or the enabled extensions
ERROR: 1 compilation errors. No code generated.

Contributor guide

Open the contributing guide

Research direction

Start in parseHelper.cpp at arrayOfArrayVersionCheck() and inspect how extension tags are registered. Use the provided #version 400 core shader with GL_ARB_arrays_of_arrays enabled as the reproduction case, and consult the linked ARB specification. Done means the shader compiles without the arrays-of-arrays version error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.