libretro / slang-shaders

224 stars 92 forks source link

fsr-pass0.slang #195

Open dhyangfirst opened 3 years ago

dhyangfirst commented 3 years ago

Thanks for your fsr demo for opengl.

I have applied the shader fsr-pass0.slang on my opengles platform, the input picture is raw rgba8888, but the output picture is just pure red color.

Can you give any advice?

dhyangfirst commented 3 years ago

The platform is Qcom snapdragon 888. If I use "FragColor = texture(Source, vTexCoord);" that no use this feature, there is no problem. Fsr-pass1.slang also has this problem which seems that the Source texture cause the issue.

hizzlekizzle commented 3 years ago

If both of them are doing it, I suspect something is up with the compatibility macros: https://github.com/libretro/slang-shaders/blob/master/fsr/shaders/ffx_a.h

That is, there's barely anything going on in pass0, so maybe try replacing those macros with regular declarations (vec4, etc.).