Antkeeper  0.0.1
Public Member Functions | Friends | List of all members
gl::shader_input Class Reference

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
 

Detailed Description

Port through which data can be uploaded to shader variables.

Definition at line 38 of file shader-input.hpp.

Member Function Documentation

◆ get_data_type()

shader_variable_type gl::shader_input::get_data_type ( ) const
inline

Returns the type of data which can be passed through this input.

Definition at line 184 of file shader-input.hpp.

◆ get_element_count()

std::size_t gl::shader_input::get_element_count ( ) const
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.

◆ is_array()

bool gl::shader_input::is_array ( ) const
inline

Returns true if the input data is stored in an array.

Definition at line 189 of file shader-input.hpp.

◆ upload() [1/69]

bool gl::shader_input::upload ( const bool &  value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 42 of file shader-input.cpp.

◆ upload() [2/69]

bool gl::shader_input::upload ( const bool2 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 51 of file shader-input.cpp.

◆ upload() [3/69]

bool gl::shader_input::upload ( const bool3 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 61 of file shader-input.cpp.

◆ upload() [4/69]

bool gl::shader_input::upload ( const bool4 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 71 of file shader-input.cpp.

◆ upload() [5/69]

bool gl::shader_input::upload ( const float &  value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 153 of file shader-input.cpp.

◆ upload() [6/69]

bool gl::shader_input::upload ( const float2 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 162 of file shader-input.cpp.

◆ upload() [7/69]

bool gl::shader_input::upload ( const float2x2 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 189 of file shader-input.cpp.

◆ upload() [8/69]

bool gl::shader_input::upload ( const float3 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 171 of file shader-input.cpp.

◆ upload() [9/69]

bool gl::shader_input::upload ( const float3x3 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 198 of file shader-input.cpp.

◆ upload() [10/69]

bool gl::shader_input::upload ( const float4 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 180 of file shader-input.cpp.

◆ upload() [11/69]

bool gl::shader_input::upload ( const float4x4 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 207 of file shader-input.cpp.

◆ upload() [12/69]

bool gl::shader_input::upload ( const int &  value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 81 of file shader-input.cpp.

◆ upload() [13/69]

bool gl::shader_input::upload ( const int2 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 90 of file shader-input.cpp.

◆ upload() [14/69]

bool gl::shader_input::upload ( const int3 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 99 of file shader-input.cpp.

◆ upload() [15/69]

bool gl::shader_input::upload ( const int4 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 108 of file shader-input.cpp.

◆ upload() [16/69]

bool gl::shader_input::upload ( const texture_1d value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 216 of file shader-input.cpp.

◆ upload() [17/69]

bool gl::shader_input::upload ( const texture_2d value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 231 of file shader-input.cpp.

◆ upload() [18/69]

bool gl::shader_input::upload ( const texture_3d value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 246 of file shader-input.cpp.

◆ upload() [19/69]

bool gl::shader_input::upload ( const texture_cube value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 261 of file shader-input.cpp.

◆ upload() [20/69]

bool gl::shader_input::upload ( const uint2 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 126 of file shader-input.cpp.

◆ upload() [21/69]

bool gl::shader_input::upload ( const uint3 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 135 of file shader-input.cpp.

◆ upload() [22/69]

bool gl::shader_input::upload ( const uint4 value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 144 of file shader-input.cpp.

◆ upload() [23/69]

bool gl::shader_input::upload ( const unsigned int &  value) const

Uploads a value to the shader.

Parameters
valueValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 117 of file shader-input.cpp.

◆ upload() [24/69]

bool gl::shader_input::upload ( std::size_t  index,
const bool &  value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 276 of file shader-input.cpp.

◆ upload() [25/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 510 of file shader-input.cpp.

◆ upload() [26/69]

bool gl::shader_input::upload ( std::size_t  index,
const bool2 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 285 of file shader-input.cpp.

◆ upload() [27/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 524 of file shader-input.cpp.

◆ upload() [28/69]

bool gl::shader_input::upload ( std::size_t  index,
const bool3 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 295 of file shader-input.cpp.

◆ upload() [29/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 538 of file shader-input.cpp.

◆ upload() [30/69]

bool gl::shader_input::upload ( std::size_t  index,
const bool4 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 305 of file shader-input.cpp.

◆ upload() [31/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 552 of file shader-input.cpp.

◆ upload() [32/69]

bool gl::shader_input::upload ( std::size_t  index,
const float &  value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 387 of file shader-input.cpp.

◆ upload() [33/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 638 of file shader-input.cpp.

◆ upload() [34/69]

bool gl::shader_input::upload ( std::size_t  index,
const float2 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 396 of file shader-input.cpp.

◆ upload() [35/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 647 of file shader-input.cpp.

◆ upload() [36/69]

bool gl::shader_input::upload ( std::size_t  index,
const float2x2 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 423 of file shader-input.cpp.

◆ upload() [37/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 674 of file shader-input.cpp.

◆ upload() [38/69]

bool gl::shader_input::upload ( std::size_t  index,
const float3 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 405 of file shader-input.cpp.

◆ upload() [39/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 656 of file shader-input.cpp.

◆ upload() [40/69]

bool gl::shader_input::upload ( std::size_t  index,
const float3x3 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 432 of file shader-input.cpp.

◆ upload() [41/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 683 of file shader-input.cpp.

◆ upload() [42/69]

bool gl::shader_input::upload ( std::size_t  index,
const float4 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 414 of file shader-input.cpp.

◆ upload() [43/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 665 of file shader-input.cpp.

◆ upload() [44/69]

bool gl::shader_input::upload ( std::size_t  index,
const float4x4 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 441 of file shader-input.cpp.

◆ upload() [45/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 692 of file shader-input.cpp.

◆ upload() [46/69]

bool gl::shader_input::upload ( std::size_t  index,
const int &  value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 315 of file shader-input.cpp.

◆ upload() [47/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 566 of file shader-input.cpp.

◆ upload() [48/69]

bool gl::shader_input::upload ( std::size_t  index,
const int2 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 324 of file shader-input.cpp.

◆ upload() [49/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 575 of file shader-input.cpp.

◆ upload() [50/69]

bool gl::shader_input::upload ( std::size_t  index,
const int3 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 333 of file shader-input.cpp.

◆ upload() [51/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 584 of file shader-input.cpp.

◆ upload() [52/69]

bool gl::shader_input::upload ( std::size_t  index,
const int4 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 342 of file shader-input.cpp.

◆ upload() [53/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 593 of file shader-input.cpp.

◆ upload() [54/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 701 of file shader-input.cpp.

◆ upload() [55/69]

bool gl::shader_input::upload ( std::size_t  index,
const texture_1d value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 450 of file shader-input.cpp.

◆ upload() [56/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 719 of file shader-input.cpp.

◆ upload() [57/69]

bool gl::shader_input::upload ( std::size_t  index,
const texture_2d value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 465 of file shader-input.cpp.

◆ upload() [58/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 737 of file shader-input.cpp.

◆ upload() [59/69]

bool gl::shader_input::upload ( std::size_t  index,
const texture_3d value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 480 of file shader-input.cpp.

◆ upload() [60/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 755 of file shader-input.cpp.

◆ upload() [61/69]

bool gl::shader_input::upload ( std::size_t  index,
const texture_cube value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 495 of file shader-input.cpp.

◆ upload() [62/69]

bool gl::shader_input::upload ( std::size_t  index,
const uint2 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 360 of file shader-input.cpp.

◆ upload() [63/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 611 of file shader-input.cpp.

◆ upload() [64/69]

bool gl::shader_input::upload ( std::size_t  index,
const uint3 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 369 of file shader-input.cpp.

◆ upload() [65/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 620 of file shader-input.cpp.

◆ upload() [66/69]

bool gl::shader_input::upload ( std::size_t  index,
const uint4 value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 378 of file shader-input.cpp.

◆ upload() [67/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 629 of file shader-input.cpp.

◆ upload() [68/69]

bool gl::shader_input::upload ( std::size_t  index,
const unsigned int &  value 
) const

Uploads a single array element to the shader.

Parameters
indexIndex of an array element.
valuesValue to upload.
Returns
true if the value was uploaded successfully, false otherwise.

Definition at line 351 of file shader-input.cpp.

◆ upload() [69/69]

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.

Parameters
indexIndex of the first array element.
valuesPointer to an array of values.
countNumber of elements to upload.
Returns
true if the value was fed successfully, false otherwise.

Definition at line 602 of file shader-input.cpp.

Friends And Related Function Documentation

◆ shader_program

friend class shader_program
friend

Definition at line 156 of file shader-input.hpp.


The documentation for this class was generated from the following files: