FastUIDraw
|
A shareable_value_list is a list of values and their types that a shader will have computed after running. These can be used is shader-chaining to get some of the values made from a dependee shader. More...
#include <shareable_value_list.hpp>
Public Types | |
enum | type_t { type_float, type_uint, type_int, type_number_types } |
Enumeration to define the types of the a shareable value can be. More... | |
Public Member Functions | |
shareable_value_list & | add_float (c_string pname) |
shareable_value_list & | add_int (c_string pname) |
shareable_value_list & | add_shareable_value (c_string pname, enum type_t q) |
shareable_value_list & | add_uint (c_string pname) |
vecN< unsigned int, type_number_types > | number_shareable_values (void) const |
c_array< const c_string > | shareable_values (enum type_t q) const |
void | swap (shareable_value_list &obj) |
A shareable_value_list is a list of values and their types that a shader will have computed after running. These can be used is shader-chaining to get some of the values made from a dependee shader.
Definition at line 41 of file shareable_value_list.hpp.
Enumeration to define the types of the a shareable value can be.
Enumerator | |
---|---|
type_float | corresponds to float in GLSL |
type_uint | corresponds to uint in GLSL |
type_int | corresponds to int in GLSL |
Definition at line 49 of file shareable_value_list.hpp.
|
inline |
Add an uint shareable value, equivalent to
Definition at line 138 of file shareable_value_list.hpp.
|
inline |
Add an uint shareable value, equivalent to
Definition at line 126 of file shareable_value_list.hpp.
|
inline |
Add a shareable value
pname | name by which to reference the shareable value |
q | type of the shareable value |
Definition at line 101 of file shareable_value_list.hpp.
|
inline |
Add an uint shareable value, equivalent to
Definition at line 114 of file shareable_value_list.hpp.
|
inline |
Returns an array indexed by type_t that holds the number of shareable variables for each type.
Definition at line 74 of file shareable_value_list.hpp.
|
inline |
Returns the names of the shareable values of the specified type.
q | type |
Definition at line 90 of file shareable_value_list.hpp.
|
inline |
Swap operation
obj | object with which to swap |
Definition at line 63 of file shareable_value_list.hpp.