Hi, I am trying to send the sizeof a array into the D3D11_BUFFER_DESC.ByteWidth By doing it like this [
code=:0]//Some other code DWORD* indcies_D;indcies_D = new DWORD[Model.Total.Face * 3]; D3D11_BUFFER_DESC indexBufferDesc;ZeroMemory( &indexBufferDesc, sizeof(indexBufferDesc) ); indexBufferDesc.Usage = D3D11_USAGE_DEFAULT; indexBufferDesc.ByteWidth = sizeof(DWORD) * Model.Total.Face * 3; //<---- This would be complained by the compiler for some reason but not if its * 4 indexBufferDesc.BindFlags = D3D11_BIND_INDEX_BUFFER; indexBufferDesc.CPUAccessFlags = 0;indexBufferDesc.MiscFlags = 0; //some more code[/code]
am guessing my pointer takes up some extra memory? if so how would I get the size of a pointer o.o?
was drawing 3 times as much, than what the buffer was created for