0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

DirectX Tool KitのShaderで変なエラーが出た話

Posted at

タイトルなし.png

呼び出し履歴を見ると、とあるモデルの描画の際
エラーが起きるっぽい。

image.png
image.png
描画はShaderを変えている以外は普通で

image.png
image.png
他のモデルも同じコードを書いているが普通に動く。

出力を見ると...

D3D11 ERROR: ID3D11DeviceContext::DrawIndexed: Input Assembler - Vertex Shader linkage error: Signatures between stages are incompatible. The input stage requires Semantic/Index (TEXCOORD,0) as input, but it is not provided by the output stage. [ EXECUTION ERROR #342: DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND]

...とかほざいてる。

VertexShaderのシグネチャが互換性がない~とか言ってて
Shaderが受け取る構造体違うやで
みたいな話が。

でもVertexShaderだからよっぽど違わな...

あ。

The input stage requires Semantic/Index (TEXCOORD,0) as input, but it is not provided by the output stage.

TEXCOORDが欲しいけど出力がない...?
TEXCOORDには2Dテクスチャの色情報が入っていて...

他のモデルは正常に動く...

このモデルテクスチャつけてねぇわ!

...というバカみたいな初歩的ミスで1週間近く無駄にしたので備忘録。

Shaderの勉強頑張らないとな...

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?