Lines Matching defs:attribute
597 * vertex attribute arrays configured with glVertexAttribLPointer()
617 /** Template class to store vertex attribute data
648 void vertexAttribLd(GLuint index, const vertexAttribute<SIZE>& attribute) const;
651 void vertexAttribLdv(GLuint index, const vertexAttribute<SIZE>& attribute) const;
749 * @tparam SIZE Size of vertex attribute
751 * @param index Index of vertex attribute, starts from 1.
778 * @tparam SIZE Size of vertex attribute
780 * @param index Index of vertex attribute, starts from 1.
807 * @param index Index of vertex attribute, starts from 1.
879 * @tparam SIZE Size of vertex attribute. Specialisation for 1.
882 * @param attribute Vertex attribute data are taken from provided instance of vertexAttribute
886 const GetVertexAttribTest::vertexAttribute<1>& attribute) const
888 gl.vertexAttribL1d(index, attribute.m_array[0]);
893 * @tparam SIZE Size of vertex attribute. Specialisation for 2.
896 * @param attribute Vertex attribute data are taken from provided instance of vertexAttribute
900 const GetVertexAttribTest::vertexAttribute<2>& attribute) const
902 gl.vertexAttribL2d(index, attribute.m_array[0], attribute.m_array[1]);
907 * @tparam SIZE Size of vertex attribute. Specialisation for 3.
910 * @param attribute Vertex attribute data are taken from provided instance of vertexAttribute
914 const GetVertexAttribTest::vertexAttribute<3>& attribute) const
916 gl.vertexAttribL3d(index, attribute.m_array[0], attribute.m_array[1], attribute.m_array[2]);
921 * @tparam SIZE Size of vertex attribute. Specialisation for 4.
924 * @param attribute Vertex attribute data are taken from provided instance of vertexAttribute
928 const GetVertexAttribTest::vertexAttribute<4>& attribute) const
930 gl.vertexAttribL4d(index, attribute.m_array[0], attribute.m_array[1], attribute.m_array[2], attribute.m_array[3]);
935 * @tparam SIZE Size of vertex attribute. Specialisation for 1.
938 * @param attribute Vertex attribute data are taken from provided instance of vertexAttribute
942 const GetVertexAttribTest::vertexAttribute<1>& attribute) const
944 gl.vertexAttribL1dv(index, attribute.m_array);
949 * @tparam SIZE Size of vertex attribute. Specialisation for 2.
952 * @param attribute Vertex attribute data are taken from provided instance of vertexAttribute
956 const GetVertexAttribTest::vertexAttribute<2>& attribute) const
958 gl.vertexAttribL2dv(index, attribute.m_array);
963 * @tparam SIZE Size of vertex attribute. Specialisation for 3.
966 * @param attribute Vertex attribute data are taken from provided instance of vertexAttribute
970 const GetVertexAttribTest::vertexAttribute<3>& attribute) const
972 gl.vertexAttribL3dv(index, attribute.m_array);
977 * @tparam SIZE Size of vertex attribute. Specialisation for 4.
980 * @param attribute Vertex attribute data are taken from provided instance of vertexAttribute
984 const GetVertexAttribTest::vertexAttribute<4>& attribute) const
986 gl.vertexAttribL4dv(index, attribute.m_array);
1036 * @param index Index of vertex attribute
1084 * @param index Index of vertex attribute
1131 * @param index Index of vertex attribute
1171 * output variable if all attribute values are found to be
1178 * Dvec2 attribute components should be assigned the following
1189 * Dvec3 attribute components should be assigned the following
1195 * Dvec4 attribute components should be assigned the following
1202 * n_attribute corresponds to the ordinal number of each attribute,
1251 * attribute.
1270 * - one where attribute locations are explicitly defined in the body;
1271 * - the other one where attribute locations are to be assigned by
1275 * been assigned correct amount of locations. (eg: dvec4 attribute
1358 GLint calculateAttributeLocation(const attributeConfiguration& configuration, GLint attribute, GLint n_type) const;
1590 /** Calculates attribute location for manually setting "layout(location =)".
1594 * @param attribute Intex of attribute in "n_type" group
1599 GLint LimitTest::calculateAttributeLocation(const attributeConfiguration& configuration, GLint attribute,
1615 /* Amount of locations required for attributes after given attribute in given "n_type" */
1617 if (m_array_attribute != attribute)
1623 result += n_columns * (configuration.m_n_attributes_per_group - 1 - attribute);
1667 /* For each attribute in "n_type" group */
1692 TCU_FAIL("Inactive attribute");
1724 /* Dvec2 attribute components should be assigned the following
1742 /* Dvec3 attribute components should be assigned the following
1748 Dvec4 attribute components should be assigned the following
1811 * @param use_vertex_attrib_divisor If vertex attribute divisor should be used
1851 for (GLint attribute = 0; attribute < n_attributes; ++attribute)
1855 const GLint location = calculateAttributeLocation(configuration, attribute, n_type);
1860 stream << "in " << type_name << " attribute_" << attribute + attribute_offset << ";\n";
1897 for (GLint attribute = 0; attribute < n_attributes; ++attribute)
1899 const GLint attribute_ordinal = attribute + n_type * n_attributes;
1901 /* First attribute is verified with "if", rest with "else if" */
1918 stream << n_type << "[" << attribute << "]";
1931 /* Dvec2 attribute components should be assigned the following
1950 /* Dvec3 attribute components should be assigned the following
1956 Dvec4 attribute components should be assigned the following
2182 * @param use_locations If manual attribute locations are used
2249 message << "vertex attribute divisor: 0";
2253 message << "constant vertex attribute";
2257 message << "vertex attribute divisor: 1";
2269 * @param use_locations If manual attribute locations should be used
2270 * @param use_vertex_attrib_divisor If vertex attribute divisor should be used
2446 for (GLint attribute = 0; attribute < n_attributes; ++attribute)
2448 const GLuint attribute_offset = attribute + group_offset;
2450 out_buffer_data[attribute_offset] = attribute + attribute_index + vertex * 2;
2471 /* Dvec2 attribute components should be assigned the following
2476 for (GLint attribute = 0; attribute < n_attributes; ++attribute)
2478 const GLuint attribute_offset = n_elements * attribute + group_offset;
2482 out_buffer_data[attribute_offset + i] = attribute + attribute_index + vertex * 3 + i + 1;
2504 /* Dvec3 attribute components should be assigned the following
2510 Dvec4 attribute components should be assigned the following
2517 for (GLint attribute = 0; attribute < n_attributes; ++attribute)
2519 const GLuint attribute_offset = n_elements * attribute + group_offset;
2523 out_buffer_data[attribute_offset + i] = attribute + attribute_index + vertex * n_elements + i;
2548 for (GLint attribute = 0; attribute < n_attributes; ++attribute)
2550 const GLuint attribute_offset = n_elements * attribute + group_offset;
2554 out_buffer_data[attribute_offset + i] = n_type + attribute + attribute_index + vertex * 16 + i;
2755 /* Regular and instanced draw calls, vertex attribute divisor: 0 */
2784 /* Regular draw calls, constant vertex attribute */
2813 /* Instanced draw calls, vertex attribute divisor: 1 */
2846 /** Tests regular and instanced draw calls with vertex attribute divisor set to 0
2916 /** Tests instanced draw calls with vertex attribute divisor set to 1
3061 * given vertex attribute array;
3063 * given vertex attribute array;
3065 * given vertex attribute array;
3357 glw::GLint attribute = attributes[n_attribute];
3359 /* Configure vertex attribute divisor */
3360 gl.vertexAttribDivisor(attribute, divisor);
3362 } /* for (all attribute locations) */
3673 TCU_FAIL("At least one attribute is considered inactive which is invalid.");
3862 m_testCtx.getLog() << tcu::TestLog::Message << "BO1 dmat3 attribute values mismatch for batch ["
3903 m_testCtx.getLog() << tcu::TestLog::Message << "BO2 float attribute value mismatch for batch ["
3934 m_testCtx.getLog() << tcu::TestLog::Message << "BO1 dvec2 attribute values mismatch for batch ["
3965 m_testCtx.getLog() << tcu::TestLog::Message << "BO1 double attribute value mismatch for batch ["
3995 m_testCtx.getLog() << tcu::TestLog::Message << "BO2 dmat4x2 attribute values mismatch for batch ["
4032 m_testCtx.getLog() << tcu::TestLog::Message << "BO1 int attribute value mismatch for batch ["
4064 m_testCtx.getLog() << tcu::TestLog::Message << "BO1 float attribute value mismatch for batch ["