Search Unity

Question OpenGLES3 + Barracuda

Discussion in 'Barracuda' started by rob11, Jan 23, 2022.

  1. rob11

    rob11

    Joined:
    Mar 7, 2017
    Posts:
    59
    Hello, is there any reasons why barracuda inferencing would be working perfectly on Android devices with Vulkan graphics API, but not with OpenGL ES3 ? I have been on this for a while and I just can't get it to work with OpenGL ES3. I need this specific graphics API because I am using ARFoundation. Anyone got it working with GLES3 so far ? The documentation says it is supported.

    I am quite new to ML + Barracuda so if there is any details I could provide don't hesitate to ask me.
     
  2. fguinier

    fguinier

    Unity Technologies

    Joined:
    Sep 14, 2015
    Posts:
    146
    Hi @rob11
    Unfortunatly OpenGLES driver quality in term of compute shader is very variable (on older device especially). Considering the vast array of devices and the little control we have at this level we have preferred to support Vulkan only for android where compute shaders are in a much better state. It does not mean Barracuda won't work for your use case for OpenGL + your device. In fact it will probably just run fine! However we don't officially support OpenGL as deploying to a vast range of devices would be risky for the driver quality reason.

    PS: here is the doc saying we support metal/vulkan (not openGLES)
    https://docs.unity3d.com/Packages/com.unity.barracuda@2.4/manual/SupportedPlatforms.html

    Hope it explains/help!
    Florent
     
    Last edited: Jan 24, 2022
  3. rob11

    rob11

    Joined:
    Mar 7, 2017
    Posts:
    59
    Thank you @fguinier
    On the documentation you linked, it says that OpenGLES is not supported for GPU Inference, that's why I tried to switch to CPU Inferencing with no luck. Is there a specific way to switch to CPU Inferencing beside choosing the appropriate IWorker ? As I understand it, CPU inferencing would not be using computer shaders.
     
  4. fguinier

    fguinier

    Unity Technologies

    Joined:
    Sep 14, 2015
    Posts:
    146
    Last edited: Jan 24, 2022