summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-dxc-support.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-dxc-support.cpp')
-rw-r--r--source/slang/slang-dxc-support.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/slang/slang-dxc-support.cpp b/source/slang/slang-dxc-support.cpp
index 828138143..4fe8e64ca 100644
--- a/source/slang/slang-dxc-support.cpp
+++ b/source/slang/slang-dxc-support.cpp
@@ -81,12 +81,11 @@ namespace Slang
// Now let's go ahead and generate HLSL for the entry
// point, since we'll need that to feed into dxc.
- auto hlslCode = emitEntryPointSource(
- compileRequest,
- entryPointIndex,
- targetReq,
- CodeGenTarget::HLSL,
- endToEndReq);
+ SourceResult source;
+ SLANG_RETURN_ON_FAIL(emitEntryPointSource(compileRequest, entryPointIndex, targetReq, CodeGenTarget::HLSL, endToEndReq, source));
+
+ const auto& hlslCode = source.source;
+
maybeDumpIntermediate(compileRequest, hlslCode.getBuffer(), CodeGenTarget::HLSL);
// Wrap the