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

msaa layer compositor shader does not compile on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt 3D Studio 2.0 BETA2
    • Qt 3D Studio 2.0 BETA1
    • Runtime 2.x
    • None

    Description

      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: (null):0 ((null)): QOpenGLShader::compile(Fragment): 0(2) : error C7573: OpenGL/ES requires precision specifier on this float type (there is no default precision)
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 0(4) : error C7573: OpenGL/ES requires precision specifier on this sampler/image/atomic type (there is no default precision)
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 0(6) : error C7573: OpenGL/ES requires precision specifier on this float type (there is no default precision)
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 0(10) : error C7011: implicit cast from "ivec2" to "vec2"
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 0(11) : error C7573: OpenGL/ES requires precision specifier on this float type (there is no default precision)
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: (null):0 ((null)): *** Problematic Fragment shader source code ***
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: #version 310 es
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: #ifndef GL_FRAGMENT_PRECISION_HIGH
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: #define highp mediump
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: #endif
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: #line 1
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: in vec2 texCoord;
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: uniform sampler2DMS tex;
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: out vec4 fragColor;
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: void main()
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: {
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer:     ivec2 tc = ivec2(floor(textureSize(tex) * texCoord));
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer:     vec4 c = texelFetch(tex, tc, 0) + texelFetch(tex, tc, 1) + texelFetch(tex, tc, 2) + texelFetch(tex, tc, 3);
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer:     c /= 4.0;
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer:     // This discard, while not necessarily ideal for some GPUs, is necessary to
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer:     // get correct results with certain layer blend modes for example.
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer:     if (c.a == 0.0)
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer:         discard;
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer:     fragColor = c;
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: }
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: 
      05-22 15:08:55.822 25832 25873 W Qt 3D Viewer: ***
      

      Attachments

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              lagocs Laszlo Agocs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes