Home | History | Annotate | Download | only in randomshaders

Lines Matching refs:dstMax

213 void ComputeMulRange::operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMin, float& bMax) const
222 float scaledMax = dstMax/scale;
230 scaledMax = dstMax;
242 if (de::inBounds(aMin*(scale-(float)i*scaleStep), dstMin, dstMax) &&
243 de::inBounds(aMax*(scale-(float)i*scaleStep), dstMin, dstMax))
246 if (de::inBounds(aMin*(scale+(float)i*scaleStep), dstMin, dstMax) &&
247 de::inBounds(aMax*(scale+(float)i*scaleStep), dstMin, dstMax))
265 DE_ASSERT(de::inRange(aMin*bMin, dstMin-eps, dstMax+eps));
266 DE_ASSERT(de::inRange(aMin*bMax, dstMin-eps, dstMax+eps));
267 DE_ASSERT(de::inRange(aMax*bMin, dstMin-eps, dstMax+eps));
268 DE_ASSERT(de::inRange(aMax*bMax, dstMin-eps, dstMax+eps));
272 void ComputeMulRange::operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, int& bMin, int& bMax) const
276 aMax = dstMax;
297 void ComputeAddRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
305 T rangeLen = dstMax-dstMin;
318 DE_ASSERT(de::inRange(aMin+bMin, dstMin-eps, dstMax+eps));
319 DE_ASSERT(de::inRange(aMin+bMax, dstMin-eps, dstMax+eps));
320 DE_ASSERT(de::inRange(aMax+bMin, dstMin-eps, dstMax+eps));
321 DE_ASSERT(de::inRange(aMax+bMax, dstMin-eps, dstMax+eps));
347 void ComputeSubRange::operator() (de::Random& random, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
355 T rangeLen = dstMax-dstMin;
368 DE_ASSERT(de::inRange(aMin-bMin, dstMin-eps, dstMax+eps));
369 DE_ASSERT(de::inRange(aMin-bMax, dstMin-eps, dstMax+eps));
370 DE_ASSERT(de::inRange(aMax-bMin, dstMin-eps, dstMax+eps));
371 DE_ASSERT(de::inRange(aMax-bMax, dstMin-eps, dstMax+eps));
423 bool dstMax = valueRange.getMax().asBool();
428 ComputeValueRange()(state.getRandom(), dstMin, dstMax,
432 ComputeValueRange()(state.getRandom(), dstMin, dstMax,
487 void ComputeLessThanRange::operator () (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
500 if (dstMin == false && dstMax == true)
508 else if (dstMin == true && dstMax == true)
543 void ComputeLessOrEqualRange::operator () (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const
556 if (dstMin == false && dstMax == true)
564 else if (dstMin == true && dstMax == true)
622 void computeEqualityValueRange (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax)
624 if (dstMin == false && dstMax == true)
649 void computeEqualityValueRange<true, bool> (de::Random& rnd, bool dstMin, bool dstMax, bool& aMin, bool& aMax, bool& bMin, bool& bMax)
651 if (dstMin == false && dstMax == true)
660 DE_ASSERT(dstMax == false);
670 DE_ASSERT(dstMin == true && dstMax == true);
681 void computeEqualityValueRange<false, bool> (de::Random& rnd, bool dstMin, bool dstMax, bool& aMin, bool& aMax, bool& bMin, bool& bMax)
683 if (dstMin == false && dstMax == true)
684 computeEqualityValueRange<true>(rnd, dstMin, dstMax, aMin, aMax, bMin, bMax);
686 computeEqualityValueRange<true>(rnd, !dstMin, !dstMax, aMin, aMax, bMin, bMax);
721 bool dstMax = valueRange.getMax().asBool();
727 computeEqualityValueRange<IsEqual>(state.getRandom(), dstMin, dstMax,
731 computeEqualityValueRange<IsEqual>(state.getRandom(), dstMin, dstMax,
737 computeEqualityValueRange<IsEqual>(state.getRandom(), dstMin, dstMax,