Checking of support for shaders

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dwafafiki

Hello,
Is there any way to check if the device supports shaders before I use them?
One of my android test devices is just hanging when a shader is displayed which is not cool :wink:

Thank you,
Maciek

:bust_in_silhouette: Reply From: SIsilicon

If it is Godot 3.0 you are using, then it probably has something to do with your device. Maybe it lacks opengl es 3.0 capabilities. If not, then it is most likely an export bug.

You are probably right , it may be a lack of support for opengl es 3.
But if it is the case, is there any method to check that in advance? Some sort of sandbox for shaders maybe?

dwafafiki | 2018-04-30 11:26

You mean your device’s opengl capabilities? You could what graphics processor it uses. And then what version that processor supports. Eg: A Mali 400 gpu only supports up to es 2.0.
Now to test es 3.0 without the mobile hardware. In you’re case you could just emulate the android device on a PC with opengl es 3.0.

SIsilicon | 2018-04-30 18:53