Lines Matching refs:gls
153 static void addTestIterations (gls::DrawTest* test, gls::DrawTestSpec& spec, TestIterationType type) in addTestIterations()
181 static void genBasicSpec (gls::DrawTestSpec& spec, glu::ContextType contextType, gls::DrawTestSpec:… 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 … char* descr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gl…
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 … char* descr, gls::DrawTestSpec::DrawMethod drawMethod, gls::DrawTestSpec::Primitive primitive, gl… in AttributeGroup()
262 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "single_attri… in init()
264 gls::DrawTestSpec spec; in init()
281 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
282 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
283 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
284 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
299 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "multiple_att… in init()
301 gls::DrawTestSpec spec; in init()
318 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
319 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
320 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
321 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
329 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
330 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
331 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
332 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
347 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "instanced_a… in init()
349 gls::DrawTestSpec spec; in init()
366 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
367 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
368 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
369 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
378 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
379 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
380 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
381 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
391 spec.attribs[2].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
392 spec.attribs[2].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
393 spec.attribs[2].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
394 spec.attribs[2].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
409 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), "default_attr… in init()
411 gls::DrawTestSpec spec; in init()
428 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in init()
429 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in init()
430 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
431 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
441 gls::DrawTestSpec::InputType input; in init()
442 gls::DrawTestSpec::OutputType output; in init()
446 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC2, 4 }, in init()
447 { gls::DrawTestSpec::INPUTTYPE_FLOAT, gls::DrawTestSpec::OUTPUTTYPE_VEC4, 2 }, in init()
448 { gls::DrawTestSpec::INPUTTYPE_INT, gls::DrawTestSpec::OUTPUTTYPE_IVEC3, 4 }, in init()
449 { gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, gls::DrawTestSpec::OUTPUTTYPE_UVEC2, 4 }, in init()
454 …d::string desc = gls::DrawTestSpec::inputTypeToString(iopairs[ioNdx].input) + de::toString(iopairs… in init()
458 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
459 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in init()
477 …IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
483 gls::DrawTestSpec::DrawMethod m_method;
486 IndexGroup::IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in IndexGroup()
500 gls::DrawTestSpec::IndexType type; in init()
506 { gls::DrawTestSpec::INDEXTYPE_BYTE, { 0, 1, -1 } }, in init()
507 { gls::DrawTestSpec::INDEXTYPE_SHORT, { 0, 2, -1 } }, in init()
508 { gls::DrawTestSpec::INDEXTYPE_INT, { 0, 4, -1 } }, in init()
511 gls::DrawTestSpec spec; in init()
514 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
520 …const std::string name = std::string("index_") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
521 …const std::string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
522 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name.c_str(), d… in init()
528 …::string("first vertex ") + de::toString(indexTest.offsets[iterationNdx] / gls::DrawTestSpec::inde… in init()
540 …BaseVertexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMe…
546 gls::DrawTestSpec::DrawMethod m_method;
549 BaseVertexGroup::BaseVertexGroup (Context& context, const char* name, const char* descr, gls::DrawT… in BaseVertexGroup()
564 gls::DrawTestSpec::IndexType type; in init()
570 { true, gls::DrawTestSpec::INDEXTYPE_BYTE, { 1, 2 } }, in init()
571 { true, gls::DrawTestSpec::INDEXTYPE_SHORT, { 1, 2 } }, in init()
572 { true, gls::DrawTestSpec::INDEXTYPE_INT, { 1, 2 } }, in init()
573 { false, gls::DrawTestSpec::INDEXTYPE_BYTE, { -1, -2 } }, in init()
574 { false, gls::DrawTestSpec::INDEXTYPE_SHORT, { -1, -2 } }, in init()
575 { false, gls::DrawTestSpec::INDEXTYPE_INT, { -1, -2 } }, in init()
578 gls::DrawTestSpec spec; in init()
581 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
587 …const std::string name = std::string("index_") + (indexTest.positiveBase ? "" : "neg_") + gls::Dr… in init()
588 …const std::string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.t… in init()
589 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name.c_str(), d… in init()
607 …FirstGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
613 gls::DrawTestSpec::DrawMethod m_method;
616 FirstGroup::FirstGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in FirstGroup()
633 gls::DrawTestSpec spec; in init()
640 …gls::DrawTest* test = new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name.c_str(), de… in init()
653 …MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMetho…
659 gls::DrawTestSpec::DrawMethod m_method;
662 MethodGroup::MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec:… in MethodGroup()
674 const bool indexed = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT); in init()
675 const bool hasFirst = (m_method == gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT); in init()
677 const gls::DrawTestSpec::Primitive primitive[] = in init()
679 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
680 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
681 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
682 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
683 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
684 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
685 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
703 const std::string name = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
704 const std::string desc = gls::DrawTestSpec::primitiveToString(primitive[ndx]); in init()
706 …t, name.c_str(), desc.c_str(), m_method, primitive[ndx], gls::DrawTestSpec::INDEXTYPE_SHORT, gls::… in init()
2070 gls::DrawTestSpec::Primitive primitives[] = in init()
2072 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
2073 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
2074 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
2075 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
2076 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
2077 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
2078 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
2082 gls::DrawTestSpec::DrawMethod drawMethods[] = in init()
2084 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT, in init()
2085 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT, in init()
2089 gls::DrawTestSpec::IndexType indexTypes[] = in init()
2091 gls::DrawTestSpec::INDEXTYPE_BYTE, in init()
2092 gls::DrawTestSpec::INDEXTYPE_SHORT, in init()
2093 gls::DrawTestSpec::INDEXTYPE_INT, in init()
2097 gls::DrawTestSpec::InputType inputTypes[] = in init()
2099 gls::DrawTestSpec::INPUTTYPE_FLOAT, in init()
2100 gls::DrawTestSpec::INPUTTYPE_FIXED, in init()
2101 gls::DrawTestSpec::INPUTTYPE_BYTE, in init()
2102 gls::DrawTestSpec::INPUTTYPE_SHORT, in init()
2103 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE, in init()
2104 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT, in init()
2105 gls::DrawTestSpec::INPUTTYPE_INT, in init()
2106 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, in init()
2107 gls::DrawTestSpec::INPUTTYPE_HALF, in init()
2108 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10, in init()
2109 gls::DrawTestSpec::INPUTTYPE_INT_2_10_10_10, in init()
2113 gls::DrawTestSpec::OutputType outputTypes[] = in init()
2115 gls::DrawTestSpec::OUTPUTTYPE_FLOAT, in init()
2116 gls::DrawTestSpec::OUTPUTTYPE_VEC2, in init()
2117 gls::DrawTestSpec::OUTPUTTYPE_VEC3, in init()
2118 gls::DrawTestSpec::OUTPUTTYPE_VEC4, in init()
2119 gls::DrawTestSpec::OUTPUTTYPE_INT, in init()
2120 gls::DrawTestSpec::OUTPUTTYPE_UINT, in init()
2121 gls::DrawTestSpec::OUTPUTTYPE_IVEC2, in init()
2122 gls::DrawTestSpec::OUTPUTTYPE_IVEC3, in init()
2123 gls::DrawTestSpec::OUTPUTTYPE_IVEC4, in init()
2124 gls::DrawTestSpec::OUTPUTTYPE_UVEC2, in init()
2125 gls::DrawTestSpec::OUTPUTTYPE_UVEC3, in init()
2126 gls::DrawTestSpec::OUTPUTTYPE_UVEC4, in init()
2130 gls::DrawTestSpec::Usage usages[] = in init()
2132 gls::DrawTestSpec::USAGE_DYNAMIC_DRAW, in init()
2133 gls::DrawTestSpec::USAGE_STATIC_DRAW, in init()
2134 gls::DrawTestSpec::USAGE_STREAM_DRAW, in init()
2135 gls::DrawTestSpec::USAGE_STREAM_READ, in init()
2136 gls::DrawTestSpec::USAGE_STREAM_COPY, in init()
2137 gls::DrawTestSpec::USAGE_STATIC_READ, in init()
2138 gls::DrawTestSpec::USAGE_STATIC_COPY, in init()
2139 gls::DrawTestSpec::USAGE_DYNAMIC_READ, in init()
2140 gls::DrawTestSpec::USAGE_DYNAMIC_COPY, in init()
2155 gls::DrawTestSpec spec; in init()
2158 …spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives… in init()
2160 …spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMeth… in init()
2162 if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT) in init()
2164 else if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT) in init()
2172 …spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes… in init()
2174 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
2189 gls::DrawTestSpec::AttributeSpec attribSpec; in init()
2191 …attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(input… in init()
2192 …attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(out… in init()
2193 attribSpec.storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
2194 …attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), … in init()
2206 …if (attribSpec.stride && attribSpec.componentCount * gls::DrawTestSpec::inputTypeSize(attribSpec.i… in init()
2218 if (spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
2224 …f (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && spec.indexMin == spec.i… in init()
2226 if (spec.attribs[0].useDefaultAttribute && spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
2230 …primitive == gls::DrawTestSpec::PRIMITIVE_TRIANGLES || spec.primitive == gls::DrawTestSpec::PRIMIT… in init()
2234 …ype == gls::DrawTestSpec::OUTPUTTYPE_FLOAT || spec.attribs[0].outputType == gls::DrawTestSpec::OUT… in init()
2236 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && (spec.indexMax - spec.… in init()
2250 if (spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET && in init()
2251 spec.isCompatibilityTest() != gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE) in init()
2252 …this->addChild(new gls::DrawTest(m_testCtx, m_context.getRenderContext(), spec, de::toString(inser… in init()
2779 const gls::DrawTestSpec::DrawMethod basicMethods[] = in init()
2781 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT, in init()
2782 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT, in init()
2787 const std::string name = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()
2788 const std::string desc = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()