Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 23 Jun 2013
Offline Last Active Aug 07 2013 03:25 AM

#5072195 about Shader Arrays, Reflection and BindCount

Posted by on 23 June 2013 - 05:02 AM



I have a question about DirectX 11. I wrote a shader containing an input array (RWTexture2D<float4> TextureOut[8]).

The shader reflection interface now tells me that there are 8 bind points with names like this






Since the D3D11_SHADER_INPUT_BIND_DESC structure contains a 'BindCount' field I had rather expected a single

resource binding with  the name 'TextureOut' and a BindCount of 8. Why do I get 8 seperate bindings with bind count 1 instead?

I now wonder what the BindCount field is actually for and in which scenario it is larger than one?


Can anyone demystify this aspect of directX for me? Unfortunately the documention isnt much of a help.