Results for glslparsertest/glsl2/bit-shift-assign-05.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.232000112534
note Returncode was 1
errors
  • Failed to compile fragment shader tests/glslparsertest/glsl2\\bit-shift-assign-05.frag: Fragment shader failed to compile with the following errors:
  • ERROR: 0:23: error(#160) Cannot convert from \'const unsigned int\' to \'mediump int\'
  • WARNING: 0:27: warning(#283) Implicit cast from int to uint
  • ERROR: error(#273) 1 compilation errors. No code generated
info
Returncode: 1

Errors:
Failed to compile fragment shader tests/glslparsertest/glsl2\bit-shift-assign-05.frag: Fragment shader failed to compile with the following errors:
ERROR: 0:23: error(#160) Cannot convert from 'const unsigned int' to 'mediump int'
WARNING: 0:27: warning(#283) Implicit cast from int to uint
ERROR: error(#273) 1 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:
//     - (int, uint)
//     - (uint, int)
//
// 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() {
    // int <<= uint
    int x0 = 4;
    x0 <<= uint(1);

    // uint >>= int
    uint x1 = uint(4);
    x1 >>= int(1);
}

Back to summary