Home | History | Annotate | Download | only in glshared

Lines Matching full:rnd

182 static Quad getRandomQuad (de::Random& rnd, int targetW, int targetH)
194 const int width = rnd.getInt(minW, maxW);
195 const int height = rnd.getInt(minH, maxH);
196 const int x = rnd.getInt(-maxOutOfBounds, targetW+maxOutOfBounds-width);
197 const int y = rnd.getInt(-maxOutOfBounds, targetH+maxOutOfBounds-height);
199 const bool flipX = rnd.getBool();
200 const bool flipY = rnd.getBool();
210 static float getRandomDepth (de::Random& rnd)
214 return rnd.choose<float>(DE_ARRAY_BEGIN(depthValues), DE_ARRAY_END(depthValues));
217 static void computeRandomRenderCommand (de::Random& rnd, RenderCommand& command, glu::ApiType apiType, int targetW, int targetH)
219 command.quad = getRandomQuad(rnd, targetW, targetH);
220 command.depth = getRandomDepth(rnd);
221 gls::InteractionTestUtil::computeRandomRenderState(rnd, command.state, apiType, targetW, targetH);
460 de::Random rnd (m_params.seed ^ 0x232faac);
463 const int viewportX = rnd.getInt(0, m_renderCtx.getRenderTarget().getWidth() - viewportW);
464 const int viewportY = rnd.getInt(0, m_renderCtx.getRenderTarget().getHeight() - viewportH);
511 de::Random rnd (m_params.seed ^ deInt32Hash(m_iterNdx));
532 rsg::computeUniformValues(rnd, uniformValues, m_unifiedUniforms);
565 computeRandomRenderCommand(rnd, *cmdIter, m_renderCtx.getType().getAPI(), m_viewportSize.x(), m_viewportSize.y());