From e24c5a6cb9c3347477b83abe084a09ae8f9fde0a Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 7 Jan 2021 16:01:48 -0800 Subject: 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 --- source/slang/slang-api.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/slang/slang-api.cpp') 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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ /*! -- cgit v1.2.3