Lines Matching refs:DrawTestSpec
225 static void genBasicSpec (gls::DrawTestSpec& spec, gls::DrawTestSpec::DrawMethod method) in genBasicSpec()
228 spec.primitive = gls::DrawTestSpec::PRIMITIVE_TRIANGLES; in genBasicSpec()
231 spec.indexType = gls::DrawTestSpec::INDEXTYPE_LAST; in genBasicSpec()
233 spec.indexStorage = gls::DrawTestSpec::STORAGE_LAST; in genBasicSpec()
241 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
242 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
243 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
244 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
252 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
253 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
254 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
255 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
267 …IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
273 gls::DrawTestSpec::DrawMethod m_method;
276 IndexGroup::IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in IndexGroup()
290 gls::DrawTestSpec::Storage storage; in init()
291 gls::DrawTestSpec::IndexType type; in init()
298 { gls::DrawTestSpec::STORAGE_BUFFER, gls::DrawTestSpec::INDEXTYPE_SHORT, false, { 1, 3, -1 } }, in init()
299 { gls::DrawTestSpec::STORAGE_BUFFER, gls::DrawTestSpec::INDEXTYPE_INT, false, { 2, 3, -1 } }, in init()
302 gls::DrawTestSpec spec; in init()
305 … isRangedMethod = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED || m_method == … in init()
315 DE_ASSERT(indexTest.storage != gls::DrawTestSpec::STORAGE_USER); in init()
319 …const std::string name = std::string("index_") + gls::DrawTestSpec::indexTypeToString(indexTes… in init()
320 … desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.type) + " in " + g… in init()
339 DE_ASSERT(spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET || in init()
340 spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE); in init()
348 …MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMetho…
354 gls::DrawTestSpec::DrawMethod m_method;
357 MethodGroup::MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec:… in MethodGroup()
369 …gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS) || (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEM… in init()
431 gls::DrawTestSpec::Primitive primitives[] = in init()
433 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
434 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
435 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
436 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
437 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
438 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
439 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
443 gls::DrawTestSpec::DrawMethod drawMethods[] = in init()
445 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS, in init()
446 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INSTANCED, in init()
447 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS, in init()
448 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED, in init()
449 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED in init()
453 gls::DrawTestSpec::IndexType indexTypes[] = in init()
455 gls::DrawTestSpec::INDEXTYPE_BYTE, in init()
456 gls::DrawTestSpec::INDEXTYPE_SHORT, in init()
457 gls::DrawTestSpec::INDEXTYPE_INT, in init()
461 gls::DrawTestSpec::Storage storages[] = in init()
463 gls::DrawTestSpec::STORAGE_USER, in init()
464 gls::DrawTestSpec::STORAGE_BUFFER, in init()
468 gls::DrawTestSpec::InputType inputTypes[] = in init()
470 gls::DrawTestSpec::INPUTTYPE_FLOAT, in init()
471 gls::DrawTestSpec::INPUTTYPE_FIXED, in init()
472 gls::DrawTestSpec::INPUTTYPE_BYTE, in init()
473 gls::DrawTestSpec::INPUTTYPE_SHORT, in init()
474 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE, in init()
475 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT, in init()
476 gls::DrawTestSpec::INPUTTYPE_INT, in init()
477 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, in init()
478 gls::DrawTestSpec::INPUTTYPE_HALF, in init()
479 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10, in init()
480 gls::DrawTestSpec::INPUTTYPE_INT_2_10_10_10, in init()
484 gls::DrawTestSpec::OutputType outputTypes[] = in init()
486 gls::DrawTestSpec::OUTPUTTYPE_FLOAT, in init()
487 gls::DrawTestSpec::OUTPUTTYPE_VEC2, in init()
488 gls::DrawTestSpec::OUTPUTTYPE_VEC3, in init()
489 gls::DrawTestSpec::OUTPUTTYPE_VEC4, in init()
490 gls::DrawTestSpec::OUTPUTTYPE_INT, in init()
491 gls::DrawTestSpec::OUTPUTTYPE_UINT, in init()
492 gls::DrawTestSpec::OUTPUTTYPE_IVEC2, in init()
493 gls::DrawTestSpec::OUTPUTTYPE_IVEC3, in init()
494 gls::DrawTestSpec::OUTPUTTYPE_IVEC4, in init()
495 gls::DrawTestSpec::OUTPUTTYPE_UVEC2, in init()
496 gls::DrawTestSpec::OUTPUTTYPE_UVEC3, in init()
497 gls::DrawTestSpec::OUTPUTTYPE_UVEC4, in init()
501 gls::DrawTestSpec::Usage usages[] = in init()
503 gls::DrawTestSpec::USAGE_DYNAMIC_DRAW, in init()
504 gls::DrawTestSpec::USAGE_STATIC_DRAW, in init()
505 gls::DrawTestSpec::USAGE_STREAM_DRAW, in init()
506 gls::DrawTestSpec::USAGE_STREAM_READ, in init()
507 gls::DrawTestSpec::USAGE_STREAM_COPY, in init()
508 gls::DrawTestSpec::USAGE_STATIC_READ, in init()
509 gls::DrawTestSpec::USAGE_STATIC_COPY, in init()
510 gls::DrawTestSpec::USAGE_DYNAMIC_READ, in init()
511 gls::DrawTestSpec::USAGE_DYNAMIC_COPY, in init()
523 gls::DrawTestSpec spec; in init()
526 …spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives… in init()
528 …spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMeth… in init()
529 …spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes… in init()
531 …spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages)… in init()
544 gls::DrawTestSpec::AttributeSpec attribSpec; in init()
546 …attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(input… in init()
547 …attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(out… in init()
548 …attribSpec.storage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storage… in init()
549 …attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), … in init()
561 …if (attribSpec.stride && attribSpec.componentCount * gls::DrawTestSpec::inputTypeSize(attribSpec.i… in init()
573 if (spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
579 …rawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && spec.indexMin == spec.indexMax &… in init()
581 if (spec.attribs[0].useDefaultAttribute && spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
585 … == gls::DrawTestSpec::PRIMITIVE_TRIANGLES || spec.primitive == gls::DrawTestSpec::PRIMITIVE_TRIAN… in init()
589 …::DrawTestSpec::OUTPUTTYPE_FLOAT || spec.attribs[0].outputType == gls::DrawTestSpec::OUTPUTTYPE_IN… in init()
591 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && (spec.indexMax - spec.… in init()
605 if (spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET || in init()
606 spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE) in init()
637 const gls::DrawTestSpec::DrawMethod basicMethods[] = in init()
640 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS, in init()
642 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED, in init()
643 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED, in init()
648 const std::string name = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()
649 const std::string desc = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()