EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
OpenGLShader::compile(Fragment): 0:2(24): error: attribute' variables may not be declared in the fragment shader
]( Y2 o/ ~$ G$ X0:2(24): error: illegal type for a varying variable$ Z' X* d' O% a
0:2(50): error:attribute' variables may not be declared in the fragment shader5 @. M4 }( i& _, C4 D7 F
0:2(50): error: illegal type for a varying variable
' ?: y. N2 L, `: {. y0:2(107): error: `gl_Position' undeclared. N7 P4 S$ y2 @3 ]- {1 t& g
0:2(117): error: type mismatch: a( D/ s1 E5 `
0:2(141): error: type mismatch *** Problematic Fragment shader source code ***. L( w9 F. H3 J
#define lowp
r2 o+ J% _+ k8 v3 o+ Z8 k#define mediump' M. t0 j# M3 l5 G2 W- }
#define highp0 @" U- B9 y9 S
#line 1
2 k8 [9 s+ I* n3 k3 t6 U3 W6 P0 e3 qattribute 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' undeclared/ b, l5 s9 Y; }; ]/ F
0:2(334): error: value of type vec4 cannot be assigned to variable of type error *** Problematic Vertex shader source code ***, `8 I u4 m0 s. m
#define lowp
6 \& K" ^# ]! j( ?#define mediump: Y! l% u& C/ c+ d
#define highp
/ Y) r- Z6 q* k( V2 S#line 1; u$ [% o" d' Q/ J
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"5 g H, C% {) v: A. y; L1 {
QOpenGLShader::link: "error: linking with uncompiled shadererror: linking with uncompiled shader"
. I2 o, |; g* Q/ P7 d3 Q0 uQOpenGLShaderProgram::uniformLocation( tex_y ): shader program is not linked8 g; g" j; l' Z
QOpenGLShaderProgram::uniformLocation( tex_uv ): shader program is not linked 0 {+ h! a, F. w$ M
|