repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
glsl-1.30: add more loop unroll tests
[piglit.git]
/
tests
/
spec
/
glsl-1.20
/
compiler
/
invalid-vec4-array-to-vec3-array-conversion.vert
blob
c9cd9a328bec21721e31a486d4f64ae8a83abe99
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.20
4
// [end config]
5
6
#version 120
7
8
/* Section 4.1.10 (Implicit Conversions) of the GLSL 1.20 spec says:
9
*
10
* There are no implicit array or structure conversions.
11
*/
12
uniform vec3 a[] = vec4[](vec4(1.0), vec4(2.0));
13
14
void main()
15
{
16
gl_Position = vec4(a[0].xyz, 1.0);
17
}