EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
OpenGLShader::compile(Fragment): 0:2(24): error: attribute' variables may not be declared in the fragment shader
H7 n* U# i$ {. I; O0:2(24): error: illegal type for a varying variable6 i; @* E/ v' O/ T
0:2(50): error:attribute' variables may not be declared in the fragment shader
/ p* E. ]+ \$ Q5 M- s% X+ T0:2(50): error: illegal type for a varying variable
2 a) U6 x% ]8 \7 Y3 t+ d, Y0:2(107): error: `gl_Position' undeclared
5 L; U* V) J5 ^& V/ e# P0 @+ e. T0:2(117): error: type mismatch
$ _ `/ J) ]4 O: q0:2(141): error: type mismatch *** Problematic Fragment shader source code ***/ _+ ~$ X. i) |* j) `" e" q
#define lowp, S0 G% D$ j0 l. i4 o% F) [
#define mediump, \+ F: K, |( X/ d
#define highp( n' f+ }; s, K) j, n2 f
#line 1
7 ~- o1 N: Y, m5 ^# R6 `& r1 X$ Xattribute 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
$ P) @0 ^" s# C6 `! ?, q. t0:2(334): error: value of type vec4 cannot be assigned to variable of type error *** Problematic Vertex shader source code ***( Q: U- q; e- ]" o( G/ T& B
#define lowp
% v1 }: Y& R, l3 p: _#define mediump
: x" D) t# k: T0 x2 B#define highp
# i6 C8 N2 [9 G7 d' E+ ^#line 1
2 D& u. F' V8 ~& L: U$ }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"3 K$ D1 e1 J# s9 h) {
QOpenGLShader::link: "error: linking with uncompiled shadererror: linking with uncompiled shader"
; h5 |+ D+ F" a" ?9 E9 L4 _QOpenGLShaderProgram::uniformLocation( tex_y ): shader program is not linked% h9 r( ~0 k, k q6 n7 S
QOpenGLShaderProgram::uniformLocation( tex_uv ): shader program is not linked
, \8 G; |" H$ D' V5 J+ ^/ j |