Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::gfx::ShaderInputRegistry::Spec< T > Struct Template Reference

This struct is stored for each registered ShaderInput. More...

#include "shaderinputregistry.h"

Collaboration diagram for ion::gfx::ShaderInputRegistry::Spec< T >:

Public Member Functions

 Spec (const std::string &name_in=std::string(), typename T::ValueType value_type_in=static_cast< typename T::ValueType >(0), const std::string &doc_string_in=std::string(), typename CombineFunction< T >::Type combine_function_in=nullptr, typename GenerateFunction< T >::Type generate_function_in=nullptr)
 

Public Attributes

std::string name
 
T::ValueType value_type
 
std::string doc_string
 
size_t index
 
size_t registry_id
 
ShaderInputRegistryregistry
 The registry that created this spec. More...
 
CombineFunction< T >::Type combine_function
 Function used to combine values. More...
 
GenerateFunction< T >::Type generate_function
 Function used to generate values. More...
 

Detailed Description

template<typename T>
struct ion::gfx::ShaderInputRegistry::Spec< T >

This struct is stored for each registered ShaderInput.

Definition at line 131 of file shaderinputregistry.h.

Constructor & Destructor Documentation

template<typename T>
ion::gfx::ShaderInputRegistry::Spec< T >::Spec ( const std::string &  name_in = std::string(),
typename T::ValueType  value_type_in = static_cast<typename T::ValueType>(0),
const std::string &  doc_string_in = std::string(),
typename CombineFunction< T >::Type  combine_function_in = nullptr,
typename GenerateFunction< T >::Type  generate_function_in = nullptr 
)
inline

Definition at line 132 of file shaderinputregistry.h.

Member Data Documentation

template<typename T>
CombineFunction<T>::Type ion::gfx::ShaderInputRegistry::Spec< T >::combine_function

Function used to combine values.

Definition at line 157 of file shaderinputregistry.h.

template<typename T>
std::string ion::gfx::ShaderInputRegistry::Spec< T >::doc_string

Definition at line 149 of file shaderinputregistry.h.

template<typename T>
GenerateFunction<T>::Type ion::gfx::ShaderInputRegistry::Spec< T >::generate_function

Function used to generate values.

Definition at line 159 of file shaderinputregistry.h.

template<typename T>
size_t ion::gfx::ShaderInputRegistry::Spec< T >::index

Definition at line 150 of file shaderinputregistry.h.

template<typename T>
std::string ion::gfx::ShaderInputRegistry::Spec< T >::name

Definition at line 147 of file shaderinputregistry.h.

Referenced by ion::gfx::ShaderInputRegistry::Add().

template<typename T>
ShaderInputRegistry* ion::gfx::ShaderInputRegistry::Spec< T >::registry

The registry that created this spec.

This is a raw pointer since when the registry is destroyed, the spec will be as well.

Definition at line 154 of file shaderinputregistry.h.

template<typename T>
size_t ion::gfx::ShaderInputRegistry::Spec< T >::registry_id

Definition at line 151 of file shaderinputregistry.h.

template<typename T>
T::ValueType ion::gfx::ShaderInputRegistry::Spec< T >::value_type

Definition at line 148 of file shaderinputregistry.h.


The documentation for this struct was generated from the following file: