Skip to content

[HLSL] Compiler-as-a-library interface for clang HLSL #63631

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
8 tasks
llvm-beanz opened this issue Jun 30, 2023 · 3 comments
Open
8 tasks

[HLSL] Compiler-as-a-library interface for clang HLSL #63631

llvm-beanz opened this issue Jun 30, 2023 · 3 comments
Assignees
Labels
HLSL HLSL Language Support

Comments

@llvm-beanz
Copy link
Collaborator

llvm-beanz commented Jun 30, 2023

One of the HLSL compiler's primary usage modes is as a library. To support this we want to design and build a compiler-as-a-library interface for the Clang HLSL compiler.

This was requested in DXC/3162

Sub-Tasks

The following tasks attempt to cover many of the feature areas of the library that will need to be built. This is not a complete list and tasks will be added/removed as more is learned about what the library needs to support.

Write specs for each feature in the library specification document

The items below track the work for this feature.

First a design must be created showing overall how the process of compiling a shader will be done. That is tracked in the following issue:

Depending on the output of the architecture design, some of the tasks below may be removed and others implemented.

@devshgraphicsprogramming
Copy link

devshgraphicsprogramming commented Mar 25, 2024

How will the Include Handler work for Clang ?

@coopp
Copy link
Contributor

coopp commented Mar 25, 2024

I haven't fully fleshed out that yet, but there will need to be some sort of support for include handlers.

@devshgraphicsprogramming

its very important to us, because we use JIT source generators and virtual filesystem (not only being able to fetch HLSL headers from archives but also from DLL builtins, etc.)

@damyanp damyanp changed the title Build C interface for HLSL compiler as a library usage [HLSL] Compiler-as-a-library interface for clang HLSL Mar 29, 2024
@damyanp damyanp moved this from Planning to Designing in HLSL Support Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HLSL HLSL Language Support
Projects
Status: Designing
Development

No branches or pull requests

3 participants