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