summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-copy-propagation-self-2.shader_test
blob: 344bf96825db2851146fa83b3b492b7423b36838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[require]
GLSL >= 1.10

[vertex shader]
void main()
{
	gl_Position = gl_Vertex;
}

[fragment shader]
uniform vec4 arg0;
uniform float arg1;

void main() {
	vec4 R0;

	R0.xyzw = arg0 + arg1;
	R0.xyzw = R0.wwwx;
	gl_FragColor.xyzw = clamp(R0.xyzw, 0.0, 1.0);
}

[test]
uniform vec4 arg0 0.0 0.0 0.0 0.5
uniform float arg1 0.0
draw rect -1 -1 2 2
probe all rgba 0.5 0.5 0.5 0.0