• Advertisement
Sign in to follow this  

Is it possible to *retrieve* integer data from shader code ?

This topic is 2624 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 all ... I have a simple question to ask .. Its one of the first things you learn about shaders when using them with XNA that you can pass on variables from C# to the shader code via the Effect.Parameters function. For example:

Effect.Parameters["shaderVariable"].SetValue(someValue);

In the above line, you're sending the value stored in 'someValue' to the shader variable 'shaderVariable' ..

Can we do the reverse as well ? Like for example, you want to debug the inner workings of a shader code and want to send back some numerical data to your C# application, then is there any similar but opposite relation functional available as well ?

Share this post


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

  • Advertisement