Lines Matching defs:rng

211 	// Used to carry forward the rng seed from test generation to test run.
1882 void generateRandomClearValues(de::Random& rng, const TestParams& params, VkClearValue clearValues[4], bool smallValues)
1895 clearValues[0].color.float32[0] = rng.getFloat(minFloatValue, maxFloatValue);
1896 clearValues[0].color.float32[1] = rng.getFloat(minFloatValue, maxFloatValue);
1897 clearValues[0].color.float32[2] = rng.getFloat(minFloatValue, maxFloatValue);
1898 clearValues[0].color.float32[3] = rng.getFloat(minFloatValue, maxFloatValue);
1899 clearValues[1].color.float32[0] = rng.getFloat(minFloatValue, maxFloatValue);
1900 clearValues[1].color.float32[1] = rng.getFloat(minFloatValue, maxFloatValue);
1901 clearValues[1].color.float32[2] = rng.getFloat(minFloatValue, maxFloatValue);
1902 clearValues[1].color.float32[3] = rng.getFloat(minFloatValue, maxFloatValue);
1903 clearValues[2].color.int32[0] = (usesSignedIntFormat ? -1 : 1) * rng.getInt(minIntValue, maxIntValue);
1904 clearValues[2].color.int32[1] = (usesSignedIntFormat ? -1 : 1) * rng.getInt(minIntValue, maxIntValue);
1905 clearValues[2].color.int32[2] = (usesSignedIntFormat ? -1 : 1) * rng.getInt(minIntValue, maxIntValue);
1906 clearValues[2].color.int32[3] = (usesSignedIntFormat ? -1 : 1) * rng.getInt(minIntValue, maxIntValue);
1907 clearValues[3].depthStencil.depth = rng.getFloat(minDepthValue, maxDepthValue);
1908 clearValues[3].depthStencil.stencil = rng.getInt(minStencilValue, maxStencilValue);
2231 de::Random rng(params.rngSeed);
2233 wd.framebufferSize = UVec2(rng.getInt(60, 80), rng.getInt(48, 64));
2237 wd.renderArea.x() += rng.getInt(5, 15);
2238 wd.renderArea.y() += rng.getInt(5, 15);
2239 wd.renderArea.z() -= wd.renderArea.x() + rng.getInt(2, 12);
2240 wd.renderArea.w() -= wd.renderArea.y() + rng.getInt(2, 12);
3136 void generateBasicTest (de::Random& rng, TestParams& params, const VkSampleCountFlagBits sampleCount, const VkResolveModeFlagBits resolveMode, const bool renderToWholeFramebuffer)
3185 generateRandomClearValues(rng, params, params.clearValues, false);
3187 params.rngSeed = rng.getUint32();
3382 de::Random rng(params.rngSeed);
3384 generateRandomClearValues(rng, params, clearValues[regionNdx], false);
3928 void generateMultiPassTest (de::Random& rng, TestParams& params)
3951 const deUint32 passCount = rng.getInt(1, 4);
3963 passAttachments.push_back(rng.getInt(1, 15));
3971 passAttachments.push_back(rng.getInt(1, 15));
3976 const deUint32 singleSampledAttachmentsMask = params.isMultisampledRenderToSingleSampled ? rng.getInt(1, 15) | (~usedAttachmentMask & 0xF) : 0;
3995 const VkSampleCountFlagBits randomSampleCount = sampleRange[rng.getInt(0, DE_LENGTH_OF_ARRAY(sampleRange) - 1)];
4038 int j = rng.getInt(i, 3);
4101 perPass.depthStencilResolveMode = depthStencilResolveModeRange[rng.getInt(0, DE_LENGTH_OF_ARRAY(depthStencilResolveModeRange) - 1)];
4109 params.clearBeforeRenderPass = rng.getBool();
4111 params.renderToWholeFramebuffer = rng.getBool();
4116 generateRandomClearValues(rng, params, params.clearValues, true);
4126 {Vec4(rng.getFloat(0.05f, 0.1f), 0, rng.getFloat(0.05f, 0.1f), 0), Vec4(0, rng.getFloat(0.05f, 0.1f), 0, rng.getFloat(0.05f, 0.1f))},
4127 {Vec4(rng.getFloat(0.05f, 0.1f), rng.getFloat(0.05f, 0.1f), 0, 0), Vec4(0, 0, rng.getFloat(0.05f, 0.1f), rng.getFloat(0.05f, 0.1f))},
4130 Vec2(0.1f * static_cast<float>(rng.getInt(2, 9)), 0.1f * static_cast<float>(rng.getInt(2, 9))),
4134 {Vec4(rng.getFloat(0.05f, 0.1f), 0, rng.getFloat(0.05f, 0.1f), 0), Vec4(0, rng.getFloat(0.05f, 0.1f), 0, rng.getFloat(0.05f, 0.1f))},
4135 {Vec4(rng.getFloat(0.05f, 0.1f), rng.getFloat(0.05f, 0.1f), 0, 0), Vec4(0, 0, rng.getFloat(0.05f, 0.1f), rng.getFloat(0.05f, 0.1f))},
4137 Vec2(0.1f * static_cast<float>(rng.getInt(2, 9)) + 0.05f, 0.1f * static_cast<float>(rng.getInt(2, 8)) + 0.05f),
4142 perPass.drawConstantsWithDepthWrite[regionNdx].color3Data[0][passNdx] = rng.getInt(1000, 5000);
4143 perPass.drawConstantsWithDepthWrite[regionNdx].color3Data[1][passNdx] = rng.getInt(1000, 5000);
4144 perPass.drawConstantsWithDepthTest[regionNdx].color3Data[0][passNdx] = rng.getInt(1000, 5000);
4145 perPass.drawConstantsWithDepthTest[regionNdx].color3Data[1][passNdx] = rng.getInt(1000, 5000);
4243 params.rngSeed = rng.getUint32();
4694 void generateInputAttachmentsTest (de::Random& rng, TestParams& params, const VkSampleCountFlagBits sampleCount, const VkResolveModeFlagBits resolveMode, const bool renderToWholeFramebuffer)
4755 generateRandomClearValues(rng, params, params.clearValues, true);
4762 {Vec4(rng.getFloat(0.2f, 0.4f), 0, rng.getFloat(0.2f, 0.4f), 0), Vec4(0, rng.getFloat(0.2f, 0.4f), 0, rng.getFloat(0.2f, 0.4f))},
4766 Vec2(0.025f * static_cast<float>(rng.getInt(2, 38)), 0.025f * static_cast<float>(rng.getInt(2, 38))),
4772 {Vec4(rng.getFloat(0.2f, 0.4f), rng.getFloat(0.2f, 0.4f), 0, 0), Vec4(0, 0, rng.getFloat(0.2f, 0.4f), rng.getFloat(0.2f, 0.4f))},
4780 params.perPass[0].drawConstantsWithDepthWrite[regionNdx].color3Data[0][0] = rng.getInt(1000, 5000);
4781 params.perPass[0].drawConstantsWithDepthWrite[regionNdx].color3Data[1][1] = rng.getInt(1000, 5000);
4782 params.perPass[1].drawConstantsWithDepthWrite[regionNdx].color3Data[0][2] = rng.getInt(1000, 5000);
4783 params.perPass[1].drawConstantsWithDepthWrite[regionNdx].color3Data[1][3] = rng.getInt(1000, 5000);
4853 params.rngSeed = rng.getUint32();
5029 de::Random rng(0xDEADBEEF);
5063 generateBasicTest(rng, testParams, sampleCount, resolveMode, renderToWholeFramebuffer);
5088 de::Random rng(0x0FEDCBA9);
5122 generateBasicTest(rng, testParams, sampleCount, resolveMode, renderToWholeFramebuffer);
5163 de::Random rng(0x12345678);
5184 generateMultiPassTest(rng, testParams);
5227 de::Random rng(0x87654321);
5248 generateMultiPassTest(rng, testParams);
5279 de::Random rng(0x18273645);
5313 generateInputAttachmentsTest(rng, testParams, sampleCount, resolveMode, renderToWholeFramebuffer);
5388 de::Random rng(0x12348765);
5407 generateBasicTest(rng, testParams, VK_SAMPLE_COUNT_2_BIT, VK_RESOLVE_MODE_SAMPLE_ZERO_BIT, DE_TRUE);