no matter where i put DrawIndexed i get 'driver has stopped working and has recoverd' crash, if DrawIndexed is not included i can't get anything to render. In both cases program comiles without warnings or errors.

Can someone help with this, there is not much info on how to correctly implement md5 models with directx 11?

I still can't fix this problem, should i upload my project or relevant files so somebody can help with this? I have no idea how to fix this. I tried debugging but model and animation load fine and then driver crashes on DrawIndexed, i don't know why is this.

now the code i am using is copy/paste from tutorials, the man that wrote md5 tutorials made them functional but entire code is in one file! so i took functions that are relevant for md5 stuff and put them together with rastertek tutorial with 3d cube.

ok step forward, but now when placing break point on for loop from the first post it breaks with this

D3D11: ERROR: ID3D11DeviceContext::DrawIndexed: A Vertex Shader is always required when drawing, but none is currently bound. [ EXECUTION ERROR #341: DEVICE_DRAW_VERTEX_SHADER_NOT_SET ]
D3D11: ERROR: ID3D11DeviceContext::DrawIndexed: Rasterization Unit is enabled (PixelShader is not NULL or Depth/Stencil test is enabled and RasterizedStream is not D3D11_SO_NO_RASTERIZED_STREAM) but position is not provided by the last shader before the Rasterization Unit. [ EXECUTION ERROR #362: DEVICE_DRAW_POSITION_NOT_PRESENT ]

now the entire shader implementation is rastertek sample nothing is changed except i put together vs and ps files from tutorial into one so it looks like this

I have that function, as i said entire shader portion of the program is rastertek tutorial copy/paste see attachment. I know rules of the forum and the things like 'we wont write code for you' but this is different. Take a look at the project to see the problem, hopefully someone will tell me the solution to this?