Ion
|
A GenerateFunction is similar to a CombineFunction, above, but generates additional inputs based on the value of a single input. More...
#include "shaderinputregistry.h"
Public Types | |
typedef std::function < std::vector< T >const T ¤t_value)> | Type |
A GenerateFunction is similar to a CombineFunction, above, but generates additional inputs based on the value of a single input.
Note that a GenerateFunction is applied after a CombineFunction. A GenerateFunction can be used, for example, to generate a rotation matrix (3x3) out of a general transformation matrix (4x4), or to extract angles out of a matrix (e.g., as a Vector3). Note that Specs for all generated inputs must already be Add()ed to the same registry as the passed input.
Using a struct since we can't use alias templates (C++11).
Definition at line 125 of file shaderinputregistry.h.
typedef std::function<std::vector<T>const T& current_value)> ion::gfx::ShaderInputRegistry::GenerateFunction< T >::Type |
Definition at line 126 of file shaderinputregistry.h.