shader-slang / slang

Making it easier to work with shaders
MIT License
1.78k stars 159 forks source link

Extend the COM-based API to support whole program compilation. #4355

Closed csyonghe closed 3 weeks ago

csyonghe commented 3 weeks ago

This changes adds getTargetCode method to IComponentType interface to allow the user to trigger whole program compile that includes all entry points defined in the module, and compile all of them into a single output module if the target supports multiple entry points.

Closes #4325.