blob: a1db6a08caf3cf547863cc6c212708dbf8c49491 (
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 "../../Result.hpp"
#include "../../types.hpp"
#include "../../utils.hpp"
#include "ShaderFrame.hpp"
#include <memory>
#include <vector>
namespace amalgine {
class Shader;
class ShaderProgram
{
DISABLE_COPY(ShaderProgram)
public:
~ShaderProgram();
static Result<std::unique_ptr<ShaderProgram>> build(const std::vector<Shader*> &shaders);
ShaderFrame create_frame();
private:
ShaderProgram(u32 shader_program_id);
private:
u32 program_id;
};
}
|