XMLoadUHenDN3
Loads an XMUHENDN3 into an XMVECTOR.
Syntax
XMVECTOR XMLoadUHenDN3(
CONST XMUHENDN3 *pSource
)
Parameters
- pSource
[in] Address of the XMUHENDN3 structure to load. This parameter must point to cached memory.
Return Value
Returns an XMVECTOR loaded with the data from the pSource parameter.
Remarks
The following pseudocode demonstrates the operation of the function.
XMVECTOR vectorOut; UINT Element; Element = pSource->v & 0x7FF; vectorOut.x = (FLOAT)Element / 2047.0f; Element = (pSource->v >> 11) & 0x7FF; vectorOut.y = (FLOAT)Element / 2047.0f; Element = (pSource->v >> 22) & 0x3FF; vectorOut.z = (FLOAT)Element / 1023.0f; return vectorOut;
Requirements
Header: Declared in xnamath.h.