summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang-wasm/slang-wasm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang-wasm/slang-wasm.cpp b/source/slang-wasm/slang-wasm.cpp
index c6c008483..10fc86029 100644
--- a/source/slang-wasm/slang-wasm.cpp
+++ b/source/slang-wasm/slang-wasm.cpp
@@ -75,6 +75,10 @@ Session* GlobalSession::createSession(int compileTarget)
constexpr SlangInt targetCount = 1;
TargetDesc target = {};
target.format = (SlangCompileTarget)compileTarget;
+ if (compileTarget == SLANG_HLSL)
+ {
+ target.profile = spFindProfile(m_interface, "sm_6_6");
+ }
sessionDesc.targets = ⌖
sessionDesc.targetCount = targetCount;
SlangResult result = m_interface->createSession(sessionDesc, session.writeRef());