summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d12/d3d12-device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/d3d12/d3d12-device.cpp')
-rw-r--r--tools/gfx/d3d12/d3d12-device.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-device.cpp b/tools/gfx/d3d12/d3d12-device.cpp
index 58b13fe41..33375497b 100644
--- a/tools/gfx/d3d12/d3d12-device.cpp
+++ b/tools/gfx/d3d12/d3d12-device.cpp
@@ -2031,6 +2031,12 @@ Result DeviceImpl::createProgram(
}
return rootShaderLayoutResult;
}
+
+ if (!shaderProgram->isSpecializable())
+ {
+ SLANG_RETURN_ON_FAIL(shaderProgram->compileShaders(this));
+ }
+
returnComPtr(outProgram, shaderProgram);
return SLANG_OK;
}