• Home
  • Raw
  • Download

Lines Matching refs:DrawTestSpec

361 	gls::DrawTestSpec::Primitive primitives[] =  in init()
363 gls::DrawTestSpec::PRIMITIVE_POINTS, in init()
364 gls::DrawTestSpec::PRIMITIVE_TRIANGLES, in init()
365 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_FAN, in init()
366 gls::DrawTestSpec::PRIMITIVE_TRIANGLE_STRIP, in init()
367 gls::DrawTestSpec::PRIMITIVE_LINES, in init()
368 gls::DrawTestSpec::PRIMITIVE_LINE_STRIP, in init()
369 gls::DrawTestSpec::PRIMITIVE_LINE_LOOP in init()
373 gls::DrawTestSpec::DrawMethod drawMethods[] = in init()
375 gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT, in init()
376 gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT, in init()
380 gls::DrawTestSpec::IndexType indexTypes[] = in init()
382 gls::DrawTestSpec::INDEXTYPE_BYTE, in init()
383 gls::DrawTestSpec::INDEXTYPE_SHORT, in init()
384 gls::DrawTestSpec::INDEXTYPE_INT, in init()
388 gls::DrawTestSpec::InputType inputTypes[] = in init()
390 gls::DrawTestSpec::INPUTTYPE_FLOAT, in init()
391 gls::DrawTestSpec::INPUTTYPE_FIXED, in init()
392 gls::DrawTestSpec::INPUTTYPE_BYTE, in init()
393 gls::DrawTestSpec::INPUTTYPE_SHORT, in init()
394 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE, in init()
395 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT, in init()
396 gls::DrawTestSpec::INPUTTYPE_INT, in init()
397 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT, in init()
398 gls::DrawTestSpec::INPUTTYPE_HALF, in init()
399 gls::DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10, in init()
400 gls::DrawTestSpec::INPUTTYPE_INT_2_10_10_10, in init()
404 gls::DrawTestSpec::OutputType outputTypes[] = in init()
406 gls::DrawTestSpec::OUTPUTTYPE_FLOAT, in init()
407 gls::DrawTestSpec::OUTPUTTYPE_VEC2, in init()
408 gls::DrawTestSpec::OUTPUTTYPE_VEC3, in init()
409 gls::DrawTestSpec::OUTPUTTYPE_VEC4, in init()
410 gls::DrawTestSpec::OUTPUTTYPE_INT, in init()
411 gls::DrawTestSpec::OUTPUTTYPE_UINT, in init()
412 gls::DrawTestSpec::OUTPUTTYPE_IVEC2, in init()
413 gls::DrawTestSpec::OUTPUTTYPE_IVEC3, in init()
414 gls::DrawTestSpec::OUTPUTTYPE_IVEC4, in init()
415 gls::DrawTestSpec::OUTPUTTYPE_UVEC2, in init()
416 gls::DrawTestSpec::OUTPUTTYPE_UVEC3, in init()
417 gls::DrawTestSpec::OUTPUTTYPE_UVEC4, in init()
421 gls::DrawTestSpec::Usage usages[] = in init()
423 gls::DrawTestSpec::USAGE_DYNAMIC_DRAW, in init()
424 gls::DrawTestSpec::USAGE_STATIC_DRAW, in init()
425 gls::DrawTestSpec::USAGE_STREAM_DRAW, in init()
426 gls::DrawTestSpec::USAGE_STREAM_READ, in init()
427 gls::DrawTestSpec::USAGE_STREAM_COPY, in init()
428 gls::DrawTestSpec::USAGE_STATIC_READ, in init()
429 gls::DrawTestSpec::USAGE_STATIC_COPY, in init()
430 gls::DrawTestSpec::USAGE_DYNAMIC_READ, in init()
431 gls::DrawTestSpec::USAGE_DYNAMIC_COPY, in init()
444 gls::DrawTestSpec spec; in init()
447 …spec.primitive = random.chooseWeighted<gls::DrawTestSpec::Primitive> (DE_ARRAY_BEGIN(primitives… in init()
449 …spec.drawMethod = random.chooseWeighted<gls::DrawTestSpec::DrawMethod> (DE_ARRAY_BEGIN(drawMeth… in init()
451 if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWARRAYS_INDIRECT) in init()
453 else if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INDIRECT) in init()
461 …spec.indexType = random.chooseWeighted<gls::DrawTestSpec::IndexType> (DE_ARRAY_BEGIN(indexTypes… in init()
463 spec.indexStorage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
478 gls::DrawTestSpec::AttributeSpec attribSpec; in init()
480 …attribSpec.inputType = random.chooseWeighted<gls::DrawTestSpec::InputType> (DE_ARRAY_BEGIN(input… in init()
481 …attribSpec.outputType = random.chooseWeighted<gls::DrawTestSpec::OutputType> (DE_ARRAY_BEGIN(out… in init()
482 attribSpec.storage = gls::DrawTestSpec::STORAGE_BUFFER; in init()
483 …attribSpec.usage = random.chooseWeighted<gls::DrawTestSpec::Usage> (DE_ARRAY_BEGIN(usages), … in init()
495 …if (attribSpec.stride && attribSpec.componentCount * gls::DrawTestSpec::inputTypeSize(attribSpec.i… in init()
507 if (spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
513 …rawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && spec.indexMin == spec.indexMax &… in init()
515 if (spec.attribs[0].useDefaultAttribute && spec.primitive != gls::DrawTestSpec::PRIMITIVE_POINTS) in init()
519 … == gls::DrawTestSpec::PRIMITIVE_TRIANGLES || spec.primitive == gls::DrawTestSpec::PRIMITIVE_TRIAN… in init()
523 …::DrawTestSpec::OUTPUTTYPE_FLOAT || spec.attribs[0].outputType == gls::DrawTestSpec::OUTPUTTYPE_IN… in init()
525 …if (spec.drawMethod == gls::DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED && (spec.indexMax - spec.… in init()
539 if (spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_OFFSET || in init()
540 spec.isCompatibilityTest() == gls::DrawTestSpec::COMPATIBILITY_UNALIGNED_STRIDE) in init()