Sign in to follow this  

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

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

This topic is 3310 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this