- added vector builtins Length() and Unit().
This should complete the vector type except for use as function parameter.
This commit is contained in:
parent
b5222f08e8
commit
f5d1b1a491
4 changed files with 81 additions and 0 deletions
|
|
@ -266,6 +266,7 @@ enum EFxType
|
|||
EFX_SwitchStatement,
|
||||
EFX_CaseStatement,
|
||||
EFX_VectorInitializer,
|
||||
EFX_VectorBuiltin,
|
||||
EFX_COUNT
|
||||
};
|
||||
|
||||
|
|
@ -1254,6 +1255,25 @@ public:
|
|||
ExpEmit Emit(VMFunctionBuilder *build);
|
||||
};
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FxFlopFunctionCall
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
class FxVectorBuiltin : public FxExpression
|
||||
{
|
||||
FName Function;
|
||||
FxExpression *Self;
|
||||
|
||||
public:
|
||||
|
||||
FxVectorBuiltin(FxExpression *self, FName name);
|
||||
~FxVectorBuiltin();
|
||||
FxExpression *Resolve(FCompileContext&);
|
||||
ExpEmit Emit(VMFunctionBuilder *build);
|
||||
};
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FxVMFunctionCall
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue