diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-16 00:38:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-15 09:38:39 -0700 |
| commit | 66b103180e168c597f3c246c68a9886b69707493 (patch) | |
| tree | 1cf67b897d9e9fe897108a92fa8bb312a5de9f4e /tools/test-server | |
| parent | 9e3b0367cfd63f21a0519b61b6fd13e94dac1c51 (diff) | |
Move C interface from slang.h to slang-deprecated.h (#5301)
* Squash redundant move warnings
* Move C interface from slang.h to slang-deprecated.h
spGetBuildTagString remains, because it's useful to have before the
global session exists.
This C API is used quite pervasively in the C++ helpers (for example
slang::UserAttribute. It's not trivial to move these to
slang-deprecated.h as they're entangled with some enums which are
themselves used elsewhere in the compiler.
The fact that these helpers use the C API can be viewed as an
implementation detail for now, and this usage moved to slang-deprecated
in due course.
Closes https://github.com/shader-slang/slang/issues/4758
* Squash warnings for our usage of our deprecated API
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/test-server')
| -rw-r--r-- | tools/test-server/test-server-main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/test-server/test-server-main.cpp b/tools/test-server/test-server-main.cpp index ba77d9c84..bfc96af9a 100644 --- a/tools/test-server/test-server-main.cpp +++ b/tools/test-server/test-server-main.cpp @@ -114,7 +114,9 @@ SlangResult innerMain(StdWriters* stdWriters, slang::IGlobalSession* sharedSessi } ComPtr<slang::ICompileRequest> compileRequest; + SLANG_ALLOW_DEPRECATED_BEGIN SLANG_RETURN_ON_FAIL(session->createCompileRequest(compileRequest.writeRef())); + SLANG_ALLOW_DEPRECATED_END // Do any app specific configuration for (int i = 0; i < int{SLANG_WRITER_CHANNEL_COUNT_OF}; ++i) |
