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

Function FunctionDescription2Ex

shadercompiler/IntrinsicTypes.h:328–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 DimComponent Arg1Dim,
327 int Arg1Modifier>
328Type FunctionDescription2Ex( ASTNode* call, int argIndex )
329{
330 Type type;
331 type.FromTokenType( OP_VOID );
332 switch( argIndex )
333 {
334 case 0:
335 type.builtInType = Arg0Type( call );
336 Arg0Dim( call, type.width, type.height );
337 type.modifier = Arg0Modifier;
338 return type;
339 case 1:
340 type.builtInType = Arg1Type( call );
341 Arg1Dim( call, type.width, type.height );
342 type.modifier = Arg1Modifier;
343 return type;
344 case -1:
345 type.builtInType = ResultType( call );
346 ResultDim( call, type.width, type.height );
347 return type;
348 }
349 return type;
350}
351
352template <
353 TypeComponent ResultType,

Callers

nothing calls this directly

Calls 2

ResultTypeClass · 0.85
FromTokenTypeMethod · 0.45

Tested by

no test coverage detected