#How to ensure compatibility with OpenGL Core in Linux?

1 messages · Page 1 of 1 (latest)

wooden stratus
#

I'm working on a custom asset, that includes various shaders. In windows OpenGLCore is deprecated but Linux still has it as the default render API.

One of my users has stated that the shaders don't work properly in Linux by default (they need to change to Vulkan for it to work) How can I check or what can I check that might be broken. There are many things so im not sure if it's a bug or if there are certain things that are really important that I could check.

Note OpenGLES3 works well

mellow robin
#

At this point you should probably just set Vulkan as the default, on Linux. OpenGL was always a compatibility mess. GLES is more standardized.

wooden stratus
#

I agree, but it's more of my users launching the asset with an uncompatible render API. I could set a warning or disclaimer that it dosen't work, but ideally I'd like to make it compatible

#

It seems to be an issue with Texture2dArray.GetDimensions not returning the proper values

mellow robin
#

I'd go with the warning. Can't be expected to support legacy rendering APIs.

wooden stratus
#

True. I'm suprised that in Linux is still the default tho

mellow robin
#

That is strange. I don't think HDRP even supports OpenGL.

wooden stratus
#

weird

#

Do you know of any defined variable I can check in a shader to know wich api is being used?

#

something like #if defined(SHADER_API_OPENGL_CORE)