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

Method OpConstantComposite

Source/SpireCore/SpirVCodeGen.cpp:1292–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1290 streamTypeDefinition.Add(i);
1291 }
1292 void OpConstantComposite(const int ID, const int typeID, const List<int> &args)
1293 {
1294 sbTextTypeDefinition << LR"(%)" << ID << LR"( = OpConstantComposite %)" << typeID;
1295 for (auto & id : args)
1296 sbTextTypeDefinition << LR"( %)" << id;
1297 sbTextTypeDefinition << EndLine;
1298
1299 streamTypeDefinition.Add(44 + ((3 + args.Count()) << 16));
1300 streamTypeDefinition.Add(typeID);
1301 streamTypeDefinition.Add(ID);
1302 for (auto & id : args)
1303 streamTypeDefinition.Add(id);
1304 }
1305 void OpCompositeConstruct(const int ID, const int typeID, const List<int> &args)
1306 {
1307 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpCompositeConstruct %)" << typeID;

Calls 2

AddMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected