summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-02-29 11:42:49 -0800
committerGitHub <noreply@github.com>2024-02-29 11:42:49 -0800
commit458d66300f7180a0e5d432a203225305a83fc222 (patch)
tree9a5f3486edb6aa099cfc5718d92ad74d8634afdb /source
parent17da4d90dc9c3bb147667dbd86b45dcc3b1e725b (diff)
[SPIRV] Fix logic for emitting debug matrix type. (#3649)
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-emit-spirv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp
index 320263b25..cf709c438 100644
--- a/source/slang/slang-emit-spirv.cpp
+++ b/source/slang/slang-emit-spirv.cpp
@@ -5062,7 +5062,7 @@ struct SPIRVEmitContext
m_voidType,
getNonSemanticDebugInfoExtInst(),
elementType,
- builder.getIntValue(builder.getUIntType(), getIntVal(vectorType->getElementCount())),
+ builder.getIntValue(builder.getUIntType(), getIntVal(count)),
builder.getBoolValue(isColumnMajor));
}
else if (auto basicType = as<IRBasicType>(type))