MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ width_of()

template<typename T>
constexpr uint8_t MayaFlux::ControlValue::width_of ( )
inlinestaticconstexprprotectednoexcept

Definition at line 139 of file ControlValue.hpp.

140 {
141 if constexpr (is_vector<T>) {
142 return static_cast<uint8_t>(glm_component_count<T>());
143 } else if constexpr (is_box<T>) {
144 return 6;
145 } else {
146 return 1;
147 }
148 }
static constexpr bool is_box
static constexpr bool is_vector

References is_box, and is_vector.

Referenced by ControlValue(), lanes_for(), observe(), pending(), and MayaFlux::Nodes::Network::Control::pending().

Here is the caller graph for this function: