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

ShaderEffect should support uniform value arrays

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • None

    Description

      QML ShaderEffect does not support passing array types to shaders as uniform arrays. For example, this would be useful when writing a shader to display precomputed histogram data.

      The only available workaround is to put data into a QImage, and pass this to the shader as sampler2D.

      QQuickCustomMaterialShader::updateState should be extended to handle array-like types and pass these to the program with QGLShaderProgram::setUniformValueArray.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            special John Brooks
            Votes:
            17 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes