Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84299

RHI shader effect copies atlas texture when qt_SubRect_ uniform is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.0
    • Qt RHI, Quick: SceneGraph
    • None
    • 84e87fd38e7cff31b88abc52d774299890545b92 (qt/qtdeclarative/dev)

    Description

      There are two ways of preventing copying with atlased textures:

      The first is to set supportsAtlasTextures to true, which is supported by the RHI implementation.

      The second is to add a qt_SubRect_foo uniform to the vertex shader. This does not work with RHI, because QSGRhiShaderEffectMaterialShader::updateSampledImage() only checks m_geometryUsesTextureSubRect, which is only set if supportsAtlasTextures is true.

      Attachments

        Issue Links

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

          Activity

            People

              tvete Paul Olav Tvete
              tvete Paul Olav Tvete
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes