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

Method OpConstantUInt

Source/SpireCore/SpirVCodeGen.cpp:1281–1291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1279 streamTypeDefinition.Add(*reinterpret_cast<unsigned int*>(&i));
1280 }
1281 void OpConstantUInt(const int ID, const int typeID, const unsigned int i)
1282 {
1283 sbTextTypeDefinition << LR"(%)" << ID << LR"( = OpConstant %)" << typeID << LR"( )";
1284 sbTextTypeDefinition << SpirVUIntToString(i);
1285 sbTextTypeDefinition << EndLine;
1286
1287 streamTypeDefinition.Add(43 + (4 << 16));
1288 streamTypeDefinition.Add(typeID);
1289 streamTypeDefinition.Add(ID);
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;

Callers 1

AddInstrConstantUIntMethod · 0.80

Calls 2

SpirVUIntToStringFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected