summaryrefslogtreecommitdiffstats
path: root/tools/gfx/cpu/cpu-device.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-02-28 22:57:07 -0800
committerGitHub <noreply@github.com>2024-02-28 22:57:07 -0800
commit73a61edda8893901acad05bb4e7d3110db5041a8 (patch)
treebb6331b28715a4e95fcd7724ad338149ce56e562 /tools/gfx/cpu/cpu-device.cpp
parentd2644e2f8f0abb73bbd6afd70816f6bf245340da (diff)
[SPIRV] Add NonSemanticDebugInfo for step-through debugging. (#3644)
* [SPIRV] Add NonSemanticDebugInfo for step-through debugging. * Fix. * Fix.
Diffstat (limited to 'tools/gfx/cpu/cpu-device.cpp')
-rw-r--r--tools/gfx/cpu/cpu-device.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gfx/cpu/cpu-device.cpp b/tools/gfx/cpu/cpu-device.cpp
index f248cf52a..bd747d998 100644
--- a/tools/gfx/cpu/cpu-device.cpp
+++ b/tools/gfx/cpu/cpu-device.cpp
@@ -27,6 +27,8 @@ namespace cpu
{
SLANG_RETURN_ON_FAIL(slangContext.initialize(
desc.slang,
+ desc.extendedDescCount,
+ desc.extendedDescs,
SLANG_SHADER_HOST_CALLABLE,
"sm_5_1",
makeArray(slang::PreprocessorMacroDesc{ "__CPU__", "1" }).getView()));