Advertisement Jump to content
Sign in to follow this  

Anyone know how you can pass more than one texture to a CustomEffect in SharpDX >= 3.0.2?

This topic is 813 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have made a couple of HLSL pixel shaders and everything worked out fine.

I am however unable to find a way of passing two different textures to the HLSL.


I did try to:

customEffect.SetInput(0, t1, true);

customEffect.SetInput(1, t2, true);

But it doesn't seem to do the trick.


If you have any idea, I would really appreciate a hand here.

Thank you



Reading again the sources I found the original DirectX class for this and also an example with everything that is needed.

For anyone having this problem: ID2D1EffectImpl (

And the example that saved the day:

Edited by happycoding

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!