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

Function FunctionDescription4

shadercompiler/IntrinsicTypes.h:398–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396 TypeComponent Arg3Type,
397 DimComponent Arg3Dim>
398Type FunctionDescription4( ASTNode* call, int argIndex )
399{
400 Type type;
401 type.FromTokenType( OP_VOID );
402 switch( argIndex )
403 {
404 case 0:
405 type.builtInType = Arg0Type( call );
406 Arg0Dim( call, type.width, type.height );
407 return type;
408 case 1:
409 type.builtInType = Arg1Type( call );
410 Arg1Dim( call, type.width, type.height );
411 return type;
412 case 2:
413 type.builtInType = Arg2Type( call );
414 Arg2Dim( call, type.width, type.height );
415 return type;
416 case 3:
417 type.builtInType = Arg3Type( call );
418 Arg3Dim( call, type.width, type.height );
419 return type;
420 case -1:
421 type.builtInType = ResultType( call );
422 ResultDim( call, type.width, type.height );
423 return type;
424 }
425 return type;
426}
427
428template <
429 TypeComponent ResultType,

Callers

nothing calls this directly

Calls 2

ResultTypeClass · 0.85
FromTokenTypeMethod · 0.45

Tested by

no test coverage detected