| 1598 | return type->getResultId(); |
| 1599 | } |
| 1600 | Id Builder::makeHitObjectNVType() |
| 1601 | { |
| 1602 | Instruction *type; |
| 1603 | if (groupedTypes[enumCast(Op::OpTypeHitObjectNV)].size() == 0) { |
| 1604 | type = new Instruction(getUniqueId(), NoType, Op::OpTypeHitObjectNV); |
| 1605 | groupedTypes[enumCast(Op::OpTypeHitObjectNV)].push_back(type); |
| 1606 | constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type)); |
| 1607 | module.mapInstruction(type); |
| 1608 | if (emitNonSemanticShaderDebugInfo) { |
| 1609 | spv::Id debugType = makeOpaqueDebugType("hitObjectNV"); |
| 1610 | debugTypeIdLookup[type->getResultId()] = debugType; |
| 1611 | } |
| 1612 | } else { |
| 1613 | type = groupedTypes[enumCast(Op::OpTypeHitObjectNV)].back(); |
| 1614 | } |
| 1615 | |
| 1616 | return type->getResultId(); |
| 1617 | } |
| 1618 | |
| 1619 | Id Builder::getDerefTypeId(Id resultId) const |
| 1620 | { |
no test coverage detected