cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

dchristopherfennell
Journeyman III

GPU Shader Analyzer

Whenever I use a Uniform Buffer Object in my fragment shader, I get "Internal compilation failure. Possibly caused by GSA not supporting a GLSL feature used in shader". Is there some configuration setting I'm missing? The shader compiles/links when used in my application. I have the latest drivers.

0 Likes
2 Replies
bpurnomo
Staff
Staff

Re: GPU Shader Analyzer

Could you post a simple test case?  Thanks.

0 Likes
dchristopherfennell
Journeyman III

Re: GPU Shader Analyzer

I figured out that if you put the uniform block as the last declaration, it will work. The source below will give the error stated above. If you change this and put the UBO declaration just above main() (the last delcaration), it will compile.

#version 330

#extension GL_AB_uniform_buffer_object : enable

uniform MaterialBlock

{

    vec4 Kd;

    vec4 Ka;

    vec4 Ks;

    vec4 Ke;

    float shininess;

};

uniform sampler2D src1;

in vec2 tex0;

out vec4 out_color;

void main()

{

    out_color = texture(src1, tex0);

}

0 Likes