Lines Matching refs:gls
44 static void genBasicSpec (gls::DrawTestSpec& spec, gls::DrawTestSpec::DrawMethod method) in genBasicSpec()
47 spec.primitive = gls::DrawTestSpec::PRIMITIVE_TRIANGLES; in genBasicSpec()
50 spec.indexType = gls::DrawTestSpec::INDEXTYPE_LAST; in genBasicSpec()
52 spec.indexStorage = gls::DrawTestSpec::STORAGE_LAST; in genBasicSpec()
60 spec.attribs[0].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
61 spec.attribs[0].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
62 spec.attribs[0].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
63 spec.attribs[0].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
71 spec.attribs[1].inputType = gls::DrawTestSpec::INPUTTYPE_FLOAT; in genBasicSpec()
72 spec.attribs[1].outputType = gls::DrawTestSpec::OUTPUTTYPE_VEC2; in genBasicSpec()
73 spec.attribs[1].storage = gls::DrawTestSpec::STORAGE_BUFFER; in genBasicSpec()
74 spec.attribs[1].usage = gls::DrawTestSpec::USAGE_STATIC_DRAW; in genBasicSpec()
86 …IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMethod …
92 gls::DrawTestSpec::DrawMethod m_method;
95 IndexGroup::IndexGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::D… in IndexGroup()
109 gls::DrawTestSpec::Storage storage; in init()
110 gls::DrawTestSpec::IndexType type; in init()
117 { gls::DrawTestSpec::STORAGE_BUFFER, gls::DrawTestSpec::INDEXTYPE_SHORT, false, { 1, 3, -1 } }, in init()
120 gls::DrawTestSpec spec; in init()
132 DE_ASSERT(indexTest.storage != gls::DrawTestSpec::STORAGE_USER); in init()
136 …const std::string name = std::string("index_") + gls::DrawTestSpec::indexTypeToString(indexTes… in init()
137 …:string desc = std::string("index ") + gls::DrawTestSpec::indexTypeToString(indexTest.type) + … in init()
138 …de::MovePtr<gls::DrawTest> test (new gls::DrawTest(m_testCtx, m_context.getRenderContext(), name… in init()
150 DE_ASSERT(spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET || in init()
151 spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE); in init()
159 …MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec::DrawMetho…
165 gls::DrawTestSpec::DrawMethod m_method;
168 MethodGroup::MethodGroup (Context& context, const char* name, const char* descr, gls::DrawTestSpec:… in MethodGroup()
180 …method == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS) || (m_method == gls::DrawTestSpec::DRAWMETHO… in init()
235 gls::DrawTestSpec::Primitive primitives[] = in init()
237 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
238 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
239 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
240 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
241 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
242 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
243 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
247 gls::DrawTestSpec::DrawMethod drawMethods[] = in init()
249 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS, in init()
250 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS, in init()
254 gls::DrawTestSpec::IndexType indexTypes[] = in init()
256 gls::DrawTestSpec::INDEXTYPE_BYTE, in init()
257 gls::DrawTestSpec::INDEXTYPE_SHORT, in init()
261 gls::DrawTestSpec::Storage storages[] = in init()
263 gls::DrawTestSpec::STORAGE_USER, in init()
264 gls::DrawTestSpec::STORAGE_BUFFER, in init()
268 gls::DrawTestSpec::InputType inputTypes[] = in init()
270 gls::DrawTestSpec::INPUTTYPE_FLOAT, in init()
271 gls::DrawTestSpec::INPUTTYPE_FIXED, in init()
272 gls::DrawTestSpec::INPUTTYPE_BYTE, in init()
273 gls::DrawTestSpec::INPUTTYPE_SHORT, in init()
274 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE, in init()
275 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT in init()
279 gls::DrawTestSpec::OutputType outputTypes[] = in init()
281 gls::DrawTestSpec::OUTPUTTYPE_FLOAT, in init()
282 gls::DrawTestSpec::OUTPUTTYPE_VEC2, in init()
283 gls::DrawTestSpec::OUTPUTTYPE_VEC3, in init()
284 gls::DrawTestSpec::OUTPUTTYPE_VEC4, in init()
288 gls::DrawTestSpec::Usage usages[] = in init()
290 gls::DrawTestSpec::USAGE_STATIC_DRAW, in init()
291 gls::DrawTestSpec::USAGE_DYNAMIC_DRAW, in init()
292 gls::DrawTestSpec::USAGE_STREAM_DRAW, in init()
309 gls::DrawTestSpec spec; in init()
312 …spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives… in init()
314 …spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMeth… in init()
315 …spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes… in init()
317 …spec.indexStorage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storages)… in init()
330 gls::DrawTestSpec::AttributeSpec attribSpec; in init()
332 …attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(input… in init()
333 …attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(out… in init()
334 …attribSpec.storage = random.chooseWeighted<gls::DrawTestSpec::Storage> (DE_ARRAY_BEGIN(storage… in init()
335 …attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), … in init()
347 …if (attribSpec.stride && attribSpec.componentCount * gls::DrawTestSpec::inputTypeSize(attribSpec.i… in init()
359 if (spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
365 …f (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && spec.indexMin == spec.i… in init()
367 if (spec.attribs[0].useDefaultAttribute && spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
371 …primitive == gls::DrawTestSpec::PRIMITIVE_TRIANGLES || spec.primitive == gls::DrawTestSpec::PRIMIT… in init()
375 …ype == gls::DrawTestSpec::OUTPUTTYPE_FLOAT || spec.attribs[0].outputType == gls::DrawTestSpec::OUT… in init()
377 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && (spec.indexMax - spec.… in init()
392 if (spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET || in init()
393 spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE) in init()
394 …this->addChild(new gls::DrawTest(m_testCtx, m_context.getRenderContext(), spec, de::toString(inser… in init()
422 const gls::DrawTestSpec::DrawMethod basicMethods[] = in init()
425 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS, in init()
430 std::string name = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()
431 std::string desc = gls::DrawTestSpec::drawMethodToString(basicMethods[ndx]); in init()