blob: a270e65b636b851bb54bf5fad1ec51d10678faac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <cstdint>
#include <string>
#include "../../Math/Common.hpp"
namespace MC::GFX::Shading {
class Uniform {
public:
Uniform(std::string name, uint32_t index)
: m_name(std::move(name)), m_index(index) {}
void set(const Matrix<4, 4>& value) const;
void set(const Vector<3>& value) const;
private:
std::string m_name;
uint32_t m_index;
};
}
|