Lines Matching refs:rnd
44 static Vec4 getRandomColor (de::Random& rnd) in getRandomColor() argument
47 float r = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); in getRandomColor()
48 float g = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); in getRandomColor()
49 float b = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); in getRandomColor()
50 float a = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); in getRandomColor()
54 void computeRandomRenderState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targe… in computeRandomRenderState() argument
149 state.scissorTestEnabled = rnd.getFloat() < scissorTestProbability; in computeRandomRenderState()
150 state.stencilTestEnabled = rnd.getFloat() < stencilTestProbability; in computeRandomRenderState()
151 state.depthTestEnabled = rnd.getFloat() < depthTestProbability; in computeRandomRenderState()
152 state.blendEnabled = rnd.getFloat() < blendProbability; in computeRandomRenderState()
153 state.ditherEnabled = rnd.getFloat() < ditherProbability; in computeRandomRenderState()
162 int scissorW = rnd.getInt(minScissorW, maxScissorW); in computeRandomRenderState()
163 int scissorH = rnd.getInt(minScissorH, maxScissorH); in computeRandomRenderState()
164 int scissorX = rnd.getInt(-maxScissorOutOfBounds, targetWidth+maxScissorOutOfBounds-scissorW); in computeRandomRenderState()
165 int scissorY = rnd.getInt(-maxScissorOutOfBounds, targetHeight+maxScissorOutOfBounds-scissorH); in computeRandomRenderState()
174 …state.stencil[ndx].function = rnd.choose<deUint32>(DE_ARRAY_BEGIN(compareFuncs), DE_ARRAY_END(co… in computeRandomRenderState()
175 state.stencil[ndx].reference = rnd.getInt(minStencilVal, maxStencilVal); in computeRandomRenderState()
176 state.stencil[ndx].compareMask = rnd.getUint32(); in computeRandomRenderState()
177 …state.stencil[ndx].stencilFailOp = rnd.choose<deUint32>(DE_ARRAY_BEGIN(stencilOps), DE_ARRAY_END(s… in computeRandomRenderState()
178 …state.stencil[ndx].depthFailOp = rnd.choose<deUint32>(DE_ARRAY_BEGIN(stencilOps), DE_ARRAY_END(st… in computeRandomRenderState()
179 …state.stencil[ndx].depthPassOp = rnd.choose<deUint32>(DE_ARRAY_BEGIN(stencilOps), DE_ARRAY_END(st… in computeRandomRenderState()
180 state.stencil[ndx].writeMask = rnd.getUint32(); in computeRandomRenderState()
186 …state.depthFunc = rnd.choose<deUint32>(DE_ARRAY_BEGIN(compareFuncs), DE_ARRAY_END(compareFuncs)); in computeRandomRenderState()
187 state.depthWriteMask = rnd.getFloat() < depthWriteProbability; in computeRandomRenderState()
194 …state.blendRGBState.equation = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendEquationsES2), DE_ARRAY_EN… in computeRandomRenderState()
195 …state.blendRGBState.srcFunc = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendFuncs), DE_ARRAY_END(blend… in computeRandomRenderState()
196 …state.blendRGBState.dstFunc = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendFuncsDstES2), DE_ARRAY_END… in computeRandomRenderState()
198 …state.blendAState.equation = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendEquationsES2), DE_ARRAY_END… in computeRandomRenderState()
199 …state.blendAState.srcFunc = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendFuncs), DE_ARRAY_END(blendFu… in computeRandomRenderState()
200 …state.blendAState.dstFunc = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendFuncsDstES2), DE_ARRAY_END(b… in computeRandomRenderState()
204 …state.blendRGBState.equation = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendEquations), DE_ARRAY_END(b… in computeRandomRenderState()
205 …state.blendRGBState.srcFunc = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendFuncs), DE_ARRAY_END(blend… in computeRandomRenderState()
206 …state.blendRGBState.dstFunc = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendFuncs), DE_ARRAY_END(blend… in computeRandomRenderState()
208 …state.blendAState.equation = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendEquations), DE_ARRAY_END(bl… in computeRandomRenderState()
209 …state.blendAState.srcFunc = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendFuncs), DE_ARRAY_END(blendFu… in computeRandomRenderState()
210 …state.blendAState.dstFunc = rnd.choose<deUint32>(DE_ARRAY_BEGIN(blendFuncs), DE_ARRAY_END(blendFu… in computeRandomRenderState()
213 state.blendColor = getRandomColor(rnd); in computeRandomRenderState()
217 state.colorMask[ndx] = rnd.getFloat() < colorWriteProbability; in computeRandomRenderState()
220 void computeRandomQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidth, i… in computeRandomQuad() argument
235 int width = rnd.getInt(minW, maxW); in computeRandomQuad()
236 int height = rnd.getInt(minH, maxH); in computeRandomQuad()
237 int x = rnd.getInt(-maxOutOfBounds, targetWidth+maxOutOfBounds-width); in computeRandomQuad()
238 int y = rnd.getInt(-maxOutOfBounds, targetHeight+maxOutOfBounds-height); in computeRandomQuad()
240 bool flipX = rnd.getBool(); in computeRandomQuad()
241 bool flipY = rnd.getBool(); in computeRandomQuad()
243 float depth = rnd.choose<float>(DE_ARRAY_BEGIN(depthValues), DE_ARRAY_END(depthValues)); in computeRandomQuad()
249 quad.color[ndx] = getRandomColor(rnd); in computeRandomQuad()
254 void computeRandomRenderCommands (de::Random& rnd, glu::ApiType apiType, int numCommands, int targe… in computeRandomRenderCommands() argument
261 computeRandomRenderState(rnd, cmd->state, apiType, targetW, targetH); in computeRandomRenderCommands()
262 computeRandomQuad(rnd, cmd->quad, targetW, targetH); in computeRandomRenderCommands()