Jump to content
  • Advertisement
Sign in to follow this  
ToohrVyk

Shader Baker

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

Are there any programs which take as input a shader and a set of textures (to which the shader is typically applied), and output a new shader and another set of textures, which produce approximately the same results (adjustable) by using more memory to achiever higher execution speed?

Share this post


Link to post
Share on other sites
Advertisement
The way I understand your questions is: how can I balance the speed of a shader by factoring parts of the algorithm into a texture.
Because arithmetic instruction speed is usually much faster than texture reads, this will only make sense in a very limited number of cases.
With increasing computational power, it makes less and less sense, because arithmetic instruction speed scales better than memory access.

Share this post


Link to post
Share on other sites
I see. Then, I will slightly alter my original questoin.

First, I would like to turn "memory access + arithmetic operation" into "memory access into possibly larger texture, without arithmetic operation".

There's also the "approximation" deal of obtaining a similar result using a single texture access (thus compatible with older cards) instead of several texture accesses and operations.

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!