Home | History | Annotate | Download | only in randomshaders

Lines Matching refs:SrcType

512 template <typename SrcType, typename DstType>
513 inline DstType convert (SrcType src)
515 if (Scalar::min<SrcType>() == src)
517 else if (Scalar::max<SrcType>() == src)
541 template <typename SrcType, typename DstType>
542 inline void convertValueRange (SrcType srcMin, SrcType srcMax, DstType& dstMin, DstType& dstMax)
544 dstMin = convert<SrcType, DstType>(srcMin);
545 dstMax = convert<SrcType, DstType>(srcMax);
571 // Returns whether it is possible to convert some SrcType value range to given DstType valueRange
572 template <typename SrcType, typename DstType>
575 SrcType sMin, sMax;
578 de::inRange(convert<SrcType, DstType>(sMin), min, max) &&
579 de::inRange(convert<SrcType, DstType>(sMax), min, max);
596 template <typename SrcType, typename DstType>
599 return isConversionOk<SrcType>(getValueAccessValue<DstType>(valueRange.getMin()), getValueAccessValue<DstType>(valueRange.getMax()));
602 template <typename SrcType, typename DstType>
606 convertValueRange(getValueAccessValue<SrcType>(src.getMin()), getValueAccessValue<SrcType>(src.getMax()), dMin, dMax);
611 template <typename SrcType, typename DstType>
615 dst.as<DstType>(ndx) = convert<SrcType, DstType>(src.as<SrcType>(ndx));
633 bool isConversionOk (VariableType::Type srcType, VariableType::Type dstType, ConstValueRangeAccess valueRange)
642 return convTable[getBaseTypeConvNdx(srcType)][getBaseTypeConvNdx(dstType)](valueRange);