diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2021-01-07 16:01:48 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-07 16:01:48 -0800 |
| commit | e24c5a6cb9c3347477b83abe084a09ae8f9fde0a (patch) | |
| tree | be5f8d31f8989ddc207f8ecdaa68a0bb6234a369 /source/slang/slang-api.cpp | |
| parent | d84f4582c0caa656e7d0ca0e619651f8b4e5ed16 (diff) | |
Fill in some missing bits of capability API (#1652)
* Fill in some missing bits of capability API
* Make invalid/unknown capability have a zero value (this aligns it better with the public API for `SlangProfileID`, so that the two can be merged down the line)
* Actually provide an implementation of `spFindCapability()` public API
* fixup: bug fixes for renumbering invalid capability atom
Diffstat (limited to 'source/slang/slang-api.cpp')
| -rw-r--r-- | source/slang/slang-api.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-api.cpp b/source/slang/slang-api.cpp index e1eee66dd..4595bac51 100644 --- a/source/slang/slang-api.cpp +++ b/source/slang/slang-api.cpp @@ -127,6 +127,13 @@ SLANG_API SlangProfileID spFindProfile( return session->findProfile(name); } +SLANG_API SlangCapabilityID spFindCapability( + SlangSession* session, + char const* name) +{ + return session->findCapability(name); +} + /* !!!!!!!!!!!!!!!!!!SlangCompileRequest API!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ /*! |
