Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I don't know if I'm just not looking in the right place, but I can't find ID3D10EffectShaderResourceVariable::SetResourceArray anywhere in SlimDX.

Anyone have any idea how I should be calling this?

share|improve this question
I checked SlimDX trunk and it doesn't have this function exposed for some reason (SlimDX.Direct3D11.EffectResourceVariable.SetResourceArray() is there as expected). I don't know why ID3D10EffectShaderResourceVariable->SetResourceArray() is absent, and even though it seems easy to expose it yourself, maybe it's better to ask SlimDX devs on their Gamedev forum or hope that @Josh Petrie will answer here :) – EnoughTea Aug 31 '11 at 12:33
@Vigil - yeah that's what I thought. I've asked on Gamedev but no answer so far. – Groky Aug 31 '11 at 13:13
@Vigil I don't think the system pings me if you @ me in comment on a question where I have not participated yet. :) – Josh Petrie Oct 5 '11 at 15:54
up vote 2 down vote accepted

This was a bug in SlimDX; we just left the method out. It was fixed in revision 2134 and should be in the binaries for our September release (which, the name notwithstanding, was shipped in October a few days ago).

You can simply call SetResourceArray with an array of shader resource views on any EffectResourceVariable now.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.