diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-23 10:54:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-23 10:54:01 -0700 |
| commit | a23adc221b1ea26db3f3313226b629eb9e308b0f (patch) | |
| tree | 6f758d64201f2c606dc3e61394899bff4fa72f51 /source/slang/slang-options.cpp | |
| parent | 9b0df14cdf9d9ea8857b5b9d59505b18020f8414 (diff) | |
Make `-no-mangle` option work, add `-no-hlsl-binding`. (#3817)
Diffstat (limited to 'source/slang/slang-options.cpp')
| -rw-r--r-- | source/slang/slang-options.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 3d0b22edd..e3ccec36a 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -517,6 +517,8 @@ void initCommandOptions(CommandOptions& options) "Set the filesystem hook to use for a compile request."}, { OptionKind::Heterogeneous, "-heterogeneous", nullptr, "Output heterogeneity-related code." }, { OptionKind::NoMangle, "-no-mangle", nullptr, "Do as little mangling of names as possible." }, + { OptionKind::NoHLSLBinding, "-no-hlsl-binding", nullptr, "Do not include explicit parameter binding semantics in the output HLSL code," + "except for parameters that has explicit bindings in the input source." }, { OptionKind::ValidateUniformity, "-validate-uniformity", nullptr, "Perform uniformity validation analysis." }, { OptionKind::AllowGLSL, "-allow-glsl", nullptr, "Enable GLSL as an input language." }, }; @@ -1694,6 +1696,7 @@ SlangResult OptionsParser::_parse( case OptionKind::PreprocessorOutput: case OptionKind::DumpAst: case OptionKind::IncompleteLibrary: + case OptionKind::NoHLSLBinding: linkage->m_optionSet.set(optionKind, true); break; break; case OptionKind::NoCodeGen: |
