我有以下代码:
XMFLOAT3 normalized_direction = XMVector3Normalize(direction);
pEffect->GetVariableByName("g_CameraDirection")->AsVector()->SetFloatVector(normalized_direction);
我想在 const float *pData 中传递 XMFLOAT3 吗?
我有以下代码:
XMFLOAT3 normalized_direction = XMVector3Normalize(direction);
pEffect->GetVariableByName("g_CameraDirection")->AsVector()->SetFloatVector(normalized_direction);
我想在 const float *pData 中传递 XMFLOAT3 吗?