summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-options.cpp
diff options
context:
space:
mode:
authorRobert Stepinski <rob.stepinski@gmail.com>2019-10-11 11:30:32 -0400
committerTim Foley <tfoleyNV@users.noreply.github.com>2019-10-11 08:30:32 -0700
commitdeeb8647012fc6362f1bb33842cf0842e16f13b7 (patch)
treee733f025426516ce74e440e232bb444d2d3aa9f5 /source/slang/slang-options.cpp
parent9a09e2ed2c06ac5532488c418badec98ef362ca9 (diff)
Add ability to obfuscate name when generating GLSL/HLSL source (#1075)
Diffstat (limited to 'source/slang/slang-options.cpp')
-rw-r--r--source/slang/slang-options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp
index 94f82ef31..31a5c7c7f 100644
--- a/source/slang/slang-options.cpp
+++ b/source/slang/slang-options.cpp
@@ -775,6 +775,10 @@ struct OptionsParser
{
requestImpl->getBackEndReq()->useUnknownImageFormatAsDefault = true;
}
+ else if (argStr == "-obfuscate")
+ {
+ requestImpl->getBackEndReq()->obfuscateCode = true;
+ }
else if (argStr == "-file-system")
{
String name;