xref: /aosp_15_r20/external/deqp/data/gles2/shaders/fragdata.test (revision 35238bce31c2a825756842865a792f8cf7f89930)
1
2case invalid_assign_to_1
3    version 100 es
4    expect compile_fail
5    require only_glsl_es_100_support
6    require exactly_one_draw_buffer
7    vertex ""
8        void main (void)
9        {
10            gl_Position = vec4(1.0);
11        }
12    ""
13    fragment ""
14        void main (void)
15        {
16            gl_FragData[1] = vec4(1.0);
17        }
18    ""
19end
20
21case write_fragcolor_and_fragdata_simple
22    version 100 es
23    expect compile_fail
24    vertex ""
25        void main (void)
26        {
27            gl_Position = vec4(1.0);
28        }
29    ""
30    fragment ""
31        void main (void)
32        {
33            gl_FragColor = vec4(1.0);
34            gl_FragData[0] = vec4(1.0);
35        }
36    ""
37end
38
39case write_fragcolor_and_fragdata_static_if
40    version 100 es
41    expect compile_fail
42    vertex ""
43        void main (void)
44        {
45            gl_Position = vec4(1.0);
46        }
47    ""
48    fragment ""
49        void main (void)
50        {
51            if (false)
52                gl_FragColor = vec4(1.0);
53            else
54                gl_FragData[0] = vec4(1.0);
55        }
56    ""
57end
58
59case write_fragcolor_and_fragdata_unused_func
60    version 100 es
61    expect compile_fail
62    vertex ""
63        void main (void)
64        {
65            gl_Position = vec4(1.0);
66        }
67    ""
68    fragment ""
69        void unused (void)
70        {
71            gl_FragData[0] = vec4(1.0);
72        }
73        void main (void)
74        {
75            gl_FragColor = vec4(1.0);
76        }
77    ""
78end
79