| 34 | } |
| 35 | |
| 36 | void Shader::CreateProgram() { |
| 37 | m_compiler = std::make_unique<Compilers::ShaderCompiler>(m_filename); |
| 38 | const auto compile_result = m_compiler->Compile(); |
| 39 | |
| 40 | if (std::get<0>(compile_result) == ShaderOperationResult::SUCCESS) { |
| 41 | m_program = std::get<1>(compile_result); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | void Shader::Bind() const { |
| 46 | if (!IsActive()) { |