cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL & Vulkan

tim-rex
Adept I

GL_ARB_shading_language_include pretends to be supported, changes its mind.

I'm a little confugsed about the availability of GL_ARB_shading_language_include 

GL_EXTENSIONS shows positive signs that the extension is available:

Supported extension (128/303): GL_ARB_shading_language_100
Supported extension (129/303): GL_ARB_shading_language_420pack
Supported extension (130/303): GL_ARB_shading_language_include
Supported extension (131/303): GL_ARB_shading_language_packing

 

gpuinfo.org also reports availability with GL 4.60 and GLSL 4.60 for the RX 580 series (among others)

But any attempt to use it within a shader:

#version 460 core
#extension GL_ARB_shading_language_include : require

<shader code here>

 

results in:

0:2: error(#366) Extension GL_ARB_shading_language_include is not supported on this card
0:23: error(#110) Invalid Directive: include
0:24: error(#110) Invalid Directive: include

 

I am compiling this shader with glCompileShaderIncludeARB() under a 4.6 forward compatible context.

OpenGL 4.6.14830 Core Profile Forward-Compatible Context 21.4.1 27.20.21002.112, GLSL 4.60

 

I'm running with driver revision 21.4.1 on Windows 10

If this is truly not supported (which would seem to be the case) then perhaps we shouldn't advertise it via GL_EXTENSIONS

0 Likes
1 Reply
nou
Exemplar

I also got hit by this bug. AMD driver on windows claim to support this extension and then throw error like this.