Refactored validation_state, added new types

- validation_state.cpp uses functions from opcode.h instead of in-place
switches which need to be updated.
- added new spirv 1.1 type declaration opcodes to a 'is op type
declaration' switch in opcode.cpp.
This commit is contained in:
Andrey Tuganov
2017-02-28 11:53:47 -05:00
committed by David Neto
parent da4ae05638
commit 4ef3b3e0b9
2 changed files with 11 additions and 62 deletions
+2
View File
@@ -255,6 +255,8 @@ int32_t spvOpcodeGeneratesType(SpvOp op) {
case SpvOpTypeReserveId:
case SpvOpTypeQueue:
case SpvOpTypePipe:
case SpvOpTypePipeStorage:
case SpvOpTypeNamedBarrier:
return true;
default:
// In particular, OpTypeForwardPointer does not generate a type,