KhronosGroup / KhronosGroup/glslang

Separate entry points when linking multiple GLSL into a single SPIRV

Open
#1,262 2 comments 0 reactions 0 assignees View on GitHub
enhancement SPIR-V
Dominant language
C++
Stars
3.6k
Forks
989
Avg merge
1d 2h
Merged PRs (30d)
31

Description

I'm calling it as
```
glslValidator -V -l -o quad.spv quad.vert quad.frag
```
Inspecting the produced SPIR-V shows two entry points named "main". We need to have separate entry points to make those functions available. Passing `-e something` doesn't seem to be doing anything.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `glslValidator -V -l -o quad.spv quad.vert quad.frag` and inspect the generated SPIR-V entry points. Investigate why `-e something` has no effect; done means linked vertex and fragment shaders expose separate usable entry points instead of two entries both named `main`.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.