• Advertisement
Sign in to follow this  

Render texture data to a Render target Surface

This topic is 1765 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 group members,  I'm a beginner in DIrectX and I have following doubt, hope I can get the answer at this group. 

Let say Texture (T1) is an alias of render target surface (s1) and I have rendered a triangle on the RT surface( s1), I want to render texture's(T1) data onto a render target surface(S2) using texture lookup into pixel shader in second draw call. So in the end S1 and S2 should have same data or not? 

Share this post


Link to post
Share on other sites
Advertisement

Hi all group members,  I'm a beginner in DIrectX and I have following doubt, hope I can get the answer at this group. 

Let say Texture (T1) is an alias of render target surface (s1) and I have rendered a triangle on the RT surface( s1), I want to render texture's(T1) data onto a render target surface(S2) using texture lookup into pixel shader in second draw call. So in the end S1 and S2 should have same data or not? 

I meant both the surfaces S1 and S2 will have the same pixel values or not? 

Share this post


Link to post
Share on other sites

assuming S1 and S2 have the same (pixel) format, the pixel shader does nothing more then a lookup and you draw a fullscreen quad, yes they will have the same value

Share this post


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

  • Advertisement