summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index f08a6fc44..3072ef0a7 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -5854,6 +5854,11 @@ void EndToEndCompileRequest::setTargetForceGLSLScalarBufferLayout(int targetInde
getTargetOptionSet(targetIndex).set(CompilerOptionName::GLSLForceScalarLayout, value);
}
+void EndToEndCompileRequest::setTargetForceDXLayout(int targetIndex, bool value)
+{
+ getTargetOptionSet(targetIndex).set(CompilerOptionName::ForceDXLayout, value);
+}
+
void EndToEndCompileRequest::setTargetFloatingPointMode(int targetIndex, SlangFloatingPointMode mode)
{
getTargetOptionSet(targetIndex).set(CompilerOptionName::FloatingPointMode, FloatingPointMode(mode));