MCPcopy Create free account
hub / github.com/comaps/comaps / Apply

Method Apply

libs/shaders/gl_program_params.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73private:
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

Callers

nothing calls this directly

Calls 3

GetUniformLocationMethod · 0.80
GetUniformTypeMethod · 0.80
ValueClass · 0.50

Tested by

no test coverage detected