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

Method OpCompositeConstruct

Source/SpireCore/SpirVCodeGen.cpp:1305–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
1308 for (auto & id : args)
1309 sbTextFunctionBody << LR"( %)" << id;
1310 sbTextFunctionBody << EndLine;
1311
1312 streamFunctionBody.Add(80 + ((3 + args.Count()) << 16));
1313 streamFunctionBody.Add(typeID);
1314 streamFunctionBody.Add(ID);
1315 for (auto & id : args)
1316 streamFunctionBody.Add(id);
1317 }
1318 void OpCompositeExtract(const int ID, const int baseTypeID, const int compositeID, const int index)
1319 {
1320 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpCompositeExtract %)" << baseTypeID << LR"( %)" << compositeID

Callers 1

Calls 2

AddMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected