Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Direct3D 11.3 and SM 5.1?

$
0
0
tldr; Shouldn't a ID3D11Device3 be able to load a vs_5_1 shader?
 
I'd like to make use of Dynamic Indexing which was made possible in SM5.1 - https://msdn.microsoft.com/en-gb/library/windows/desktop/mt186614(v=vs.85).aspx
 
As far as I can tell SM5.1 is available (at least partially?) in D3D11.3 - https://msdn.microsoft.com/en-us/library/windows/desktop/dn933277(v=vs.85).aspx
 
However if I 
  • write a simple vertex shader
  • compile it using fxc to a file (with /T vs_5_1)
  • then load that using ID3D11Device3::CreateVertexShader, it reports: D3D11 ERROR: ID3D11Device::CreateVertexShader: Shader must be vs_4_0, vs_4_1, or vs_5_0. Shader version provided: UNRECOGNIZED [ STATE_CREATION ERROR #167: CREATEVERTEXSHADER_INVALIDSHADERTYPE]
I'm using; Windows SDK 10.0.14393, d3dcompiler_47, fxc 10.1, D3D_FEATURE_LEVEL_11_1, 970GTX with driver 372.54, VC++ 14

Viewing all articles
Browse latest Browse all 17560

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>