Lines Matching defs:Utils
44 class Utils
360 typedef std::vector<Utils::QUALIFIERS> qualifierSet;
398 static std::string getBlockVariableDefinition(const Utils::qualifierSet& qualifiers, const glw::GLchar* type_name,
404 static std::string getVariableDefinition(VARIABLE_FLAVOUR flavour, const Utils::qualifierSet& qualifiers,
407 static VARIABLE_FLAVOUR getVariableFlavour(Utils::SHADER_STAGES stage, Utils::VARIABLE_STORAGE storage,
408 const Utils::qualifierSet& qualifiers);
410 static std::string getVariableName(Utils::SHADER_STAGES stage, Utils::VARIABLE_STORAGE storage,
415 static void prepareBlockVariableStrings(Utils::SHADER_STAGES in_stage, Utils::VARIABLE_STORAGE in_storage,
416 const Utils::qualifierSet& in_qualifiers, const glw::GLchar* in_type_name,
420 static void prepareVariableStrings(Utils::SHADER_STAGES in_stage, Utils::VARIABLE_STORAGE in_storage,
421 const Utils::qualifierSet& in_qualifiers, const glw::GLchar* in_type_name,
433 static bool checkUniformBinding(Utils::program& program, const glw::GLchar* name, glw::GLint expected_binding);
434 static bool checkUniformArrayBinding(Utils::program& program, const glw::GLchar* name, glw::GLuint index,
464 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
465 Utils::shaderSource& out_source) = 0;
466 virtual void prepareUniforms(Utils::program& program);
472 const glw::GLchar* getStageSpecificLayout(Utils::SHADER_STAGES stage) const;
473 const glw::GLchar* getVersionString(Utils::SHADER_STAGES stage, bool use_version_400) const;
474 void initShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400, Utils::shaderSource& out_source);
475 int maxImageUniforms(Utils::SHADER_STAGES stage) const;
504 virtual bool checkResults(Utils::program& program) = 0;
506 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
507 Utils::shaderSource& out_source) = 0;
527 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
528 Utils::shaderSource& out_source) = 0;
530 virtual const glw::GLchar* prepareSourceTexture(Utils::texture& texture);
532 virtual void prepareVertexBuffer(const Utils::program& program, Utils::buffer& buffer, Utils::vertexArray& vao);
539 void bindTextureToimage(Utils::program& program, Utils::texture& texture, const glw::GLchar* uniform_name) const;
541 void bindTextureToSampler(Utils::program& program, Utils::texture& texture, const glw::GLchar* uniform_name) const;
543 bool checkResults(Utils::texture& color_texture) const;
545 void prepareFramebuffer(Utils::framebuffer& framebuffer, Utils::texture& color_texture) const;
547 void prepareImage(Utils::program& program, Utils::texture& color_texture) const;
574 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
575 Utils::shaderSource& out_source) = 0;
591 void prepareBuffer(Utils::buffer& buffer, glw::GLuint color);
593 void prepareTexture(Utils::texture& texture, const Utils::buffer& buffer, Utils::TEXTURE_TYPES texture_type,
596 bool verifyBuffer(const Utils::buffer& buffer) const;
597 bool verifyTexture(const Utils::texture& texture) const;
698 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
699 Utils::shaderSource& out_source);
701 virtual const glw::GLchar* prepareSourceTexture(Utils::texture& texture);
703 virtual void prepareVertexBuffer(const Utils::program& program, Utils::buffer& buffer, Utils::vertexArray& vao);
758 void prepareComputShaderSource(Utils::shaderSource& shaderSource);
760 void prepareShaderSourceForDraw(Utils::SHADER_STAGES stage, bool use_version_400, Utils::shaderSource& source);
804 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
805 Utils::shaderSource& out_source);
857 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
858 Utils::shaderSource& out_source);
860 virtual const glw::GLchar* prepareSourceTexture(Utils::texture& texture);
878 Utils::UTF8_CHARACTERS m_character;
908 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
909 Utils::shaderSource& out_source);
913 Utils::UTF8_CHARACTERS m_character;
953 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
954 Utils::shaderSource& out_source);
956 virtual void prepareUniforms(Utils::program& program);
963 Utils::TYPES m_t1;
964 Utils::TYPES m_t2;
1006 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1007 Utils::shaderSource& out_source);
1044 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1045 Utils::shaderSource& out_source);
1047 virtual void prepareUniforms(Utils::program& program);
1081 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1082 Utils::shaderSource& out_source);
1117 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1118 Utils::shaderSource& out_source);
1184 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1185 Utils::shaderSource& out_source);
1187 virtual void prepareVertexBuffer(const Utils::program& program, Utils::buffer& buffer, Utils::vertexArray& vao);
1193 const Utils::qualifierSet& getCurrentTestCase();
1196 std::vector<Utils::qualifierSet> m_test_cases;
1252 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1253 Utils::shaderSource& out_source);
1255 virtual void prepareVertexBuffer(const Utils::program& program, Utils::buffer& buffer, Utils::vertexArray& vao);
1261 const Utils::qualifierSet& getCurrentTestCase();
1264 std::vector<Utils::qualifierSet> m_test_cases;
1294 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1295 Utils::shaderSource& out_source);
1297 virtual void prepareUniforms(Utils::program& program);
1303 const Utils::qualifierSet& getCurrentTestCase();
1306 std::vector<Utils::qualifierSet> m_test_cases;
1333 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1334 Utils::shaderSource& out_source);
1336 virtual void prepareUniforms(Utils::program& program);
1341 const Utils::qualifierSet& getCurrentTestCase();
1344 std::vector<Utils::qualifierSet> m_test_cases;
1372 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1373 Utils::shaderSource& out_source);
1375 virtual void prepareUniforms(Utils::program& program);
1380 const Utils::qualifierSet& getCurrentTestCase();
1383 std::vector<Utils::qualifierSet> m_test_cases;
1410 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1411 Utils::shaderSource& out_source);
1413 virtual void prepareUniforms(Utils::program& program);
1418 const Utils::qualifierSet& getCurrentTestCase();
1421 std::vector<Utils::qualifierSet> m_test_cases;
1461 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1462 Utils::shaderSource& out_source);
1464 virtual void prepareVertexBuffer(const Utils::program& program, Utils::buffer& buffer, Utils::vertexArray& vao);
1510 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1511 Utils::shaderSource& out_source);
1513 virtual void prepareUniforms(Utils::program& program);
1518 Utils::buffer m_goku_buffer;
1519 Utils::buffer m_vegeta_buffer;
1520 Utils::buffer m_children_buffer;
1548 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1549 Utils::shaderSource& out_source);
1551 virtual void prepareUniforms(Utils::program& program);
1556 Utils::buffer m_goku_buffer;
1557 Utils::SHADER_STAGES m_test_stage;
1592 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1593 Utils::shaderSource& out_source);
1595 virtual void prepareUniforms(Utils::program& program);
1600 void checkBinding(Utils::program& program, glw::GLuint index, glw::GLint expected_binding);
1603 Utils::buffer m_goku_00_buffer;
1604 Utils::buffer m_goku_01_buffer;
1605 Utils::buffer m_goku_02_buffer;
1606 Utils::buffer m_goku_03_buffer;
1607 Utils::buffer m_goku_04_buffer;
1608 Utils::buffer m_goku_05_buffer;
1609 Utils::buffer m_goku_06_buffer;
1610 Utils::buffer m_goku_07_buffer;
1611 Utils::buffer m_goku_08_buffer;
1612 Utils::buffer m_goku_09_buffer;
1613 Utils::buffer m_goku_10_buffer;
1614 Utils::buffer m_goku_11_buffer;
1615 Utils::buffer m_goku_12_buffer;
1616 Utils::buffer m_goku_13_buffer;
1639 virtual bool checkResults(Utils::program& program);
1641 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1642 Utils::shaderSource& out_source);
1667 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1668 Utils::shaderSource& out_source);
1670 virtual void prepareUniforms(Utils::program& program);
1675 Utils::buffer m_goku_buffer;
1697 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1698 Utils::shaderSource& out_source);
1730 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1731 Utils::shaderSource& out_source);
1808 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1809 Utils::shaderSource& out_source);
1811 virtual void prepareUniforms(Utils::program& program);
1816 void prepareTexture(Utils::texture& texture, Utils::TEXTURE_TYPES texture_type, glw::GLuint color);
1819 Utils::texture m_goku_texture;
1820 Utils::texture m_vegeta_texture;
1821 Utils::texture m_trunks_texture;
1822 Utils::buffer m_buffer;
1823 Utils::TEXTURE_TYPES m_test_case;
1851 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1852 Utils::shaderSource& out_source);
1854 virtual void prepareUniforms(Utils::program& program);
1859 Utils::texture m_goku_texture;
1860 Utils::SHADER_STAGES m_test_stage;
1893 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1894 Utils::shaderSource& out_source);
1896 virtual void prepareUniforms(Utils::program& program);
1901 void checkBinding(Utils::program& program, glw::GLuint index, glw::GLint expected_binding);
1904 Utils::texture m_goku_00_texture;
1905 Utils::texture m_goku_01_texture;
1906 Utils::texture m_goku_02_texture;
1907 Utils::texture m_goku_03_texture;
1908 Utils::texture m_goku_04_texture;
1909 Utils::texture m_goku_05_texture;
1910 Utils::texture m_goku_06_texture;
1933 virtual bool checkResults(Utils::program& program);
1935 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1936 Utils::shaderSource& out_source);
1961 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
1962 Utils::shaderSource& out_source);
1964 virtual void prepareUniforms(Utils::program& program);
1969 Utils::texture m_goku_texture;
1999 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2000 Utils::shaderSource& out_source);
2078 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2079 Utils::shaderSource& out_source);
2081 virtual void prepareUniforms(Utils::program& program);
2087 Utils::texture m_goku_texture;
2088 Utils::texture m_vegeta_texture;
2089 Utils::texture m_trunks_texture;
2090 Utils::buffer m_goku_buffer;
2091 Utils::buffer m_vegeta_buffer;
2092 Utils::buffer m_trunks_buffer;
2093 Utils::TEXTURE_TYPES m_test_case;
2126 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2127 Utils::shaderSource& out_source);
2129 virtual void prepareUniforms(Utils::program& program);
2135 Utils::texture m_goku_texture;
2136 Utils::SHADER_STAGES m_test_stage;
2170 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2171 Utils::shaderSource& out_source);
2173 virtual void prepareUniforms(Utils::program& program);
2178 void checkBinding(Utils::program& program, glw::GLuint index, glw::GLint expected_binding);
2181 Utils::texture m_goku_00_texture;
2182 Utils::texture m_goku_01_texture;
2183 Utils::texture m_goku_02_texture;
2184 Utils::texture m_goku_03_texture;
2185 Utils::texture m_goku_04_texture;
2186 Utils::texture m_goku_05_texture;
2187 Utils::texture m_goku_06_texture;
2210 virtual bool checkResults(Utils::program& program);
2212 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2213 Utils::shaderSource& out_source);
2238 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2239 Utils::shaderSource& out_source);
2241 virtual void prepareUniforms(Utils::program& program);
2246 Utils::texture m_goku_texture;
2277 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2278 Utils::shaderSource& out_source);
2414 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2415 Utils::shaderSource& out_source);
2417 virtual void prepareUniforms(Utils::program& program);
2547 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2548 Utils::shaderSource& out_source);
2623 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2624 Utils::shaderSource& out_source);
2626 virtual void prepareUniforms(Utils::program& program);
2628 virtual void prepareVertexBuffer(const Utils::program& program, Utils::buffer& buffer, Utils::vertexArray& vao);
2636 Utils::TYPES m_type;
2642 std::string getExpectedValue(Utils::SHADER_STAGES in_stage);
2647 std::string getVectorInitializer(Utils::TYPES type, glw::GLuint n_rows);
2649 void prepareComputeShaderSource(Utils::shaderSource& out_source);
2651 void prepareDrawShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2652 Utils::shaderSource& out_source);
2715 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2716 Utils::shaderSource& out_source);
2718 virtual void prepareUniforms(Utils::program& program);
2761 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2762 Utils::shaderSource& out_source);
2764 virtual void prepareUniforms(Utils::program& program);
2797 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2798 Utils::shaderSource& out_source);
2846 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2847 Utils::shaderSource& out_source);
2849 virtual void prepareUniforms(Utils::program& program);
2879 virtual void prepareShaderSource(Utils::SHADER_STAGES in_stage, bool in_use_version_400,
2880 Utils::shaderSource& out_source);