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

Method FetchArg

Source/SpireCore/CodeGenerator.cpp:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 return varOp;
81 }
82 FetchArgInstruction * FetchArg(ExpressionType * etype, int argId)
83 {
84 auto type = TranslateExpressionType(etype);
85 auto arrType = dynamic_cast<ILArrayType*>(type.Ptr());
86 FetchArgInstruction * varOp = 0;
87 if (arrType)
88 {
89 auto baseType = arrType->BaseType.Release();
90 varOp = codeWriter.FetchArg(baseType, argId);
91 }
92 else
93 {
94 varOp = codeWriter.FetchArg(type, argId);
95 }
96 return varOp;
97 }
98 void TranslateStages(PipelineSyntaxNode * pipeline)
99 {
100 for (auto & stage : pipeline->GetStages())

Callers 1

ProcessShaderMethod · 0.45

Calls 2

PtrMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected