Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualbelfegor

Posted 05 January 2013 - 07:06 AM

Then i always need a vector with size of MAX_BONES ?

Thats why i asked this question, is there a harm if it reads past the end of a vector, even if that data isn't used? Or is it undefined behaviour?

I got shader error if i pass it like this:
effect->SetValue(hMatrices, &vMat[0], vMat.size() * sizeof(D3DXMATRIX));
vMat size is 33, but in shader i have:
float4x4 mats[35];

#1belfegor

Posted 05 January 2013 - 07:02 AM

Then i always need a vector with size of MAX_BONES ?

 

Thats why i asked this question, is there a harm if it reads past the end of a vector, even if that data isn't used? Or is it undefined behaviour?


PARTNERS