MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / makeHitObjectNVType

Method makeHitObjectNVType

SPIRV/SpvBuilder.cpp:1600–1617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1598 return type->getResultId();
1599}
1600Id 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
1619Id Builder::getDerefTypeId(Id resultId) const
1620{

Callers 1

Calls 5

enumCastFunction · 0.85
mapInstructionMethod · 0.80
getResultIdMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected