Sign in to follow this  
thedodgeruk

strange shader error i think ?

Recommended Posts

im getting this error


D3D10: WARNING: ID3D10Device::DrawInstanced: Vertex Buffer at the input vertex slot 1 is not big enough for what the Draw*() call expects to traverse. This is OK, as reading off the end of the Buffer is defined to return 0. However the developer probably did not intend to make use of this behavior. [ EXECUTION WARNING #356: DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL ]


i am trying to impliment instancing in my engine.

i can not for the life of me figure out what is going on , can some one may point me in the right direction pleaase?

Share this post


Link to post
Share on other sites
[quote name='thedodgeruk' timestamp='1314009845' post='4852218']
im getting this error


D3D10: WARNING: ID3D10Device::DrawInstanced: Vertex Buffer at the input vertex slot 1 is not big enough for what the Draw*() call expects to traverse. This is OK, as reading off the end of the Buffer is defined to return 0. However the developer probably did not intend to make use of this behavior. [ EXECUTION WARNING #356: DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL ]


i am trying to impliment instancing in my engine.

i can not for the life of me figure out what is going on , can some one may point me in the right direction pleaase?
[/quote]

Well, I think that D3D is reporting what seems to be the problem. Your vertex buffer at input slot 1 doesn't have enough data for the draw call.

Show some relevant part of the code and we'll discuss a bit more.

Good luck!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this