Commit ce31aea0 by Rex Xu

SPV: Fix an issue of ++/-- for dvec/dmat.

parent 64076ed7
...@@ -1174,6 +1174,8 @@ bool TGlslangToSpvTraverser::visitUnary(glslang::TVisit /* visit */, glslang::TI ...@@ -1174,6 +1174,8 @@ bool TGlslangToSpvTraverser::visitUnary(glslang::TVisit /* visit */, glslang::TI
spv::Id one = 0; spv::Id one = 0;
if (node->getBasicType() == glslang::EbtFloat) if (node->getBasicType() == glslang::EbtFloat)
one = builder.makeFloatConstant(1.0F); one = builder.makeFloatConstant(1.0F);
else if (node->getBasicType() == glslang::EbtDouble)
one = builder.makeDoubleConstant(1.0);
else if (node->getBasicType() == glslang::EbtInt64 || node->getBasicType() == glslang::EbtUint64) else if (node->getBasicType() == glslang::EbtInt64 || node->getBasicType() == glslang::EbtUint64)
one = builder.makeInt64Constant(1); one = builder.makeInt64Constant(1);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment