Skip to content
Snippets Groups Projects
Commit 20e38f71 authored by Timothy Arceri's avatar Timothy Arceri
Browse files

ovr_multiview: add some basic glsl tests

Part-of: <!984>
parent 537810be
No related branches found
No related tags found
Loading
Checking pipeline status
// [config]
// expect_result: fail
// glsl_version: 1.30
// require_extensions: GL_OVR_multiview
// check_link: false
// [end config]
//
// From the OVR_multiview spec:
//
// "If this layout qualifier is declared more than once in the same shader,
// all those declarations must set num_views to the same value; otherwise a
// compile-time error results."
//
#version 130
#extension GL_OVR_multiview : require
layout(num_views = 3) in;
layout(num_views = 2) in;
void main() {
gl_Position = vec4(1.0);
}
// [config]
// expect_result: pass
// glsl_version: 1.30
// require_extensions: GL_OVR_multiview
// check_link: false
// [end config]
//
// From the OVR_multiview spec:
//
// "If this layout qualifier is declared more than once in the same shader,
// all those declarations must set num_views to the same value; otherwise a
// compile-time error results."
//
#version 130
#extension GL_OVR_multiview : require
layout(num_views = 3) in;
layout(num_views = 3) in;
void main() {
gl_Position = vec4(1.0);
}
# If multiple vertex shaders attached to a single program
# object declare num_views, the declarations must be
# identical; otherwise a link-time error results.
[require]
GLSL >= 1.30
GL_OVR_multiview
[vertex shader]
#version 130
#extension GL_OVR_multiview : require
layout(num_views = 2) in;
[vertex shader]
#version 130
#extension GL_OVR_multiview : require
layout(num_views = 2) in;
void main() {
gl_Position = vec4(1.0);
}
[test]
link success
# If multiple vertex shaders attached to a single program
# object declare num_views, the declarations must be
# identical; otherwise a link-time error results.
[require]
GLSL >= 1.30
GL_OVR_multiview
[vertex shader]
#version 130
#extension GL_OVR_multiview : require
layout(num_views = 2) in;
[vertex shader]
#version 130
#extension GL_OVR_multiview : require
layout(num_views = 3) in;
void main() {
gl_Position = vec4(1.0);
}
[test]
link error
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment