Commit 7bf3c388 by John Kessenich

Unconditionally emit CapabilityMultiViewport on declaration of BuiltInViewportIndex.

This is a speculative commit: I don't know yet when BuiltInViewportIndex should be a block member, or if it is whether it should require capability on use or on declaration.
parent a17fc4fe
......@@ -454,8 +454,8 @@ spv::BuiltIn TGlslangToSpvTraverser::TranslateBuiltInDecoration(glslang::TBuiltI
return spv::BuiltInCullDistance;
case glslang::EbvViewportIndex:
builder.addCapability(spv::CapabilityMultiViewport);
if (!memberDeclaration) {
builder.addCapability(spv::CapabilityMultiViewport);
if (glslangIntermediate->getStage() == EShLangVertex ||
glslangIntermediate->getStage() == EShLangTessControl ||
glslangIntermediate->getStage() == EShLangTessEvaluation) {
......
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