blob: 8d2ee842c09889840bafa5eb081b59356cd92d23 (
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
27
28
29
30
31
32
33
34
35
36
37
|
#pragma once
#include "../../types.hpp"
#include <unordered_map>
#include <string>
namespace amalgine
{
class CompiledVertexShader
{
friend class VertexShader;
public:
~CompiledVertexShader();
u32 getShaderId() const;
private:
CompiledVertexShader(u32 _shaderId);
private:
u32 shaderId;
};
class CompiledPixelShader
{
friend class PixelShader;
public:
~CompiledPixelShader();
u32 getShaderId() const;
const auto& getPixelAttributes() const
{
return pixelAttributes;
}
private:
CompiledPixelShader(u32 _shaderId, std::unordered_map<std::string, i32> &&_pixelAttributes);
private:
u32 shaderId;
std::unordered_map<std::string, i32> pixelAttributes;
};
}
|