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

Function FunctionDescription2

shadercompiler/IntrinsicTypes.h:297–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 TypeComponent Arg1Type,
296 DimComponent Arg1Dim>
297Type FunctionDescription2( ASTNode* call, int argIndex )
298{
299 Type type;
300 type.FromTokenType( OP_VOID );
301 switch( argIndex )
302 {
303 case 0:
304 type.builtInType = Arg0Type( call );
305 Arg0Dim( call, type.width, type.height );
306 return type;
307 case 1:
308 type.builtInType = Arg1Type( call );
309 Arg1Dim( call, type.width, type.height );
310 return type;
311 case -1:
312 type.builtInType = ResultType( call );
313 ResultDim( call, type.width, type.height );
314 return type;
315 }
316 return type;
317}
318
319template <
320 TypeComponent ResultType,

Callers

nothing calls this directly

Calls 2

ResultTypeClass · 0.85
FromTokenTypeMethod · 0.45

Tested by

no test coverage detected