/third_party/vk-gl-cts/framework/randomshaders/ |
H A D | rsgUtils.cpp | 67 float minVal = valueRange.component(ndx).getMin().asFloat(); in computeRandomValue() local 69 dst.component(ndx).asFloat() = getQuantizedFloat(rnd, minVal, maxVal, quantizeStep); in computeRandomValue() 76 int minVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; in computeRandomValue() local 78 dst.component(ndx).asBool() = rnd.getInt(minVal, maxVal) == 1; in computeRandomValue() 87 int minVal = valueRange.component(ndx).getMin().asInt(); in computeRandomValue() local 89 dst.component(ndx).asInt() = rnd.getInt(minVal, maxVal); in computeRandomValue() 195 bool minVal = rnd.getBool(); in computeRandomValueRange() local 196 bool maxVal = minVal ? true : rnd.getBool(); in computeRandomValueRange() 197 valueRange.getMin().component(ndx).asBool() = minVal; in computeRandomValueRange() 210 int minVal in computeRandomValueRange() local 228 float minVal = minFloatVal + step*(float)minStep; computeRandomValueRange() local 304 float minVal = valueRange.component(ndx).getMin().asFloat(); computeRangeLengthSum() local 313 int minVal = valueRange.component(ndx).getMin().asBool() ? 1 : 0; computeRangeLengthSum() local 324 deInt64 minVal = valueRange.component(ndx).getMin().asInt(); computeRangeLengthSum() local [all...] |
H A D | rsgExpression.cpp | 187 int minVal = minIntVal + rnd.getInt(0, maxRangeLen-rangeLen); in computeRandomValueRangeForInfElements() local 188 int maxVal = minVal + rangeLen; in computeRandomValueRangeForInfElements() 190 valueRange.getMin().component(ndx).asInt() = minVal; in computeRandomValueRangeForInfElements() 209 float minVal = minFloatVal + step*(float)minStep; in computeRandomValueRangeForInfElements() local 210 float maxVal = minVal + step*(float)rangeLen; in computeRandomValueRangeForInfElements() 212 valueRange.getMin().component(ndx).asFloat() = minVal; in computeRandomValueRangeForInfElements() 362 float minVal = -10.0f; in FloatLiteral() local 368 minVal = valueRange.getMin().component(0).asFloat(); in FloatLiteral() 371 if (Scalar::min<float>() == minVal) in FloatLiteral() 372 minVal in FloatLiteral() 405 float minVal = valueRange.getMin().asFloat(); getWeight() local 432 int minVal = -16; IntLiteral() local 460 int minVal = valueRange.getMin().asInt(); getWeight() local 486 int minVal = 0; BoolLiteral() local [all...] |
H A D | rsgVariableValue.hpp | 201 ConstValueRangeAccess (const VariableType& type, const Scalar* minVal, const Scalar* maxVal) : m_type(&type), m_min(const_cast<Scalar*>(minVal)), m_max(const_cast<Scalar*>(maxVal)) {} in ConstValueRangeAccess() argument 243 ValueRangeAccess (const VariableType& type, Scalar* minVal, Scalar* maxVal) : ConstValueRangeAccess(type, minVal, maxVal) {} in ValueRangeAccess() argument 275 ValueRange (const VariableType& type, const ConstValueAccess& minVal, const ConstValueAccess& maxVal); 276 ValueRange (const VariableType& type, const Scalar* minVal, const Scalar* maxVal);
|
H A D | rsgVariableValue.cpp | 165 ValueRange::ValueRange (const VariableType& type, const ConstValueAccess& minVal, const ConstValueAccess& maxVal) in ValueRange() argument 170 getMin() = minVal.value(); in ValueRange() 174 ValueRange::ValueRange (const VariableType& type, const Scalar* minVal, const Scalar* maxVal) in ValueRange() argument 179 getMin() = ConstValueAccess(type, minVal).value(); in ValueRange()
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuTextureUtil.cpp | 707 static inline float linearInterpolate (float t, float minVal, float maxVal) 709 return minVal + (maxVal - minVal) * t; 842 static void fillWithComponentGradients1D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal, GradientStyle) 849 float r = linearInterpolate(s, minVal.x(), maxVal.x()); 850 float g = linearInterpolate(s, minVal.y(), maxVal.y()); 851 float b = linearInterpolate(s, minVal.z(), maxVal.z()); 852 float a = linearInterpolate(s, minVal.w(), maxVal.w()); 858 static void fillWithComponentGradients2D (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal, GradientStyle style) 886 float r = linearInterpolate(coefR, minVal [all...] |
H A D | tcuTextureUtil.hpp | 120 void fillWithComponentGradients (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal); 121 void fillWithComponentGradients2 (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal); 122 void fillWithComponentGradients3 (const PixelBufferAccess& access, const Vec4& minVal, const Vec4& maxVal); 133 void estimatePixelValueRange (const ConstPixelBufferAccess& access, Vec4& minVal, Vec4& maxVal);
|
H A D | tcuImageCompare.cpp | 46 Vec4 minVal; in computeScaleAndBias() local 55 minVal = refMin; in computeScaleAndBias() 65 minVal[0] = de::min(minVal[0], resMin[0]); in computeScaleAndBias() 66 minVal[1] = de::min(minVal[1], resMin[1]); in computeScaleAndBias() 67 minVal[2] = de::min(minVal[2], resMin[2]); in computeScaleAndBias() 68 minVal[3] = de::min(minVal[ in computeScaleAndBias() [all...] |
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fShaderAlgorithmTests.cpp | 213 << "mediump float minVal = min(min(r, g), b);" in init() 215 << "mediump float L = (minVal + maxVal) * 0.5;" in init() 216 << "if (minVal == maxVal)" in init() 223 << " S = (maxVal - minVal) / (maxVal + minVal);" in init() 225 << " S = (maxVal - minVal) / (2.0 - maxVal - minVal);" in init() 227 << " mediump float ooDiff = 1.0 / (maxVal - minVal);" in init() 239 float minVal = min(min(r, g), b); in init() 241 float L = (minVal in init() [all...] |
H A D | es2fBufferTestUtil.cpp | 547 const float minVal = 0.1f; 555 i->x() = rnd.getFloat(minVal, maxVal); 556 i->y() = rnd.getFloat(minVal, maxVal); 557 i->z() = rnd.getFloat(minVal, maxVal);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
H A D | vktTextureCompressedFormatTests.cpp | 200 tcu::Vec4 minVal; in computeScaleAndBias() local 209 minVal = refMin; in computeScaleAndBias() 219 minVal[0] = de::min(minVal[0], resMin[0]); in computeScaleAndBias() 220 minVal[1] = de::min(minVal[1], resMin[1]); in computeScaleAndBias() 221 minVal[2] = de::min(minVal[2], resMin[2]); in computeScaleAndBias() 222 minVal[3] = de::min(minVal[ in computeScaleAndBias() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
H A D | vktTextureCompressedFormatTests.cpp | 200 tcu::Vec4 minVal; in computeScaleAndBias() local 209 minVal = refMin; in computeScaleAndBias() 219 minVal[0] = de::min(minVal[0], resMin[0]); in computeScaleAndBias() 220 minVal[1] = de::min(minVal[1], resMin[1]); in computeScaleAndBias() 221 minVal[2] = de::min(minVal[2], resMin[2]); in computeScaleAndBias() 222 minVal[3] = de::min(minVal[ in computeScaleAndBias() [all...] |
/third_party/vk-gl-cts/modules/gles2/accuracy/ |
H A D | es2aVaryingInterpolationTests.cpp | 101 InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective); 113 InterpolationCase::InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective) in InterpolationCase() argument 116 , m_min (minVal) in InterpolationCase() 300 Vec3 minVal; in init() member 323 addChild(new InterpolationCase(m_context, baseName.c_str(), "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, false)); in init() 324 addChild(new InterpolationCase(m_context, (baseName + "_proj").c_str(), "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, true)); in init()
|
/third_party/vk-gl-cts/modules/gles3/accuracy/ |
H A D | es3aVaryingInterpolationTests.cpp | 103 InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective); 115 InterpolationCase::InterpolationCase (Context& context, const char* name, const char* desc, glu::Precision precision, const tcu::Vec3& minVal, const tcu::Vec3& maxVal, bool projective) in InterpolationCase() argument 118 , m_min (minVal) in InterpolationCase() 306 Vec3 minVal; in init() member 329 addChild(new InterpolationCase(m_context, baseName.c_str(), "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, false)); in init() 330 addChild(new InterpolationCase(m_context, (baseName + "_proj").c_str(), "", (glu::Precision)precision, coordRanges[coordNdx].minVal, coordRanges[coordNdx].maxVal, true)); in init()
|
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/descrip/ |
H A D | EffectDescription.h | 33 constexpr ParamType(std::string_view name, float minVal, float maxVal, float defVal) : in ParamType() argument 35 kMinVal(minVal), in ParamType()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fFragmentOutputTests.cpp | 646 Vec4 minVal (range.x()); in iterate() 655 minVal = tcu::max(minVal, fmtInfo.valueMin); in iterate() 659 m_testCtx.getLog() << TestLog::Message << "out" << curInVec << " value range: " << valueRangeToString(numScalars, minVal, maxVal) << TestLog::EndMessage; in iterate() 671 Vec4 c = minVal + (maxVal-minVal)*f; in iterate() 682 IVec4 minVal (range.x()); in iterate() 694 minVal = select(minVal, tcu::max(minVal, fmtMinVa in iterate() [all...] |
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/ |
H A D | func_common.hpp | 168 /// Returns min(max(x, minVal), maxVal) for each component in x 169 /// using the floating-point values minVal and maxVal. 176 GLM_FUNC_DECL genType clamp(genType x, genType minVal, genType maxVal); 179 GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, T minVal, T maxVal); 182 GLM_FUNC_DECL vecType<T, P> clamp(vecType<T, P> const & x, vecType<T, P> const & minVal, vecType<T, P> const & maxVal);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineNoPositionTests.cpp | 738 const deUint32 minVal = ((m_params.selectedStages & (1u << stageIdx)) ? expectedCounters[stageIdx] : 0u); in iterate() local 740 const bool ok = ((minVal == 0u) in iterate() 742 : (storedVal == minVal) in iterate() 745 : ((storedVal % minVal) == 0u)); in iterate() 759 << " got " << storedVal << " but expected " << minVal; in iterate() local
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
H A D | vktPipelineNoPositionTests.cpp | 716 const deUint32 minVal = ((m_params.selectedStages & (1u << stageIdx)) ? expectedCounters[stageIdx] : 0u); in iterate() local 718 const bool ok = ((minVal == 0u) ? (storedVal == minVal) : (storedVal >= minVal)); in iterate() 733 << " got " << storedVal << " but expected " << minVal; in iterate() local
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
H A D | simd_vec4.hpp | 250 //! Returns min(max(x, minVal), maxVal) for each component in x 251 //! using the floating-point values minVal and maxVal. 256 detail::fvec4SIMD const & minVal, 261 float const & minVal,
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/simd/ |
H A D | common.h | 184 GLM_FUNC_QUALIFIER glm_vec4 glm_vec4_clamp(glm_vec4 v, glm_vec4 minVal, glm_vec4 maxVal) in glm_vec4_clamp() argument 187 glm_vec4 const max0 = _mm_max_ps(min0, minVal); in glm_vec4_clamp()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fShaderAtomicOpTests.cpp | 269 const int minVal = 1; in getInputs() local 274 *(int*)((deUint8*)inputs + stride*valNdx) = rnd.getInt(minVal, maxVal); in getInputs() 424 const int minVal = isSigned ? -maxVal : 0; 427 *(int*)((deUint8*)inputs + stride*valNdx) = rnd.getInt(minVal, maxVal); 506 const int minVal = isSigned ? -maxVal : 0; 509 *(int*)((deUint8*)inputs + stride*valNdx) = rnd.getInt(minVal, maxVal);
|
/third_party/vk-gl-cts/modules/glshared/ |
H A D | glsBufferTestUtil.cpp | 736 const float minVal = 0.1f; 744 i->x() = rnd.getFloat(minVal, maxVal); 745 i->y() = rnd.getFloat(minVal, maxVal); 746 i->z() = rnd.getFloat(minVal, maxVal);
|
H A D | glsRandomShaderCase.cpp | 188 float minVal = valueRange.getMin().component(compNdx).asFloat(); in init() local 196 dst[compNdx] = minVal + f * (maxVal-minVal); in init()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShaderGLSLstd450.cpp | 241 auto minVal = Operand(this, state, insn.word(6)); in EmitExtGLSLstd450() local 245 dst.move(i, Min(Max(x.Float(i), minVal.Float(i)), maxVal.Float(i))); in EmitExtGLSLstd450() 252 auto minVal = Operand(this, state, insn.word(6)); in EmitExtGLSLstd450() local 256 dst.move(i, Min(Max(x.Int(i), minVal.Int(i)), maxVal.Int(i))); in EmitExtGLSLstd450() 263 auto minVal = Operand(this, state, insn.word(6)); in EmitExtGLSLstd450() local 267 dst.move(i, Min(Max(x.UInt(i), minVal.UInt(i)), maxVal.UInt(i))); in EmitExtGLSLstd450() 958 auto minVal = Operand(this, state, insn.word(6)); in EmitExtGLSLstd450() local 962 auto clamp = NMin(NMax(x.Float(i), minVal.Float(i)), maxVal.Float(i)); in EmitExtGLSLstd450()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawNegativeViewportHeightTests.cpp | 744 int32_t minVal = 0; in genAxis() local 751 minVal = -kViewportMaxDim; in genAxis() 756 minVal = kFramebufferSize + 1; in genAxis() 760 const auto a = rnd.getInt(minVal, maxVal); in genAxis() 761 const auto b = rnd.getInt(minVal, maxVal); in genAxis()
|