summaryrefslogtreecommitdiff
path: root/tools/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx')
-rw-r--r--tools/gfx/d3d12/render-d3d12.cpp1
-rw-r--r--tools/gfx/slang-context.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp
index 15acb680c..e02f7d656 100644
--- a/tools/gfx/d3d12/render-d3d12.cpp
+++ b/tools/gfx/d3d12/render-d3d12.cpp
@@ -4804,6 +4804,7 @@ Result D3D12Device::createProgram(const IShaderProgram::Desc& desc, IShaderProgr
(SlangInt)i, 0, kernelCode.writeRef(), diagnostics.writeRef());
if (diagnostics)
{
+ printf("%s\n", diagnostics->getBufferPointer());
// TODO: report compile error.
}
SLANG_RETURN_ON_FAIL(compileResult);
diff --git a/tools/gfx/slang-context.h b/tools/gfx/slang-context.h
index d5bf261e4..be6539da5 100644
--- a/tools/gfx/slang-context.h
+++ b/tools/gfx/slang-context.h
@@ -34,6 +34,7 @@ namespace gfx
targetDesc.profile = globalSession->findProfile(targetProfile);
targetDesc.optimizationLevel = desc.optimizationLevel;
targetDesc.floatingPointMode = desc.floatingPointMode;
+ targetDesc.flags = desc.targetFlags;
slangSessionDesc.targetCount = 1;
slangSessionDesc.targets = &targetDesc;
SLANG_RETURN_ON_FAIL(globalSession->createSession(slangSessionDesc, session.writeRef()));