KhronosGroup / KhronosGroup/glslang
Inconsistency how to get shader source code to debug info
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 989
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
In order to get the source code of the _main_ source file included in debug info, it is necessary to specify `EShMsgDebugInfo` to `TShader::parse()`. Sources which are _included_ get embedded to debug info even without `EShMsgDebugInfo`. First, this is inconsistent. Second, using `messages` _in addition to_ `glslang::SpvOptions` as way to enable source code embedded to debug info is confusing..
Contributor guide
Research direction
Start by tracing TShader::parse() and the handling of EShMsgDebugInfo alongside glslang::SpvOptions; compare how main and included sources enter debug info. Determine the intended single mechanism and verify the chosen behavior with relevant parser or SPIR-V debug-info tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100