Lines Matching refs:index

1067 	GLuint index	 = 0;
1080 index = program.GetResourceIndex(name, interface);
1082 program.GetResource(interface, index, GL_LOCATION, 1 /* size */, &location);
1083 program.GetResource(interface, index, GL_LOCATION_COMPONENT, 1 /* size */, &component);
1315 GLuint index = 0;
1336 index = program.GetResourceIndex(name_str, GL_BUFFER_VARIABLE);
1338 program.GetResource(GL_BUFFER_VARIABLE, index, GL_OFFSET, 1, &offset);
1781 * @param index <index> parameter
1783 void Buffer::BindBase(GLuint index) const
1787 BindBase(gl, m_id, m_buffer, index);
1792 * @param index <index> parameter
1796 void Buffer::BindRange(GLuint index, GLintptr offset, GLsizeiptr size) const
1800 BindRange(gl, m_id, m_buffer, index, offset, size);
1870 * @param index <index> parameter
1872 void Buffer::BindBase(const Functions& gl, GLuint id, BUFFERS buffer, GLuint index)
1876 gl.bindBufferBase(target, index, id);
1885 * @param index <index> parameter
1889 void Buffer::BindRange(const Functions& gl, GLuint id, BUFFERS buffer, GLuint index, GLintptr offset, GLsizeiptr size)
1893 gl.bindBufferRange(target, index, id, offset, size);
2832 * @param index Index of resource
2837 void Program::GetResource(GLenum interface, GLuint index, GLenum property, GLsizei buf_size, GLint* params) const
2841 GetResource(gl, m_id, interface, index, property, buf_size, params);
2844 /** Query for index of resource
3122 * @param index Index of resource
3127 void Program::GetResource(const Functions& gl, GLuint id, GLenum interface, GLuint index, GLenum property,
3130 gl.getProgramResourceiv(id, interface, index, 1 /* propCount */, &property, buf_size /* bufSize */, 0 /* length */,
3135 /** Get index of resource
3146 GLuint index = gl.getProgramResourceIndex(id, interface, name.c_str());
3149 return index;
3620 * @param index Index of attribute
3627 void VertexArray::Attribute(GLuint index, const Type& type, GLuint n_array_elements, GLboolean normalized,
3632 AttribPointer(gl, index, type, n_array_elements, normalized, stride, pointer);
3633 Enable(gl, index, type, n_array_elements);
3649 * @param index Index of attribute
3656 void VertexArray::AttribPointer(const Functions& gl, GLuint index, const Type& type, GLuint n_array_elements,
3685 gl.vertexAttribPointer(index, size, gl_type, normalized, stride, ptr);
3690 gl.vertexAttribIPointer(index, size, gl_type, stride, ptr);
3694 gl.vertexAttribLPointer(index, size, gl_type, stride, ptr);
3703 index += 1;
3722 * @param index Index of attribute
3726 void VertexArray::Disable(const Functions& gl, GLuint index, const Type& type, GLuint n_array_elements)
3741 gl.disableVertexAttribArray(index);
3745 index += 1;
3753 * @param index Index of attribute
3756 void VertexArray::Divisor(const Functions& gl, GLuint index, GLuint divisor)
3758 gl.vertexAttribDivisor(index, divisor);
3765 * @param index Index of attribute
3769 void VertexArray::Enable(const Functions& gl, GLuint index, const Type& type, GLuint n_array_elements)
3784 gl.enableVertexAttribArray(index);
3788 index += 1;
5132 * @return Last location index
5211 * @return Last location index
5308 * @return Last location index
5408 /** Get type at index
5410 * @param index Index of requested type
5414 Utils::Type TestBase::getType(GLuint index) const
5418 switch (index)
5529 /** Get name of type at index
5531 * @param index Index of type
5535 std::string TestBase::getTypeName(GLuint index) const
5537 std::string name = getType(index).GetGLSLTypeName();
6405 GLuint index = program.GetResourceIndex((*it)->m_descriptor.m_name, GL_PROGRAM_INPUT);
6408 program.GetResource(GL_PROGRAM_INPUT, index, GL_LOCATION, 1 /* size */, &location);
6659 GLuint index = 0;
6668 const std::string in_name = Utils::Variable::GetReference(in_parent_name, in_variable, in_flavour, index);
6669 const std::string out_name = Utils::Variable::GetReference(out_parent_name, out_variable, out_flavour, index);
6682 /* Increment index */
6683 ++index;
6704 /* Increment index and reset member_index if all members were processed */
6707 ++index;
6713 if ((index >= in_variable.m_n_array_elements) && (0 == member_index))
6926 GLuint index = program.GetResourceIndex((*it)->m_descriptor.m_name, GL_PROGRAM_OUTPUT);
6929 program.GetResource(GL_PROGRAM_OUTPUT, index, GL_LOCATION, 1 /* size */, &location);
7048 * @param test_case_index Test case index
7067 * @param test_case_index Test case index
7195 * @param test_case_index Test case index
7214 * @param test_case_index Test case index
7254 * @param test_case_index Test case index
8133 gl.getProgramResourceName(program.m_id, GL_TRANSFORM_FEEDBACK_BUFFER, 0 /* index */, 64 /* bufSize */, &length,
8672 * @param test_case_index Test case index
10644 * @param test_case_index Test case index
12837 When case index >=2, the test calls glDrawElement*(), such as glDrawElementsBaseVertex(), glDrawElementsInstanced(), glDrawElementsInstancedBaseInstance() and so on,
13342 const GLchar* index = "";
13363 index = test_case.m_is_input ? "[0]" : "";
13368 index = "[gl_InvocationID]";
13373 index = test_case.m_is_input ? "[0]" : "";
13389 Utils::replaceAllTokens("INDEX", index, source);
13842 const GLchar* index = "";
13867 index = test_case.m_is_input ? "[0]" : "";
13872 index = "[gl_InvocationID]";
13877 index = test_case.m_is_input ? "[0]" : "";
13893 Utils::replaceAllTokens("INDEX", index, source);
14256 const GLchar* index = "";
14279 index = test_case.m_is_input ? "[0]" : "";
14284 index = "[gl_InvocationID]";
14289 index = test_case.m_is_input ? "[0]" : "";
14304 Utils::replaceAllTokens("INDEX", index, source);
14646 const GLchar* index = "";
14675 index = test_case.m_is_input ? "[0]" : "";
14681 index = "[gl_InvocationID]";
14686 index = test_case.m_is_input ? "[0]" : "";
14704 Utils::replaceAllTokens("INDEX", index, source);
15577 const GLchar* index = "";
15629 index = test_case.m_is_input ? "[0]" : "";
15634 index = "[gl_InvocationID]";
15639 index = test_case.m_is_input ? "[0]" : "";
15657 Utils::replaceAllTokens("INDEX", index, source);
16044 const GLchar* index = "";
16094 index = test_case.m_is_input ? "[0]" : "";
16099 index = "[gl_InvocationID]";
16104 index = test_case.m_is_input ? "[0]" : "";
16121 Utils::replaceAllTokens("INDEX", index, source);
16477 const GLchar* index = "";
16506 index = test_case.m_is_input ? "[0]" : "";
16511 index = "[gl_InvocationID]";
16516 index = test_case.m_is_input ? "[0]" : "";
16534 Utils::replaceAllTokens("INDEX", index, source);
16924 const GLchar* index = "";
17044 index = test_case.m_is_input ? "[0]" : "";
17049 index = "[gl_InvocationID]";
17054 index = test_case.m_is_input ? "[0]" : "";
17072 Utils::replaceAllTokens("INDEX", index, source);
17492 const GLchar* index = "";
17511 index = "[0]";
17516 index = "[gl_InvocationID]";
17521 index = "[0]";
17540 Utils::replaceAllTokens("INDEX", index, source);
17901 const GLchar* index = "";
17924 index = "[gl_InvocationID]";
17947 Utils::replaceAllTokens("INDEX", index, source);
18298 const GLchar* index = "";
18343 index = test_case.m_is_input ? "[0]" : "";
18348 index = "[gl_InvocationID]";
18353 index = test_case.m_is_input ? "[0]" : "";
18391 Utils::replaceAllTokens("INDEX", index, source);
18783 const GLchar* index = "";
18820 index = test_case.m_is_input ? "[0]" : "";
18825 index = "[gl_InvocationID]";
18830 index = test_case.m_is_input ? "[0]" : "";
18868 Utils::replaceAllTokens("INDEX", index, source);
20640 << tcu::TestLog::Message << "XFB at index 0, that is written by GS, is missing. It was expected that "
20852 result = "Missing xfb at index 0";
20855 result = "Missing xfb at index 1";
20947 << tcu::TestLog::Message << "XFB at index 1, that is declared as empty, is missing. It was expected "
21159 result = "Missing xfb at index 0";
21162 result = "Missing xfb at index 1";
22059 const GLchar* index = "";
22069 index = "[0]";
22078 index = "[gl_InvocationID]";
22084 index = "[0]";
22099 Utils::replaceAllTokens("INDEX", index, source);
22183 program.GetResource(GL_TRANSFORM_FEEDBACK_BUFFER, 0 /* index */, GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE,
22859 const GLchar* index = "";
22883 index = "[0]";
22890 index = "[gl_InvocationID]";
22896 index = "[0]";
22915 Utils::replaceAllTokens("INDEX", index, source);
22967 /** Inspects program for offset, buffer index, buffer stride and type
23444 program.GetResource(GL_TRANSFORM_FEEDBACK_BUFFER, 0 /* index */, GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE,
26345 program.GetResource(GL_TRANSFORM_FEEDBACK_BUFFER, 0 /* index */, GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE,