Sign in to follow this  

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

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:


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

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