Sign in to follow this  

Binding pixel shader render targets with HLSL?

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

Hey all, I was wondering how I could use render targets to bind the output of a pixel shader to a texture. I understand the concept of rendering to a texture but not sure about how to do it with HLSL.

Share this post


Link to post
Share on other sites
you can not beind a speciffic shader to a render target

as you see you can swicth between diferent effect in a render target

but not switch defferent rendertarget ,

the rendertarget in xna is contructed in a way , that when you are finish render all your models

you have to get the content of the rendertarget to a texture

and then the rendertarget is automatic clear for you

it is done this way , becourse the xbox360 does not share memory between render target unles you use multiple rendertarget

like the nvidia and ati cards share video memory between render target

go to xna creators club there are a lot of smaples
and www.ziggyware.com there are even more samples on rendertarget and hlsl


hope this helps

Share this post


Link to post
Share on other sites

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