Commit d538f31b authored by Chad Versace's avatar Chad Versace

examples: Add example test files for GLSLParserTest

Class GLSLParserTest is added in a future commit.
parent eb0c2796
This directory holds example test files that can be registered with Piglit
with ``add_glsl_parser_test()``. For a decription of the the test's
behavior and file format, see the docstrings in file glsl_parser_test.py.
// The config section below is required.
//
// [config]
// # The config section may contain comments.
// expect_result: pass
// glsl_version: 1.30
// [end config]
//
// Description: bit-logic assignment ops with argument type (int, int)
//
// From page 50 (page 56 of PDF) of the GLSL 1.30 spec:
// "The operands must be of type signed or unsigned integers or integer
// vectors."
#version 130
void main() {
int x = 0;
x &= 1;
x |= 1;
x ^= 1;
}
/* The config section below is required.
*
* [config]
* # The config section may contain comments.
* expect_result: fail
* glsl_version: 1.30
* [end config]
*
* Description: bit-and with argument type (int, uint)
*
* From page 50 (page 56 of PDF) of the GLSL 1.30 spec:
* "The fundamental types of the operands (signed or unsigned) must match"
*/
#version 130
void main() {
int x = int(7) & uint(1);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment