libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Identifier for a uniform shader variable inside a ShaderProgram. More...
#include <donut/graphics/ShaderParameter.hpp>
Public Member Functions | |
ShaderParameter (const ShaderProgram &program, const char *name) | |
Construct an identifier for a specific uniform shader variable. More... | |
std::int32_t | getLocation () const noexcept |
Get the location of the variable in the shader program. More... | |
Identifier for a uniform shader variable inside a ShaderProgram.
donut::graphics::ShaderParameter::ShaderParameter | ( | const ShaderProgram & | program, |
const char * | name | ||
) |
Construct an identifier for a specific uniform shader variable.
program | shader program in which the variable resides. |
name | name of the variable. |
|
inlinenoexcept |
Get the location of the variable in the shader program.