summaryrefslogtreecommitdiff
path: root/source/slang/slang-options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-options.cpp')
-rw-r--r--source/slang/slang-options.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp
index 13a11f10b..8a5c52e0e 100644
--- a/source/slang/slang-options.cpp
+++ b/source/slang/slang-options.cpp
@@ -520,6 +520,8 @@ void initCommandOptions(CommandOptions& options)
{ 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::NoHLSLPackConstantBufferElements, "-no-hlsl-pack-constant-buffer-elements", nullptr,
+ "Do not pack elements of constant buffers into structs in the output HLSL code." },
{ OptionKind::ValidateUniformity, "-validate-uniformity", nullptr, "Perform uniformity validation analysis." },
{ OptionKind::AllowGLSL, "-allow-glsl", nullptr, "Enable GLSL as an input language." },
};
@@ -1691,6 +1693,7 @@ SlangResult OptionsParser::_parse(
case OptionKind::DumpAst:
case OptionKind::IncompleteLibrary:
case OptionKind::NoHLSLBinding:
+ case OptionKind::NoHLSLPackConstantBufferElements:
linkage->m_optionSet.set(optionKind, true); break;
break;
case OptionKind::MatrixLayoutRow: