Euphoria
uniform.h
Go to the documentation of this file.
1#pragma once
2
3namespace eu::render
4{
5
8struct Uniform
9{
10 std::string name = "<unknown>";
11 int location = -1;
12 unsigned int debug_shader_program = 0;
13 int texture = -1;
14
16 Uniform() = default;
17
18 Uniform(std::string n, int l, unsigned int sp);
19
20 [[nodiscard]] bool is_valid() const;
21};
22
23}
A (inclusive) range between two values.
Definition range.h:19
Represents a found shader uniform and created via ShaderProgram::GetUniform()
Definition uniform.h:9
bool is_valid() const
Uniform(std::string n, int l, unsigned int sp)
unsigned int debug_shader_program
Definition uniform.h:12
Uniform()=default
Creates a invalid uniform.
int texture
The value is >=0 if this is uniform maps to a texture.
Definition uniform.h:13
std::string name
Definition uniform.h:10