summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit-glsl.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-12-14 09:37:55 -0800
committerGitHub <noreply@github.com>2022-12-14 09:37:55 -0800
commit1c2c4908c64396de2d1bee197c8f000ae2fed0fc (patch)
tree9156050fd8613ded46b7b2a2bf6c3bf139663521 /source/slang/slang-emit-glsl.cpp
parent5ce8d4c146fef7c8890cd40e112858db69702bd2 (diff)
Fix code generation for matrix reshape. (#2568)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-emit-glsl.cpp')
-rw-r--r--source/slang/slang-emit-glsl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-emit-glsl.cpp b/source/slang/slang-emit-glsl.cpp
index 6dbeba204..e3bd771df 100644
--- a/source/slang/slang-emit-glsl.cpp
+++ b/source/slang/slang-emit-glsl.cpp
@@ -1475,6 +1475,7 @@ bool GLSLSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOu
switch (inst->getOp())
{
case kIROp_MakeVectorFromScalar:
+ case kIROp_MatrixReshape:
{
// Simple constructor call
EmitOpInfo outerPrec = inOuterPrec;