Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.233999967575 |
| note | Returncode was 1 |
| errors |
|
| info | Returncode: 1
Errors:
Failed to compile fragment shader tests/glslparsertest/glsl2\bit-shift-06.frag: Fragment shader failed to compile with the following errors:
WARNING: 0:24: warning(#283) Implicit cast from ivec2 to uvec2
ERROR: 0:24: error(#160) Cannot convert from 'const mediump 2-component vector of unsigned int' to 'mediump 2-component vector of int'
WARNING: 0:25: warning(#283) Implicit cast from ivec2 to uvec2
ERROR: 0:25: error(#160) Cannot convert from 'const mediump 2-component vector of unsigned int' to 'mediump 2-component vector of int'
WARNING: 0:28: warning(#283) Implicit cast from ivec3 to uvec3
ERROR: 0:28: error(#160) Cannot convert from 'const mediump 3-component vector of unsigned int' to 'mediump 3-component vector of int'
WARNING: 0:29: warning(#283) Implicit cast from ivec3 to uvec3
ERROR: 0:29: error(#160) Cannot convert from 'const mediump 3-component vector of unsigned int' to 'mediump 3-component vector of int'
WARNING: 0:32: warning(#283) Implicit cast from ivec4 to uvec4
ERROR: 0:32: error(#160) Cannot convert from 'const mediump 4-component vector of unsigned int' to 'mediump 4-component vector of int'
WARNING: 0:33: warning(#283) Implicit cast from ivec4 to uvec4
ERROR: 0:33: error(#160) Cannot convert from 'const mediump 4-component vector of unsigned int' to 'mediump 4-component vector of int'
WARNING: 0:38: warning(#283) Implicit cast from ivec2 to uvec2
WARNING: 0:39: warning(#283) Implicit cast from ivec2 to uvec2
WARNING: 0:42: warning(#283) Implicit cast from ivec3 to uvec3
WARNING: 0:43: warning(#283) Implicit cast from ivec3 to uvec3
WARNING: 0:46: warning(#283) Implicit cast from ivec4 to uvec4
WARNING: 0:47: warning(#283) Implicit cast from ivec4 to uvec4
ERROR: error(#273) 6 compilation errors. No code generated
Output:
Shader source:
// [config]
// expect_result: pass
// glsl_version: 1.30
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0
// [end config]
// Expected: PASS, glsl == 1.30
//
// Description: bit-shift with argument types:
// - (ivecN, uvecN)
// - (uvecN, ivecN)
//
// From page 50 (page 56 of PDF) of the GLSL 1.30 spec:
// "One operand can be signed while the other is unsigned."
#version 130
void main() {
// ivecN = ivecN << uvecN -----------------
// ivec2 = ivec2 << uvec2
ivec2 v00 = ivec2(0, 1) << uvec2(0, 1);
ivec2 v01 = ivec2(0, 1) >> uvec2(0, 1);
// ivec3 = ivec3 << uvec3
ivec3 v02 = ivec3(0, 1, 2) << uvec3(0, 1, 2);
ivec3 v03 = ivec3(0, 1, 2) >> uvec3(0, 1, 2);
// ivec4 = ivec4 << uvec4
ivec4 v04 = ivec4(0, 1, 2, 3) << uvec4(0, 1, 2, 3);
ivec4 v05 = ivec4(0, 1, 2, 3) >> uvec4(0, 1, 2, 3);
// uvecN = uvecN << ivecN -----------------
// uvec2 = uvec2 << ivec2
uvec2 v06 = uvec2(0, 1) << ivec2(0, 1);
uvec2 v07 = uvec2(0, 1) >> ivec2(0, 1);
// uvec3 = uvec3 << ivec3
uvec3 v08 = uvec3(0, 1, 2) << ivec3(0, 1, 2);
uvec3 v09 = uvec3(0, 1, 2) >> ivec3(0, 1, 2);
// uvec4 = uvec4 << ivec4
uvec4 v10 = uvec4(0, 1, 2, 3) << ivec4(0, 1, 2, 3);
uvec4 v11 = uvec4(0, 1, 2, 3) >> ivec4(0, 1, 2, 3);
}
|