Issue 89816
Summary [HLSL] Support exported functions for library shaders
Labels new issue
Assignees
Reporter pow2clk
    HLSL libraries allow qualifying a function with `export` to make it a non-entry function that doesn't get inlined and is callable from other shaders that get linked with the library shader.

### Deliverables

* Documentation on how export affects compilation
* Compiler support for parsing and applying `export` to user functions to generate separate functions in the DXIL or SPIR-V output.
* Tests that verify an assortment of user functions with different attributes, semantics, and qualifiers that verify they are maintained as they should be.

### Acceptance Criteria

* Documentation should cover all cases of callable functions and how they should be preserved.
* Output should have non-inlined functions that can be called from linked shaders
* Annotations of parameters and return values should be maintained as appropriate
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to