Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


0x23

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

#5072195 about Shader Arrays, Reflection and BindCount

Posted by 0x23 on 23 June 2013 - 05:02 AM

Hi,

 

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

 

"TextureOut[0]"

"TextureOut[1]"

...

 

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.

 




PARTNERS