summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-c-like.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
-rw-r--r--source/slang/slang-emit-c-like.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp
index ad365581a..1893929f8 100644
--- a/source/slang/slang-emit-c-like.cpp
+++ b/source/slang/slang-emit-c-like.cpp
@@ -3520,7 +3520,7 @@ void CLikeSourceEmitter::emitParamTypeImpl(IRType* type, String const& name)
{
type = constRefType->getValueType();
}
-
+ emitParamTypeModifier(type);
emitType(type, name);
}
@@ -3862,7 +3862,7 @@ void CLikeSourceEmitter::emitVarModifiers(IRVarLayout* layout, IRInst* varDecl,
if (!layout)
return;
- emitMatrixLayoutModifiersImpl(layout);
+ emitMatrixLayoutModifiersImpl(varType);
// Target specific modifier output
emitImageFormatModifierImpl(varDecl, varType);