Home | History | Annotate | Download | only in gl

Lines Matching refs:Utils

44 namespace Utils
994 } /* Utils namespace */
1018 glw::GLuint calculateStride(const Utils::Interface& interface) const;
1019 void generateData(const Utils::Interface& interface, glw::GLuint offset, std::vector<glw::GLubyte>& out_data) const;
1021 glw::GLint getLastInputLocation(Utils::Shader::STAGES stage, const Utils::Type& type, glw::GLuint array_lenth);
1023 glw::GLint getLastOutputLocation(Utils::Shader::STAGES stage, const Utils::Type& type, glw::GLuint array_lenth);
1025 Utils::Type getType(glw::GLuint index) const;
1029 bool isFlatRequired(Utils::Shader::STAGES stage, const Utils::Type& type, Utils::Variable::STORAGE storage) const;
1058 Utils::Buffer::BUFFERS m_target;
1069 Utils::Buffer* m_buffer;
1084 virtual void getCapturedVaryings(glw::GLuint test_case_index, Utils::Program::NameVector& captured_varyings);
1086 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
1089 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
1092 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1094 Utils::Program& program, std::stringstream& out_stream);
1101 std::string getShaderTemplate(Utils::Shader::STAGES stage);
1102 void prepareBuffer(Utils::Buffer& buffer, bufferDescriptor& descriptor);
1120 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage) = 0;
1139 virtual bool checkResults(glw::GLuint test_case_index, Utils::Texture& color_0);
1144 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1145 Utils::VaryingPassthrough& varying_passthrough);
1147 virtual std::string getPassSnippet(glw::GLuint test_case_index, Utils::VaryingPassthrough& varying_passthrough,
1148 Utils::Shader::STAGES stage);
1150 virtual std::string getVerificationSnippet(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1151 Utils::Shader::STAGES stage);
1156 virtual void prepareAttributes(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1157 Utils::Buffer& buffer, Utils::VertexArray& vao);
1159 virtual void prepareAttribLocation(Utils::Program& program, Utils::ProgramInterface& program_interface);
1161 virtual void prepareFragmentDataLoc(Utils::Program& program, Utils::ProgramInterface& program_interface);
1163 virtual void prepareFramebuffer(Utils::Framebuffer& framebuffer, Utils::Texture& color_0_texture);
1165 virtual void prepareImage(glw::GLint location, Utils::Texture& image_texture) const;
1167 virtual void prepareSSBs(glw::GLuint test_case_index, Utils::ShaderInterface& si, Utils::Program& program,
1168 Utils::Buffer& buffer);
1170 virtual void prepareSSBs(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1171 Utils::Program& program, Utils::Buffer& cs_buffer);
1173 virtual void prepareSSBs(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1174 Utils::Program& program, Utils::Buffer& fs_buffer, Utils::Buffer& gs_buffer,
1175 Utils::Buffer& tcs_buffer, Utils::Buffer& tes_buffer, Utils::Buffer& vs_buffer);
1177 virtual void prepareUniforms(glw::GLuint test_case_index, Utils::ShaderInterface& si, Utils::Program& program,
1178 Utils::Buffer& buffer);
1180 virtual void prepareUniforms(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1181 Utils::Program& program, Utils::Buffer& cs_buffer);
1183 virtual void prepareUniforms(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1184 Utils::Program& program, Utils::Buffer& fs_buffer, Utils::Buffer& gs_buffer,
1185 Utils::Buffer& tcs_buffer, Utils::Buffer& tes_buffer, Utils::Buffer& vs_buffer);
1187 virtual void prepareUniforms(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1188 Utils::Program& fs_program, Utils::Program& gs_program, Utils::Program& tcs_program,
1189 Utils::Program& tes_program, Utils::Program& vs_program, Utils::Buffer& fs_buffer,
1190 Utils::Buffer& gs_buffer, Utils::Buffer& tcs_buffer, Utils::Buffer& tes_buffer,
1191 Utils::Buffer& vs_buffer);
1193 // Utils::Program& fragment,
1194 // Utils::Program& geometry,
1195 // Utils::Program& tess_ctrl,
1196 // Utils::Program& tess_eval,
1197 // Utils::Program& vertex);
1209 std::string getShaderSource(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1210 Utils::VaryingPassthrough& varying_passthrough, Utils::Shader::STAGES stage);
1212 const glw::GLchar* getShaderTemplate(Utils::Shader::STAGES stage);
1215 const Utils::Variable::Descriptor& in_variable,
1216 Utils::Variable::FLAVOUR in_flavour, const std::string& out_parent_name,
1217 const Utils::Variable::Descriptor& out_variable,
1218 Utils::Variable::FLAVOUR out_flavour);
1221 const Utils::Variable::Descriptor& variable, Utils::Variable::FLAVOUR flavour);
1223 void prepareSSB(Utils::Program& program, Utils::Variable& variable, Utils::Buffer& buffer);
1225 void prepareUniform(Utils::Program& program, Utils::Variable& variable, Utils::Buffer& buffer);
1308 virtual std::string getVerificationSnippet(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1309 Utils::Shader::STAGES stage);
1342 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1365 Utils::Shader::STAGES m_stage;
1420 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1421 Utils::VaryingPassthrough& varying_passthrough);
1423 virtual std::string getVerificationSnippet(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1424 Utils::Shader::STAGES stage);
1426 virtual void prepareUniforms(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1427 Utils::Program& program, Utils::Buffer& cs_buffer);
1429 virtual void prepareUniforms(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1430 Utils::Program& program, Utils::Buffer& fs_buffer, Utils::Buffer& gs_buffer,
1431 Utils::Buffer& tcs_buffer, Utils::Buffer& tes_buffer, Utils::Buffer& vs_buffer);
1490 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1491 Utils::VaryingPassthrough& varying_passthrough);
1496 virtual std::string getVerificationSnippet(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1497 Utils::Shader::STAGES stage);
1539 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1565 Utils::Shader::STAGES m_stage;
1609 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1616 virtual bool isStageSupported(Utils::Shader::STAGES stage);
1625 Utils::Shader::STAGES m_stage;
1626 Utils::Type m_type;
1675 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1680 virtual bool isStageSupported(Utils::Shader::STAGES stage);
1688 Utils::Type m_boy_type;
1690 Utils::Type m_man_type;
1691 Utils::Shader::STAGES m_stage;
1734 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1740 virtual bool isStageSupported(Utils::Shader::STAGES stage);
1748 Utils::Type m_type;
1750 Utils::Shader::STAGES m_stage;
1797 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1798 Utils::VaryingPassthrough& varying_passthrough);
1827 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1828 Utils::VaryingPassthrough& varying_passthrough);
1833 virtual std::string getVerificationSnippet(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1834 Utils::Shader::STAGES stage);
1865 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1891 Utils::Shader::STAGES m_stage;
1896 bool isStageSupported(Utils::Shader::STAGES stage);
1923 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1925 virtual bool isStageSupported(Utils::Shader::STAGES stage);
1946 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1948 virtual bool isStageSupported(Utils::Shader::STAGES stage);
1970 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
1972 virtual bool isStageSupported(Utils::Shader::STAGES stage);
1994 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
1995 Utils::VaryingPassthrough& varying_passthrough);
2041 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
2042 Utils::VaryingPassthrough& varying_passthrough);
2050 virtual void prepareShaderStage(Utils::Shader::STAGES stage, const Utils::Type& type,
2051 Utils::ProgramInterface& program_interface,
2052 Utils::VaryingPassthrough& varying_passthrough);
2110 Utils::ProgramInterface& program_interface,
2111 Utils::VaryingPassthrough& varying_passthrough);
2116 virtual std::string getVerificationSnippet(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
2117 Utils::Shader::STAGES stage);
2121 virtual void prepareAttributes(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
2122 Utils::Buffer& buffer, Utils::VertexArray& vao);
2204 virtual void prepareShaderStage(Utils::Shader::STAGES stage, const Utils::Type& type,
2205 Utils::ProgramInterface& program_interface,
2206 Utils::VaryingPassthrough& varying_passthrough);
2256 virtual std::string getPassSnippet(glw::GLuint test_case_index, Utils::VaryingPassthrough& varying_passthrough,
2257 Utils::Shader::STAGES stage);
2259 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
2260 Utils::VaryingPassthrough& varying_passthrough);
2304 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
2316 Utils::Shader::STAGES m_stage;
2367 virtual std::string getPassSnippet(glw::GLuint test_case_index, Utils::VaryingPassthrough& varying_passthrough,
2368 Utils::Shader::STAGES stage);
2370 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
2371 Utils::VaryingPassthrough& varying_passthrough);
2426 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
2440 Utils::Shader::STAGES m_stage;
2479 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
2491 Utils::Shader::STAGES m_stage;
2524 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
2536 Utils::Type m_type;
2537 Utils::Shader::STAGES m_stage;
2577 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
2578 Utils::VaryingPassthrough& varying_passthrough);
2618 testCase(COMPONENTS_LAYOUT layout, Utils::Type::TYPES type);
2621 Utils::Type::TYPES m_type;
2628 Utils::Shader::STAGES stage, Utils::Variable::STORAGE storage);
2635 void prepareShaderStage(Utils::Shader::STAGES stage, const Utils::Type& vector_type,
2636 Utils::ProgramInterface& program_interface, const testCase& test_case,
2637 Utils::VaryingPassthrough& varying_passthrough);
2639 Utils::Variable* prepareVarying(const Utils::Type& basic_type, const descriptor& desc,
2640 const glw::GLchar* interpolation, Utils::ShaderInterface& si,
2641 Utils::Shader::STAGES stage, Utils::Variable::STORAGE storage);
2700 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
2714 Utils::Shader::STAGES m_stage;
2715 Utils::Type m_type;
2748 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
2761 Utils::Shader::STAGES m_stage;
2762 Utils::Type m_type;
2831 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
2858 Utils::Shader::STAGES m_stage;
2859 Utils::Type m_type;
2903 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
2918 Utils::Shader::STAGES m_stage;
2919 Utils::Type m_type;
2953 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
2966 Utils::Shader::STAGES m_stage;
2967 Utils::Type m_type;
3002 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
3016 Utils::Shader::STAGES m_stage;
3017 Utils::Type m_type_gohan;
3018 Utils::Type m_type_goten;
3022 bool isFloatType(const Utils::Type& type);
3061 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
3087 Utils::Shader::STAGES m_stage;
3088 Utils::Type m_type_gohan;
3089 Utils::Type m_type_goten;
3094 bool isFloatType(const Utils::Type& type);
3130 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
3159 Utils::Shader::STAGES m_stage;
3160 Utils::Type m_type_gohan;
3161 Utils::Type m_type_goten;
3166 bool isFloatType(const Utils::Type& type);
3213 virtual void prepareAttribLocation(Utils::Program& program, Utils::ProgramInterface& program_interface);
3215 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
3216 Utils::VaryingPassthrough& varying_passthrough);
3269 virtual bool checkResults(glw::GLuint test_case_index, Utils::Texture& color_0);
3271 virtual std::string getPassSnippet(glw::GLuint test_case_index, Utils::VaryingPassthrough& varying_passthrough,
3272 Utils::Shader::STAGES stage);
3274 virtual void getProgramInterface(glw::GLuint test_case_index, Utils::ProgramInterface& program_interface,
3275 Utils::VaryingPassthrough& varying_passthrough);
3279 virtual void prepareFragmentDataLoc(Utils::Program& program, Utils::ProgramInterface& program_interface);
3281 virtual void prepareFramebuffer(Utils::Framebuffer& framebuffer, Utils::Texture& color_0_texture);
3285 Utils::Texture m_goku;
3286 Utils::Texture m_gohan;
3287 Utils::Texture m_goten;
3288 Utils::Texture m_chichi;
3316 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
3338 Utils::Shader::STAGES m_stage;
3371 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
3374 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
3421 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
3424 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
3482 virtual void getCapturedVaryings(glw::GLuint test_case_index, Utils::Program::NameVector& captured_varyings);
3484 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
3487 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
3567 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
3590 Utils::Shader::STAGES m_stage;
3627 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
3649 Utils::Shader::STAGES m_stage;
3650 Utils::Type m_type;
3692 std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
3694 bool inspectProgram(Utils::Program& program);
3697 std::vector<Utils::Shader::STAGES> m_test_cases;
3736 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
3739 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
3742 virtual bool inspectProgram(glw::GLuint test_case_index, Utils::Program& program, std::stringstream& out_stream);
3776 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
3798 Utils::Shader::STAGES m_stage;
3859 Utils::Program::NameVector& varyings);
3874 Utils::Shader::STAGES m_stage;
3875 Utils::Type m_type;
3879 std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
3881 bool inspectProgram(glw::GLuint test_case_index, Utils::Program& program);
3927 virtual void getCapturedVaryings(glw::GLuint test_case_index, Utils::Program::NameVector& captured_varyings);
3929 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
3932 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
3938 virtual bool inspectProgram(glw::GLuint test_case_index, Utils::Program& program, std::stringstream& out_stream);
3983 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
3986 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
4018 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4056 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4078 Utils::Shader::STAGES m_stage;
4125 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4147 Utils::Shader::STAGES m_stage;
4198 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4208 Utils::Shader::STAGES m_stage;
4209 Utils::Type m_type;
4243 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
4246 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
4249 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4259 Utils::Shader::STAGES m_stage;
4260 Utils::Type m_type;
4295 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4306 Utils::Shader::STAGES m_stage;
4341 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4354 Utils::Shader::STAGES m_stage;
4355 Utils::Type m_type;
4391 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4403 Utils::Shader::STAGES m_stage;
4404 Utils::Type m_type;
4446 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
4449 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
4452 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4457 Utils::Program& program, std::stringstream& out_stream);
4522 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
4525 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
4528 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4582 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
4585 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
4588 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4645 virtual void getShaderBody(glw::GLuint test_case_index, Utils::Shader::STAGES stage, std::string& out_assignments,
4648 virtual void getShaderInterface(glw::GLuint test_case_index, Utils::Shader::STAGES stage,
4651 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4694 virtual std::string getShaderSource(glw::GLuint test_case_index, Utils::Shader::STAGES stage);
4705 Utils::Shader::STAGES m_stage;