Jump to content
  • Advertisement
Sign in to follow this  
lomateron

Rendering to a texture question

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

Rendering to a texture, just wanting to go through all its texels and change them, is a very common thing to do.
I am doing an application were I need to render 1000 times to the same texture in this way.
I think creating the quad and processing it 1000 times is a big lost of GPU time.
Is there any draw() function that goes directly to pixel shader skipping the vertex shader, because it already knows that i am going through all the texels of the render target? Edited by lomateron

Share this post


Link to post
Share on other sites
Advertisement

I think creating the quad and processing it 1000 times is a big lost of GPU time.


I really doubt it. Shading 4 vertices is nothing, even if you multiply that by 1000. And the triangle setup/rasterization hardware would just be idling if you weren't using it.

Either way, there's no way to skip the vertex shader. If you wantto skip rasterization altogether, you should use a compute shader.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!