• Home
  • Raw
  • Download

Lines Matching refs:DrawTestSpec

153 static void addTestIterations (gls::DrawTest* test, gls::DrawTestSpec& spec, TestIterationType type)  in addTestIterations()
181 static void genBasicSpec (gls::DrawTestSpec& spec, gls::DrawTestSpec::DrawMethod method) in genBasicSpec()
184 spec.primitive = gls::DrawTestSpec::PRIMITIVE_TRIANGLES; in genBasicSpec()
187 spec.indexType = gls::DrawTestSpec::INDEXTYPE_LAST; in genBasicSpec()
189 spec.indexStorage = gls::DrawTestSpec::STORAGE_LAST; in genBasicSpec()
198 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
199 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
200 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
201 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
209 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
210 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
211 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
212 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
233 …cr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gls::DrawTes…
239 gls::DrawTestSpec::DrawMethod m_method;
240 gls::DrawTestSpec::Primitive m_primitive;
241 gls::DrawTestSpec::IndexType m_indexType;
242 gls::DrawTestSpec::Storage m_indexStorage;
245 …cr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gls::DrawTes… in AttributeGroup()
263 gls::DrawTestSpec spec; in init()
280 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
281 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
282 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
283 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
299 gls::DrawTestSpec spec; in init()
316 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
317 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
318 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
319 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
327 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
328 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
329 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
330 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
346 gls::DrawTestSpec spec; in init()
363 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
364 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
365 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
366 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
375 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
376 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
377 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
378 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
388 spec.attribs[2].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
389 spec.attribs[2].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
390 spec.attribs[2].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
391 spec.attribs[2].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
407 gls::DrawTestSpec spec; in init()
424 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
425 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
426 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
427 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
437 gls::DrawTestSpec::InputType input; in init()
438 gls::DrawTestSpec::OutputType output; in init()
442 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC2, 4 }, in init()
443 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC4, 2 }, in init()
444 { gls::DrawTestSpec::INPUTTYPE_INT, gls::DrawTestSpec::OUTPUTTYPE_IVEC3, 4 }, in init()
445 { gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, gls::DrawTestSpec::OUTPUTTYPE_UVEC2, 4 }, in init()
450 …desc = gls::DrawTestSpec::inputTypeToString(iopairs[ioNdx].input) + de::toString(iopairs[ioNdx].co… in init()
454 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
455 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
473 …IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
479 gls::DrawTestSpec::DrawMethod m_method;
482 IndexGroup::IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in IndexGroup()
496 gls::DrawTestSpec::IndexType type; in init()
502 { gls::DrawTestSpec::INDEXTYPE_BYTE, { 0, 1, -1 } }, in init()
503 { gls::DrawTestSpec::INDEXTYPE_SHORT, { 0, 2, -1 } }, in init()
504 { gls::DrawTestSpec::INDEXTYPE_INT, { 0, 4, -1 } }, in init()
507 gls::DrawTestSpec spec; in init()
510 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
516 …const std::string name = std::string("index_") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
517 …const std::string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
524 …first vertex ") + de::toString(indexTest.offsets[iterationNdx] / gls::DrawTestSpec::indexTypeSize(… in init()
536 …BaseVertexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMe…
542 gls::DrawTestSpec::DrawMethod m_method;
545 …texGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod dra… in BaseVertexGroup()
560 gls::DrawTestSpec::IndexType type; in init()
566 { true, gls::DrawTestSpec::INDEXTYPE_BYTE, { 1, 2 } }, in init()
567 { true, gls::DrawTestSpec::INDEXTYPE_SHORT, { 1, 2 } }, in init()
568 { true, gls::DrawTestSpec::INDEXTYPE_INT, { 1, 2 } }, in init()
569 { false, gls::DrawTestSpec::INDEXTYPE_BYTE, { -1, -2 } }, in init()
570 { false, gls::DrawTestSpec::INDEXTYPE_SHORT, { -1, -2 } }, in init()
571 { false, gls::DrawTestSpec::INDEXTYPE_INT, { -1, -2 } }, in init()
574 gls::DrawTestSpec spec; in init()
577 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
583 …std::string("index_") + (indexTest.positiveBase ? "" : "neg_") + gls::DrawTestSpec::indexTypeToStr… in init()
584 …const std::string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
603 …FirstGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
609 gls::DrawTestSpec::DrawMethod m_method;
612 FirstGroup::FirstGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in FirstGroup()
629 gls::DrawTestSpec spec; in init()
649 …MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMetho…
655 gls::DrawTestSpec::DrawMethod m_method;
658 MethodGroup::MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec:… in MethodGroup()
670 const bool indexed = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT); in init()
671 const bool hasFirst = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT); in init()
673 const gls::DrawTestSpec::Primitive primitive[] = in init()
675 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
676 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
677 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
678 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
679 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
680 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
681 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
699 const std::string name = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
700 const std::string desc = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
702 …str(), desc.c_str(), m_method, primitive[ndx], gls::DrawTestSpec::INDEXTYPE_SHORT, gls::DrawTestSp… in init()
2066 gls::DrawTestSpec::Primitive primitives[] = in init()
2068 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
2069 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
2070 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
2071 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
2072 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
2073 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
2074 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
2078 gls::DrawTestSpec::DrawMethod drawMethods[] = in init()
2080 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT, in init()
2081 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT, in init()
2085 gls::DrawTestSpec::IndexType indexTypes[] = in init()
2087 gls::DrawTestSpec::INDEXTYPE_BYTE, in init()
2088 gls::DrawTestSpec::INDEXTYPE_SHORT, in init()
2089 gls::DrawTestSpec::INDEXTYPE_INT, in init()
2093 gls::DrawTestSpec::InputType inputTypes[] = in init()
2095 gls::DrawTestSpec::INPUTTYPE_FLOAT, in init()
2096 gls::DrawTestSpec::INPUTTYPE_FIXED, in init()
2097 gls::DrawTestSpec::INPUTTYPE_BYTE, in init()
2098 gls::DrawTestSpec::INPUTTYPE_SHORT, in init()
2099 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE, in init()
2100 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT, in init()
2101 gls::DrawTestSpec::INPUTTYPE_INT, in init()
2102 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, in init()
2103 gls::DrawTestSpec::INPUTTYPE_HALF, in init()
2104 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10, in init()
2105 gls::DrawTestSpec::INPUTTYPE_INT_2_10_10_10, in init()
2109 gls::DrawTestSpec::OutputType outputTypes[] = in init()
2111 gls::DrawTestSpec::OUTPUTTYPE_FLOAT, in init()
2112 gls::DrawTestSpec::OUTPUTTYPE_VEC2, in init()
2113 gls::DrawTestSpec::OUTPUTTYPE_VEC3, in init()
2114 gls::DrawTestSpec::OUTPUTTYPE_VEC4, in init()
2115 gls::DrawTestSpec::OUTPUTTYPE_INT, in init()
2116 gls::DrawTestSpec::OUTPUTTYPE_UINT, in init()
2117 gls::DrawTestSpec::OUTPUTTYPE_IVEC2, in init()
2118 gls::DrawTestSpec::OUTPUTTYPE_IVEC3, in init()
2119 gls::DrawTestSpec::OUTPUTTYPE_IVEC4, in init()
2120 gls::DrawTestSpec::OUTPUTTYPE_UVEC2, in init()
2121 gls::DrawTestSpec::OUTPUTTYPE_UVEC3, in init()
2122 gls::DrawTestSpec::OUTPUTTYPE_UVEC4, in init()
2126 gls::DrawTestSpec::Usage usages[] = in init()
2128 gls::DrawTestSpec::USAGE_DYNAMIC_DRAW, in init()
2129 gls::DrawTestSpec::USAGE_STATIC_DRAW, in init()
2130 gls::DrawTestSpec::USAGE_STREAM_DRAW, in init()
2131 gls::DrawTestSpec::USAGE_STREAM_READ, in init()
2132 gls::DrawTestSpec::USAGE_STREAM_COPY, in init()
2133 gls::DrawTestSpec::USAGE_STATIC_READ, in init()
2134 gls::DrawTestSpec::USAGE_STATIC_COPY, in init()
2135 gls::DrawTestSpec::USAGE_DYNAMIC_READ, in init()
2136 gls::DrawTestSpec::USAGE_DYNAMIC_COPY, in init()
2149 gls::DrawTestSpec spec; in init()
2152 …spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives… in init()
2154 …spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMeth… in init()
2156 if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT) in init()
2158 else if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT) in init()
2166 …spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes… in init()
2168 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
2183 gls::DrawTestSpec::AttributeSpec attribSpec; in init()
2185 …attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(input… in init()
2186 …attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(out… in init()
2187 attribSpec.storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
2188 …attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), … in init()
2200 …if (attribSpec.stride && attribSpec.componentCount * gls::DrawTestSpec::inputTypeSize(attribSpec.i… in init()
2212 if (spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
2218 …rawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && spec.indexMin == spec.indexMax &… in init()
2220 if (spec.attribs[0].useDefaultAttribute && spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
2224 … == gls::DrawTestSpec::PRIMITIVE_TRIANGLES || spec.primitive == gls::DrawTestSpec::PRIMITIVE_TRIAN… in init()
2228 …::DrawTestSpec::OUTPUTTYPE_FLOAT || spec.attribs[0].outputType == gls::DrawTestSpec::OUTPUTTYPE_IN… in init()
2230 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && (spec.indexMax - spec.… in init()
2244 if (spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET && in init()
2245 spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE) in init()
2765 const gls::DrawTestSpec::DrawMethod basicMethods[] = in init()
2767 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT, in init()
2768 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT, in init()
2773 const std::string name = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()
2774 const std::string desc = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()