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: test loop unroll with uint overflow
[piglit.git]
/
tests
/
spec
/
arb_shader_storage_buffer_object
/
linker
/
buffer-variable-indirect-indexing.shader_test
blob
1fedfc87f3f7c864317ac1f1529e9459c95f8780
1
# Test checks the success of linking a shader with indirect indexing of
2
# a buffer variable.
3
4
[require]
5
GL >= 3.3
6
GLSL >= 3.30
7
GL_ARB_shader_storage_buffer_object
8
9
[fragment shader]
10
11
#version 330
12
#extension GL_ARB_shader_storage_buffer_object : enable
13
14
15
buffer Fragments {
16
mat4 m;
17
int index;
18
};
19
20
in vec4 fragmentColor;
21
out vec4 color;
22
23
void main()
24
{
25
m[index] = vec4(1.0, 1.0, 0.0, 1.0);
26
color = m[index];
27
}
28
29
[test]
30
link success