| 823 | |
| 824 | |
| 825 | uint32_t SpirvModule::defStructTypeUnique( |
| 826 | uint32_t memberCount, |
| 827 | const uint32_t* memberTypes) { |
| 828 | uint32_t resultId = this->allocateId(); |
| 829 | |
| 830 | m_typeConstDefs.putIns (spv::OpTypeStruct, 2 + memberCount); |
| 831 | m_typeConstDefs.putWord(resultId); |
| 832 | |
| 833 | for (uint32_t i = 0; i < memberCount; i++) |
| 834 | m_typeConstDefs.putWord(memberTypes[i]); |
| 835 | return resultId; |
| 836 | } |
| 837 | |
| 838 | |
| 839 | uint32_t SpirvModule::defPointerType( |
no test coverage detected