Lines Matching refs:written
751 GLint written = 0; // written does not include null terminator in test() local
752 glGetShaderInfoLog(shader, DE_LENGTH_OF_ARRAY(buffer), &written, buffer); in test()
757 if (written != logLength-1) in test()
759 …g::Message << "// ERROR: Expected length " << logLength-1 << "; got " << written << TestLog::EndMe… in test()
768 terminator = &buffer[written]; in test()
783 GLint written = 0; in test() local
784 glGetShaderInfoLog(shader, 1, &written, buffer); in test()
785 if (written != 0) in test()
787 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected length 0; got " << written << TestLo… in test()
864 GLint written = 0; // not inluding null-terminator in test() local
865 glGetShaderSource(shader, DE_LENGTH_OF_ARRAY(buffer), &written, buffer); in test()
868 if (written != referenceLength) in test()
870 … << "// ERROR: Expected write length " << referenceLength << "; got " << written << TestLog::EndMe… in test()
890 GLint written = 0; in test() local
891 glGetShaderSource(shader, 1, &written, buffer); in test()
893 if (written != 0) in test()
895 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected write length 0; got " << written << … in test()
1255 GLint written = 0; in test() local
1257 glGetProgramInfoLog(program, BUF_SIZE, &written, buffer); in test()
1259 if (logLength != 0 && written+1 != logLength) // INFO_LOG_LENGTH contains 0-terminator in test()
1261 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected INFO_LOG_LENGTH " << written+1 << ";… in test()
1265 else if (logLength != 0 && buffer[written] != '\0') in test()
1267 …<< TestLog::Message << "// ERROR: Expected null terminator at index " << written << TestLog::EndMe… in test()
1278 GLint written = 0; in test() local
1280 glGetProgramInfoLog(program, logLength, &written, buffer); in test()
1282 if (logLength != 0 && written+1 != logLength) // INFO_LOG_LENGTH contains 0-terminator in test()
1284 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected INFO_LOG_LENGTH " << written+1 << ";… in test()
1288 else if (logLength != 0 && buffer[written] != '\0') in test()
1290 …<< TestLog::Message << "// ERROR: Expected null terminator at index " << written << TestLog::EndMe… in test()
1300 GLint written = 0; in test() local
1302 glGetProgramInfoLog(program, 1, &written, buffer); in test()
1304 if (written != 0) in test()
1306 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected write length 0; got " << written << … in test()
1568 GLint written = 0; // null terminator not included in test() local
1571 …glGetActiveUniform(program, uniformIndex, DE_LENGTH_OF_ARRAY(buffer), &written, &size, &type, buff… in test()
1574 if (referenceLength != written) in test()
1576 …estLog::Message << "// ERROR: Expected " << referenceLength << "got " << written << TestLog::EndMe… in test()
1582 written = 0; in test()
1583 glGetActiveUniform(program, uniformIndex, 1, &written, &size, &type, buffer); in test()
1585 if (written != 0) in test()
1587 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected 0 got " << written << TestLog::EndMe… in test()
1871 GLint written = 0; in test() local
1872 …UniformBlockName(program, longlongUniformBlockIndex, DE_LENGTH_OF_ARRAY(buffer), &written, buffer); in test()
1873 checkIntEquals(m_testCtx, written, (GLint)std::string("longlongUniformBlockName").length()); in test()
1875 written = 0; in test()
1876 …iveUniformBlockName(program, shortUniformBlockIndex, DE_LENGTH_OF_ARRAY(buffer), &written, buffer); in test()
1877 checkIntEquals(m_testCtx, written, (GLint)std::string("shortUniformBlockName").length()); in test()
1880 written = 0; in test()
1881 glGetActiveUniformBlockName(program, longlongUniformBlockIndex, 1, &written, buffer); in test()
1882 checkIntEquals(m_testCtx, written, 0); in test()
2032 GLint written = 0; in test() local
2035 …glGetTransformFeedbackVarying(shaderProg, index, DE_LENGTH_OF_ARRAY(buffer), &written, &size, &typ… in test()
2037 if (written < DE_LENGTH_OF_ARRAY(buffer) && buffer[written] != '\0') in test()
2045 written = 0; in test()
2046 glGetTransformFeedbackVarying(shaderProg, index, 1, &written, &size, &type, buffer); in test()
2047 if (written != 0) in test()
2049 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected 0; got " << written << TestLog::EndM… in test()
2116 GLint written = 0; in test() local
2119 …glGetActiveAttrib(program, attributeNdx, DE_LENGTH_OF_ARRAY(buffer), &written, &size, &type, buffe… in test()
2124 …checkIntEquals(m_testCtx, written, (GLint)std::string("longInputAttributeName").length()); // does… in test()
2128 …checkIntEquals(m_testCtx, written, (GLint)std::string("shortName").length()); // does NOT include … in test()
2142 GLint written = 0; in test() local
2146 glGetActiveAttrib(program, 0, 1, &written, &size, &type, buffer); in test()
2148 checkIntEquals(m_testCtx, written, 0); in test()