WIP: HLSL: add refection queries for structuredbuffer counter blocks

This adds TProgram::getUniformBlockCounterIndex(int index), which returns the
index the block of the counter buffer associated with the block of the passed in
index, if any, or -1 if none.
This commit is contained in:
steve-lunarg
2017-04-15 08:18:16 -06:00
parent 12bc9aa9ce
commit 350b94856a
6 changed files with 32 additions and 6 deletions

View File

@@ -2801,8 +2801,7 @@ void HlslParseContext::decomposeStructBufferMethods(const TSourceLoc& loc, TInte
const TType derefType(argArray->getType(), 0);
lValue->setType(derefType);
node = intermediate.addAssign(EOpAssign, lValue, rValue, loc);
node->setType(TType(EbtVoid)); // Append is a void return type
node = intermediate.addAssign(EOpAssign, lValue, rValue, loc);
break;
}