summaryrefslogtreecommitdiff
path: root/tests/spec/arb_compute_shader/linker/no_local_work_size.shader_test
blob: e9d773fdbfbe97fe74e2de4bfe0e631e92ce6fb6 (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
27
28
# From the ARB_compute_shader spec, in the section describing local
# size declarations:
#
#     If multiple compute shaders attached to a single program object
#     declare local work-group size, the declarations must be
#     identical; otherwise a link-time error results. Furthermore, if
#     a program object contains any compute shaders, at least one must
#     contain an input layout qualifier specifying the local work
#     sizes of the program, or a link-time error will occur.
#
# In this test, we link a single shader which doesn't specify a local
# work size.

[require]
GL >= 3.3
GLSL >= 3.30
GL_ARB_compute_shader

[compute shader]
#version 330
#extension GL_ARB_compute_shader: enable

void main()
{
}

[test]
link error