microsoft / microsoft/DirectXShaderCompiler

[SPIRV][Question]Link libraries

Open
#2,633 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement spirv
Dominant language
C++
Stars
3.7k
Forks
900
Avg merge
2d 11h
Merged PRs (30d)
44

Description

Hi,
I saw that SPIRV have a Linkage capability and can import and export functions or global variables.
SPIRV-Tools also has an experimental linker to combine spirv files.

So is it possible to compile a module with the lib_6_3 target profile that exports some functions, and import those in a separate file?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the SPIR-V Linkage capability and the experimental SPIRV-Tools linker mentioned in the issue. Determine whether a module built with the lib_6_3 target profile can export functions or global variables for import by a separate file, and record the supported workflow or limitations.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.