I have the following code:
XMFLOAT3 normalized_direction = XMVector3Normalize(direction);
pEffect->GetVariableByName("g_CameraDirection")->AsVector()->SetFloatVector(normalized_direction);
I want to pass XMFLOAT3 in const float *pData ?
I have the following code:
XMFLOAT3 normalized_direction = XMVector3Normalize(direction);
pEffect->GetVariableByName("g_CameraDirection")->AsVector()->SetFloatVector(normalized_direction);
I want to pass XMFLOAT3 in const float *pData ?
Copyright © 2021 Jogjafile Inc.
You can reference the first entry of your vector: