diff options
Diffstat (limited to 'source/slang/options.cpp')
| -rw-r--r-- | source/slang/options.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/options.cpp b/source/slang/options.cpp index 7eea3fecc..452e7c439 100644 --- a/source/slang/options.cpp +++ b/source/slang/options.cpp @@ -80,6 +80,7 @@ struct OptionsParser int profileOptionCount = 0; SlangCompileFlags flags = 0; + SlangTargetFlags targetFlags = 0; struct RawOutputPath { @@ -279,6 +280,10 @@ struct OptionsParser { requestImpl->shouldSkipCodegen = true; } + else if(argStr == "-parameter-blocks-use-register-spaces" ) + { + targetFlags |= SLANG_TARGET_FLAG_PARAMETER_BLOCKS_USE_REGISTER_SPACES; + } else if (argStr == "-backend" || argStr == "-target") { String name = tryReadCommandLineArgument(arg, &argCursor, argEnd); @@ -729,6 +734,13 @@ struct OptionsParser } } + // If the user specifed and per-compilation-target flags, make sure + // to apply them here. + if(targetFlags) + { + spSetTargetFlags(compileRequest, 0, targetFlags); + } + // Next, we want to make sure that entry points get attached to the appropriate translation // unit that will provide them. { |
