Sign in to follow this  
RenderCache

RenderToSurface & RenderTarget diff??

Recommended Posts

RenderCache    133
hihi! juz wondering wat r the signifcant differences between using render to surface and render target when doing a render to texture?? so far i have been using render to surfaces for abt >128 passes for the pixel shaders, i noticed that offscreen rendering via render to surfaces will incur a slight performance penalty as well. i know we can create textures, then take that surface ptr out and append to either render to surface or render target. i am not referring to MRTs. seems like we could simply "toggle" between these rendertargets, instead of using render to surfaces, and yet acheiving the objective of rendering to a texture... can it? thx! RC

Share this post


Link to post
Share on other sites
circlesoft    1178
ID3DXRenderToSurface is just a wrapper around IDirect3DDevice9::SetRenderTarget() and the associated functions. There is going to be a slight overhead, because all of the function calls have to go through this interface first.

So to answer your question: Yes, you can use either/or, since they do the exact same thing.

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