summary refs log tree commit diff
path: root/src/GFX/Shading/Uniform.hpp
blob: 3c14315c34220ba4f541e19267e600b96a1d6339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <cstdint>
#include <string>
#include <utility>
#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(Matrix<4, 4> value) const;
    void set(Vector<3> value) const;

private:
    std::string m_name;
    uint32_t m_index;
};

}