Lines Matching defs:function

23  * \brief Shader derivate function tests.
431 const Linear2DFunctionEvaluator& function)
467 // * non-linearity may happen around zero or with very high function values due to subnorms not
470 ? (function.evaluateAt((float)x + 2.0f, (float)y + 0.5f))
471 : (function.evaluateAt((float)x + 0.5f, (float)y + 2.0f));
473 ? (function.evaluateAt((float)x - 1.0f, (float)y + 0.5f))
474 : (function.evaluateAt((float)x + 0.5f, (float)y - 1.0f));
1075 Linear2DFunctionEvaluator function;
1077 function.matrix.setRow(0, tcu::Vec3(valueRamp.x() / w, 0.0f, m_values.coordMin.x()));
1078 function.matrix.setRow(1, tcu::Vec3(0.0f, valueRamp.y() / h, m_values.coordMin.y()));
1079 function.matrix.setRow(2, tcu::Vec3(valueRamp.z() / w, valueRamp.z() / h, m_values.coordMin.z() + m_values.coordMin.z()) / 2.0f);
1080 function.matrix.setRow(3, tcu::Vec3(-valueRamp.w() / w, -valueRamp.w() / h, m_values.coordMax.w() + m_values.coordMax.w()) / 2.0f);
1085 function);
1377 Linear2DFunctionEvaluator function;
1379 function.matrix.setRow(0, tcu::Vec3(valueRamp.x() / w, 0.0f, m_textureValues.texValueMin.x()));
1380 function.matrix.setRow(1, tcu::Vec3(0.0f, valueRamp.y() / h, m_textureValues.texValueMin.y()));
1381 function.matrix.setRow(2, tcu::Vec3(valueRamp.z() / w, valueRamp.z() / h, m_textureValues.texValueMin.z() + m_textureValues.texValueMin.z()) / 2.0f);
1382 function.matrix.setRow(3, tcu::Vec3(-valueRamp.w() / w, -valueRamp.w() / h, m_textureValues.texValueMax.w() + m_textureValues.texValueMax.w()) / 2.0f);
1387 function);
1590 DerivateFunc function;
1596 , function (function_)
1634 "Derivate of linear function argument",
1962 const DerivateFunc function = DerivateFunc(funcNdx);
1963 de::MovePtr<tcu::TestCaseGroup> functionGroup (new tcu::TestCaseGroup(m_testCtx, getDerivateFuncCaseName(function)));
1966 if (!isSubgroupFunc(function))
1974 constantGroup->addChild(new ConstantDerivateCase(m_testCtx, glu::getDataTypeName(dataType), function, dataType));
1981 if (!isSubgroupFunc(function))
2003 linearCaseGroup->addChild(new LinearDerivateCase(m_testCtx, caseName.str(), function, dataType, precision, s_linearDerivateCases[caseNdx].inNonUniformControlFlow, surfaceType, numSamples, source, s_linearDerivateCases[caseNdx].usedDefaultUniform));
2016 const char* source = function == DERIVATE_DFDXSUBGROUP ? dFdxSubgroupSource :
2017 function == DERIVATE_DFDYSUBGROUP ? dFdySubgroupSource :
2035 fboGroup->addChild(new LinearDerivateCase(m_testCtx, caseName.str(), function, dataType, precision, false, surfaceType, numSamples, source, U_LAST));
2043 if (!isSubgroupFunc(function))
2066 caseGroup->addChild(new TextureDerivateCase(m_testCtx, caseName.str(), function, dataType, precision, surfaceType, numSamples));