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

Function FunctionDescription3

shadercompiler/IntrinsicTypes.h:361–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359 TypeComponent Arg2Type,
360 DimComponent Arg2Dim>
361Type FunctionDescription3( ASTNode* call, int argIndex )
362{
363 Type type;
364 type.FromTokenType( OP_VOID );
365 switch( argIndex )
366 {
367 case 0:
368 type.builtInType = Arg0Type( call );
369 Arg0Dim( call, type.width, type.height );
370 return type;
371 case 1:
372 type.builtInType = Arg1Type( call );
373 Arg1Dim( call, type.width, type.height );
374 return type;
375 case 2:
376 type.builtInType = Arg2Type( call );
377 Arg2Dim( call, type.width, type.height );
378 return type;
379 case -1:
380 type.builtInType = ResultType( call );
381 ResultDim( call, type.width, type.height );
382 return type;
383 }
384 return type;
385}
386
387template <
388 TypeComponent ResultType,

Callers

nothing calls this directly

Calls 2

ResultTypeClass · 0.85
FromTokenTypeMethod · 0.45

Tested by

no test coverage detected