Lines Matching defs:state
84 // verify that the given range is completely whitin the GL state range
129 StateQueryMemoryWriteGuard<GLboolean> state;
130 glGetBooleanv(name, &state);
132 if (!state.verifyValidity(testCtx))
137 if (state != expectedGLState)
139 testCtx.getLog() << TestLog::Message << "// ERROR: expected " << (expectedGLState==GL_TRUE ? "GL_TRUE" : "GL_FALSE") << "; got " << (state == GL_TRUE ? "GL_TRUE" : (state == GL_FALSE ? "GL_FALSE" : "non-boolean")) << TestLog::EndMessage;
274 StateQueryMemoryWriteGuard<GLint> state;
275 glGetIntegerv(name, &state);
277 if (!state.verifyValidity(testCtx))
280 if (state < expectedGLStateMin || state > expectedGLStateMax)
282 testCtx.getLog() << TestLog::Message << "// ERROR: expected rounding to the nearest integer, valid range [" << expectedGLStateMin << "," << expectedGLStateMax << "]; got " << state << TestLog::EndMessage;
298 StateQueryMemoryWriteGuard<GLint> state;
299 glGetIntegerv(name, &state);
301 if (!state.verifyValidity(testCtx))
304 if (state < expectedGLStateMin || state > expectedGLStateMax)
306 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << toHex(expectedGLStateMin) << "," << toHex(expectedGLStateMax) << "]; got " << toHex((GLint)state) << TestLog::EndMessage;
417 // check if test range outside of gl state range
459 StateQueryMemoryWriteGuard<GLint64> state;
460 glGetInteger64v(name, &state);
462 if (!state.verifyValidity(testCtx))
465 if (state < expectedGLStateMin || state > expectedGLStateMax)
467 testCtx.getLog() << TestLog::Message << "// ERROR: expected rounding to the nearest integer, valid range [" << expectedGLStateMin << "," << expectedGLStateMax << "]; got " << state << TestLog::EndMessage;
483 StateQueryMemoryWriteGuard<GLint64> state;
484 glGetInteger64v(name, &state);
486 if (!state.verifyValidity(testCtx))
489 if (state < expectedGLStateMin || state > expectedGLStateMax)
491 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << toHex(expectedGLStateMin) << "," << toHex(expectedGLStateMax) << "]; got " << toHex((GLint64)state) << TestLog::EndMessage;
602 // check if test range outside of gl state range
641 StateQueryMemoryWriteGuard<GLfloat> state;
642 glGetFloatv(name, &state);
644 if (!state.verifyValidity(testCtx))
647 if (state != reference)
649 testCtx.getLog() << TestLog::Message << "// ERROR: expected " << reference << "; got " << state << TestLog::EndMessage;