KhronosGroup / KhronosGroup/glslang

ES3.0 glslang frontend didn't recognize reserved keyword. image1DShadow

Open
#715 1 comment 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

From sawato shusaku:

```
#version 300 es
precision mediump float;
in highp vec4 dEQP_Position;
void main()
{
float image1DShadow = 1.0;
gl_Position = dEQP_Position;
}

// expected behavior is compile failure.
// but glslang doesn't
```

keywords wrong is image1DShadow image2DShadow image1DArrayShadow image2DArrayShadow

Contributor guide

Open the contributing guide

Research direction

Start in the glslang frontend by locating how reserved keywords are defined and checked for ES 3.0. Use the shader shown in the issue, plus variants for image1DShadow, image2DShadow, image1DArrayShadow, and image2DArrayShadow, and confirm compilation fails for each reserved identifier.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.