Lines Matching defs:length

84 		GLsizei length;
86 glGetProgramInfoLog(program, sizeof(log), &length, log);
87 if (length > 1)
273 GLsizei length;
275 glGetProgramResourceiv(program, programInterface, index, propCount, props, bufSize, &length, params);
276 if (length != expectedLength || length <= 0)
280 << tcu::TestLog::Message << "ERROR: Got length " << length << ", expected " << expectedLength
285 for (int i = 0; i < length; ++i)
547 GLint length;
548 glGetShaderiv(shaders[i], GL_SHADER_SOURCE_LENGTH, &length);
549 if (length > 0)
551 std::vector<GLchar> source(length);
552 glGetShaderSource(shaders[i], length, NULL, &source[0]);
558 glGetShaderiv(shaders[i], GL_INFO_LOG_LENGTH, &length);
559 if (length > 0)
561 std::vector<GLchar> log(length);
562 glGetShaderInfoLog(shaders[i], length, NULL, &log[0]);
570 GLint length;
571 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &length);
572 if (length > 0)
574 std::vector<GLchar> log(length);
575 glGetProgramInfoLog(program, length, NULL, &log[0]);
1447 GLsizei length;
1453 glGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["SimpleBlock"], 1, &prop, bufSize, &length, param);
1454 for (int i = 0; i < length; ++i)
1466 else if (length != 3)
1471 << "Expected length: 3, actual length: " << length << tcu::TestLog::EndMessage;
1480 glGetProgramResourceiv(program, GL_UNIFORM_BLOCK, indicesUB["NotSoSimpleBlockk"], 1, &prop, bufSize, &length,
1482 for (int i = 0; i < length; ++i)
1494 else if (length != 3)
1499 << "Expected length: 3, actual length: " << length << tcu::TestLog::EndMessage;
1848 GLsizei length;
1850 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, bufSize, &length, &res);
1853 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, bufSize, &length, &res);
1858 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["b"], 1, &prop, bufSize, &length, &res);
1861 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["c"], 1, &prop, bufSize, &length, &res);
1864 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["d"], 1, &prop, bufSize, &length, &res);
1867 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["e"], 1, &prop, bufSize, &length, &res);
1875 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["b"], 1, &prop, bufSize, &length, &res);
1876 glGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 1, &prop2, bufSize, &length, param);
1877 for (int i = 0; i < length; ++i)
1879 if (exp.find(param[i]) == exp.end() || length != 2)
1882 << tcu::TestLog::Message << "Length: " << length
1883 << "Unexpected index/length found in active variables of ATOMIC_COUNTER_BUFFER: " << param[i]
1893 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["d"], 1, &prop, bufSize, &length, &res);
1894 glGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 1, &prop2, bufSize, &length, param2);
1895 for (int i = 0; i < length; ++i)
1897 if (exp2.find(param2[i]) == exp2.end() || length != 2)
1900 << tcu::TestLog::Message << "Length: " << length
1901 << "Unexpected index/length found in active variables of ATOMIC_COUNTER_BUFFER: " << param2[i]
1991 GLsizei length;
1994 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["a"], 1, &prop, bufSize, &length, &res);
2014 glGetProgramResourceiv(program, GL_UNIFORM, indicesU["b"], 1, &prop, bufSize, &length, &res);
2023 glGetProgramResourceiv(program, GL_ATOMIC_COUNTER_BUFFER, res, 1, &prop2, bufSize, &length, param);
2024 for (int i = 0; i < length; ++i)
2026 if (exp.find(param[i]) == exp.end() || length != 3)
2029 << tcu::TestLog::Message << "Length: " << length
2030 << "Unexpected index/length found in active variables of ATOMIC_COUNTER_BUFFER: " << param[i]
2462 GLsizei length;
2468 glGetProgramResourceiv(program, GL_SHADER_STORAGE_BLOCK, indicesSSB["SimpleBuffer"], 1, &prop, bufSize, &length,
2470 for (int i = 0; i < length; ++i)
2483 else if (length != 3)
2488 << "Expected length: 3, actual length: " << length << tcu::TestLog::EndMessage;
2498 &length, param);
2499 for (int i = 0; i < length; ++i)
2512 else if (length != 3)
2517 << param[i] << "\nExpected length: 3, actual length: " << length << tcu::TestLog::EndMessage;
2547 return "\n\n Purpose is to verify that GetProgramResourceName with null length doesn't return length (doesn't "
2801 GLsizei length;
2803 glGetProgramInfoLog(program, sizeof(log), &length, log);
2804 if (length > 1)
3173 GLsizei length;
3183 glGetProgramResourceName(program, GL_UNIFORM, index, 2, &length, buff);
3190 if (length != 1)
3192 m_context.getTestContext().getLog() << tcu::TestLog::Message << "ERROR: incorrect length, expected 1, got "
3193 << length << tcu::TestLog::EndMessage;
3219 glGetProgramResourceiv(program, GL_UNIFORM, index, 13, props, 2, &length, params);
3226 if (length != 2)
3228 m_context.getTestContext().getLog() << tcu::TestLog::Message << "ERROR: incorrect length, expected 2, got "
3229 << length << tcu::TestLog::EndMessage;
3752 addChild(new TestSubcase(m_context, "null-length", TestSubcase::Create<NullLength>));
3759 addChild(new TestSubcase(m_context, "buff-length", TestSubcase::Create<BuffLength>));