Lines Matching refs:DrawTestSpec
64 static size_t getElementCount (gls::DrawTestSpec::Primitive primitive, size_t primitiveCount) in getElementCount()
68 case gls::DrawTestSpec::PRIMITIVE_POINTS: return primitiveCount; in getElementCount()
69 case gls::DrawTestSpec::PRIMITIVE_TRIANGLES: return primitiveCount * 3; in getElementCount()
70 case gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN: return primitiveCount + 2; in getElementCount()
71 case gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP: return primitiveCount + 2; in getElementCount()
72 case gls::DrawTestSpec::PRIMITIVE_LINES: return primitiveCount * 2; in getElementCount()
73 case gls::DrawTestSpec::PRIMITIVE_LINE_STRIP: return primitiveCount + 1; in getElementCount()
74 …case gls::DrawTestSpec::PRIMITIVE_LINE_LOOP: return (primitiveCount==1) ? (2) : (primitiveCoun… in getElementCount()
75 case gls::DrawTestSpec::PRIMITIVE_LINES_ADJACENCY: return primitiveCount * 4; in getElementCount()
76 case gls::DrawTestSpec::PRIMITIVE_LINE_STRIP_ADJACENCY: return primitiveCount + 3; in getElementCount()
77 case gls::DrawTestSpec::PRIMITIVE_TRIANGLES_ADJACENCY: return primitiveCount * 6; in getElementCount()
78 case gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP_ADJACENCY: return primitiveCount * 2 + 4; in getElementCount()
85 static void addRangeElementsToSpec (gls::DrawTestSpec& spec) in addRangeElementsToSpec()
87 if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX) in addRangeElementsToSpec()
94 static void addTestIterations (gls::DrawTest* test, gls::DrawTestSpec& spec, TestIterationType type) in addTestIterations()
128 static void genBasicSpec (gls::DrawTestSpec& spec, gls::DrawTestSpec::DrawMethod method) in genBasicSpec()
131 spec.primitive = gls::DrawTestSpec::PRIMITIVE_TRIANGLES; in genBasicSpec()
134 spec.indexType = gls::DrawTestSpec::INDEXTYPE_LAST; in genBasicSpec()
136 spec.indexStorage = gls::DrawTestSpec::STORAGE_LAST; in genBasicSpec()
145 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
146 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
147 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
148 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
156 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
157 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
158 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
159 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
173 VertexIDCase (Context& context, gls::DrawTestSpec::DrawMethod drawMethod);
189 gls::DrawTestSpec::DrawMethod m_method;
203 VertexIDCase::VertexIDCase (Context& context, gls::DrawTestSpec::DrawMethod drawMethod) in VertexIDCase()
221 if (m_method == deqp::gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX || in init()
222 m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX || in init()
223 m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX) in init()
290 case gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX: in draw()
294 case gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX: in draw()
302 case gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX: in draw()
437 …leGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod dra…
443 gls::DrawTestSpec::DrawMethod m_method;
446 …bleGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod dra… in BuiltInVariableGroup()
464 …IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
470 gls::DrawTestSpec::DrawMethod m_method;
473 IndexGroup::IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in IndexGroup()
487 gls::DrawTestSpec::IndexType type; in init()
493 { gls::DrawTestSpec::INDEXTYPE_BYTE, { 0, 1, -1 } }, in init()
494 { gls::DrawTestSpec::INDEXTYPE_SHORT, { 0, 2, -1 } }, in init()
495 { gls::DrawTestSpec::INDEXTYPE_INT, { 0, 4, -1 } }, in init()
498 gls::DrawTestSpec spec; in init()
501 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
507 …const std::string name = std::string("index_") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
508 …const std::string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
515 …first vertex ") + de::toString(indexTest.offsets[iterationNdx] / gls::DrawTestSpec::indexTypeSize(… in init()
527 …BaseVertexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMe…
533 gls::DrawTestSpec::DrawMethod m_method;
536 …texGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod dra… in BaseVertexGroup()
551 gls::DrawTestSpec::IndexType type; in init()
557 { true, gls::DrawTestSpec::INDEXTYPE_BYTE, { 1, 2 } }, in init()
558 { true, gls::DrawTestSpec::INDEXTYPE_SHORT, { 1, 2 } }, in init()
559 { true, gls::DrawTestSpec::INDEXTYPE_INT, { 1, 2 } }, in init()
560 { false, gls::DrawTestSpec::INDEXTYPE_BYTE, { -1, -2 } }, in init()
561 { false, gls::DrawTestSpec::INDEXTYPE_SHORT, { -1, -2 } }, in init()
562 { false, gls::DrawTestSpec::INDEXTYPE_INT, { -1, -2 } }, in init()
565 gls::DrawTestSpec spec; in init()
568 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
574 …std::string("index_") + (indexTest.positiveBase ? "" : "neg_") + gls::DrawTestSpec::indexTypeToStr… in init()
575 …const std::string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
600 …cr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gls::DrawTes…
606 gls::DrawTestSpec::DrawMethod m_method;
607 gls::DrawTestSpec::Primitive m_primitive;
608 gls::DrawTestSpec::IndexType m_indexType;
609 gls::DrawTestSpec::Storage m_indexStorage;
612 …cr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gls::DrawTes… in AttributeGroup()
630 gls::DrawTestSpec spec; in init()
647 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
648 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
649 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
650 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
666 gls::DrawTestSpec spec; in init()
683 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
684 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
685 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
686 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
694 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
695 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
696 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
697 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
713 gls::DrawTestSpec spec; in init()
730 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
731 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
732 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
733 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
742 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
743 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
744 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
745 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
755 spec.attribs[2].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
756 spec.attribs[2].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
757 spec.attribs[2].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
758 spec.attribs[2].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
774 gls::DrawTestSpec spec; in init()
791 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
792 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
793 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
794 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
804 gls::DrawTestSpec::InputType input; in init()
805 gls::DrawTestSpec::OutputType output; in init()
809 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC2, 4 }, in init()
810 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC4, 2 }, in init()
811 { gls::DrawTestSpec::INPUTTYPE_INT, gls::DrawTestSpec::OUTPUTTYPE_IVEC3, 4 }, in init()
812 { gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, gls::DrawTestSpec::OUTPUTTYPE_UVEC2, 4 }, in init()
817 …desc = gls::DrawTestSpec::inputTypeToString(iopairs[ioNdx].input) + de::toString(iopairs[ioNdx].co… in init()
821 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
822 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
840 …MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMetho…
846 gls::DrawTestSpec::DrawMethod m_method;
849 MethodGroup::MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec:… in MethodGroup()
861 const bool indexed = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX) in init()
862 || (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX) in init()
863 || (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX); in init()
865 const gls::DrawTestSpec::Primitive primitive[] = in init()
867 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
868 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
869 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
870 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
871 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
872 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
873 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
886 const std::string name = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
887 const std::string desc = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
889 …str(), desc.c_str(), m_method, primitive[ndx], gls::DrawTestSpec::INDEXTYPE_SHORT, gls::DrawTestSp… in init()
906 const gls::DrawTestSpec::DrawMethod basicMethods[] = in init()
908 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX, in init()
909 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX, in init()
910 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX, in init()
915 const std::string name = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()
916 const std::string desc = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()