XMLoadFloat3PK 함수(directxpackedvector.h)

XMFLOAT3PKXMVECTOR에 로드합니다.

구문

XMVECTOR XM_CALLCONV XMLoadFloat3PK(
  [in] const XMFLOAT3PK *pSource
) noexcept;

매개 변수

[in] pSource

로드할 XMFLOAT3PK 구조체의 주소입니다.

반환 값

pSource 매개 변수의 데이터와 함께 로드된 XMVECTOR를 반환합니다.

설명

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


  XMVECTOR vectorOut;

  float xscale = powf( 2, (float)pSource->xe - 15);
  vectorOut.x = ((float)pSource->xm / 64.0f)*xscale;

  float yscale = powf( 2, (float)pSource->ye - 15);
  vectorOut.y = ((float)pSource->ym / 64.0f)*yscale;

  float zscale = powf( 2, (float)pSource->ze - 15);
  vectorOut.z = ((float)pSource->zm / 32.0f)*zscale;
  
  vectorOut.w = 0;

  return vectorOut;

플랫폼 요구 사항

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

요구 사항

   
대상 플랫폼 Windows
헤더 directxpackedvector.h(DirectXPackedVector.h 포함)

추가 정보

DirectXMath 라이브러리 벡터 로드 함수