| 16 | |
| 17 | template <typename ProgramParams> |
| 18 | void TestProgramParams() |
| 19 | { |
| 20 | auto constexpr api = dp::ApiVersion::OpenGLES3; |
| 21 | TestingGraphicsContext context(api); |
| 22 | GLFunctions::Init(api); |
| 23 | gpu::GLProgramPool pool(api); |
| 24 | gpu::GLProgramParamsSetter paramsSetter; |
| 25 | |
| 26 | ProgramParams params; |
| 27 | for (auto const p : ProgramParams::GetBoundPrograms()) |
| 28 | { |
| 29 | auto const program = pool.Get(p); |
| 30 | program->Bind(); |
| 31 | paramsSetter.Apply(make_ref(&context), make_ref(program), params); |
| 32 | program->Unbind(); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // These unit tests create Qt application and OGL context so can't be run in GUI-less Linux machine. |
| 37 | #ifdef OMIM_OS_MAC |