From 458d66300f7180a0e5d432a203225305a83fc222 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 29 Feb 2024 11:42:49 -0800 Subject: [SPIRV] Fix logic for emitting debug matrix type. (#3649) --- source/slang/slang-emit-spirv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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(type)) -- cgit v1.2.3