• Home
  • Raw
  • Download

Lines Matching refs:gls

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, glu::ContextType& contextType, gls::DrawTestSpec… 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);
190 gls::DrawTestSpec::DrawMethod m_method;
204 VertexIDCase::VertexIDCase (Context& context, gls::DrawTestSpec::DrawMethod drawMethod) in VertexIDCase()
224 if (m_method == deqp::gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX || in init()
225 m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX || in init()
226 m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX) in init()
302 case gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX: in draw()
306 case gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX: in draw()
314 case gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX: in draw()
452 …BuiltInVariableGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D…
458 gls::DrawTestSpec::DrawMethod m_method;
461 …iltInVariableGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::Draw… in BuiltInVariableGroup()
479 …IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
485 gls::DrawTestSpec::DrawMethod m_method;
488 IndexGroup::IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in IndexGroup()
502 gls::DrawTestSpec::IndexType type; in init()
508 { gls::DrawTestSpec::INDEXTYPE_BYTE, { 0, 1, -1 } }, in init()
509 { gls::DrawTestSpec::INDEXTYPE_SHORT, { 0, 2, -1 } }, in init()
510 { gls::DrawTestSpec::INDEXTYPE_INT, { 0, 4, -1 } }, in init()
513 gls::DrawTestSpec spec; in init()
517 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
523 …const std::string name = std::string("index_") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
524 …const std::string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
525gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name.c_str(), d… in init()
531 …::string("first vertex ") + de::toString(indexTest.offsets[iterationNdx] / gls::DrawTestSpec::inde… in init()
543 …BaseVertexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMe…
549 gls::DrawTestSpec::DrawMethod m_method;
552 BaseVertexGroup::BaseVertexGroup (Context& context, const char* name, const char* descr, gls::DrawT… in BaseVertexGroup()
567 gls::DrawTestSpec::IndexType type; in init()
573 { true, gls::DrawTestSpec::INDEXTYPE_BYTE, { 1, 2 } }, in init()
574 { true, gls::DrawTestSpec::INDEXTYPE_SHORT, { 1, 2 } }, in init()
575 { true, gls::DrawTestSpec::INDEXTYPE_INT, { 1, 2 } }, in init()
576 { false, gls::DrawTestSpec::INDEXTYPE_BYTE, { -1, -2 } }, in init()
577 { false, gls::DrawTestSpec::INDEXTYPE_SHORT, { -1, -2 } }, in init()
578 { false, gls::DrawTestSpec::INDEXTYPE_INT, { -1, -2 } }, in init()
581 gls::DrawTestSpec spec; in init()
585 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
591 …const std::string name = std::string("index_") + (indexTest.positiveBase ? "" : "neg_") + gls::Dr… in init()
592 …const std::string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
593gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name.c_str(), d… in init()
617 … char* descr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gl…
623 gls::DrawTestSpec::DrawMethod m_method;
624 gls::DrawTestSpec::Primitive m_primitive;
625 gls::DrawTestSpec::IndexType m_indexType;
626 gls::DrawTestSpec::Storage m_indexStorage;
629 … char* descr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gl… in AttributeGroup()
646gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "single_attri… in init()
647 gls::DrawTestSpec spec; in init()
665 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
666 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
667 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
668 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
683gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "multiple_att… in init()
684 gls::DrawTestSpec spec; in init()
702 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
703 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
704 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
705 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
713 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
714 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
715 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
716 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
731gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "instanced_a… in init()
732 gls::DrawTestSpec spec; in init()
750 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
751 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
752 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
753 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
762 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
763 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
764 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
765 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
775 spec.attribs[2].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
776 spec.attribs[2].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
777 spec.attribs[2].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
778 spec.attribs[2].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
793gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "default_attr… in init()
794 gls::DrawTestSpec spec; in init()
812 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
813 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
814 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
815 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
825 gls::DrawTestSpec::InputType input; in init()
826 gls::DrawTestSpec::OutputType output; in init()
830 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC2, 4 }, in init()
831 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC4, 2 }, in init()
832 { gls::DrawTestSpec::INPUTTYPE_INT, gls::DrawTestSpec::OUTPUTTYPE_IVEC3, 4 }, in init()
833 { gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, gls::DrawTestSpec::OUTPUTTYPE_UVEC2, 4 }, in init()
838 …d::string desc = gls::DrawTestSpec::inputTypeToString(iopairs[ioNdx].input) + de::toString(iopairs… in init()
842 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
843 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
861 …MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMetho…
867 gls::DrawTestSpec::DrawMethod m_method;
870 MethodGroup::MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec:… in MethodGroup()
882 const bool indexed = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX) in init()
883 || (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX) in init()
884 || (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX); in init()
886 const gls::DrawTestSpec::Primitive primitive[] = in init()
888 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
889 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
890 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
891 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
892 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
893 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
894 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
907 const std::string name = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
908 const std::string desc = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
910 …t, name.c_str(), desc.c_str(), m_method, primitive[ndx], gls::DrawTestSpec::INDEXTYPE_SHORT, gls::… in init()
927 const gls::DrawTestSpec::DrawMethod basicMethods[] = in init()
929 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_BASEVERTEX, in init()
930 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX, in init()
931 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX, in init()
936 const std::string name = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()
937 const std::string desc = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()