Render texture data to a Render target Surface

Started by
2 comments, last by ybatra 11 years, 1 month ago

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?

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?

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

thanks, Yes I'm getting the expected results.

This topic is closed to new replies.

Advertisement