I got this error when i run my app in debug mode:
effect.fx... error X3074: "BonesMats": implicit array missing initial value
[/quote]
witch i don't understand why it is happening and how to resolve it.
Here are my details:
#define MAX_BONES_MATRICES 40
...
// and i create effect from file with this macros
D3DXMACRO effMacros[2];
effMacros[0].Name = "MAX_BONES_MATRICES";
effMacros[0].Definition = to_string(MAX_BONES_MATRICES).c_str();
effMacros[1].Name = nullptr;
effMacros[1].Definition = nullptr;
LPD3DXBUFFER effectsErrors = NULL;
hr = D3DXCreateEffectFromFile(
device, fxFileName.c_str(), &effMacros[0],
nullptr, 0, nullptr, &effect, &effectsErrors);
if(FAILED(hr))
...
and in effect file i have this declaration that he is complaining about:
...
float4x4 BonesMats[MAX_BONES_MATRICES];
What am i missing?
Thank you for your time.