Document setUniformValue limitations wrt non square matrices

Task-number: QTBUG-37012
Change-Id: Ife4f16eef22090ae4f6fdc24b69a45142a10d9c9
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
This commit is contained in:
Laszlo Agocs 2014-04-22 16:57:42 +02:00 committed by The Qt Project
parent ff77621469
commit 4ff4935ed4

View File

@ -2236,6 +2236,10 @@ void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix2x2& v
Sets the uniform variable at \a location in the current context
to a 2x3 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat2x3, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec3.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix2x3& value)
@ -2251,6 +2255,10 @@ void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix2x3& value
Sets the uniform variable called \a name in the current context
to a 2x3 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat2x3, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec3.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix2x3& value)
@ -2262,6 +2270,10 @@ void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix2x3& v
Sets the uniform variable at \a location in the current context
to a 2x4 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat2x4, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec4.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix2x4& value)
@ -2277,6 +2289,10 @@ void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix2x4& value
Sets the uniform variable called \a name in the current context
to a 2x4 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat2x4, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec4.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix2x4& value)
@ -2288,6 +2304,10 @@ void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix2x4& v
Sets the uniform variable at \a location in the current context
to a 3x2 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat3x2, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec2.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix3x2& value)
@ -2303,6 +2323,10 @@ void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix3x2& value
Sets the uniform variable called \a name in the current context
to a 3x2 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat3x2, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec2.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix3x2& value)
@ -2340,6 +2364,10 @@ void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix3x3& v
Sets the uniform variable at \a location in the current context
to a 3x4 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat3x4, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec4.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix3x4& value)
@ -2355,6 +2383,10 @@ void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix3x4& value
Sets the uniform variable called \a name in the current context
to a 3x4 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat3x4, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec4.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix3x4& value)
@ -2366,6 +2398,10 @@ void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix3x4& v
Sets the uniform variable at \a location in the current context
to a 4x2 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat4x2, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec2.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix4x2& value)
@ -2381,6 +2417,10 @@ void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix4x2& value
Sets the uniform variable called \a name in the current context
to a 4x2 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat4x2, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec2.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix4x2& value)
@ -2392,6 +2432,10 @@ void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix4x2& v
Sets the uniform variable at \a location in the current context
to a 4x3 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat4x3, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec3.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix4x3& value)
@ -2407,6 +2451,10 @@ void QOpenGLShaderProgram::setUniformValue(int location, const QMatrix4x3& value
Sets the uniform variable called \a name in the current context
to a 4x3 matrix \a value.
\note This function is not aware of non square matrix support,
that is, GLSL types like mat4x3, that is present in modern OpenGL
versions. Instead, it treats the uniform as an array of vec3.
\sa setAttributeValue()
*/
void QOpenGLShaderProgram::setUniformValue(const char *name, const QMatrix4x3& value)