You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ID3D11Device::CreateInputLayout: "The provided input signature expects to read an element with SemanticName/Index: 'NORMAL'/0, but the declaration doesn't provide a matching name." even if the shader contains the semantic NORMAL.
When renaming the NORMAL semantic to NORMA, the error changes the reference to TEXCOORD. Occasionally, the shaders compile and render correctly without changes. Also, sometimes I get errors about duplicate semantics (e.g. Element[3] and Element[2405181685762] have the same Semantic ( 0)) that don't exist.
I use my engine once in WinUI 3 and once in the Silk.NET window. With WinUI 3, the problem hardly ever occurs on my device. On another, it occurs every time. With the Silk.NET window it also occurs randomly. Only after I added XAudio 2 (i.e. I create an instance of the audio context), the problem occurs much more often.
These issues do not only occur with this shader. If you replace the current shader with another one, the same bugs occur.
I have added parts of my Shader class (Shader.txt), which is largely based on the Silk.NET sample.
This discussion was converted from issue #2384 on December 13, 2024 14:53.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am using DirectX 11 for my engine, and I am encountering apparently random errors during input layout creation.
My shader code
Observed Errors
System.ArgumentException: Value does not fall within the expected range. when calling
Device.CreateInputLayout
:ID3D11Device::CreateInputLayout: "The provided input signature expects to read an element with SemanticName/Index: 'NORMAL'/0, but the declaration doesn't provide a matching name."
even if the shader contains the semanticNORMAL
.When renaming the
NORMAL
semantic toNORMA
, the error changes the reference toTEXCOORD
. Occasionally, the shaders compile and render correctly without changes. Also, sometimes I get errors about duplicate semantics (e.g.Element[3] and Element[2405181685762] have the same Semantic ( 0)
) that don't exist.I use my engine once in WinUI 3 and once in the Silk.NET window. With WinUI 3, the problem hardly ever occurs on my device. On another, it occurs every time. With the Silk.NET window it also occurs randomly. Only after I added XAudio 2 (i.e. I create an instance of the audio context), the problem occurs much more often.
These issues do not only occur with this shader. If you replace the current shader with another one, the same bugs occur.
I have added parts of my
Shader
class (Shader.txt), which is largely based on the Silk.NET sample.Beta Was this translation helpful? Give feedback.
All reactions