Lines Matching defs:state

84 	// verify that the given range is completely whitin the GL state range
131 StateQueryMemoryWriteGuard<GLboolean> state;
132 glGetBooleanv(name, &state);
134 if (!state.verifyValidity(testCtx))
139 if (state != expectedGLState)
141 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;
255 StateQueryMemoryWriteGuard<GLboolean> state;
256 glGetBooleanv(name, &state);
258 if (!state.verifyValidity(testCtx))
261 if (state == GL_TRUE) // state is non-zero, could be greater than reference (correct)
264 if (state == GL_FALSE) // state is zero
307 StateQueryMemoryWriteGuard<GLint> state;
308 glGetIntegerv(name, &state);
310 if (!state.verifyValidity(testCtx))
313 if (state < expectedGLStateMin || state > expectedGLStateMax)
315 testCtx.getLog() << TestLog::Message << "// ERROR: expected rounding to the nearest integer, valid range [" << expectedGLStateMin << "," << expectedGLStateMax << "]; got " << state << TestLog::EndMessage;
328 StateQueryMemoryWriteGuard<GLint> state;
329 glGetIntegerv(name, &state);
331 if (!state.verifyValidity(testCtx))
337 if (state < expectedGLStateMin || state > expectedGLStateMax)
339 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << toHex(expectedGLStateMin) << "," << toHex(expectedGLStateMax) << "]; got " << toHex((GLint)state) << TestLog::EndMessage;
450 // check if test range outside of gl state range
471 StateQueryMemoryWriteGuard<GLint> state;
472 glGetIntegerv(name, &state);
474 if (!state.verifyValidity(testCtx))
479 if (state < referenceAsInt)
481 testCtx.getLog() << TestLog::Message << "// ERROR: expected expected greater or equal to " << referenceAsInt << "; got " << state << TestLog::EndMessage;
513 StateQueryMemoryWriteGuard<GLint64> state;
514 glGetInteger64v(name, &state);
516 if (!state.verifyValidity(testCtx))
519 if (state < expectedGLStateMin || state > expectedGLStateMax)
521 testCtx.getLog() << TestLog::Message << "// ERROR: expected rounding to the nearest integer, valid range [" << expectedGLStateMin << "," << expectedGLStateMax << "]; got " << state << TestLog::EndMessage;
534 StateQueryMemoryWriteGuard<GLint64> state;
535 glGetInteger64v(name, &state);
537 if (!state.verifyValidity(testCtx))
543 if (state < expectedGLStateMin || state > expectedGLStateMax)
545 testCtx.getLog() << TestLog::Message << "// ERROR: expected in range [" << toHex(expectedGLStateMin) << "," << toHex(expectedGLStateMax) << "]; got " << toHex((GLint64)state) << TestLog::EndMessage;
656 // check if test range outside of gl state range
677 StateQueryMemoryWriteGuard<GLint64> state;
678 glGetInteger64v(name, &state);
680 if (!state.verifyValidity(testCtx))
685 if (state < referenceAsInt)
687 testCtx.getLog() << TestLog::Message << "// ERROR: expected expected greater or equal to " << referenceAsInt << "; got " << state << TestLog::EndMessage;
716 StateQueryMemoryWriteGuard<GLfloat> state;
717 glGetFloatv(name, &state);
719 if (!state.verifyValidity(testCtx))
722 if (state != reference)
724 testCtx.getLog() << TestLog::Message << "// ERROR: expected " << reference << "; got " << state << TestLog::EndMessage;
808 StateQueryMemoryWriteGuard<GLfloat> state;
809 glGetFloatv(name, &state);
811 if (!state.verifyValidity(testCtx))
814 if (state < reference)
816 testCtx.getLog() << TestLog::Message << "// ERROR: expected greater or equal to " << reference << "; got " << state << TestLog::EndMessage;