Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.234999895096 |
| note | Returncode was 1 |
| errors |
|
| info | Returncode: 1
Errors:
Failed to compile fragment shader tests/glslparsertest/glsl2\bit-shift-assign-06.frag: Fragment shader failed to compile with the following errors:
ERROR: 0:24: error(#160) Cannot convert from 'const 2-component vector of unsigned int' to 'mediump 2-component vector of int'
ERROR: 0:25: error(#160) Cannot convert from 'const 2-component vector of unsigned int' to 'mediump 2-component vector of int'
ERROR: 0:28: error(#160) Cannot convert from 'const 3-component vector of unsigned int' to 'mediump 3-component vector of int'
ERROR: 0:29: error(#160) Cannot convert from 'const 3-component vector of unsigned int' to 'mediump 3-component vector of int'
ERROR: 0:32: error(#160) Cannot convert from 'const 4-component vector of unsigned int' to 'mediump 4-component vector of int'
ERROR: 0:33: error(#160) Cannot convert from 'const 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-assign 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, uvecN) --------------------------
ivec2 iv2 = ivec2(0, 1);
iv2 <<= uvec2(0, 1);
iv2 >>= uvec2(0, 1);
ivec3 iv3 = ivec3(0, 1, 2);
iv3 <<= uvec3(0, 1, 2);
iv3 >>= uvec3(0, 1, 2);
ivec4 iv4 = ivec4(0, 1, 2, 3);
iv4 <<= uvec4(0, 1, 2, 3);
iv4 >>= uvec4(0, 1, 2, 3);
// (uvecN, ivecN) --------------------------
uvec2 uv2 = uvec2(0, 1);
uv2 <<= ivec2(0, 1);
uv2 >>= ivec2(0, 1);
uvec3 uv3 = uvec3(0, 1, 2);
uv3 <<= ivec3(0, 1, 2);
uv3 >>= ivec3(0, 1, 2);
uvec4 uv4 = uvec4(0, 1, 2, 3);
uv4 <<= ivec4(0, 1, 2, 3);
uv4 >>= ivec4(0, 1, 2, 3);
}
|