Lines Matching +defs:string +defs:equal
532 std::string Utils::getFPVariableTypeStringForVariableType(_variable_type type)
534 std::string result = "[?]";
1218 /** Returns a string holding the value represented by user-provided variable, for which
1223 std::string Utils::getStringForVariableTypeValue(_variable_type type, const unsigned char* data_ptr)
1336 std::string Utils::getVariableTypeString(_variable_type type)
1338 std::string result = "[?]";
1493 /* Major is equal to required one */
1494 /* Minor is higher than or equal to required one */
1499 /* Major is equal to required one */
1559 /** Replace first occurance of <token> with <text> in <string> starting at <search_posistion>
1561 * @param token Token string
1564 * @param string String to work on
1567 std::string& string)
1571 const size_t token_position = string.find(token, search_position);
1573 string.replace(token_position, token_length, text, text_length);
1675 /** Returns a string describing GL API function represented by user-provided enum.
1677 * @param func Uniform function to return the string for.
2202 * equal to -1.
3590 std::string uniform_name_str;
3685 std::string& out_source_code) const
3699 std::string string = boilerplate_shader_template_code;
3708 Utils::replaceToken(layout_token, search_position, stage_specific_layout, string);
3709 Utils::replaceToken(body_token, search_position, stage_specific_main_body, string);
3712 out_source_code = string;
3798 std::string compute_shader_code;
3799 std::string fragment_shader_code;
3800 std::string geometry_shader_code;
3801 std::string tess_ctrl_shader_code;
3802 std::string tess_eval_shader_code;
3803 std::string vertex_shader_code;
3806 std::string uniform_definitions;
3807 std::string uniform_verification;
3998 std::string& out_source_code) const
4017 std::string string = test_shader_template_code;
4030 Utils::replaceToken(layout_token, search_position, stage_specific_layout, string);
4031 Utils::replaceToken(uni_def_token, search_position, uniform_definitions, string);
4032 Utils::replaceToken(in_var_token, search_position, in_variable_definitions, string);
4033 Utils::replaceToken(out_var_token, search_position, out_variable_definitions, string);
4034 Utils::replaceToken(uni_ver_token, search_position, uniform_verification, string);
4035 Utils::replaceToken(body_token, search_position, stage_specific_main_body, string);
4038 out_source_code = string;
4049 std::string& out_source_code) const
4072 std::string string = test_shader_template_code;
4081 Utils::replaceToken(uni_def_token, search_position, uniform_definitions, string);
4082 Utils::replaceToken(uni_ver_token, search_position, uniform_verification, string);
4085 out_source_code = string;
4095 std::string& out_source_code) const
4208 std::string& out_source_code) const
4935 std::string uniform_name_str;
6477 std::string uniform_prefix = std::string(uniform_prefixes[n_uniform_prefix]);
6478 std::string uniform_double_name = uniform_prefix + "double";
6479 std::string uniform_double_arr0_name = uniform_prefix + "double_arr[0]";
6480 std::string uniform_double_arr1_name = uniform_prefix + "double_arr[1]";
6481 std::string uniform_dvec2_name = uniform_prefix + "dvec2";
6482 std::string uniform_dvec2_arr0_name = uniform_prefix + "dvec2_arr[0]";
6483 std::string uniform_dvec2_arr1_name = uniform_prefix + "dvec2_arr[1]";
6484 std::string uniform_dvec3_name = uniform_prefix + "dvec3";
6485 std::string uniform_dvec3_arr0_name = uniform_prefix + "dvec3_arr[0]";
6486 std::string uniform_dvec3_arr1_name = uniform_prefix + "dvec3_arr[1]";
6487 std::string uniform_dvec4_name = uniform_prefix + "dvec4";
6488 std::string uniform_dvec4_arr0_name = uniform_prefix + "dvec4_arr[0]";
6489 std::string uniform_dvec4_arr1_name = uniform_prefix + "dvec4_arr[1]";
6490 std::string uniform_arr0_double_name = uniform_prefix + "array[0].struct_double";
6491 std::string uniform_arr0_dvec2_name = uniform_prefix + "array[0].struct_dvec2";
6492 std::string uniform_arr0_dvec3_name = uniform_prefix + "array[0].struct_dvec3";
6493 std::string uniform_arr0_dvec4_name = uniform_prefix + "array[0].struct_dvec4";
6494 std::string uniform_arr1_double_name = uniform_prefix + "array[1].struct_double";
6495 std::string uniform_arr1_dvec2_name = uniform_prefix + "array[1].struct_dvec2";
6496 std::string uniform_arr1_dvec3_name = uniform_prefix + "array[1].struct_dvec3";
6497 std::string uniform_arr1_dvec4_name = uniform_prefix + "array[1].struct_dvec4";
6821 /* Prefix the names with stage-specific string */
6826 current_item.name = std::string(stage_prefix) + current_item.name;
7422 void GPUShaderFP64Test5::getSwizzleTypeProperties(_swizzle_type type, std::string* out_swizzle_string,
7427 std::string result_swizzle_string;
7595 std::string GPUShaderFP64Test5::getVertexShaderBody(const _test_case& test_case)
7598 const std::string base_type_string = Utils::getVariableTypeString(Utils::getBaseVariableType(test_case.src_type));
7599 const std::string dst_type_string = Utils::getVariableTypeString(test_case.dst_type);
7602 const std::string src_type_string = Utils::getVariableTypeString(test_case.src_type);
7704 std::string swizzle_string;
7741 std::string body = getVertexShaderBody(test_case);
8339 * @return Requested string.
8341 std::string GPUShaderFP64Test6::getComputeShaderBody(const _test_case& test_case)
8395 * @return Requested string.
8397 std::string GPUShaderFP64Test6::getFragmentShaderBody(const _test_case& test_case)
8448 * @return Requested string.
8450 std::string GPUShaderFP64Test6::getGeometryShaderBody(const _test_case& test_case)
8505 * @return Requested string.
8507 std::string GPUShaderFP64Test6::getTessellationControlShaderBody(const _test_case& test_case)
8565 * @return Requested string.
8567 std::string GPUShaderFP64Test6::getTessellationEvaluationShaderBody(const _test_case& test_case)
8625 * @return Requested string.
8627 std::string GPUShaderFP64Test6::getVertexShaderBody(const _test_case& test_case)
8861 std::string fs_body = getFragmentShaderBody(variables);
8863 std::string gs_body = getGeometryShaderBody(variables);
8864 std::string tc_body = getTessellationControlShaderBody(variables);
8865 std::string te_body = getTessellationEvaluationShaderBody(variables);
8866 std::string vs_body = getVertexShaderBody(variables);
8981 bool GPUShaderFP64Test7::compileShader(glw::GLint shader_id, const std::string& body)
9310 * @return Requested string.
9312 std::string GPUShaderFP64Test7::getCodeOfFragmentShaderWithNonFlatDoublePrecisionInput(
9364 * @return Requested string.
9366 std::string GPUShaderFP64Test7::getCodeOfFragmentShaderWithDoublePrecisionOutput(
9372 std::string output_variable_type_string = Utils::getVariableTypeString(output_variable_type);
9399 * @return Requested string.
9401 std::string GPUShaderFP64Test7::getFragmentShaderBody(const _variables& variables)
9436 std::string variable_type_string = Utils::getVariableTypeString(variable_type);
9502 std::string variable_type_string = Utils::getVariableTypeString(variable_type);
9576 * @return Requested string.
9578 std::string GPUShaderFP64Test7::getGeometryShaderBody(const _variables& variables)
9622 std::string variable_type_string = Utils::getVariableTypeString(variable_type);
9668 * @return Requested string.
9670 std::string GPUShaderFP64Test7::getTessellationControlShaderBody(const _variables& variables)
9710 std::string variable_type_string = Utils::getVariableTypeString(variable_type);
9750 * @return Requested string.
9752 std::string GPUShaderFP64Test7::getTessellationEvaluationShaderBody(const _variables& variables)
9787 std::string variable_type_string = Utils::getVariableTypeString(variable_type);
9821 /** Returns a string containing declarations of user-specified set of variables.
9825 * @param variables List of variables to declare in the result string.
9831 * @return Requested string.
9833 std::string GPUShaderFP64Test7::getVariableDeclarations(const char* prefix, const _variables& variables,
9845 std::string variable_type_string = Utils::getVariableTypeString(variable_type);
9865 * @return Requested string.
9867 std::string GPUShaderFP64Test7::getVertexShaderBody(const _variables& variables)
9902 std::string variable_type_string = Utils::getVariableTypeString(variable_type);
10700 * @return Requested string.
10702 std::string GPUShaderFP64Test8::getComputeShaderBody(const _test_case& test_case)
10725 * @return Requested string.
10727 std::string GPUShaderFP64Test8::getFragmentShaderBody(const _test_case& test_case)
10750 std::string GPUShaderFP64Test8::getGeneralBody(const _test_case& test_case)
10755 std::string variable_type_string = Utils::getVariableTypeString(test_case.type);
10763 std::string argument_variable_type_string = Utils::getVariableTypeString(argument_variable_type);
10796 * @return Requested string.
10798 std::string GPUShaderFP64Test8::getGeometryShaderBody(const _test_case& test_case)
10822 * @return Requested string.
10824 std::string GPUShaderFP64Test8::getTessellationControlShaderBody(const _test_case& test_case)
10847 * @return Requested string.
10849 std::string GPUShaderFP64Test8::getTessellationEvaluationShaderBody(const _test_case& test_case)
10872 * @return Requested string.
10874 std::string GPUShaderFP64Test8::getVertexShaderBody(const _test_case& test_case)
11336 /** Returns a string representing user-specified operation type.
11340 * @return Requested string.
11342 std::string GPUShaderFP64Test9::getOperationTypeString(const _operation_type& operation_type)
11344 std::string result = "[?]";
11389 std::string GPUShaderFP64Test9::getVertexShaderBody(_test_case& test_case)
11392 std::string result_variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11393 std::string variable_type_fp_string = Utils::getFPVariableTypeStringForVariableType(test_case.variable_type);
11394 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11454 std::string ref2_variable_type_fp_string =
11456 std::string ref2_variable_type_string = Utils::getVariableTypeString(compatible_variable_type);
11457 std::string ref2_variable_type = (n_ref2_case == 0) ? ref2_variable_type_fp_string : ref2_variable_type_string;
11458 std::string ref2_variable_name = (n_ref2_case == 0) ? "reference2f" : "reference2";
11579 std::string vs_body = getVertexShaderBody(test_case);
11863 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11864 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11892 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11893 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11911 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11912 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11914 m_testCtx.getLog() << tcu::TestLog::Message << "Values reported for lower-than-or-equal operator used for "
11930 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11931 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11949 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11950 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
11953 << "Values reported for greater-than-or-equal operator used for "
11972 std::string operation_type_string = getOperationTypeString(test_case.operation_type);
11973 std::string variable_type_string = Utils::getVariableTypeString(test_case.variable_type);
12167 static tcu::Vector<glw::GLuint, Size> equal(const tcu::Vector<glw::GLdouble, Size>& left,
12397 static tcu::Vector<glw::GLuint, Size> equal(const tcu::Vector<glw::GLdouble, Size>& left,
12400 return convertBvecToUvec(tcu::equal(left, right));
12752 std::string name;
12770 * - equal();
12826 BuiltinFunctionTest(deqp::Context& context, std::string caseName, FunctionEnum function,
12894 std::string m_type_name;
12962 std::string m_vertex_shader_code;
13488 BuiltinFunctionTest::BuiltinFunctionTest(deqp::Context& context, std::string caseName, FunctionEnum function,
13805 * @return true if values are equal, false otherwise
14005 function, "equal", Math::equal);
14008 function, "equal", Math::equal);
14011 function, "equal", Math::equal);
15021 std::string result_type = Utils::getVariableTypeString(function_object.getResultType(0));
15024 std::string string = shader_template_code;
15031 std::string uniform_type = Utils::getVariableTypeString(argument_type);
15033 Utils::replaceToken(argument_definition_token, search_position, argument_definition, string);
15037 Utils::replaceToken(uniform_type_token, search_position, uniform_type.c_str(), string);
15038 Utils::replaceToken(uniform_name_token, search_position, uniform_name, string);
15042 Utils::replaceToken(argument_definition_token, search_position, "", string);
15049 std::string varying_type = Utils::getVariableTypeString(variable_type);
15051 Utils::replaceToken(result_definition_token, search_position, result_definition, string);
15055 Utils::replaceToken(result_type_token, search_position, varying_type.c_str(), string);
15056 Utils::replaceToken(result_name_token, search_position, varying_name, string);
15060 Utils::replaceToken(result_definition_token, search_position, "", string);
15063 Utils::replaceToken(result_name_token, search_position, getVaryingName(0), string);
15066 Utils::replaceToken(result_type_token, search_position, result_type.c_str(), string);
15069 Utils::replaceToken(function_name_token, search_position, function_object.getName(), string);
15078 Utils::replaceToken(argument_token, search_position, first_argument, string);
15082 Utils::replaceToken(argument_token, search_position, argument_str, string);
15087 Utils::replaceToken(uniform_name_token, search_position, uniform_name, string);
15094 Utils::replaceToken(argument_token, search_position, argument_str, string);
15098 Utils::replaceToken(uniform_name_token, search_position, varying_name, string);
15102 Utils::replaceToken(argument_token, search_position, "", string);
15104 m_vertex_shader_code = string;
15304 // if coresponding components of arguments are equal and if component of first argument
15305 // and component of result are equal then expected result must be corrected
15451 std::string name;
15462 { "equal", FUNCTION_EQUAL },
15512 std::string caseName = bf.name + "_" + typeDefinition[j].name;