20 #ifndef ANTKEEPER_GL_SHADER_INPUT_HPP
21 #define ANTKEEPER_GL_SHADER_INPUT_HPP
63 bool upload(
const bool& value)
const;
67 bool upload(
const int& value)
const;
71 bool upload(
const unsigned int& value)
const;
75 bool upload(
const float& value)
const;
96 bool upload(std::size_t
index,
const bool& value)
const;
100 bool upload(std::size_t
index,
const int& value)
const;
104 bool upload(std::size_t
index,
const unsigned int& value)
const;
108 bool upload(std::size_t
index,
const float& value)
const;
130 bool upload(std::size_t
index,
const bool* values, std::size_t
count)
const;
138 bool upload(std::size_t
index,
const unsigned int* values, std::size_t
count)
const;
142 bool upload(std::size_t
index,
const float* values, std::size_t
count)
const;
176 std::size_t input_index;
177 int gl_uniform_location;
180 std::size_t element_count;
191 return (element_count > 1);
196 return element_count;
Shader program which can be linked to shader objects and executed.
A 1D texture which can be uploaded to shaders via shader inputs.
A 2D texture which can be uploaded to shaders via shader inputs.
A 3D texture which can be uploaded to shaders via shader inputs.
A cube texture which can be uploaded to shaders via shader inputs.
constexpr int count(T x) noexcept
Returns the number of set bits in a value, known as a population count or Hamming weight.
Graphics library interface.
@ index
General purpose index (uint)
n by m column-major matrix.