c++ - DirectX 11: Runtime Assertion Failure using XMLoadFloat4X4() -


While trying to store the matrix within a strat, I have an entry failure on the runtime while calling XMFLOAT4x4 The error is received by the type of a strat by using XMLoadFloat4X4 () * .

Enter image details here

stored the value only Goes:

XMFLOAT4X4 * f4x4_Scale; XMFLOAT4X4 * F4x4_ rotation; XMFLOAT4X4 * f4x4_Translate; XMFLOAT4X4 * f4x4_ObjectViewSpace;

Probably loading real values ​​from the XMFLOAT4x4 * space located inside a structure.

I XMLoadFloat4X4 () inside the conversion function, such as:

  XMMATRIX unit :: scale (float x, float y, float z ) {XMMATRIX m_Scale = XMLoadFloat4x4 (e_Asset.Asset.FileDesc.matrixTransformation .f4x4_Scale); M_Scale = XMMatrixScaling (x, y, z); Return m_Scale; }  

disassembly XMLoadFloat4x4 () shows a break inside the function, but I can not understand it. Enter image details here

Is there a method / method to use I represent failure Can I redress for the XMLoadFloat () errors? (Or really good stuff on the bearing error) and / or am I doing something wrong?

Update:

As Chuck Walburn suggested, (XMFLOAT4X4) * pSource indicator XMLoadFloat4X4 ( ) was NULL , satisfying the assurance terms for the function. The pointer is being passed, it was not initially started, then I tried to set the indicator [stack].

A clock was determined, and XMFLOAT4X4 values ​​were started XMStoreFloat4X4 () .

  Identify a matrix using XMMATRIX identification = XMMatrixIdentity (); XMStoreFloat4x4 (& e_Asset.Asset.FileDesc.matrixTransformation.f4x4_Scale, detection); The final culprit was just the fact that there were so many loads in the conversion work, and I lost a stray debugging step (I have set a new  XMFLOAT4X4  in variable one). The work and never started it) the problem was resolved in advance. 

DirectXMath library has a shared source, so that you can take action in the function in the debugger.

XMLloadFloat4x4 is the only emphasis on the input pointer is not confirmed:

  / ------ ------- ------------------------------------------- ------- --------------- _Use_decl_annotations_inline XMMATRIX XMLoadFloat4x4 (CONST XMFLOAT4X4 * pSource) {emphasis (pSource); #if Defined (_XM_NO_INTRINSICS_)  

Do you think the e_Asset.Asset.FileDesc.matrixTransformation.f4x4_Scale pointer is actually set up here?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -