summaryrefslogtreecommitdiff
path: root/tools/render-test/slang-support.h
diff options
context:
space:
mode:
authorAnders Leino <aleino@nvidia.com>2025-02-19 09:55:16 +0200
committerGitHub <noreply@github.com>2025-02-18 23:55:16 -0800
commite9a63b2b3822bbc533130ead0ab8ee03b4a4250a (patch)
tree40a477a551c3178d5557b50f06dd2aeae5d2d03c /tools/render-test/slang-support.h
parent5ceef13e2336dfa1c4de8fdb3a273d81add0a7ca (diff)
Cleanups for render-api (#6360)
* Clean up unused code * Clean up support interface * Rename the compile output requests to mark them DEPRECATED --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/render-test/slang-support.h')
-rw-r--r--tools/render-test/slang-support.h30
1 files changed, 2 insertions, 28 deletions
diff --git a/tools/render-test/slang-support.h b/tools/render-test/slang-support.h
index d5574e903..e105b6b86 100644
--- a/tools/render-test/slang-support.h
+++ b/tools/render-test/slang-support.h
@@ -67,17 +67,7 @@ struct ShaderCompilerUtil
ComPtr<slang::IComponentType> slangProgram;
ShaderProgramDesc desc = {};
- /// Compile request that owns the lifetime of compiled kernel code.
- ComPtr<SlangCompileRequest> m_requestForKernels = nullptr;
-
- /// Compile request that owns the lifetime of reflection information.
- ComPtr<SlangCompileRequest> m_extraRequestForReflection = nullptr;
-
- SlangCompileRequest* getRequestForKernels() const { return m_requestForKernels; }
- SlangCompileRequest* getRequestForReflection() const
- {
- return m_extraRequestForReflection ? m_extraRequestForReflection : m_requestForKernels;
- }
+ ComPtr<SlangCompileRequest> m_requestDEPRECATED = nullptr;
SlangSession* session = nullptr;
};
@@ -89,28 +79,12 @@ struct ShaderCompilerUtil
Slang::String sourcePath;
};
+ // Wrapper for compileProgram
static SlangResult compileWithLayout(
slang::IGlobalSession* globalSession,
const Options& options,
const ShaderCompilerUtil::Input& input,
OutputAndLayout& output);
-
- static SlangResult readSource(
- const Slang::String& inSourcePath,
- Slang::List<char>& outSourceText);
-
- static SlangResult _compileProgramImpl(
- slang::IGlobalSession* globalSession,
- const Options& options,
- const Input& input,
- const ShaderCompileRequest& request,
- Output& out);
- static SlangResult compileProgram(
- slang::IGlobalSession* globalSession,
- const Options& options,
- const Input& input,
- const ShaderCompileRequest& request,
- Output& out);
};