Updated spirv-tools.

This commit is contained in:
Бранимир Караџић
2020-08-14 20:34:35 -07:00
parent a9e1d1a8ce
commit f16ab74475
74 changed files with 3119 additions and 321 deletions

View File

@@ -719,3 +719,15 @@ std::vector<uint32_t> spvOpcodeMemorySemanticsOperandIndices(SpvOp opcode) {
return {};
}
}
bool spvOpcodeIsAccessChain(SpvOp opcode) {
switch (opcode) {
case SpvOpAccessChain:
case SpvOpInBoundsAccessChain:
case SpvOpPtrAccessChain:
case SpvOpInBoundsPtrAccessChain:
return true;
default:
return false;
}
}