Jump to content
  • Advertisement
Sign in to follow this  
hayden

OpenGL GLSL - Parallel Processing

This topic is 3564 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, i made a visual simulation of Depth of Field using OpenGL and GLSL (vertex/fragment shaders) and i'd like to know how can i process several pixels at the same time, objective is to improve performance.. Can someone help me with this, examples maybe? Thanks in advance :)

Share this post


Link to post
Share on other sites
Advertisement
You can't. The hardware already does this for you. Every modern GPU has a rather large amount of parallel pipelines that process many pixels simultaneously.

Share this post


Link to post
Share on other sites
Thanks for the fast reply :)

So there's any way to know how many pixels are being processed simultaneously?

Share this post


Link to post
Share on other sites
No. It's implementation dependent, and varies from one GPU to the next. It also depends on the complexity of your 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!