How To Select The Graphics API Based On The Current Android Device
Hello everyone,
There is an issue that I couldn't find a solution for, so I wanted to consult you. The project is for android devices. I have OpenGL3 and Vulkan in my project. I am changing the shader I use in the project according to the SystemInfo.supportsTessellationShaders value.
As a problem, SystemInfo.supportsTessellationShaders value comes true in OpenGL3 on some devices, false in vulkan. On some devices, on the contrary, SystemInfo.supportsTessellationShaders is false in OpenGL3 and true in Vulkan. When I choose AutoGraphicAPI, only OpenGL3 is selected. Does anyone know of a method for me to have the Graphic api choose Vulkan or OpenGL3 in runtime or before runtime according to the SystemInfo.supportsTessellationShaders value of the device?
I know I have to solve it in UnityPlayerActivity.java. But I couldn't find what action to do.
Unity version: 2019.4.16f1