Lines Matching refs:rnd
250 de::Random rnd(0); in getValue() local
251 …return m_eglTestCtx.getConfigs()[rnd.getInt(0, (int)(m_eglTestCtx.getConfigs().size()-1))].configI… in getValue()
314 de::Random rnd(m_iterNdx); in iterate() local
315 const int numAttribs = rnd.getInt(0, (int)m_attribSet.size()*2); in iterate()
317 …vector<std::pair<EGLenum, EGLint> > attributes = genRandomAttributes(m_attribSet, numAttribs, rnd); in iterate()
325 template <int MinVal, int MaxVal> static EGLint getInt (de::Random& rnd) in getInt() argument
327 return rnd.getInt(MinVal, MaxVal); in getInt()
330 static EGLint getBool (de::Random& rnd) in getBool() argument
332 return rnd.getBool() ? EGL_TRUE : EGL_FALSE; in getBool()
335 static EGLint getBufferType (de::Random& rnd) in getBufferType() argument
338 return rnd.choose<EGLint>(types, types+DE_LENGTH_OF_ARRAY(types)); in getBufferType()
341 static EGLint getConfigCaveat (de::Random& rnd) in getConfigCaveat() argument
344 return rnd.choose<EGLint>(caveats, caveats+DE_LENGTH_OF_ARRAY(caveats)); in getConfigCaveat()
347 static EGLint getApiBits (de::Random& rnd) in getApiBits() argument
350 api |= rnd.getBool() ? EGL_OPENGL_BIT : 0; in getApiBits()
351 api |= rnd.getBool() ? EGL_OPENGL_ES_BIT : 0; in getApiBits()
352 api |= rnd.getBool() ? EGL_OPENGL_ES2_BIT : 0; in getApiBits()
353 api |= rnd.getBool() ? EGL_OPENVG_BIT : 0; in getApiBits()
357 static EGLint getSurfaceType (de::Random& rnd) in getSurfaceType() argument
360 bits |= rnd.getBool() ? EGL_WINDOW_BIT : 0; in getSurfaceType()
361 bits |= rnd.getBool() ? EGL_PIXMAP_BIT : 0; in getSurfaceType()
362 bits |= rnd.getBool() ? EGL_PBUFFER_BIT : 0; in getSurfaceType()
369 EGLint (*getValue)(de::Random& rnd);
372 …EGLint> > genRandomAttributes (const std::set<EGLenum>& attribSet, int numAttribs, de::Random& rnd) in genRandomAttributes() argument
419 AttribSpec spec = rnd.choose<AttribSpec>(candidates.begin(), candidates.end()); in genRandomAttributes()
420 out.push_back(std::make_pair(spec.attribute, spec.getValue(rnd))); in genRandomAttributes()