Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible sat optimisation? #26

Open
jonathanrpace opened this issue Apr 22, 2013 · 0 comments
Open

Possible sat optimisation? #26

jonathanrpace opened this issue Apr 22, 2013 · 0 comments

Comments

@jonathanrpace
Copy link

GLSL doesn't have a saturate function - so I'm using clamp( value, 0.0, 1.0 ) instead. Currently this is being compiled down to a pair of min/max instructions, and requires the use of an additional temporary register (Something I can't afford in complex shaders).

As AGAL supports sat, would it be possible to reduce this case down to a single instruction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant