XMStoreUInt3 함수(directxmath.h)

XMVECTOR의 부호 없는 정수 데이터를 XMUINT3 구조체에 저장합니다.

구문

void XM_CALLCONV XMStoreUInt3(
  [out] XMUINT3   *pDestination,
        FXMVECTOR V
) noexcept;

매개 변수

[out] pDestination

데이터를 저장할 XMUINT3 구조체의 주소입니다.

V

저장할 데이터를 포함하는 벡터입니다.

반환 값

없음

설명

16바이트 정렬 메모리의 경우 캐스팅 연산자에서 XMStoreInt3A 를 사용하는 것이 더 빠를 수 있습니다.

다음 의사 코드는 이 함수의 작업을 보여 줍니다.


XMVECTOR N;	

assert(pDestination);

N = XMVectorClamp(V, XMVectorZero(), MaxUInt );
N = XMVectorRound(N);

pDestination->x = (uint32_t)N.v[0];
pDestination->y = (uint32_t)N.v[1];
pDestination->z = (uint32_t)N.v[2];

    

플랫폼 요구 사항

Windows 8 Windows SDK를 사용하는 Microsoft Visual Studio 2010 또는 Microsoft Visual Studio 2012. Win32 데스크톱 앱, Windows 스토어 앱 및 Windows Phone 8개 앱에 지원됩니다.

요구 사항

요구 사항
대상 플랫폼 Windows
헤더 directxmath.h

추가 정보

DirectXMath 라이브러리 벡터 저장소 함수