OpenGLShader::compile(Fragment): 0:2(24): error: attribute' variables may not be declared in the fragment shader
0:2(24): error: illegal type for a varying variable; `/ L* A7 T; y! O2 v
0:2(50): error:attribute' variables may not be declared in the fragment shader
0:2(50): error: illegal type for a varying variable
0:2(107): error: `gl_Position' undeclared
0:2(117): error: type mismatch& Y& T8 n% F$ H1 M
0:2(141): error: type mismatch
*** Problematic Fragment shader source code ***
#define lowp; f9 H% g3 B" W% l* L5 s; l
#define mediump7 o% S( X+ U+ V: {5 @3 L) L
#define highp z+ N1 J' |* _5 ^$ [
#line 1
attribute vec4 vertexIn; attribute vec2 textureIn; varying vec2 textureOut; void main(void) { gl_Position = vertexIn; textureOut = textureIn; }
QOpenGLShader::compile(Vertex): 0:2(334): error: `gl_FragColor' undeclared1 u1 m3 z$ U9 T
0:2(334): error: value of type vec4 cannot be assigned to variable of type error
*** Problematic Vertex shader source code ***
#define lowp
#define mediump
#define highp5 L3 y. w; `- S6 P* O0 O3 O& P1 @
#line 16 y# B* M3 A* T2 c9 i
varying vec2 textureOut; uniform sampler2D tex_y; uniform sampler2D tex_uv; void main(void) { vec3 yuv; vec3 rgb; yuv.x = texture2D(tex_y, textureOut).r; yuv.y = texture2D(tex_uv, textureOut).r - 0.5; yuv.z = texture2D(tex_uv, textureOut).a - 0.5; rgb = mat3( 1, 1, 1, 0, -0.39465, 2.03211, 1.13983, -0.58060, 0) * yuv; gl_FragColor = vec4(rgb, 1); }
QOpenGLShader::link: "error: linking with uncompiled shadererror: linking with uncompiled shader"% Z8 t% G6 j( N. C5 u
QOpenGLShader::link: "error: linking with uncompiled shadererror: linking with uncompiled shader"
QOpenGLShaderProgram::uniformLocation( tex_y ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( tex_uv ): shader program is not linked
| 欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/) | Powered by Discuz! X3.2 |