1
\$\begingroup\$

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?

\$\endgroup\$
3
  • \$\begingroup\$ 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 :) \$\endgroup\$
    – EnoughTea
    Aug 31, 2011 at 12:33
  • \$\begingroup\$ @Vigil - yeah that's what I thought. I've asked on Gamedev but no answer so far. \$\endgroup\$
    – Groky
    Aug 31, 2011 at 13:13
  • \$\begingroup\$ @Vigil I don't think the system pings me if you @ me in comment on a question where I have not participated yet. :) \$\endgroup\$
    – user1430
    Oct 5, 2011 at 15:54

1 Answer 1

2
\$\begingroup\$

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.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .