diff options
| author | Yong He <yonghe@outlook.com> | 2024-05-17 23:07:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-17 23:07:36 -0700 |
| commit | 62b7219e715bd4c0f984bcd98c9767fb6422c78f (patch) | |
| tree | 114cc03a796c582882eb649948e64172af636780 /source/slang/slang-api.cpp | |
| parent | 40360431dfac9ec122a0300471d42be9d265f452 (diff) | |
Add `-minimum-slang-optimization` to favor compile time. (#4186)
Diffstat (limited to 'source/slang/slang-api.cpp')
| -rw-r--r-- | source/slang/slang-api.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/slang-api.cpp b/source/slang/slang-api.cpp index ff37d6398..a4ae92bf9 100644 --- a/source/slang/slang-api.cpp +++ b/source/slang/slang-api.cpp @@ -304,6 +304,18 @@ SLANG_API void spSetTargetForceGLSLScalarBufferLayout( request->setTargetForceGLSLScalarBufferLayout(targetIndex, forceScalarLayout); } +SLANG_API void spSetTargetUseMinimumSlangOptimization(slang::ICompileRequest* request, int targetIndex, bool val) +{ + SLANG_ASSERT(request); + request->setTargetUseMinimumSlangOptimization(targetIndex, val); +} + +SLANG_API void spSetIgnoreCapabilityCheck(slang::ICompileRequest* request, bool ignore) +{ + SLANG_ASSERT(request); + request->setIgnoreCapabilityCheck(ignore); +} + SLANG_API void spSetTargetLineDirectiveMode( slang::ICompileRequest* request, int targetIndex, |
