Hi there estefan,
I was rethinking to the Wrap mode function i added a while ago and come to the conclusion that it is useless and maybe I started this mess by answering you the wrong way.
The right answer is “yes” there is an alternative way to do that.
bg_under_wrap_mode and bg_over_wrap_mode can take several values:
- “clamp_to_border”
- “clamp_to_edge”
- “repeat”
- “mirrored_repeat”
…and you set them in .slangp the same way you set any other parameter.
So my question is:
Is really needed to change the wrap mode as a runtime option in the shader?
Ditching it would free the code from some branching and complexity.
I’d ask you to try to set Wrap mode in koko-aio to default and use the retroarch’s builtin bg_under/over_wrap_mode instead.
If you’ll be able to do the same things as before, i’d cut that code from koko-aio.