shader-slang / slang

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

Feature Request: Reflection API for functions #4426

Open tunabrain opened 1 week ago

tunabrain commented 1 week ago

The reflection API currently allows looking up entry points to a program and inspecting their arguments.

It would be very useful to have the same capability for all functions and methods in a program. This could look similar to the current EntryPoint API. At a basic level:

Nice-to-haves: