XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

CBuffer slot

Last post 08-29-2008 6:53 PM by SirKnightTG. 1 replies.
  • 08-29-2008 6:13 PM

    CBuffer slot

    Is it possible using the shader reflection API to get the slots each constant buffer used in a shader is bound to? I thought that would be in D3D10_SHADER_BUFFER_DESC but it's not and I can't find it anywhere else. I'm not using Effects.
  • 08-29-2008 6:53 PM In reply to

    Re: CBuffer slot

    Hmm, looks like I have to iterate through all resources using GetResourceBindingDesc and compare names and once I have a match, BindPoint is the slot number I need. Ugh. What a lame way to get a buffer's bound slot.
Page 1 of 1 (2 items) Previous Next