Class UniformBufferStd140

Inheritance Relationships

Base Type

  • public std::vector< uint8_t >

Class Documentation

class UniformBufferStd140 : public std::vector<uint8_t>

Helper class for accumulating uniform buffer data following the ‘std140’ packing format.

Public Types

using Parent = std::vector<uint8_t>

Public Functions

template<typename T, typename std::enable_if< std::is_pod< T >::value, int >::type = 0>void nanogui::UniformBufferStd140::push_back(T value)
template<typename Derived, typename std::enable_if< Derived::IsVectorAtCompileTime, int >::type = 0>void nanogui::UniformBufferStd140::push_back(const Eigen::MatrixBase< Derived > & value)
template<typename Derived, typename std::enable_if<!Derived::IsVectorAtCompileTime, int >::type = 0>void nanogui::UniformBufferStd140::push_back(const Eigen::MatrixBase< Derived > & value, bool colMajor = true)