repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
glslparsertest
/
glsl2
/
sampler-02.frag
blob
812f3569801360fde3244172c8f195d41180a196
1
/* FAIL
2
*
3
* From page 17 (page 23 of the PDF) of the GLSL 1.20 spec:
4
*
5
* "Samplers cannot be treated as l-values; hence cannot be used as
6
* out or inout function parameters, nor can they be assigned into."
7
*/
8
9
uniform sampler2D tex;
10
varying vec2 coord;
11
12
void main()
13
{
14
sampler2D t2 = tex;
15
gl_FragColor = texture2D(t2, coord);
16
}