toi

sampler2DShadow not supported in compute shaders?

Discussion created by toi on Feb 19, 2015
Latest reply on Feb 19, 2015 by jtrudeau

I have been running into a problem, using the 14.12-2 driver version. I am on Arch Linux with a R9 270X.

When trying to compile a compute shader with a sampler2DShadow my program segfaults.

Reproducable code:

GLuint willSegFault = glCreateShader( GL_COMPUTE_SHADER );
//GLuint willSegFault = glCreateShader( GL_FRAGMENT_SHADER ); // Works
const char* shd = "\
layout(local_size_x = 16, local_size_y = 16) in;\
uniform sampler2DShadow gShadowMap;\
void main()\
{\
float notworking = texture(gShadowMap, vec3(0.5));\
}\
";
glShaderSource(willSegFault, 1,&shd, NULL);
glCompileShader(willSegFault); // Segfaults here

So is it an extension missing, simply not supported or a driver bug?

I have some bugs to report besides this, where is the best place to report them?

Outcomes