MCPcopy Create free account
hub / github.com/carbonengine/trinity / TypeSameAsArg

Function TypeSameAsArg

shadercompiler/IntrinsicTypes.h:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176template <int Arg>
177int TypeSameAsArg( ASTNode* call )
178{
179 ASTNode* arg0 = call->GetChildOrNull( Arg );
180 if( arg0 == nullptr )
181 {
182 return OP_VOID;
183 }
184 return arg0->GetType().builtInType;
185}
186
187
188template <int type>

Callers

nothing calls this directly

Calls 2

GetChildOrNullMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected