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

Method makeRayQueryType

SPIRV/SpvBuilder.cpp:1567–1584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1565}
1566
1567Id 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
1586Id Builder::makeHitObjectEXTType()
1587{

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