Sign in to follow this  

how to render in multiple surafces/targets ?

Recommended Posts

Hello !
I know how to render a scene in a texture, but how to render to several textures simultaneously ?
if I create 3 textures, how my pixel shader will write in each texture?
What i need, it is the directx function(s) names to use to write in 3 textures simultaneously, just in one rendering.
I assume that i have to create 3 surfaces too ?

With a single texture i have this :

renderTosurface1->BeginScene(surface1, &viewport);
//render the scene

But if i want to write in 3 surfaces at the same time, just with one rendering, how should i modify my code ?

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