Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-3362

Distance field shaders don't compile on some Embedded linux compilers

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      width and height uniforms are passed as float and then divided with an int. Apparently that is a no no.

      I/O: ERROR: 0:149: '==' : wrong operand types no operation '==' exists that takes a left-hand operand of type 'uniform float' and a right operand of type 'const int' (or there is no acceptable conversion)
       I/O: ERROR: 0:149: '/' : wrong operand types no operation '/' exists that takes a left-hand operand of type 'const int' and a right operand of type 'float' (or there is no acceptable conversion)
       I/O: ERROR: 0:149: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'const int' and a right operand of type 'const float' (or there is no acceptable conversion)
       I/O: ERROR: 0:176: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'float' and a right operand of type 'const int' (or there is no acceptable conversion)
       I/O: ERROR: 0:176: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'const int' and a right operand of type 'float' (or there is no acceptable conversion)
       I/O: ERROR: 5 compilation errors. No code generated.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tuliniemi Jere Tuliniemi
              e0150566 Janne Koskinen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes