KhronosGroup / KhronosGroup/SPIRV-Tools

Entrypoint rename option in spirv-link

Open
#5,429 4 comments 0 reactions 1 assignee Claimed by @pierremoreau View on GitHub
component:link enhancement
Dominant language
C++
Stars
1.4k
Forks
709
Avg merge
1d 22h
Merged PRs (30d)
28

Description

I.e. the equivalent of `glslangValidator <...> -e vert_main --source-entrypoint main` for spirv-link such that a pipeline that can create a .spv with multiple entrypoints or a .spv with a single entrypoint can first compile every .spv and then call spirv-link to change the entrypoints using the .spv files that don't have a renamed entrypoint.

Thus something like..
```
glslangValidator -V -S vert vert.glsl -o vert.spv
glslangValidator -V -S frag frag.glsl -o frag.spv
spirv-link -o shaders.spv vert.spv frag.spv -e vert.spv vert_main -e frag.spv frag_main
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.