Lines Matching defs:test

47 	TYPE_DRAW_COUNT,		// !< test with 1, 5, and 25 primitives
48 TYPE_INSTANCE_COUNT, // !< test with 1, 4, and 11 instances
49 TYPE_INDEX_RANGE, // !< test with index range of [0, 23], [23, 40], and [5, 5]
54 static void addTestIterations (gls::DrawTest* test, const gls::DrawTestSpec& baseSpec, TestIterationType type)
61 test->addIteration(spec, "draw count = 1");
64 test->addIteration(spec, "draw count = 5");
67 test->addIteration(spec, "draw count = 25");
72 test->addIteration(spec, "instance count = 1");
75 test->addIteration(spec, "instance count = 4");
78 test->addIteration(spec, "instance count = 11");
84 test->addIteration(spec, "index range = [0, 23]");
88 test->addIteration(spec, "index range = [23, 40]");
95 test->addIteration(spec, "index range = [5, 5]");
171 // select test type
179 gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "single_attribute", "Single attribute array.");
207 addTestIterations(test, spec, testType);
209 this->addChild(test);
214 gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "multiple_attributes", "Multiple attribute arrays.");
253 addTestIterations(test, spec, testType);
255 this->addChild(test);
260 gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "instanced_attributes", "Instanced attribute array.");
313 addTestIterations(test, spec, testType);
315 this->addChild(test);
320 gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "default_attribute", "Attribute specified with glVertexAttrib*.");
376 test->addIteration(spec, desc.c_str());
379 this->addChild(test);
450 de::MovePtr<gls::DrawTest> test (new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name.c_str(), desc.c_str()));
459 test->addIteration(spec, iterationDesc.c_str());
464 group->addChild(test.release());
505 gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name.c_str(), desc.c_str());
509 addTestIterations(test, spec, TYPE_DRAW_COUNT);
511 this->addChild(test);
775 // \note the green/yellow pattern is only for clarity. The test will only verify that all instances were drawn by looking for anything non-green/yellow.