Antkeeper
0.0.1
|
Port through which data can be uploaded to shader variables. More...
#include <shader-input.hpp>
Public Member Functions | |
shader_variable_type | get_data_type () const |
Returns the type of data which can be passed through this input. More... | |
bool | is_array () const |
Returns true if the input data is stored in an array. More... | |
std::size_t | get_element_count () const |
Returns the number of elements the array can contain, or 1 if the data is not stored in an array. More... | |
bool | upload (const bool &value) const |
Uploads a value to the shader. More... | |
bool | upload (const bool2 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const bool3 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const bool4 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const int &value) const |
Uploads a value to the shader. More... | |
bool | upload (const int2 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const int3 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const int4 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const unsigned int &value) const |
Uploads a value to the shader. More... | |
bool | upload (const uint2 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const uint3 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const uint4 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const float &value) const |
Uploads a value to the shader. More... | |
bool | upload (const float2 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const float3 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const float4 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const float2x2 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const float3x3 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const float4x4 &value) const |
Uploads a value to the shader. More... | |
bool | upload (const texture_1d *value) const |
Uploads a value to the shader. More... | |
bool | upload (const texture_2d *value) const |
Uploads a value to the shader. More... | |
bool | upload (const texture_3d *value) const |
Uploads a value to the shader. More... | |
bool | upload (const texture_cube *value) const |
Uploads a value to the shader. More... | |
bool | upload (std::size_t index, const bool &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const bool2 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const bool3 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const bool4 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const int &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const int2 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const int3 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const int4 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const unsigned int &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const uint2 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const uint3 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const uint4 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const float &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const float2 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const float3 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const float4 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const float2x2 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const float3x3 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const float4x4 &value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const texture_1d *value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const texture_2d *value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const texture_3d *value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const texture_cube *value) const |
Uploads a single array element to the shader. More... | |
bool | upload (std::size_t index, const bool *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const bool2 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const bool3 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const bool4 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const int *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const int2 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const int3 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const int4 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const unsigned int *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const uint2 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const uint3 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const uint4 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const float *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const float2 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const float3 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const float4 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const float2x2 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const float3x3 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const float4x4 *values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const texture_1d **values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const texture_2d **values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const texture_3d **values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
bool | upload (std::size_t index, const texture_cube **values, std::size_t count) const |
Uploads a range of array elements to the shader. More... | |
Friends | |
class | shader_program |
Port through which data can be uploaded to shader variables.
Definition at line 38 of file shader-input.hpp.
|
inline |
Returns the type of data which can be passed through this input.
Definition at line 184 of file shader-input.hpp.
|
inline |
Returns the number of elements the array can contain, or 1
if the data is not stored in an array.
Definition at line 194 of file shader-input.hpp.
|
inline |
Returns true
if the input data is stored in an array.
Definition at line 189 of file shader-input.hpp.
bool gl::shader_input::upload | ( | const bool & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 42 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const bool2 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 51 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const bool3 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 61 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const bool4 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 71 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const float & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 153 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const float2 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 162 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const float2x2 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 189 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const float3 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 171 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const float3x3 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 198 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const float4 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 180 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const float4x4 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 207 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const int & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 81 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const int2 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 90 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const int3 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 99 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const int4 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 108 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const texture_1d * | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 216 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const texture_2d * | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 231 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const texture_3d * | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 246 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const texture_cube * | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 261 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const uint2 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 126 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const uint3 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 135 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const uint4 & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 144 of file shader-input.cpp.
bool gl::shader_input::upload | ( | const unsigned int & | value | ) | const |
Uploads a value to the shader.
value | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 117 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const bool & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 276 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const bool * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 510 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const bool2 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 285 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const bool2 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 524 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const bool3 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 295 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const bool3 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 538 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const bool4 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 305 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const bool4 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 552 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 387 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 638 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float2 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 396 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float2 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 647 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float2x2 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 423 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float2x2 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 674 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float3 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 405 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float3 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 656 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float3x3 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 432 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float3x3 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 683 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float4 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 414 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float4 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 665 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float4x4 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 441 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const float4x4 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 692 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const int & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 315 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const int * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 566 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const int2 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 324 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const int2 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 575 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const int3 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 333 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const int3 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 584 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const int4 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 342 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const int4 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 593 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const texture_1d ** | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 701 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const texture_1d * | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 450 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const texture_2d ** | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 719 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const texture_2d * | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 465 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const texture_3d ** | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 737 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const texture_3d * | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 480 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const texture_cube ** | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 755 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const texture_cube * | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 495 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const uint2 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 360 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const uint2 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 611 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const uint3 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 369 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const uint3 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 620 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const uint4 & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 378 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const uint4 * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 629 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const unsigned int & | value | ||
) | const |
Uploads a single array element to the shader.
index | Index of an array element. |
values | Value to upload. |
true
if the value was uploaded successfully, false
otherwise. Definition at line 351 of file shader-input.cpp.
bool gl::shader_input::upload | ( | std::size_t | index, |
const unsigned int * | values, | ||
std::size_t | count | ||
) | const |
Uploads a range of array elements to the shader.
index | Index of the first array element. |
values | Pointer to an array of values. |
count | Number of elements to upload. |
true
if the value was fed successfully, false
otherwise. Definition at line 602 of file shader-input.cpp.
|
friend |
Definition at line 156 of file shader-input.hpp.