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

Method Get

libs/shaders/gl_program_pool.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34drape_ptr<dp::GpuProgram> GLProgramPool::Get(Program program)
35{
36 auto const programInfo = GetProgramInfo(m_apiVersion, program);
37 auto vertexShader =
38 GetShader(programInfo.m_vertexShaderName, programInfo.m_vertexShaderSource, dp::Shader::Type::VertexShader);
39 auto fragmentShader =
40 GetShader(programInfo.m_fragmentShaderName, programInfo.m_fragmentShaderSource, dp::Shader::Type::FragmentShader);
41
42 auto const name = DebugPrint(program);
43 return make_unique_dp<dp::GLGpuProgram>(name, vertexShader, fragmentShader);
44}
45
46void GLProgramPool::SetDefines(std::string const & defines)
47{

Callers 3

GetProgramMethod · 0.45
TestProgramParamsFunction · 0.45
CompileShadersFunction · 0.45

Calls 1

DebugPrintFunction · 0.70

Tested by 2

TestProgramParamsFunction · 0.36
CompileShadersFunction · 0.36