| 73 | private: |
| 74 | template <typename ParamType> |
| 75 | static bool Apply(ref_ptr<dp::GLGpuProgram> program, std::string const & name, ParamType const & p) |
| 76 | { |
| 77 | auto const location = program->GetUniformLocation(name); |
| 78 | if (location < 0) |
| 79 | return false; |
| 80 | |
| 81 | ASSERT_EQUAL(program->GetUniformType(name), GLTypeWrapper<ParamType>::Value(), ()); |
| 82 | dp::UniformValue::ApplyRaw(location, p); |
| 83 | return true; |
| 84 | } |
| 85 | }; |
| 86 | } // namespace |
| 87 |
nothing calls this directly
no test coverage detected