- Home /
Problem is not reproducible or outdated
How do I debug the following error DirectX 11 shader input signature is null ?
I am using Graphics.DrawMeshNow (Graphics.DrawMesh has been depreciated) to draw a custom mesh. The editor throws the above error and as a result nothing in rendered on the game view. What might be the problem?
Answer by SLG · Jan 14, 2016 at 10:38 AM
We can't see if you don't put any code but I think it is because you use your Graphics methods outside void OnPostRender() MonoBehaviour method (if you are using C#).
I had the same problem when I used GL. It was because I used it in the Start or Awake MonoBehaviour methods. Since I put all methods that use GL inside my void OnPostRender() (or other similar Unity method made for rendering), it is rendered just fine in my scene and the "error DirectX 11 shader input signature is null" was fixed.
I Hope I was useful to you even if it was a bit late. (And I'm sorry for my english mistakes, I'm not a native English)