Lines Matching refs:shader_source
610 std::string shader_source; in compile_shader_and_get_compilation_result() local
620 shader_source = API::shader_version_gpu5; in compile_shader_and_get_compilation_result()
625 shader_source = API::shader_version; in compile_shader_and_get_compilation_result()
636 shader_source += preamble_cs; in compile_shader_and_get_compilation_result()
639 shader_source += preamble_gs; in compile_shader_and_get_compilation_result()
642 shader_source += preamble_tcs; in compile_shader_and_get_compilation_result()
645 shader_source += preamble_tes; in compile_shader_and_get_compilation_result()
652 shader_source += tested_snippet; in compile_shader_and_get_compilation_result()
726 const char* code_ptr = shader_source.c_str(); in compile_shader_and_get_compilation_result()
789 typename TestCaseBase<API>::TestShaderType tested_shader_type, const std::string& shader_source) in execute_negative_test() argument
837 compile_status = compile_shader_and_get_compilation_result(shader_source, tested_shader_type); in execute_negative_test()
1295 std::string shader_source = ""; in test_shader_compilation() local
1298 shader_source += shader_start + " " + base_variable_string + " a"; in test_shader_compilation()
1304 shader_source += "[2]"; in test_shader_compilation()
1308 shader_source += ";\n"; in test_shader_compilation()
1311 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1314 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1345 std::string shader_source; in test_shader_compilation() local
1349 shader_source = example_struct; in test_shader_compilation()
1350 shader_source += shader_start; in test_shader_compilation()
1351 shader_source += " light[2]"; in test_shader_compilation()
1355 shader_source += "[2]"; in test_shader_compilation()
1358 shader_source += " x;\n"; in test_shader_compilation()
1361 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1364 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1392 std::string shader_source = structure_declaration; in test_shader_compilation() local
1394 shader_source += shader_start; in test_shader_compilation()
1397 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1400 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1420 std::string shader_source; in test_shader_compilation() local
1424 shader_source = example_struct; in test_shader_compilation()
1425 shader_source += shader_start; in test_shader_compilation()
1426 shader_source += this->extend_string(" light my_light_object", "[2]", max_dimension_index); in test_shader_compilation()
1427 shader_source += ";\n"; in test_shader_compilation()
1430 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1433 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1454 std::string shader_source; in test_shader_compilation() local
1458 shader_source = example_struct; in test_shader_compilation()
1462 shader_source += "[2]"; in test_shader_compilation()
1464 shader_source += ";\n\n"; in test_shader_compilation()
1465 shader_source += shader_start; in test_shader_compilation()
1468 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1471 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1490 std::string shader_source = shader_start; in test_shader_compilation() local
1492 shader_source += this->extend_string(" float", "[2]", max_dimension_index); in test_shader_compilation()
1493 …shader_source += this->extend_string(" x", "[2]", API::MAX_ARRAY_DIMENSIONS - max_dimension_index); in test_shader_compilation()
1494 shader_source += ";\n"; in test_shader_compilation()
1497 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1500 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1517 std::string shader_source = shader_start; in test_shader_compilation() local
1519 shader_source += this->extend_string(" float", "[2]", 2); in test_shader_compilation()
1520 shader_source += this->extend_string(" a", "[2]", 0); in test_shader_compilation()
1521 shader_source += ", "; in test_shader_compilation()
1522 shader_source += this->extend_string("b", "[2]", 1); in test_shader_compilation()
1523 shader_source += ", "; in test_shader_compilation()
1524 shader_source += this->extend_string("c", "[2]", 2); in test_shader_compilation()
1525 shader_source += ", "; in test_shader_compilation()
1526 shader_source += this->extend_string("d", "[2]", 3); in test_shader_compilation()
1527 shader_source += ", "; in test_shader_compilation()
1528 shader_source += this->extend_string("e", "[2]", 4); in test_shader_compilation()
1529 shader_source += ", "; in test_shader_compilation()
1530 shader_source += this->extend_string("f", "[2]", 5); in test_shader_compilation()
1531 shader_source += ", "; in test_shader_compilation()
1532 shader_source += this->extend_string("g", "[2]", 6); in test_shader_compilation()
1533 shader_source += ";\n"; in test_shader_compilation()
1536 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1539 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1555 std::string shader_source = "struct{\n" + this->extend_string(" float", "[2]", 2); in test_shader_compilation() local
1557 shader_source += this->extend_string(" a", "[2]", 0); in test_shader_compilation()
1558 shader_source += ","; in test_shader_compilation()
1559 shader_source += this->extend_string(" b", "[2]", 1); in test_shader_compilation()
1560 shader_source += ","; in test_shader_compilation()
1561 shader_source += this->extend_string(" c", "[2]", 2); in test_shader_compilation()
1562 shader_source += ","; in test_shader_compilation()
1563 shader_source += this->extend_string(" d", "[2]", 3); in test_shader_compilation()
1564 shader_source += ","; in test_shader_compilation()
1565 shader_source += this->extend_string(" e", "[2]", 4); in test_shader_compilation()
1566 shader_source += ","; in test_shader_compilation()
1567 shader_source += this->extend_string(" f", "[2]", 5); in test_shader_compilation()
1568 shader_source += ","; in test_shader_compilation()
1569 shader_source += this->extend_string(" g", "[2]", 6); in test_shader_compilation()
1570 shader_source += ";\n} x;\n\n"; in test_shader_compilation()
1571 shader_source += shader_start; in test_shader_compilation()
1574 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1577 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1598 std::string shader_source = example_struct_begin; in test_shader_compilation() local
1600 shader_source += this->extend_string(" float", "[2]", max_dimension_index); in test_shader_compilation()
1601 …shader_source += this->extend_string(" x", "[2]", API::MAX_ARRAY_DIMENSIONS - max_dimension_index); in test_shader_compilation()
1602 shader_source += ";\n"; in test_shader_compilation()
1603 shader_source += example_struct_end; in test_shader_compilation()
1604 shader_source += shader_start; in test_shader_compilation()
1607 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1610 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1630 std::string shader_source = example_struct_begin; in test_shader_compilation() local
1632 shader_source += this->extend_string(" float", "[2]", 2); in test_shader_compilation()
1633 shader_source += this->extend_string(" a", "[2]", 0); in test_shader_compilation()
1634 shader_source += ", "; in test_shader_compilation()
1635 shader_source += this->extend_string("b", "[2]", 2); in test_shader_compilation()
1636 shader_source += ", "; in test_shader_compilation()
1637 shader_source += this->extend_string("c", "[2]", 3); in test_shader_compilation()
1638 shader_source += ", "; in test_shader_compilation()
1639 shader_source += this->extend_string("d", "[2]", 4); in test_shader_compilation()
1640 shader_source += ", "; in test_shader_compilation()
1641 shader_source += this->extend_string("e", "[2]", 5); in test_shader_compilation()
1642 shader_source += ", "; in test_shader_compilation()
1643 shader_source += this->extend_string("f", "[2]", 6); in test_shader_compilation()
1644 shader_source += ";\n"; in test_shader_compilation()
1645 shader_source += example_struct_end; in test_shader_compilation()
1646 shader_source += shader_start; in test_shader_compilation()
1649 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1652 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1708 std::string shader_source = base_variable_string; in test_shader_compilation() local
1710 shader_source += shader_start; in test_shader_compilation()
1711 shader_source += " my_function("; in test_shader_compilation()
1715 shader_source += variable_basenames[dimension_index]; in test_shader_compilation()
1716 shader_source += ", "; in test_shader_compilation()
1719 shader_source += variable_basenames[dimension_index]; in test_shader_compilation()
1720 shader_source += ");\n"; in test_shader_compilation()
1723 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1726 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
1742 shader_source = base_variable_string; in test_shader_compilation()
1746 shader_source += shader_start; in test_shader_compilation()
1747 shader_source += " my_function("; in test_shader_compilation()
1751 shader_source += variable_basenames[dimension_index]; in test_shader_compilation()
1752 shader_source += ", "; in test_shader_compilation()
1755 shader_source += variable_basenames[dimension_index]; in test_shader_compilation()
1756 shader_source += ");\n"; in test_shader_compilation()
1763 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1766 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
1795 std::string shader_source; in test_shader_compilation() local
1797 shader_source = shader_start; in test_shader_compilation()
1798 shader_source += invalid_declarations[invalid_declarations_index]; in test_shader_compilation()
1801 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1804 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
1833 std::string shader_source; in test_shader_compilation() local
1835 shader_source = shader_start; in test_shader_compilation()
1836 shader_source += invalid_declarations[invalid_declarations_index]; in test_shader_compilation()
1839 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1842 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
1872 std::string shader_source; in test_shader_compilation() local
1874 shader_source = shader_start; in test_shader_compilation()
1875 shader_source += non_constant_variable_declaration; in test_shader_compilation()
1876 shader_source += invalid_declarations[invalid_declarations_index]; in test_shader_compilation()
1879 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1882 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
1904 std::string shader_source; in test_shader_compilation() local
1906 shader_source += shader_start; in test_shader_compilation()
1907 shader_source += input[string_index]; in test_shader_compilation()
1910 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
1913 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
1996 std::string shader_source = shader_start + base_variable_string; in test_shader_compilation() local
1999 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2002 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
2037 std::string shader_source = base_structure + shader_start + base_variable_string; in test_shader_compilation() local
2040 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2043 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
2067 std::string shader_source = shader_start + base_variable_string; in test_shader_compilation() local
2070 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2073 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2076 shader_source = base_variable_string + shader_start; in test_shader_compilation()
2079 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2082 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2118 …std::string shader_source = shader_start + " " + input[string_index] + shader_variable_declarat… in test_shader_compilation() local
2121 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2124 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
2141 …std::string shader_source = "const float[2][2] x = float[2][2](float[2](1.0, 2.0), float[2](3.0, 4… in test_shader_compilation() local
2142 shader_source += shader_start; in test_shader_compilation()
2145 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2148 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
2179 std::string shader_source = base_variable_string + shader_start; in test_shader_compilation() local
2180 …shader_source += " const " + var_iterator->second.type + "[2][2] x = " + var_iterator->second.t… in test_shader_compilation()
2185 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2188 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2218 std::string shader_source; in test_shader_compilation() local
2220 shader_source = shader_start; in test_shader_compilation()
2221 shader_source += invalid_initializers[invalid_initializers_index]; in test_shader_compilation()
2224 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2227 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2253 std::string shader_source; in test_shader_compilation() local
2255 shader_source = shader_start; in test_shader_compilation()
2256 shader_source += invalid_initializers[invalid_initializers_index]; in test_shader_compilation()
2259 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2262 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2288 std::string shader_source; in test_shader_compilation() local
2290 shader_source = shader_start; in test_shader_compilation()
2291 shader_source += non_constant_variable_init; in test_shader_compilation()
2292 shader_source += invalid_initializers[invalid_initializers_index]; in test_shader_compilation()
2295 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2298 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2330 std::string shader_source; in test_shader_compilation() local
2337 shader_source = shader_start; in test_shader_compilation()
2338 shader_source += variable_constructor; in test_shader_compilation()
2341 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2344 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
2367 std::string shader_source = shader_start; in test_shader_compilation() local
2369 shader_source += " float[] a =" in test_shader_compilation()
2477 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2480 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
2557 std::string shader_source = example_structure_definition + shader_start + base_variable_string; in test_shader_compilation() local
2560 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2563 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
2587 std::string shader_source = shader_start + base_variable_string; in test_shader_compilation() local
2590 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2593 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2614 std::string shader_source; in test_shader_compilation() local
2616 shader_source += shader_start; in test_shader_compilation()
2617 shader_source += input[string_index]; in test_shader_compilation()
2620 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2623 EXECUTE_SHADER_TEST(API::ALLOW_UNSIZED_DECLARATION, tested_shader_type, shader_source); in test_shader_compilation()
2642 std::string shader_source = shader_start + base_variable_string; in test_shader_compilation() local
2645 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2648 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2669 std::string shader_source = example_struct + shader_start; in test_shader_compilation() local
2672 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2675 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2748 std::string shader_source = shader_start + base_variable_string; in test_shader_compilation() local
2750 shader_source += " x = y;\n"; in test_shader_compilation()
2753 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2756 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
2792 std::string shader_source = shader_start + shader_body; in test_shader_compilation() local
2797 …shader_source += " " + variable_basenames[variable_index] + " = " + variable_basenames[value_in… in test_shader_compilation()
2798 shader_source += ";\n"; in test_shader_compilation()
2801 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2804 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2854 std::string shader_source = shader_start + base_variable_string; in test_shader_compilation() local
2856 shader_source += " b = a;\n"; in test_shader_compilation()
2859 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2862 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2889 std::string shader_source = in test_shader_compilation() local
2893 shader_source += shader_start; in test_shader_compilation()
2895 shader_source += " var1 = var2;\n"; in test_shader_compilation()
2898 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2901 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2932 std::string shader_source = in test_shader_compilation() local
2944 shader_source += shader_start; in test_shader_compilation()
2946 shader_source += in test_shader_compilation()
2949 shader_source += " light1 y = x;\n\n"; in test_shader_compilation()
2952 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2955 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
2984 …std::string shader_source = shader_start + " " + var_iterator->second.type + " x[1][2][3][4];\n… in test_shader_compilation() local
2986 shader_source += " for (uint i = 0u; i < 2u; i++) {\n"; in test_shader_compilation()
2987 shader_source += " for (uint j = 0u; j < 3u; j++) {\n"; in test_shader_compilation()
2988 shader_source += " for (uint k = 0u; k < 4u; k++) {\n"; in test_shader_compilation()
2989 …shader_source += " x[0][i][j][k] = " + var_iterator->second.initializer_with_ones +… in test_shader_compilation()
2990 shader_source += " }\n"; in test_shader_compilation()
2991 shader_source += " }\n"; in test_shader_compilation()
2992 shader_source += " }\n"; in test_shader_compilation()
2995 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
2998 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
3020 std::string base_shader_string, shader_source; in test_shader_compilation() local
3032 shader_source = base_shader_string + " a"; // a var called 'a' in test_shader_compilation()
3041 shader_source += "[0]"; in test_shader_compilation()
3045 shader_source += "[-1]"; in test_shader_compilation()
3049 shader_source += " = b;\n"; in test_shader_compilation()
3054 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
3057 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
3076 std::string shader_source; in test_shader_compilation() local
3085 shader_source = base_shader_string + " a"; in test_shader_compilation()
3091 shader_source += "[0]"; in test_shader_compilation()
3095 shader_source += "[4]"; in test_shader_compilation()
3099 shader_source += " = b;\n"; in test_shader_compilation()
3104 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
3107 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
3126 std::string shader_source; in test_shader_compilation() local
3136 shader_source = base_shader_string + " a"; in test_shader_compilation()
3142 shader_source += "[0]"; in test_shader_compilation()
3146 shader_source += "[]"; in test_shader_compilation()
3150 shader_source += " = b;\n"; in test_shader_compilation()
3155 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
3158 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
3176 std::string shader_source; in test_shader_compilation() local
3197 shader_source = variable_declaration + shader_start; in test_shader_compilation()
3198 shader_source += " " + variable_initializations[string_index]; in test_shader_compilation()
3201 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
3204 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
3285 std::string shader_source = shader_code_common_part + iteration_specific_shader_code_part; in test_shader_compilation() local
3288 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
3291 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
3312 …std::string shader_source = shader_start + this->extend_string(" float x", "[2]", (int)string_i… in test_shader_compilation() local
3316 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
3319 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
3342 std::string shader_source; in test_shader_compilation() local
3348 shader_source = expression_type_declarations; in test_shader_compilation()
3349 shader_source += shader_start; in test_shader_compilation()
3350 shader_source += " x["; in test_shader_compilation()
3351 shader_source += expressions[write_index]; in test_shader_compilation()
3352 shader_source += "]["; in test_shader_compilation()
3353 shader_source += expressions[read_index]; in test_shader_compilation()
3354 shader_source += "] = 1.0;\n\n"; in test_shader_compilation()
3357 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
3360 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
3404 std::string shader_source = "int y = 1;\n"; in test_shader_compilation() local
3406 shader_source += "uniform " + var_iterator->second.precision + " " + var_iterator->second.type + in test_shader_compilation()
3408 shader_source += "void main()\n"; in test_shader_compilation()
3409 shader_source += "{\n"; in test_shader_compilation()
3410 shader_source += (" " + var_iterator->second.type_of_result_of_texture_function + in test_shader_compilation()
3415 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
3419 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, true); in test_shader_compilation()
3423 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
3455 std::string shader_source = shader_start; in test_shader_compilation() local
3457 shader_source += " "; in test_shader_compilation()
3458 shader_source += var_iterator->second.type; in test_shader_compilation()
3459 shader_source += "[][] x = "; in test_shader_compilation()
3460 shader_source += var_iterator->second.type; in test_shader_compilation()
3461 shader_source += "[][]("; in test_shader_compilation()
3462 shader_source += var_iterator->second.type; in test_shader_compilation()
3463 shader_source += "[]("; in test_shader_compilation()
3464 shader_source += var_iterator->second.initializer_with_zeroes; in test_shader_compilation()
3465 shader_source += ","; in test_shader_compilation()
3466 shader_source += var_iterator->second.initializer_with_zeroes; in test_shader_compilation()
3467 shader_source += "),"; in test_shader_compilation()
3468 shader_source += var_iterator->second.type; in test_shader_compilation()
3469 shader_source += "[]("; in test_shader_compilation()
3470 shader_source += var_iterator->second.initializer_with_zeroes; in test_shader_compilation()
3471 shader_source += ","; in test_shader_compilation()
3472 shader_source += var_iterator->second.initializer_with_zeroes; in test_shader_compilation()
3473 shader_source += "));\n"; in test_shader_compilation()
3474 shader_source += " "; in test_shader_compilation()
3475 shader_source += var_iterator->second.type; in test_shader_compilation()
3476 shader_source += "[][] y = "; in test_shader_compilation()
3477 shader_source += var_iterator->second.type; in test_shader_compilation()
3478 shader_source += "[][]("; in test_shader_compilation()
3479 shader_source += var_iterator->second.type; in test_shader_compilation()
3480 shader_source += "[]("; in test_shader_compilation()
3481 shader_source += var_iterator->second.initializer_with_zeroes; in test_shader_compilation()
3482 shader_source += ","; in test_shader_compilation()
3483 shader_source += var_iterator->second.initializer_with_zeroes; in test_shader_compilation()
3484 shader_source += "),"; in test_shader_compilation()
3485 shader_source += var_iterator->second.type; in test_shader_compilation()
3486 shader_source += "[]("; in test_shader_compilation()
3487 shader_source += var_iterator->second.initializer_with_zeroes; in test_shader_compilation()
3488 shader_source += ","; in test_shader_compilation()
3489 shader_source += var_iterator->second.initializer_with_zeroes; in test_shader_compilation()
3490 shader_source += "));\n\n"; in test_shader_compilation()
3491 shader_source += " float result = 0.0;\n\n"; in test_shader_compilation()
3492 shader_source += " if (x == y)\n"; in test_shader_compilation()
3493 shader_source += " {\n"; in test_shader_compilation()
3494 shader_source += " result = 1.0;\n"; in test_shader_compilation()
3495 shader_source += " }\n"; in test_shader_compilation()
3496 shader_source += " if (y != x)\n"; in test_shader_compilation()
3497 shader_source += " {\n"; in test_shader_compilation()
3498 shader_source += " result = 2.0;\n"; in test_shader_compilation()
3499 shader_source += " }\n"; in test_shader_compilation()
3502 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
3505 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
3535 std::string shader_source = "struct light {\n float intensity;\n int position;\n};\n\n"; in test_shader_compilation() local
3537 shader_source += shader_start; in test_shader_compilation()
3538 shader_source += " light[][] x ="; in test_shader_compilation()
3539 shader_source += "light"; in test_shader_compilation()
3540 shader_source += "[][]("; in test_shader_compilation()
3541 shader_source += "light"; in test_shader_compilation()
3542 shader_source += "[](light(1.0, 1)),"; in test_shader_compilation()
3543 shader_source += "light"; in test_shader_compilation()
3544 shader_source += "[](light(2.0, 2)));\n\n"; in test_shader_compilation()
3545 shader_source += " light[][] y ="; in test_shader_compilation()
3546 shader_source += "light"; in test_shader_compilation()
3547 shader_source += "[][]("; in test_shader_compilation()
3548 shader_source += "light"; in test_shader_compilation()
3549 shader_source += "[](light(3.0, 3)),"; in test_shader_compilation()
3550 shader_source += "light"; in test_shader_compilation()
3551 shader_source += "[](light(4.0, 4)));\n\n"; in test_shader_compilation()
3552 shader_source += " float result = 0.0;\n\n"; in test_shader_compilation()
3553 shader_source += " if (x == y)\n"; in test_shader_compilation()
3554 shader_source += " {\n"; in test_shader_compilation()
3555 shader_source += " result = 1.0;\n"; in test_shader_compilation()
3556 shader_source += " }\n"; in test_shader_compilation()
3557 shader_source += " if (y != x)\n"; in test_shader_compilation()
3558 shader_source += " {\n"; in test_shader_compilation()
3559 shader_source += " result = 2.0;\n"; in test_shader_compilation()
3560 shader_source += " }\n"; in test_shader_compilation()
3566 shader_source += "\n gl_Position = vec4(0.0,0.0,0.0,1.0);\n"; in test_shader_compilation()
3569 shader_source += "\n gl_FragDepth = result;\n"; in test_shader_compilation()
3574 shader_source += emit_quad; in test_shader_compilation()
3577 shader_source += set_tesseation; in test_shader_compilation()
3587 shader_source += shader_end; in test_shader_compilation()
3590 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
4289 std::string shader_source; in test_shader_compilation() local
4295 shader_source = this->prepare_vertex_shader(tested_shader_type, array_declaration, test_snippet); in test_shader_compilation()
4299 …shader_source = this->prepare_fragment_shader(tested_shader_type, array_declaration, test_snippet); in test_shader_compilation()
4303 … shader_source = this->prepare_compute_shader(tested_shader_type, array_declaration, test_snippet); in test_shader_compilation()
4307 …shader_source = this->prepare_geometry_shader(tested_shader_type, array_declaration, test_snippet); in test_shader_compilation()
4311 …shader_source = this->prepare_tess_ctrl_shader(tested_shader_type, array_declaration, test_snippet… in test_shader_compilation()
4315 …shader_source = this->prepare_tess_eval_shader(tested_shader_type, array_declaration, test_snippet… in test_shader_compilation()
4323 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
4343 std::string shader_source = shader_start + shader_variable_declarations; in test_shader_compilation() local
4345 shader_source += " y = x;\n"; in test_shader_compilation()
4347 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
4349 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
4413 std::string shader_source; in test_shader_compilation() local
4415 shader_source = base_variable_string + "\n"; in test_shader_compilation()
4416 shader_source += shader_start + valid_relation_opeartors; in test_shader_compilation()
4418 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
4420 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
4428 std::string shader_source; in test_shader_compilation() local
4430 shader_source = base_variable_string + "\n"; in test_shader_compilation()
4431 shader_source += shader_start + variable_relation_opeartors[string_index]; in test_shader_compilation()
4433 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
4435 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
6720 std::string shader_source = base_variable_string + shader_start; in test_shader_compilation() local
6723 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
6736 tested_shader_type, shader_source); in test_shader_compilation()
6783 std::string shader_source; in test_shader_compilation() local
6785 shader_source += "uniform uBlocka {\n"; in test_shader_compilation()
6786 shader_source += " " + var_iterator->second.type + " x[1][1][1][1][1][1];\n"; in test_shader_compilation()
6787 shader_source += "};\n\n"; in test_shader_compilation()
6788 shader_source += shader_start; in test_shader_compilation()
6791 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
6794 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
7138 std::string shader_source; in test_shader_compilation() local
7140 shader_source = "layout (std140) uniform MyUniform {\n"; in test_shader_compilation()
7141 shader_source += " " + var_iterator->second.type + in test_shader_compilation()
7143 shader_source += "};\n\n"; in test_shader_compilation()
7144 shader_source += shader_start; in test_shader_compilation()
7147 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
7151 tested_shader_type, shader_source); in test_shader_compilation()
7175 std::string shader_source; in test_shader_compilation() local
7177 shader_source = "layout (std140) uniform MyUniform {\n"; in test_shader_compilation()
7178 shader_source += " " + var_iterator->second.type + in test_shader_compilation()
7181 shader_source += "};\n\n"; in test_shader_compilation()
7182 shader_source += shader_start; in test_shader_compilation()
7185 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
7188 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()
7234 std::string shader_source; in test_shader_compilation() local
7236 shader_source += "buffer uBlocka {\n"; in test_shader_compilation()
7237 shader_source += " " + var_iterator->second.type + " x[1][1][1][1][1][1];\n"; in test_shader_compilation()
7238 shader_source += "};\n\n"; in test_shader_compilation()
7239 shader_source += shader_start; in test_shader_compilation()
7242 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
7245 EXECUTE_POSITIVE_TEST(tested_shader_type, shader_source, true, false); in test_shader_compilation()
7589 std::string shader_source; in test_shader_compilation() local
7591 shader_source = "layout (std140) buffer MyStorage {\n"; in test_shader_compilation()
7592 shader_source += " " + var_iterator->second.type + in test_shader_compilation()
7594 shader_source += "};\n\n"; in test_shader_compilation()
7595 shader_source += shader_start; in test_shader_compilation()
7598 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
7602 tested_shader_type, shader_source); in test_shader_compilation()
7626 std::string shader_source; in test_shader_compilation() local
7628 shader_source = "layout (std140) buffer MyStorage {\n"; in test_shader_compilation()
7629 shader_source += " " + var_iterator->second.type + in test_shader_compilation()
7632 shader_source += "};\n\n"; in test_shader_compilation()
7633 shader_source += shader_start; in test_shader_compilation()
7636 DEFAULT_MAIN_ENDING(tested_shader_type, shader_source); in test_shader_compilation()
7639 this->execute_negative_test(tested_shader_type, shader_source); in test_shader_compilation()