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

RHI shader effect copies atlas texture when qt_SubRect_ uniform is used

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes