Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
CachedStructShaderSetting< T, count, cache, is_pixel > Class Template Reference

#include <shader.h>

+ Collaboration diagram for CachedStructShaderSetting< T, count, cache, is_pixel >:

Public Member Functions

 CachedStructShaderSetting (const char *name, std::array< const char *, count > &&fields)
 
void set (const T value[count], video::IMaterialRendererServices *services)
 

Private Attributes

const char * m_name
 
m_sent [count]
 
bool has_been_set = false
 
std::array< const char *, count > m_fields
 

Constructor & Destructor Documentation

◆ CachedStructShaderSetting()

template<typename T , std::size_t count, bool cache, bool is_pixel>
CachedStructShaderSetting< T, count, cache, is_pixel >::CachedStructShaderSetting ( const char *  name,
std::array< const char *, count > &&  fields 
)
inline

Member Function Documentation

◆ set()

template<typename T , std::size_t count, bool cache, bool is_pixel>
void CachedStructShaderSetting< T, count, cache, is_pixel >::set ( const T  value[count],
video::IMaterialRendererServices *  services 
)
inline

Member Data Documentation

◆ has_been_set

template<typename T , std::size_t count, bool cache, bool is_pixel>
bool CachedStructShaderSetting< T, count, cache, is_pixel >::has_been_set = false
private

◆ m_fields

template<typename T , std::size_t count, bool cache, bool is_pixel>
std::array<const char*, count> CachedStructShaderSetting< T, count, cache, is_pixel >::m_fields
private

◆ m_name

template<typename T , std::size_t count, bool cache, bool is_pixel>
const char* CachedStructShaderSetting< T, count, cache, is_pixel >::m_name
private

◆ m_sent

template<typename T , std::size_t count, bool cache, bool is_pixel>
T CachedStructShaderSetting< T, count, cache, is_pixel >::m_sent[count]
private

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