--- .../compiler/no_user_defined_in.comp | 21 +++++++++++++++++++++ .../compiler/no_user_defined_out.comp | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 tests/spec/arb_compute_shader/compiler/no_user_defined_in.comp create mode 100644 tests/spec/arb_compute_shader/compiler/no_user_defined_out.comp
diff --git a/tests/spec/arb_compute_shader/compiler/no_user_defined_in.comp b/tests/spec/arb_compute_shader/compiler/no_user_defined_in.comp new file mode 100644 index 0000000..1d1d160 --- /dev/null +++ b/tests/spec/arb_compute_shader/compiler/no_user_defined_in.comp @@ -0,0 +1,21 @@ +// [config] +// expect_result: fail +// glsl_version: 3.30 +// require_extensions: GL_ARB_compute_shader +// [end config] +// +// From the ARB_compute_shader spec: +// +// Compute shaders do not permit user-defined input variables and +// do not form a formal interface with any other shader stage. + +#version 330 +#extension GL_ARB_compute_shader: enable + +layout(local_size_x = 1) in; + +in int i; + +void main() +{ +} diff --git a/tests/spec/arb_compute_shader/compiler/no_user_defined_out.comp b/tests/spec/arb_compute_shader/compiler/no_user_defined_out.comp new file mode 100644 index 0000000..5b01be0 --- /dev/null +++ b/tests/spec/arb_compute_shader/compiler/no_user_defined_out.comp @@ -0,0 +1,22 @@ +// [config] +// expect_result: fail +// glsl_version: 3.30 +// require_extensions: GL_ARB_compute_shader +// [end config] +// +// From the ARB_compute_shader spec: +// +// Compute shaders have no built-in output variables, do not +// support user-defined output variables and do not form a formal +// interface with any other shader stage. + +#version 330 +#extension GL_ARB_compute_shader: enable + +layout(local_size_x = 1) in; + +out int i; + +void main() +{ +} -- 1.8.5.2 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit