Lines Matching defs:length

84 		GLsizei length;
86 glGetProgramInfoLog(program, sizeof(log), &length, log);
87 if (length > 1)
325 GLsizei length;
327 glGetProgramResourceiv(program, programInterface, index, propCount, props, bufSize, &length, params);
328 if (length != expectedLength || length <= 0)
332 << tcu::TestLog::Message << "ERROR: Got length " << length << ", expected " << expectedLength
337 for (int i = 0; i < length; ++i)
1737 GLsizei length;
1743 glGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["SimpleBlock"], 1, &prop, bufSize, &length, param);
1744 for (int i = 0; i < length; ++i)
1756 else if (length != 3)
1761 << "Expected length: 3, actual length: " << length << tcu::TestLog::EndMessage;
1770 glGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["NotSoSimpleBlockk"], 1, &prop, bufSize, &length,
1772 for (int i = 0; i < length; ++i)
1784 else if (length != 3)
1789 << "\nExpected length: 3, actual length: " << length << tcu::TestLog::EndMessage;
1978 GLsizei length;
1980 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, bufSize, &length, &res);
1983 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, bufSize, &length, &res);
1988 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["b"], 1, &prop, bufSize, &length, &res);
1991 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["c"], 1, &prop, bufSize, &length, &res);
1994 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["d"], 1, &prop, bufSize, &length, &res);
1997 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["e"], 1, &prop, bufSize, &length, &res);
2005 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["b"], 1, &prop, bufSize, &length, &res);
2006 glGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 1, &prop2, bufSize, &length, param);
2007 for (int i = 0; i < length; ++i)
2009 if (exp.find(param[i]) == exp.end() || length != 2)
2012 << tcu::TestLog::Message << "Length: " << length
2013 << "\nUnexpected index/length found in active variables of ATOMIC_COUNTER_BUFFER: " << param[i]
2026 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["d"], 1, &prop, bufSize, &length, &res);
2027 glGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 1, &prop2, bufSize, &length, param2);
2028 for (int i = 0; i < length; ++i)
2030 if (exp2.find(param2[i]) == exp2.end() || length != 2)
2033 << tcu::TestLog::Message << "Length: " << length
2034 << "\nUnexpected index/length found in active variables of ATOMIC_COUNTER_BUFFER: " << param2[i]
2190 GLsizei length;
2194 glGetProgramResourceiv(program, GL_VERTEX_SUBROUTINE_UNIFORM, indicesU["a"], 1, &prop, bufSize, &length, param);
2195 for (int i = 0; i < length; ++i)
2197 if (exp.find(param[i]) == exp.end() || length != 2)
2200 << tcu::TestLog::Message << "Length: " << length
2201 << "\nUnexpected index/length found in active variables of GL_VERTEX_SUBROUTINE_UNIFORM: "
2613 GLint length;
2614 glGetShaderiv(shaders[i], GL_SHADER_SOURCE_LENGTH, &length);
2615 if (length > 0)
2617 std::vector<GLchar> source(length);
2618 glGetShaderSource(shaders[i], length, NULL, &source[0]);
2624 glGetShaderiv(shaders[i], GL_INFO_LOG_LENGTH, &length);
2625 if (length > 0)
2627 std::vector<GLchar> log(length);
2628 glGetShaderInfoLog(shaders[i], length, NULL, &log[0]);
2636 GLint length;
2637 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &length);
2638 if (length > 0)
2640 std::vector<GLchar> log(length);
2641 glGetProgramInfoLog(program, length, NULL, &log[0]);
3144 GLsizei length;
3150 glGetProgramResourceiv(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["SimpleBuffer"], 1, &prop, bufSize, &length,
3152 for (int i = 0; i < length; ++i)
3165 else if (length != 3)
3170 << "Expected length: 3, actual length: " << length << tcu::TestLog::EndMessage;
3180 &length, param);
3181 for (int i = 0; i < length; ++i)
3194 else if (length != 3)
3199 << "Expected length: 3, actual length: " << length << tcu::TestLog::EndMessage;
3351 GLsizei length;
3353 glGetProgramResourceName(program, GL_TRANSFORM_FEEDBACK_VARYING, i, 1024, &length, name);
3394 return "\n\n Purpose is to verify that GetProgramResourceName with null length doesn't return length (doesn't "
3647 GLsizei length;
3649 glGetProgramInfoLog(program, sizeof(log), &length, log);
3650 if (length > 1)
4379 GLsizei length;
4389 glGetProgramResourceName(program, GL_UNIFORM, index, 2, &length, buff);
4396 if (length != 1)
4398 m_context.getTestContext().getLog() << tcu::TestLog::Message << "ERROR: incorrect length, expected 1, got "
4399 << length << tcu::TestLog::EndMessage;
4425 glGetProgramResourceiv(program, GL_UNIFORM, index, 13, props, 2, &length, params);
4432 if (length != 2)
4434 m_context.getTestContext().getLog() << tcu::TestLog::Message << "ERROR: incorrect length, expected 2, got "
4435 << length << tcu::TestLog::EndMessage;
4656 GLint length;
4657 glGetShaderiv(shaders[i], GL_SHADER_SOURCE_LENGTH, &length);
4658 if (length > 0)
4660 std::vector<GLchar> source(length);
4661 glGetShaderSource(shaders[i], length, NULL, &source[0]);
4667 glGetShaderiv(shaders[i], GL_INFO_LOG_LENGTH, &length);
4668 if (length > 0)
4670 std::vector<GLchar> log(length);
4671 glGetShaderInfoLog(shaders[i], length, NULL, &log[0]);
4679 GLint length;
4680 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &length);
4681 if (length > 0)
4683 std::vector<GLchar> log(length);
4684 glGetProgramInfoLog(program, length, NULL, &log[0]);
5125 addChild(new TestSubcase(m_context, "null-length", TestSubcase::Create<NullLength>));
5137 addChild(new TestSubcase(m_context, "buff-length", TestSubcase::Create<BuffLength>));