Home
last modified time | relevance | path

Searched refs:getFloat (Results 1 – 25 of 226) sorted by relevance

12345678910

/third_party/vk-gl-cts/modules/gles3/functional/
Des3fPixelBufferObjectTests.cpp433 float clearRed = m_colorScale * m_random.getFloat(); in iterate()
434 float clearGreen = m_colorScale * m_random.getFloat(); in iterate()
435 float clearBlue = m_colorScale * m_random.getFloat(); in iterate()
436 float clearAlpha = m_colorScale * (0.5f + 0.5f * m_random.getFloat()); in iterate()
456 float x1 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
457 float y1 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
458 float z1 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
460 float x2 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
461 float y2 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
462 float z2 = 2.0f * m_random.getFloat() - 1.0f; in iterate()
[all …]
Des3fFboMultisampleTests.cpp152 float r = rnd.getFloat(); in render()
153 float g = rnd.getFloat(); in render()
154 float b = rnd.getFloat(); in render()
155 float a = rnd.getFloat(); in render()
156 float x0 = rnd.getFloat(-1.0f, 1.0f); in render()
157 float y0 = rnd.getFloat(-1.0f, 1.0f); in render()
158 float z0 = rnd.getFloat(-1.0f, 1.0f); in render()
159 float x1 = rnd.getFloat(-1.0f, 1.0f); in render()
160 float y1 = rnd.getFloat(-1.0f, 1.0f); in render()
161 float z1 = rnd.getFloat(-1.0f, 1.0f); in render()
Des3fFloatStateQueryTests.cpp867 GLfloat n = rnd.getFloat(0, 1); in test()
868 GLfloat f = rnd.getFloat(0, 1); in test()
902 const GLfloat reference = rnd.getFloat(range[0], range[1]); in test()
943 const GLfloat reference = rnd.getFloat(-64000, 64000); in test()
984 const GLfloat reference = rnd.getFloat(-64000, 64000); in test()
1041 GLfloat reference = rnd.getFloat(0, 1); in test()
1090 const GLfloat r = rnd.getFloat(0, 1); in test()
1091 const GLfloat g = rnd.getFloat(0, 1); in test()
1092 const GLfloat b = rnd.getFloat(0, 1); in test()
1093 const GLfloat a = rnd.getFloat(0, 1); in test()
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DFloatArrayListTest.java123 assertEquals(1F, TERTIARY_LIST.getFloat(0), 0.0f); in testGetFloat()
124 assertEquals(2F, TERTIARY_LIST.getFloat(1), 0.0f); in testGetFloat()
125 assertEquals(3F, TERTIARY_LIST.getFloat(2), 0.0f); in testGetFloat()
227 assertEquals(3F, list.getFloat(0), 0.0f); in testSet()
230 assertEquals(0F, list.getFloat(1), 0.0f); in testSet()
252 assertEquals(0F, list.getFloat(0), 0.0f); in testSetFloat()
255 assertEquals(0F, list.getFloat(1), 0.0f); in testSetFloat()
319 assertEquals(1F, list.getFloat(0), 0.0f); in testAddAll()
/third_party/vk-gl-cts/framework/delibs/decpp/
DdeRandom.hpp44 float getFloat (void) { return deRandom_getFloat(&m_rnd); } in getFloat() function in de::Random
48 float getFloat (float min, float max);
81 inline float Random::getFloat (float min, float max) in getFloat() function in de::Random
84 return min + (max-min)*getFloat(); in getFloat()
146 float p = getFloat(0.0f, weightSum); in chooseWeighted()
183 …mScalar (de::Random& rnd, float minValue, float maxValue) { return rnd.getFloat(minValue, maxValu… in randomScalar()
/third_party/vk-gl-cts/modules/glshared/
DglsRandomUniformBlockCase.cpp88 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock()
148 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateUniform()
149 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateUniform()
161 if (typeDepth < m_maxStructDepth && rnd.getFloat() < structWeight) in generateType()
181 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateType()
182 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateType()
189 else if (m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight) in generateType()
DglsLongStressCase.cpp779 val[i] = rnd.getFloat(spec.minValue.f[i], spec.maxValue.f[i]); in setRandomUniforms()
794 val[i] = rnd.getFloat(spec.minValue.f[i], spec.maxValue.f[i]); in setRandomUniforms()
1011 …data[vtxNdx*numComponents + compNdx] = rnd.getFloat(attrSpec.minValue.f[compNdx], attrSpec.maxValu… in generateRandomAttribData()
1260 const bool useClientMemoryIndexData = m_rnd.getFloat() < m_probabilities.clientMemoryIndexData; in iterate()
1261 const bool useDrawArrays = m_rnd.getFloat() < m_probabilities.useDrawArrays; in iterate()
1262 …const bool separateAttributeBuffers = m_rnd.getFloat() < m_probabilities.separateAttributeBuff… in iterate()
1284 if (!hadProgram || m_rnd.getFloat() < m_probabilities.rebuildProgram) in iterate()
1310 if (!hadTexture || m_rnd.getFloat() < m_probabilities.reuploadTexture) in iterate()
1316 if (!hadTexture || m_rnd.getFloat() < m_probabilities.reuploadWithTexImage) in iterate()
1353 if (!hadIndexBuffer || m_rnd.getFloat() < m_probabilities.reuploadBuffer) in iterate()
[all …]
DglsInteractionTestUtil.cpp149 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()
187 state.depthWriteMask = rnd.getFloat() < depthWriteProbability; in computeRandomRenderState()
217 state.colorMask[ndx] = rnd.getFloat() < colorWriteProbability; in computeRandomRenderState()
/third_party/vk-gl-cts/modules/egl/
DteglPreservingSwapTests.cpp427 const float clearRed = rnd.getFloat(); in iterate()
428 const float clearGreen = rnd.getFloat(); in iterate()
429 const float clearBlue = rnd.getFloat(); in iterate()
432 const float preSwapX1 = -0.9f * rnd.getFloat(); in iterate()
433 const float preSwapY1 = -0.9f * rnd.getFloat(); in iterate()
434 const float preSwapX2 = 0.9f * rnd.getFloat(); in iterate()
435 const float preSwapY2 = 0.9f * rnd.getFloat(); in iterate()
437 const float postSwapX1 = -0.9f * rnd.getFloat(); in iterate()
438 const float postSwapY1 = -0.9f * rnd.getFloat(); in iterate()
439 const float postSwapX2 = 0.9f * rnd.getFloat(); in iterate()
[all …]
DteglMemoryStressTests.cpp219 const float red = m_rnd.getFloat(); in allocatePBuffer()
220 const float green = m_rnd.getFloat(); in allocatePBuffer()
221 const float blue = m_rnd.getFloat(); in allocatePBuffer()
222 const float alpha = m_rnd.getFloat(); in allocatePBuffer()
283 const float red = m_rnd.getFloat(); in allocateContext()
284 const float green = m_rnd.getFloat(); in allocateContext()
285 const float blue = m_rnd.getFloat(); in allocateContext()
286 const float alpha = m_rnd.getFloat(); in allocateContext()
DteglRenderTests.cpp174 const float cx = rnd.getFloat(-1.0f, 1.0f); in randomizeDrawOp()
175 const float cy = rnd.getFloat(-1.0f, 1.0f); in randomizeDrawOp()
176 const float flatAlpha = (rnd.getFloat(minAlpha, maxAlpha) > 0.5f) ? 1.0f : 0.0f; in randomizeDrawOp()
183 position.x() = cx + rnd.getFloat(-maxTriOffset, maxTriOffset); in randomizeDrawOp()
184 position.y() = cy + rnd.getFloat(-maxTriOffset, maxTriOffset); in randomizeDrawOp()
185 position.z() = rnd.getFloat(minDepth, maxDepth); in randomizeDrawOp()
188 color.x() = rnd.getFloat(minRGB, maxRGB); in randomizeDrawOp()
189 color.y() = rnd.getFloat(minRGB, maxRGB); in randomizeDrawOp()
190 color.z() = rnd.getFloat(minRGB, maxRGB); in randomizeDrawOp()
191 color.w() = rnd.getFloat(minAlpha, maxAlpha); in randomizeDrawOp()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktRandomUniformBlockCase.cpp107 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock()
175 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateUniform()
176 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateUniform()
188 if (typeDepth < m_maxStructDepth && rnd.getFloat() < structWeight) in generateType()
208 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateType()
209 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateType()
216 else if (m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight) in generateType()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ubo/
DvktRandomUniformBlockCase.cpp107 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0… in generateBlock()
175 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateUniform()
176 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateUniform()
188 if (typeDepth < m_maxStructDepth && rnd.getFloat() < structWeight) in generateType()
208 flags |= (unusedOk && rnd.getFloat() < unusedVtxWeight) ? UNUSED_VERTEX : 0; in generateType()
209 flags |= (unusedOk && rnd.getFloat() < unusedFragWeight) ? UNUSED_FRAGMENT : 0; in generateType()
216 else if (m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight) in generateType()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fShaderPackingFunctionTests.cpp152 const float x = rnd.getFloat()*2.5f - 1.25f; in iterate()
153 const float y = rnd.getFloat()*2.5f - 1.25f; in iterate()
160 const float x = rnd.getFloat()*1e6f - 0.5e6f; in iterate()
161 const float y = rnd.getFloat()*1e6f - 0.5e6f; in iterate()
343 const float x = rnd.getFloat()*1.25f; in iterate()
344 const float y = rnd.getFloat()*1.25f; in iterate()
351 const float x = rnd.getFloat()*1e6f - 1e5f; in iterate()
352 const float y = rnd.getFloat()*1e6f - 1e5f; in iterate()
750 const float x = rnd.getFloat()*2.5f - 1.25f; in iterate()
751 const float y = rnd.getFloat()*2.5f - 1.25f; in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackRandomLayoutCase.cpp157 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(… in generateBlock()
187 if (missingAllowed && rnd.getFloat() < missingBlockMembersWeight) in generateBlockMember()
192 else if (unassignedAllowed && rnd.getFloat() < unassignedBlockMembersWeight) in generateBlockMember()
209 if (typeDepth < m_maxStructDepth && rnd.getFloat() < structWeight) in generateType()
228 if (unassignedOk && rnd.getFloat() < unassignedFieldWeight) in generateType()
238 else if (m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight) in generateType()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/transform_feedback/
DvktTransformFeedbackRandomLayoutCase.cpp157 …int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(… in generateBlock()
187 if (missingAllowed && rnd.getFloat() < missingBlockMembersWeight) in generateBlockMember()
192 else if (unassignedAllowed && rnd.getFloat() < unassignedBlockMembersWeight) in generateBlockMember()
209 if (typeDepth < m_maxStructDepth && rnd.getFloat() < structWeight) in generateType()
228 if (unassignedOk && rnd.getFloat() < unassignedFieldWeight) in generateType()
238 else if (m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight) in generateType()
/third_party/protobuf/objectivec/Tests/
DGPBDictionaryTests+Int32.m1894 XCTAssertFalse([dict getFloat:NULL forKey:11]);
1908 XCTAssertTrue([dict getFloat:NULL forKey:11]);
1909 XCTAssertTrue([dict getFloat:&value forKey:11]);
1911 XCTAssertFalse([dict getFloat:NULL forKey:12]);
1930 XCTAssertTrue([dict getFloat:NULL forKey:11]);
1931 XCTAssertTrue([dict getFloat:&value forKey:11]);
1933 XCTAssertTrue([dict getFloat:NULL forKey:12]);
1934 XCTAssertTrue([dict getFloat:&value forKey:12]);
1936 XCTAssertTrue([dict getFloat:NULL forKey:13]);
1937 XCTAssertTrue([dict getFloat:&value forKey:13]);
[all …]
DGPBDictionaryTests+String.m1894 XCTAssertFalse([dict getFloat:NULL forKey:@"foo"]);
1908 XCTAssertTrue([dict getFloat:NULL forKey:@"foo"]);
1909 XCTAssertTrue([dict getFloat:&value forKey:@"foo"]);
1911 XCTAssertFalse([dict getFloat:NULL forKey:@"bar"]);
1930 XCTAssertTrue([dict getFloat:NULL forKey:@"foo"]);
1931 XCTAssertTrue([dict getFloat:&value forKey:@"foo"]);
1933 XCTAssertTrue([dict getFloat:NULL forKey:@"bar"]);
1934 XCTAssertTrue([dict getFloat:&value forKey:@"bar"]);
1936 XCTAssertTrue([dict getFloat:NULL forKey:@"baz"]);
1937 XCTAssertTrue([dict getFloat:&value forKey:@"baz"]);
[all …]
DGPBDictionaryTests+UInt64.m1894 XCTAssertFalse([dict getFloat:NULL forKey:31ULL]);
1908 XCTAssertTrue([dict getFloat:NULL forKey:31ULL]);
1909 XCTAssertTrue([dict getFloat:&value forKey:31ULL]);
1911 XCTAssertFalse([dict getFloat:NULL forKey:32ULL]);
1930 XCTAssertTrue([dict getFloat:NULL forKey:31ULL]);
1931 XCTAssertTrue([dict getFloat:&value forKey:31ULL]);
1933 XCTAssertTrue([dict getFloat:NULL forKey:32ULL]);
1934 XCTAssertTrue([dict getFloat:&value forKey:32ULL]);
1936 XCTAssertTrue([dict getFloat:NULL forKey:33ULL]);
1937 XCTAssertTrue([dict getFloat:&value forKey:33ULL]);
[all …]
DGPBDictionaryTests+Int64.m1894 XCTAssertFalse([dict getFloat:NULL forKey:21LL]);
1908 XCTAssertTrue([dict getFloat:NULL forKey:21LL]);
1909 XCTAssertTrue([dict getFloat:&value forKey:21LL]);
1911 XCTAssertFalse([dict getFloat:NULL forKey:22LL]);
1930 XCTAssertTrue([dict getFloat:NULL forKey:21LL]);
1931 XCTAssertTrue([dict getFloat:&value forKey:21LL]);
1933 XCTAssertTrue([dict getFloat:NULL forKey:22LL]);
1934 XCTAssertTrue([dict getFloat:&value forKey:22LL]);
1936 XCTAssertTrue([dict getFloat:NULL forKey:23LL]);
1937 XCTAssertTrue([dict getFloat:&value forKey:23LL]);
[all …]
DGPBDictionaryTests+UInt32.m1894 XCTAssertFalse([dict getFloat:NULL forKey:1U]);
1908 XCTAssertTrue([dict getFloat:NULL forKey:1U]);
1909 XCTAssertTrue([dict getFloat:&value forKey:1U]);
1911 XCTAssertFalse([dict getFloat:NULL forKey:2U]);
1930 XCTAssertTrue([dict getFloat:NULL forKey:1U]);
1931 XCTAssertTrue([dict getFloat:&value forKey:1U]);
1933 XCTAssertTrue([dict getFloat:NULL forKey:2U]);
1934 XCTAssertTrue([dict getFloat:&value forKey:2U]);
1936 XCTAssertTrue([dict getFloat:NULL forKey:3U]);
1937 XCTAssertTrue([dict getFloat:&value forKey:3U]);
[all …]
DGPBDictionaryTests+Bool.m1593 XCTAssertFalse([dict getFloat:NULL forKey:YES]);
1607 XCTAssertTrue([dict getFloat:NULL forKey:YES]);
1608 XCTAssertTrue([dict getFloat:&value forKey:YES]);
1610 XCTAssertFalse([dict getFloat:NULL forKey:NO]);
1629 XCTAssertTrue([dict getFloat:NULL forKey:YES]);
1630 XCTAssertTrue([dict getFloat:&value forKey:YES]);
1632 XCTAssertTrue([dict getFloat:NULL forKey:NO]);
1633 XCTAssertTrue([dict getFloat:&value forKey:NO]);
1784 XCTAssertTrue([dict getFloat:NULL forKey:YES]);
1785 XCTAssertTrue([dict getFloat:&value forKey:YES]);
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cShaderBitfieldOperationTests.cpp1326 Vec4(rnd.getFloat()))); in init()
1335 Vec4(rnd.getFloat(), -rnd.getFloat()))); in init()
1344 …m_context, ss.str().c_str(), m_glslVersion, Vec4(rnd.getFloat(), -rnd.getFloat(), rnd.getFloat()))… in init()
1354 Vec4(rnd.getFloat(), -rnd.getFloat(), rnd.getFloat(), -rnd.getFloat()))); in init()
1367 Vec4(rnd.getFloat()), Ivec4(rnd.getInt(-8, 8)))); in init()
1376 Vec4(rnd.getFloat(), -rnd.getFloat()), in init()
1386 … m_context, ss.str().c_str(), m_glslVersion, Vec4(rnd.getFloat(), -rnd.getFloat(), rnd.getFloat()), in init()
1397 Vec4(rnd.getFloat(), -rnd.getFloat(), rnd.getFloat(), -rnd.getFloat()), in init()
1410 Vec4(rnd.getFloat(), rnd.getFloat(), rnd.getFloat(), rnd.getFloat()))); in init()
1422 Vec4(rnd.getFloat(), -rnd.getFloat(), rnd.getFloat(), -rnd.getFloat()))); in init()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory_model/
DvktMemoryModelSharedLayout.cpp166 if (typeDepth > 0 && rnd.getFloat() < structWeight && (m_features & FEATURE_STRUCTS)) in generateType()
184 else if (typeDepth > 0 && m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight) in generateType()
199 if (rnd.getFloat() < weight16Bit) in generateType()
218 else if (rnd.getFloat() < weight8Bit) in generateType()
257 if (rnd.getFloat() < weightMatrices) in generateType()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory_model/
DvktMemoryModelSharedLayout.cpp166 if (typeDepth > 0 && rnd.getFloat() < structWeight && (m_features & FEATURE_STRUCTS)) in generateType()
184 else if (typeDepth > 0 && m_maxArrayLength > 0 && arrayOk && rnd.getFloat() < arrayWeight) in generateType()
199 if (rnd.getFloat() < weight16Bit) in generateType()
218 else if (rnd.getFloat() < weight8Bit) in generateType()
257 if (rnd.getFloat() < weightMatrices) in generateType()

12345678910