Kha: D3D11 Crash and Unknown error
Got a strange errors with D3D11. It’s alwas print “Unknown error” in output console.
After some investigations I found that error caused on this line: https://github.com/Kode/Kore/blob/24bd154ed65ca3eb35f07eb8a53117b07903f080/Backends/Direct3D11/Sources/Kore/ProgramImpl.cpp#L240
In debug mode I got different errors on different shaders:
First type of errors:
D3D11 ERROR: ID3D11Device::CreateInputLayout: Encoded Signature size doesn't match specified size. [ STATE_CREATION ERROR #161: CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE]
Second type of errors:
D3D11 ERROR: ID3D11Device::CreateInputLayout: Element[3] and Element[2] have the same Semantic (TEXCOORD 0). All Semantics in the Input Layout must be unique. This error is only printed on the first occurence detected. [ STATE_CREATION ERROR #160: CREATEINPUTLAYOUT_DUPLICATESEMANTIC]
But everything works fine with OpenGL.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- Handle unused attributes in Direct3D11 Improvement for Kode/Kha#530 — committed to Kode/Kinc by RobDangerous 7 years ago
Didn’t fix your rendering yet but the actual “Encoded Signature…” bug is fixed (Haxe/hxcpp could collect and reuse the vertex shader memory in D3D11 so it was kind of a random incident).
I fixed something and it now runs but doesn’t look much like in OpenGL. Problem is/was about unused attributes. Maybe more problems, that sample is huge…