• Home
  • Raw
  • Download

Lines Matching refs:GLValue

390 class GLValue  class
500 GLValue (void) : type(DrawTestSpec::INPUTTYPE_LAST) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
501 explicit GLValue (Float value) : type(DrawTestSpec::INPUTTYPE_FLOAT), fl(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
502 explicit GLValue (Fixed value) : type(DrawTestSpec::INPUTTYPE_FIXED), fi(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
503 explicit GLValue (Byte value) : type(DrawTestSpec::INPUTTYPE_BYTE), b(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
504 explicit GLValue (Ubyte value) : type(DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE), ub(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
505 explicit GLValue (Short value) : type(DrawTestSpec::INPUTTYPE_SHORT), s(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
506 explicit GLValue (Ushort value) : type(DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT), us(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
507 explicit GLValue (Int value) : type(DrawTestSpec::INPUTTYPE_INT), i(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
508 explicit GLValue (Uint value) : type(DrawTestSpec::INPUTTYPE_UNSIGNED_INT), ui(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
509 explicit GLValue (Half value) : type(DrawTestSpec::INPUTTYPE_HALF), h(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
510 explicit GLValue (Double value) : type(DrawTestSpec::INPUTTYPE_DOUBLE), d(value) {} in GLValue() function in deqp::gls::__anon43398ad90111::GLValue
514 static GLValue getMaxValue (DrawTestSpec::InputType type);
515 static GLValue getMinValue (DrawTestSpec::InputType type);
534 inline deFloat16 GLValue::Half::floatToHalf (float f) in floatToHalf()
542 inline float GLValue::Half::halfToFloat (deFloat16 h) in halfToFloat()
547 float GLValue::toFloat (void) const in toFloat()
602 GLValue GLValue::getMaxValue (DrawTestSpec::InputType type) in getMaxValue()
604 GLValue rangesHi[(int)DrawTestSpec::INPUTTYPE_LAST]; in getMaxValue()
606 rangesHi[(int)DrawTestSpec::INPUTTYPE_FLOAT] = GLValue(Float::create(127.0f)); in getMaxValue()
607 rangesHi[(int)DrawTestSpec::INPUTTYPE_DOUBLE] = GLValue(Double::create(127.0f)); in getMaxValue()
608 rangesHi[(int)DrawTestSpec::INPUTTYPE_BYTE] = GLValue(Byte::create(127)); in getMaxValue()
609 rangesHi[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(255)); in getMaxValue()
610 rangesHi[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(65530)); in getMaxValue()
611 rangesHi[(int)DrawTestSpec::INPUTTYPE_SHORT] = GLValue(Short::create(32760)); in getMaxValue()
612 rangesHi[(int)DrawTestSpec::INPUTTYPE_FIXED] = GLValue(Fixed::create(32760)); in getMaxValue()
613 rangesHi[(int)DrawTestSpec::INPUTTYPE_INT] = GLValue(Int::create(2147483647)); in getMaxValue()
614 rangesHi[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(4294967295u)); in getMaxValue()
615 rangesHi[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(256.0f)); in getMaxValue()
620 GLValue GLValue::getMinValue (DrawTestSpec::InputType type) in getMinValue()
622 GLValue rangesLo[(int)DrawTestSpec::INPUTTYPE_LAST]; in getMinValue()
624 rangesLo[(int)DrawTestSpec::INPUTTYPE_FLOAT] = GLValue(Float::create(-127.0f)); in getMinValue()
625 rangesLo[(int)DrawTestSpec::INPUTTYPE_DOUBLE] = GLValue(Double::create(-127.0f)); in getMinValue()
626 rangesLo[(int)DrawTestSpec::INPUTTYPE_BYTE] = GLValue(Byte::create(-127)); in getMinValue()
627 rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(0)); in getMinValue()
628 rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(0)); in getMinValue()
629 rangesLo[(int)DrawTestSpec::INPUTTYPE_SHORT] = GLValue(Short::create(-32760)); in getMinValue()
630 rangesLo[(int)DrawTestSpec::INPUTTYPE_FIXED] = GLValue(Fixed::create(-32760)); in getMinValue()
631 rangesLo[(int)DrawTestSpec::INPUTTYPE_INT] = GLValue(Int::create(-2147483647)); in getMinValue()
632 rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(0)); in getMinValue()
633 rangesLo[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(-256.0f)); in getMinValue()
641 template<> struct GLValueTypeTraits<GLValue::Float> { static const DrawTestSpec::InputType Type = …
642 template<> struct GLValueTypeTraits<GLValue::Double> { static const DrawTestSpec::InputType Type = …
643 template<> struct GLValueTypeTraits<GLValue::Byte> { static const DrawTestSpec::InputType Type = D…
644 template<> struct GLValueTypeTraits<GLValue::Ubyte> { static const DrawTestSpec::InputType Type = …
645 template<> struct GLValueTypeTraits<GLValue::Ushort> { static const DrawTestSpec::InputType Type = …
646 template<> struct GLValueTypeTraits<GLValue::Short> { static const DrawTestSpec::InputType Type = …
647 template<> struct GLValueTypeTraits<GLValue::Fixed> { static const DrawTestSpec::InputType Type = …
648 template<> struct GLValueTypeTraits<GLValue::Int> { static const DrawTestSpec::InputType Type = Dr…
649 template<> struct GLValueTypeTraits<GLValue::Uint> { static const DrawTestSpec::InputType Type = D…
650 template<> struct GLValueTypeTraits<GLValue::Half> { static const DrawTestSpec::InputType Type = D…
653 inline T extractGLValue (const GLValue& v);
655 template<> GLValue::Float inline extractGLValue<GLValue::Float> (const GLValue& v) { return v.fl; … in extractGLValue()
656 template<> GLValue::Double inline extractGLValue<GLValue::Double> (const GLValue& v) { return v.d;… in extractGLValue()
657 template<> GLValue::Byte inline extractGLValue<GLValue::Byte> (const GLValue& v) { return v.b; }; in extractGLValue()
658 template<> GLValue::Ubyte inline extractGLValue<GLValue::Ubyte> (const GLValue& v) { return v.ub; … in extractGLValue()
659 template<> GLValue::Ushort inline extractGLValue<GLValue::Ushort> (const GLValue& v) { return v.us… in extractGLValue()
660 template<> GLValue::Short inline extractGLValue<GLValue::Short> (const GLValue& v) { return v.s; }; in extractGLValue()
661 template<> GLValue::Fixed inline extractGLValue<GLValue::Fixed> (const GLValue& v) { return v.fi; … in extractGLValue()
662 template<> GLValue::Int inline extractGLValue<GLValue::Int> (const GLValue& v) { return v.i; }; in extractGLValue()
663 template<> GLValue::Uint inline extractGLValue<GLValue::Uint> (const GLValue& v) { return v.ui; }; in extractGLValue()
664 template<> GLValue::Half inline extractGLValue<GLValue::Half> (const GLValue& v) { return v.h; }; in extractGLValue()
670 inline GLValue::Float getRandom (deRandom& rnd, GLValue::Float min, GLValue::Float max) in getRandom()
675 return GLValue::Float::create(min + deRandom_getFloat(&rnd) * (max.to<float>() - min.to<float>())); in getRandom()
679 inline GLValue::Double getRandom (deRandom& rnd, GLValue::Double min, GLValue::Double max) in getRandom()
684 …return GLValue::Double::create(min + deRandom_getFloat(&rnd) * (max.to<float>() - min.to<float>())… in getRandom()
688 inline GLValue::Short getRandom (deRandom& rnd, GLValue::Short min, GLValue::Short max) in getRandom()
693 …return GLValue::Short::create((min == max ? min : (deInt16)(min + (deRandom_getUint32(&rnd) % (max… in getRandom()
697 inline GLValue::Ushort getRandom (deRandom& rnd, GLValue::Ushort min, GLValue::Ushort max) in getRandom()
702 …return GLValue::Ushort::create((min == max ? min : (deUint16)(min + (deRandom_getUint32(&rnd) % (m… in getRandom()
706 inline GLValue::Byte getRandom (deRandom& rnd, GLValue::Byte min, GLValue::Byte max) in getRandom()
711 …return GLValue::Byte::create((min == max ? min : (deInt8)(min + (deRandom_getUint32(&rnd) % (max.t… in getRandom()
715 inline GLValue::Ubyte getRandom (deRandom& rnd, GLValue::Ubyte min, GLValue::Ubyte max) in getRandom()
720 …return GLValue::Ubyte::create((min == max ? min : (deUint8)(min + (deRandom_getUint32(&rnd) % (max… in getRandom()
724 inline GLValue::Fixed getRandom (deRandom& rnd, GLValue::Fixed min, GLValue::Fixed max) in getRandom()
729 …return GLValue::Fixed::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint… in getRandom()
733 inline GLValue::Half getRandom (deRandom& rnd, GLValue::Half min, GLValue::Half max) in getRandom()
740 GLValue::Half h = GLValue::Half::create(fMin + deRandom_getFloat(&rnd) * (fMax - fMin)); in getRandom()
745 inline GLValue::Int getRandom (deRandom& rnd, GLValue::Int min, GLValue::Int max) in getRandom()
750 …return GLValue::Int::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32… in getRandom()
754 inline GLValue::Uint getRandom (deRandom& rnd, GLValue::Uint min, GLValue::Uint max) in getRandom()
759 …return GLValue::Uint::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint3… in getRandom()
767 inline GLValue::Float minValue (void) in minValue()
769 return GLValue::Float::create(4 * 1.0f); in minValue()
773 inline GLValue::Double minValue (void) in minValue()
775 return GLValue::Double::create(4 * 1.0f); in minValue()
779 inline GLValue::Short minValue (void) in minValue()
781 return GLValue::Short::create(4 * 256); in minValue()
785 inline GLValue::Ushort minValue (void) in minValue()
787 return GLValue::Ushort::create(4 * 256); in minValue()
791 inline GLValue::Byte minValue (void) in minValue()
793 return GLValue::Byte::create(4 * 1); in minValue()
797 inline GLValue::Ubyte minValue (void) in minValue()
799 return GLValue::Ubyte::create(4 * 2); in minValue()
803 inline GLValue::Fixed minValue (void) in minValue()
805 return GLValue::Fixed::create(4 * 1); in minValue()
809 inline GLValue::Int minValue (void) in minValue()
811 return GLValue::Int::create(4 * 16777216); in minValue()
815 inline GLValue::Uint minValue (void) in minValue()
817 return GLValue::Uint::create(4 * 16777216); in minValue()
821 inline GLValue::Half minValue (void) in minValue()
823 return GLValue::Half::create(4 * 1.0f); in minValue()
830 inline GLValue::Fixed abs (GLValue::Fixed val) in abs()
832 return GLValue::Fixed::create(0x7FFFu & val.getValue()); in abs()
836 inline GLValue::Ubyte abs (GLValue::Ubyte val) in abs()
842 inline GLValue::Byte abs (GLValue::Byte val) in abs()
844 return GLValue::Byte::create(0x7Fu & val.getValue()); in abs()
848 inline GLValue::Ushort abs (GLValue::Ushort val) in abs()
854 inline GLValue::Short abs (GLValue::Short val) in abs()
856 return GLValue::Short::create(0x7FFFu & val.getValue()); in abs()
860 inline GLValue::Float abs (GLValue::Float val) in abs()
862 return GLValue::Float::create(std::fabs(val.to<float>())); in abs()
866 inline GLValue::Double abs (GLValue::Double val) in abs()
868 return GLValue::Double::create(std::fabs(val.to<float>())); in abs()
872 inline GLValue::Uint abs (GLValue::Uint val) in abs()
878 inline GLValue::Int abs (GLValue::Int val) in abs()
880 return GLValue::Int::create(0x7FFFFFFFu & val.getValue()); in abs()
884 inline GLValue::Half abs (GLValue::Half val) in abs()
886 return GLValue::Half::create(std::fabs(val.to<float>())); in abs()
1540 …case DrawTestSpec::INPUTTYPE_FLOAT: return createBasicArray<float, GLValue::Float> (seed, elem… in generateBasicArray()
1541 …case DrawTestSpec::INPUTTYPE_DOUBLE: return createBasicArray<double, GLValue::Double>(seed, ele… in generateBasicArray()
1542 …case DrawTestSpec::INPUTTYPE_SHORT: return createBasicArray<deInt16, GLValue::Short> (seed, ele… in generateBasicArray()
1543 …case DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT: return createBasicArray<deUint16, GLValue::Ushort>(se… in generateBasicArray()
1544 …case DrawTestSpec::INPUTTYPE_BYTE: return createBasicArray<deInt8, GLValue::Byte> (seed, eleme… in generateBasicArray()
1545 …case DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE: return createBasicArray<deUint8, GLValue::Ubyte> (see… in generateBasicArray()
1546 …case DrawTestSpec::INPUTTYPE_FIXED: return createBasicArray<deInt32, GLValue::Fixed> (seed, ele… in generateBasicArray()
1547 …case DrawTestSpec::INPUTTYPE_INT: return createBasicArray<deInt32, GLValue::Int> (seed, element… in generateBasicArray()
1548 …case DrawTestSpec::INPUTTYPE_UNSIGNED_INT: return createBasicArray<deUint32, GLValue::Uint> (seed… in generateBasicArray()
1549 …case DrawTestSpec::INPUTTYPE_HALF: return createBasicArray<deFloat16, GLValue::Half> (seed, ele… in generateBasicArray()
1572 const GLType min = extractGLValue<GLType>(GLValue::getMinValue(GLValueTypeTraits<GLType>::Type)); in createBasicArray()
1573 const GLType max = extractGLValue<GLType>(GLValue::getMaxValue(GLValueTypeTraits<GLType>::Type)); in createBasicArray()
1700 deUint32 ndx = getRandom(rnd, GLValue::Uint::create(min), GLValue::Uint::create(max)).getValue(); in createIndices()
2880 maxIndexValue = GLValue::getMaxValue(INPUTTYPE_UNSIGNED_BYTE).ub.getValue(); in valid()
2882 maxIndexValue = GLValue::getMaxValue(INPUTTYPE_UNSIGNED_SHORT).us.getValue(); in valid()
2884 maxIndexValue = GLValue::getMaxValue(INPUTTYPE_UNSIGNED_INT).ui.getValue(); in valid()
3795 const float max = GLValue::getMaxValue(attribSpec.inputType).toFloat(); in getCoordScale()
3835 const float max = GLValue::getMaxValue(attribSpec.inputType).toFloat(); in getColorScale()