summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/render-test/slang-support.cpp2
-rw-r--r--tools/slang-test/slangc-tool.cpp2
-rw-r--r--tools/slang-unit-test/unit-test-com-host-callable.cpp2
-rw-r--r--tools/test-server/test-server-main.cpp2
4 files changed, 8 insertions, 0 deletions
diff --git a/tools/render-test/slang-support.cpp b/tools/render-test/slang-support.cpp
index 1f174dc72..2de67e538 100644
--- a/tools/render-test/slang-support.cpp
+++ b/tools/render-test/slang-support.cpp
@@ -51,7 +51,9 @@ void ShaderCompilerUtil::Output::reset()
sessionDesc.preprocessorMacros = macros.getBuffer();
ComPtr<SlangCompileRequest> slangRequest = nullptr;
+ SLANG_ALLOW_DEPRECATED_BEGIN
globalSession->createCompileRequest(slangRequest.writeRef());
+ SLANG_ALLOW_DEPRECATED_END
out.m_requestForKernels = slangRequest;
out.session = globalSession;
diff --git a/tools/slang-test/slangc-tool.cpp b/tools/slang-test/slangc-tool.cpp
index 13e6b192e..159e6faf2 100644
--- a/tools/slang-test/slangc-tool.cpp
+++ b/tools/slang-test/slangc-tool.cpp
@@ -23,7 +23,9 @@ SlangResult SlangCTool::innerMain(StdWriters* stdWriters, slang::IGlobalSession*
}
ComPtr<slang::ICompileRequest> compileRequest;
+ SLANG_ALLOW_DEPRECATED_BEGIN
SLANG_RETURN_ON_FAIL(session->createCompileRequest(compileRequest.writeRef()));
+ SLANG_ALLOW_DEPRECATED_END
auto compilerExecutablePath = Path::getParentDirectory(Path::getExecutablePath());
compileRequest->addSearchPath(compilerExecutablePath.getBuffer());
diff --git a/tools/slang-unit-test/unit-test-com-host-callable.cpp b/tools/slang-unit-test/unit-test-com-host-callable.cpp
index 82aa14aa4..29bc91739 100644
--- a/tools/slang-unit-test/unit-test-com-host-callable.cpp
+++ b/tools/slang-unit-test/unit-test-com-host-callable.cpp
@@ -181,7 +181,9 @@ SlangResult ComTestContext::_runTest()
// Create a compile request
Slang::ComPtr<slang::ICompileRequest> request;
+ SLANG_ALLOW_DEPRECATED_BEGIN
SLANG_RETURN_ON_FAIL(slangSession->createCompileRequest(request.writeRef()));
+ SLANG_ALLOW_DEPRECATED_END
// We want to compile to 'HOST_CALLABLE' here such that we can execute the Slang code.
//
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)