libretro/glsl-shaders

9-tap bicubic filter

malvarenga123 opened this issue · 3 comments

Hi, is there any chance the 9-tap bicubic filter could be implemented as an alternative to the regular one?

It's possible, sure, but is there a real use-case for it where the extra 7 taps is just too slow?

EDIT: reading over the article, I realized we already have slang versions of both the b-spline and catmull-rom optimizations.

It's possible, sure, but is there a real use-case for it where the extra 7 taps is just too slow?

I'm guessing some tests were done here, which led to him using it.

I ported that to slang some time ago: https://github.com/Hyllian/slang-shaders/blob/master/cubic/shaders/catmull-rom.slang

Nowadays I prefer the new multipass implementation where I only fetch 8 times (horizontal and vertical passes) and its parameters can be tweaked to any B or C value.