GlslangToSpv: prevent add XfbStride twice
Without this commit, if the XfbStride was explicitly set, the decoration was added twice on the shader. v2 (changes after Jonh Kessenich first review) * Simplified by just removing the firs assignment * Removed assert
This commit is contained in:
parent
d41a8dca0c
commit
16ef9da372
4 changed files with 89 additions and 2 deletions
|
|
@ -7163,8 +7163,6 @@ spv::Id TGlslangToSpvTraverser::getSymbolId(const glslang::TIntermSymbol* symbol
|
|||
builder.addDecoration(id, spv::DecorationInputAttachmentIndex, symbol->getQualifier().layoutAttachment);
|
||||
if (glslangIntermediate->getXfbMode()) {
|
||||
builder.addCapability(spv::CapabilityTransformFeedback);
|
||||
if (symbol->getQualifier().hasXfbStride())
|
||||
builder.addDecoration(id, spv::DecorationXfbStride, symbol->getQualifier().layoutXfbStride);
|
||||
if (symbol->getQualifier().hasXfbBuffer()) {
|
||||
builder.addDecoration(id, spv::DecorationXfbBuffer, symbol->getQualifier().layoutXfbBuffer);
|
||||
unsigned stride = glslangIntermediate->getXfbStride(symbol->getQualifier().layoutXfbBuffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue