Commit c9ffeec6 by Bas Nieuwenhuizen

SPV: Add NonUniform decoration for constructors.

This is missing in particular for OpSampledImage, which can be a direct argument for texture operations.
parent 58064311
...@@ -2613,6 +2613,10 @@ bool TGlslangToSpvTraverser::visitAggregate(glslang::TVisit visit, glslang::TInt ...@@ -2613,6 +2613,10 @@ bool TGlslangToSpvTraverser::visitAggregate(glslang::TVisit visit, glslang::TInt
else else
constructed = builder.createConstructor(precision, arguments, resultType()); constructed = builder.createConstructor(precision, arguments, resultType());
if (node->getType().getQualifier().isNonUniform()) {
builder.addDecoration(constructed, spv::DecorationNonUniformEXT);
}
builder.clearAccessChain(); builder.clearAccessChain();
builder.setAccessChainRValue(constructed); builder.setAccessChainRValue(constructed);
......
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