你也可以自己亂打 只是通常還是建議按照MS的guide打 https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-semantics?redirectedfrom=MSDN
在D3D中確實是需要用SEMANTIC去綁資源跟SHADER對上的,但是實際上更複雜,(除非你勵志當3A Graphics Programmer, 不然可以忽略這塊)Semanticw主要的最大共用還是Decouple 不同Stage的Shader, 我可以用固定VS, PS換來換去,只要Semantic多上,變數名稱不用對上也沒關係
https://docs.microsoft.com/en-us/windows/win32/direct3d11/d3d10-graphics-programming-guide-input-assembler-stage-getting-started