Home | History | Annotate | Download | only in randomshaders

Lines Matching refs:dstMin

213 void ComputeMulRange::operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMin, float& bMax) const
221 float scaledMin = dstMin/scale;
229 scaledMin = dstMin;
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
275 aMin = dstMin;
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;
309 aMin = dstMin+aOffset;
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;
359 aMin = dstMin+aOffset;
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));
422 bool dstMin = valueRange.getMin().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)
626 else if (IsEqual && dstMin == false)
628 else if (!IsEqual && dstMin == 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)
658 else if (dstMin == 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);
720 bool dstMin = valueRange.getMin().asBool();
727 computeEqualityValueRange<IsEqual>(state.getRandom(), dstMin, dstMax,
731 computeEqualityValueRange<IsEqual>(state.getRandom(), dstMin, dstMax,
737 computeEqualityValueRange<IsEqual>(state.getRandom(), dstMin, dstMax,