Quantcast
Channel: AMD Developer Forums: Message List - OpenGL & Vulkan
Viewing all articles
Browse latest Browse all 631

sampler2DShadow not supported in compute shaders?

$
0
0

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?


Viewing all articles
Browse latest Browse all 631

Trending Articles