Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gl_program_info.hpp « shaders - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18063d5a5d184426e72f484d14aeb3efeb356000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <cstdint>
#include <string>

namespace gpu
{
struct GLProgramInfo
{
  GLProgramInfo() = default;
  GLProgramInfo(std::string const & vertexShaderName,
                std::string const & fragmentShaderName,
                char const * const vertexSource,
                char const * const fragmentSource)
    : m_vertexShaderName(vertexShaderName)
    , m_fragmentShaderName(fragmentShaderName)
    , m_vertexShaderSource(vertexSource)
    , m_fragmentShaderSource(fragmentSource)
  {}

  std::string const m_vertexShaderName;
  std::string const m_fragmentShaderName;
  char const * const m_vertexShaderSource = nullptr;
  char const * const m_fragmentShaderSource = nullptr;
};
}  // namespace gpu