MCPcopy Create free account
hub / github.com/csyonghe/Spire / OpCompositeInsert

Method OpCompositeInsert

Source/SpireCore/SpirVCodeGen.cpp:1329–1340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1327 streamFunctionBody.Add(index);
1328 }
1329 void OpCompositeInsert(const int ID, const int typeID, const int objectID, const int compositeID, const int index)
1330 {
1331 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpCompositeInsert %)"
1332 << typeID << LR"( %)" << objectID << LR"( %)" << compositeID << LR"( )" << index << EndLine;
1333
1334 streamFunctionBody.Add(82 + (6 << 16));
1335 streamFunctionBody.Add(typeID);
1336 streamFunctionBody.Add(ID);
1337 streamFunctionBody.Add(objectID);
1338 streamFunctionBody.Add(compositeID);
1339 streamFunctionBody.Add(index);
1340 }
1341 void OpExtInst(const int ID, const int typeID, const int instrNumber, const List<int> &Arguments)
1342 {
1343 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpExtInst %)" << typeID << LR"( %1 )";

Callers 1

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected