diff options
| author | Yong He <yonghe@outlook.com> | 2024-07-10 14:09:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-10 14:09:18 -0700 |
| commit | b89421cb3b803165455020f5b70d582b6aec6e76 (patch) | |
| tree | 461327ffbb55e7cea0ca73ae11cfa18425c904a8 /docs/user-guide/toc.html | |
| parent | 45ef0ce906c93c16495755fec2e597573e8631c4 (diff) | |
Add reflection API for functions. (#4587)
* Add reflection API for functions.
This change adds `SlangFunctionReflection` type in the reflection API that provides methods for querying function result type, parameters and user-defined attributes.
`ProgramLayout::findFunctionByName` can now find a function with the given name and returns a `FunctionReflection`.
`IEntryPoint` now has a `getFunctionReflection` method that returns an `FunctionReflection` for the entrypoint.
* More modifiers; make reflection API consistent.
Diffstat (limited to 'docs/user-guide/toc.html')
| -rw-r--r-- | docs/user-guide/toc.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/user-guide/toc.html b/docs/user-guide/toc.html index 3443a95e8..2adb7655b 100644 --- a/docs/user-guide/toc.html +++ b/docs/user-guide/toc.html @@ -115,6 +115,7 @@ <li data-link="reflection#arrays"><span>Arrays</span></li> <li data-link="reflection#structures"><span>Structures</span></li> <li data-link="reflection#entry-points"><span>Entry Points</span></li> +<li data-link="reflection#function-reflection"><span>Function Reflection</span></li> </ul> </li> <li data-link="targets"><span>Supported Compilation Targets</span> |
