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

Method AddInstrDFdx

Source/SpireCore/SpirVCodeGen.cpp:3250–3263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3248 }
3249
3250 int AddInstrDFdx(ILOperand *op, RefPtr<ILType> typeIL, int ID)
3251 {
3252 int typeID = DefineType(typeIL);
3253 ++CurrentID;
3254 CodeGen.OpDPdx(CurrentID, typeID, ID);
3255 IDInfos[CurrentID] = IDInfo::CreateIDInfoForValue(
3256 CurrentID,
3257 typeIL,
3258 op,
3259 typeID
3260 );
3261 UpdateValue(op, CurrentID);
3262 return CurrentID;
3263 }
3264
3265 int AddInstrDFdy(ILOperand *op, RefPtr<ILType> typeIL, int ID)
3266 {

Callers 1

PrintCallInstrMethod · 0.80

Calls 1

OpDPdxMethod · 0.80

Tested by

no test coverage detected