Jump to content
  • Advertisement
Sign in to follow this  
GoodFun

[SlimDX] Use multiple textures in a shader (DX10)

This topic is 3619 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

Hi there, I'm currently looking for a good way to pass multiple textures into a shader. I'm using different shaders, some with one texture, some with multiple and I'd like to simplify the code that loads the textures into the shader. Currently I have multiple texture variables that I each fill individually, that requires me to have separate loader code for each shader. I'd like to be able to load an array of individual textures into an array of textures in the shader. As always, help is greatly appreciated... btw, good job on the latest release... It came out just in time to be included in our latest deployment... Thanks Marcel [Edited by - GoodFun on November 17, 2008 7:19:32 PM]

Share this post


Link to post
Share on other sites
Advertisement
Spent another day looking for examples... not much out there, either it's insanely simple and I'm missing the point or it's fairly complex... somehow my gut tells me it's the former...

Share this post


Link to post
Share on other sites
Any chance any of you guys have a DirectX 10 example for SlimDX on how to set variables in a constant buffer as well as a texture buffer with an array of texture objects?

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!