Navigation
API > API/Runtime > API/Runtime/Core
Description
Converts the 4 FLOATs in the vector to 4 BYTEs, clamped to [0,255], and stores to unaligned memory. IMPORTANT: You need to call VectorResetFloatRegisters() before using scalar FLOATs after you've used this intrinsic!
| Name | VectorStoreByte4 |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathFPU.h |
| Include Path | #include "Math/UnrealMathFPU.h" |
void VectorStoreByte4
(
const VectorRegister4Float & Vec,
void * Ptr
)
Parameters
| Name | Remarks |
|---|---|
| Vec | Vector containing 4 FLOATs |
| Ptr | Unaligned memory pointer to store the 4 BYTEs. |