FRigVMMemoryContainer::ChangeRegisterType

Changes the type of a register provided a new type and a data pointer.

Windows
MacOS
Linux

References

Module

RigVM

Header

/Engine/Source/Runtime/RigVM/Public/RigVMCore/RigVMMemory.h

Include

#include "RigVMCore/RigVMMemory.h"

Source

/Engine/Source/Runtime/RigVM/Private/RigVMCore/RigVMMemory.cpp

Syntax

bool ChangeRegisterType
(
    int32 InRegisterIndex,
    ERigVMRegisterType InNewType,
    int32 InElementSize,
    const uint8 * InDataPtr,
    int32 InNewElementCount,
    int32 InNewSliceCount
)

Remarks

Changes the type of a register provided a new type and a data pointer. This can be used to store different content in a register for re-using the memory, but this only works for new elements smaller or of the same size (since the register can't grow).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss