• Home
  • Raw
  • Download

Lines Matching refs:GLValue

390 class GLValue  class
500 GLValue (void) : type(DrawTestSpec::INPUTTYPE_LAST) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
501 explicit GLValue (Float value) : type(DrawTestSpec::INPUTTYPE_FLOAT), fl(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
502 explicit GLValue (Fixed value) : type(DrawTestSpec::INPUTTYPE_FIXED), fi(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
503 explicit GLValue (Byte value) : type(DrawTestSpec::INPUTTYPE_BYTE), b(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
504 explicit GLValue (Ubyte value) : type(DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE), ub(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
505 explicit GLValue (Short value) : type(DrawTestSpec::INPUTTYPE_SHORT), s(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
506 explicit GLValue (Ushort value) : type(DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT), us(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
507 explicit GLValue (Int value) : type(DrawTestSpec::INPUTTYPE_INT), i(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
508 explicit GLValue (Uint value) : type(DrawTestSpec::INPUTTYPE_UNSIGNED_INT), ui(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
509 explicit GLValue (Half value) : type(DrawTestSpec::INPUTTYPE_HALF), h(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::GLValue
510 explicit GLValue (Double value) : type(DrawTestSpec::INPUTTYPE_DOUBLE), d(value) {} in GLValue() function in deqp::gls::__anon2b0ebd0f0111::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()
590 GLValue GLValue::getMaxValue (DrawTestSpec::InputType type) in getMaxValue()
592 GLValue rangesHi[(int)DrawTestSpec::INPUTTYPE_LAST]; in getMaxValue()
594 rangesHi[(int)DrawTestSpec::INPUTTYPE_FLOAT] = GLValue(Float::create(127.0f)); in getMaxValue()
595 rangesHi[(int)DrawTestSpec::INPUTTYPE_DOUBLE] = GLValue(Double::create(127.0f)); in getMaxValue()
596 rangesHi[(int)DrawTestSpec::INPUTTYPE_BYTE] = GLValue(Byte::create(127)); in getMaxValue()
597 rangesHi[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(255)); in getMaxValue()
598 rangesHi[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(65530)); in getMaxValue()
599 rangesHi[(int)DrawTestSpec::INPUTTYPE_SHORT] = GLValue(Short::create(32760)); in getMaxValue()
600 rangesHi[(int)DrawTestSpec::INPUTTYPE_FIXED] = GLValue(Fixed::create(32760)); in getMaxValue()
601 rangesHi[(int)DrawTestSpec::INPUTTYPE_INT] = GLValue(Int::create(2147483647)); in getMaxValue()
602 rangesHi[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(4294967295u)); in getMaxValue()
603 rangesHi[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(256.0f)); in getMaxValue()
608 GLValue GLValue::getMinValue (DrawTestSpec::InputType type) in getMinValue()
610 GLValue rangesLo[(int)DrawTestSpec::INPUTTYPE_LAST]; in getMinValue()
612 rangesLo[(int)DrawTestSpec::INPUTTYPE_FLOAT] = GLValue(Float::create(-127.0f)); in getMinValue()
613 rangesLo[(int)DrawTestSpec::INPUTTYPE_DOUBLE] = GLValue(Double::create(-127.0f)); in getMinValue()
614 rangesLo[(int)DrawTestSpec::INPUTTYPE_BYTE] = GLValue(Byte::create(-127)); in getMinValue()
615 rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE] = GLValue(Ubyte::create(0)); in getMinValue()
616 rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT] = GLValue(Ushort::create(0)); in getMinValue()
617 rangesLo[(int)DrawTestSpec::INPUTTYPE_SHORT] = GLValue(Short::create(-32760)); in getMinValue()
618 rangesLo[(int)DrawTestSpec::INPUTTYPE_FIXED] = GLValue(Fixed::create(-32760)); in getMinValue()
619 rangesLo[(int)DrawTestSpec::INPUTTYPE_INT] = GLValue(Int::create(-2147483647)); in getMinValue()
620 rangesLo[(int)DrawTestSpec::INPUTTYPE_UNSIGNED_INT] = GLValue(Uint::create(0)); in getMinValue()
621 rangesLo[(int)DrawTestSpec::INPUTTYPE_HALF] = GLValue(Half::create(-256.0f)); in getMinValue()
629 template<> struct GLValueTypeTraits<GLValue::Float> { static const DrawTestSpec::InputType Type = …
630 template<> struct GLValueTypeTraits<GLValue::Double> { static const DrawTestSpec::InputType Type = …
631 template<> struct GLValueTypeTraits<GLValue::Byte> { static const DrawTestSpec::InputType Type = D…
632 template<> struct GLValueTypeTraits<GLValue::Ubyte> { static const DrawTestSpec::InputType Type = …
633 template<> struct GLValueTypeTraits<GLValue::Ushort> { static const DrawTestSpec::InputType Type = …
634 template<> struct GLValueTypeTraits<GLValue::Short> { static const DrawTestSpec::InputType Type = …
635 template<> struct GLValueTypeTraits<GLValue::Fixed> { static const DrawTestSpec::InputType Type = …
636 template<> struct GLValueTypeTraits<GLValue::Int> { static const DrawTestSpec::InputType Type = Dr…
637 template<> struct GLValueTypeTraits<GLValue::Uint> { static const DrawTestSpec::InputType Type = D…
638 template<> struct GLValueTypeTraits<GLValue::Half> { static const DrawTestSpec::InputType Type = D…
641 inline T extractGLValue (const GLValue& v);
643 template<> GLValue::Float inline extractGLValue<GLValue::Float> (const GLValue& v) { return v.fl; } in extractGLValue()
644 template<> GLValue::Double inline extractGLValue<GLValue::Double> (const GLValue& v) { return v.d;… in extractGLValue()
645 template<> GLValue::Byte inline extractGLValue<GLValue::Byte> (const GLValue& v) { return v.b; } in extractGLValue()
646 template<> GLValue::Ubyte inline extractGLValue<GLValue::Ubyte> (const GLValue& v) { return v.ub; } in extractGLValue()
647 template<> GLValue::Ushort inline extractGLValue<GLValue::Ushort> (const GLValue& v) { return v.us… in extractGLValue()
648 template<> GLValue::Short inline extractGLValue<GLValue::Short> (const GLValue& v) { return v.s; } in extractGLValue()
649 template<> GLValue::Fixed inline extractGLValue<GLValue::Fixed> (const GLValue& v) { return v.fi; } in extractGLValue()
650 template<> GLValue::Int inline extractGLValue<GLValue::Int> (const GLValue& v) { return v.i; } in extractGLValue()
651 template<> GLValue::Uint inline extractGLValue<GLValue::Uint> (const GLValue& v) { return v.ui; } in extractGLValue()
652 template<> GLValue::Half inline extractGLValue<GLValue::Half> (const GLValue& v) { return v.h; } in extractGLValue()
658 inline GLValue::Float getRandom (deRandom& rnd, GLValue::Float min, GLValue::Float max) in getRandom()
663 return GLValue::Float::create(min + deRandom_getFloat(&rnd) * (max.to<float>() - min.to<float>())); in getRandom()
667 inline GLValue::Double getRandom (deRandom& rnd, GLValue::Double min, GLValue::Double max) in getRandom()
672 …return GLValue::Double::create(min + deRandom_getFloat(&rnd) * (max.to<float>() - min.to<float>())… in getRandom()
676 inline GLValue::Short getRandom (deRandom& rnd, GLValue::Short min, GLValue::Short max) in getRandom()
681 …return GLValue::Short::create((min == max ? min : (deInt16)(min + (deRandom_getUint32(&rnd) % (max… in getRandom()
685 inline GLValue::Ushort getRandom (deRandom& rnd, GLValue::Ushort min, GLValue::Ushort max) in getRandom()
690 …return GLValue::Ushort::create((min == max ? min : (deUint16)(min + (deRandom_getUint32(&rnd) % (m… in getRandom()
694 inline GLValue::Byte getRandom (deRandom& rnd, GLValue::Byte min, GLValue::Byte max) in getRandom()
699 …return GLValue::Byte::create((min == max ? min : (deInt8)(min + (deRandom_getUint32(&rnd) % (max.t… in getRandom()
703 inline GLValue::Ubyte getRandom (deRandom& rnd, GLValue::Ubyte min, GLValue::Ubyte max) in getRandom()
708 …return GLValue::Ubyte::create((min == max ? min : (deUint8)(min + (deRandom_getUint32(&rnd) % (max… in getRandom()
712 inline GLValue::Fixed getRandom (deRandom& rnd, GLValue::Fixed min, GLValue::Fixed max) in getRandom()
717 …return GLValue::Fixed::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint… in getRandom()
721 inline GLValue::Half getRandom (deRandom& rnd, GLValue::Half min, GLValue::Half max) in getRandom()
728 GLValue::Half h = GLValue::Half::create(fMin + deRandom_getFloat(&rnd) * (fMax - fMin)); in getRandom()
733 inline GLValue::Int getRandom (deRandom& rnd, GLValue::Int min, GLValue::Int max) in getRandom()
738 …return GLValue::Int::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint32… in getRandom()
742 inline GLValue::Uint getRandom (deRandom& rnd, GLValue::Uint min, GLValue::Uint max) in getRandom()
747 …return GLValue::Uint::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<deUint3… in getRandom()
755 inline GLValue::Float minValue (void) in minValue()
757 return GLValue::Float::create(4 * 1.0f); in minValue()
761 inline GLValue::Double minValue (void) in minValue()
763 return GLValue::Double::create(4 * 1.0f); in minValue()
767 inline GLValue::Short minValue (void) in minValue()
769 return GLValue::Short::create(4 * 256); in minValue()
773 inline GLValue::Ushort minValue (void) in minValue()
775 return GLValue::Ushort::create(4 * 256); in minValue()
779 inline GLValue::Byte minValue (void) in minValue()
781 return GLValue::Byte::create(4 * 1); in minValue()
785 inline GLValue::Ubyte minValue (void) in minValue()
787 return GLValue::Ubyte::create(4 * 2); in minValue()
791 inline GLValue::Fixed minValue (void) in minValue()
793 return GLValue::Fixed::create(4 * 1); in minValue()
797 inline GLValue::Int minValue (void) in minValue()
799 return GLValue::Int::create(4 * 16777216); in minValue()
803 inline GLValue::Uint minValue (void) in minValue()
805 return GLValue::Uint::create(4 * 16777216); in minValue()
809 inline GLValue::Half minValue (void) in minValue()
811 return GLValue::Half::create(4 * 1.0f); in minValue()
818 inline GLValue::Fixed abs (GLValue::Fixed val) in abs()
820 return GLValue::Fixed::create(0x7FFFu & val.getValue()); in abs()
824 inline GLValue::Ubyte abs (GLValue::Ubyte val) in abs()
830 inline GLValue::Byte abs (GLValue::Byte val) in abs()
832 return GLValue::Byte::create(0x7Fu & val.getValue()); in abs()
836 inline GLValue::Ushort abs (GLValue::Ushort val) in abs()
842 inline GLValue::Short abs (GLValue::Short val) in abs()
844 return GLValue::Short::create(0x7FFFu & val.getValue()); in abs()
848 inline GLValue::Float abs (GLValue::Float val) in abs()
850 return GLValue::Float::create(std::fabs(val.to<float>())); in abs()
854 inline GLValue::Double abs (GLValue::Double val) in abs()
856 return GLValue::Double::create(std::fabs(val.to<float>())); in abs()
860 inline GLValue::Uint abs (GLValue::Uint val) in abs()
866 inline GLValue::Int abs (GLValue::Int val) in abs()
868 return GLValue::Int::create(0x7FFFFFFFu & val.getValue()); in abs()
872 inline GLValue::Half abs (GLValue::Half val) in abs()
874 return GLValue::Half::create(std::fabs(val.to<float>())); in abs()
1528 …case DrawTestSpec::INPUTTYPE_FLOAT: return createBasicArray<float, GLValue::Float> (seed, elem… in generateBasicArray()
1529 …case DrawTestSpec::INPUTTYPE_DOUBLE: return createBasicArray<double, GLValue::Double>(seed, ele… in generateBasicArray()
1530 …case DrawTestSpec::INPUTTYPE_SHORT: return createBasicArray<deInt16, GLValue::Short> (seed, ele… in generateBasicArray()
1531 …case DrawTestSpec::INPUTTYPE_UNSIGNED_SHORT: return createBasicArray<deUint16, GLValue::Ushort>(se… in generateBasicArray()
1532 …case DrawTestSpec::INPUTTYPE_BYTE: return createBasicArray<deInt8, GLValue::Byte> (seed, eleme… in generateBasicArray()
1533 …case DrawTestSpec::INPUTTYPE_UNSIGNED_BYTE: return createBasicArray<deUint8, GLValue::Ubyte> (see… in generateBasicArray()
1534 …case DrawTestSpec::INPUTTYPE_FIXED: return createBasicArray<deInt32, GLValue::Fixed> (seed, ele… in generateBasicArray()
1535 …case DrawTestSpec::INPUTTYPE_INT: return createBasicArray<deInt32, GLValue::Int> (seed, element… in generateBasicArray()
1536 …case DrawTestSpec::INPUTTYPE_UNSIGNED_INT: return createBasicArray<deUint32, GLValue::Uint> (seed… in generateBasicArray()
1537 …case DrawTestSpec::INPUTTYPE_HALF: return createBasicArray<deFloat16, GLValue::Half> (seed, ele… in generateBasicArray()
1560 const GLType min = extractGLValue<GLType>(GLValue::getMinValue(GLValueTypeTraits<GLType>::Type)); in createBasicArray()
1561 const GLType max = extractGLValue<GLType>(GLValue::getMaxValue(GLValueTypeTraits<GLType>::Type)); in createBasicArray()
1688 deUint32 ndx = getRandom(rnd, GLValue::Uint::create(min), GLValue::Uint::create(max)).getValue(); in createIndices()
2868 maxIndexValue = GLValue::getMaxValue(INPUTTYPE_UNSIGNED_BYTE).ub.getValue(); in valid()
2870 maxIndexValue = GLValue::getMaxValue(INPUTTYPE_UNSIGNED_SHORT).us.getValue(); in valid()
2872 maxIndexValue = GLValue::getMaxValue(INPUTTYPE_UNSIGNED_INT).ui.getValue(); in valid()
3784 const float max = GLValue::getMaxValue(attribSpec.inputType).toFloat(); in getCoordScale()
3824 const float max = GLValue::getMaxValue(attribSpec.inputType).toFloat(); in getColorScale()