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

Method OpConvertSToF

Source/SpireCore/SpirVCodeGen.cpp:1584–1592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1582 streamFunctionBody.Add(LodID);
1583 }
1584 void OpConvertSToF(const int ID, const int typeID, const int operandID)
1585 {
1586 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpConvertSToF %)" << typeID << LR"( %)" << operandID << EndLine;
1587
1588 streamFunctionBody.Add(111 + (4 << 16));
1589 streamFunctionBody.Add(typeID);
1590 streamFunctionBody.Add(ID);
1591 streamFunctionBody.Add(operandID);
1592 }
1593 void OpConvertFToS(const int ID, const int typeID, const int operandID)
1594 {
1595 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpConvertFToS %)" << typeID << LR"( %)" << operandID << EndLine;

Callers 1

AddInstrConvertSToFMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected