1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-09-18 22:29:53 +00:00

Fixed some misleading comments

This commit is contained in:
Chuck Walbourn 2022-11-09 15:05:41 -08:00
parent fc2763a681
commit 0fc79cd309

View File

@ -2515,10 +2515,10 @@ inline XMMATRIX XM_CALLCONV XMMatrixPerspectiveFovLH
XMVECTOR vTemp = _mm_setzero_ps();
// Copy x only
vTemp = _mm_move_ss(vTemp, vValues);
// CosFov / SinFov,0,0,0
// Height / AspectRatio,0,0,0
XMMATRIX M;
M.r[0] = vTemp;
// 0,Height / AspectRatio,0,0
// 0,Height,0,0
vTemp = vValues;
vTemp = _mm_and_ps(vTemp, g_XMMaskY);
M.r[1] = vTemp;
@ -2615,10 +2615,10 @@ inline XMMATRIX XM_CALLCONV XMMatrixPerspectiveFovRH
XMVECTOR vTemp = _mm_setzero_ps();
// Copy x only
vTemp = _mm_move_ss(vTemp, vValues);
// CosFov / SinFov,0,0,0
// Height / AspectRatio,0,0,0
XMMATRIX M;
M.r[0] = vTemp;
// 0,Height / AspectRatio,0,0
// 0,Height,0,0
vTemp = vValues;
vTemp = _mm_and_ps(vTemp, g_XMMaskY);
M.r[1] = vTemp;