Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I also noticed that I get this error repeating over and over:

Draw failed due to invalid input layout

I realise that this is due to the use of in_Normal in the fragment shader, but have I missed a step somewhere that prevents this error from happening? Unsure if it's related to the other issues I had.

This error means that the vertex format you’re using in your vertex buffer doesn’t contain all of the elements expected by the shader (which would be a 3D position, a 3D normal, a texture UV, and a color). If you don’t use the texture or the color you could edit the shader to ignore them, but otherwise you’ll have to make sure those values are included when you create the vertex buffer

Thank you!