| 1565 | } |
| 1566 | |
| 1567 | Id Builder::makeRayQueryType() |
| 1568 | { |
| 1569 | Instruction *type; |
| 1570 | if (groupedTypes[enumCast(Op::OpTypeRayQueryKHR)].size() == 0) { |
| 1571 | type = new Instruction(getUniqueId(), NoType, Op::OpTypeRayQueryKHR); |
| 1572 | groupedTypes[enumCast(Op::OpTypeRayQueryKHR)].push_back(type); |
| 1573 | constantsTypesGlobals.push_back(std::unique_ptr<Instruction>(type)); |
| 1574 | module.mapInstruction(type); |
| 1575 | if (emitNonSemanticShaderDebugInfo) { |
| 1576 | spv::Id debugType = makeOpaqueDebugType("rayQuery"); |
| 1577 | debugTypeIdLookup[type->getResultId()] = debugType; |
| 1578 | } |
| 1579 | } else { |
| 1580 | type = groupedTypes[enumCast(Op::OpTypeRayQueryKHR)].back(); |
| 1581 | } |
| 1582 | |
| 1583 | return type->getResultId(); |
| 1584 | } |
| 1585 | |
| 1586 | Id Builder::makeHitObjectEXTType() |
| 1587 | { |
no test coverage detected