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

◆ channels() [1/2]

template<typename T >
template<typename... Args>
CreationHandle & MayaFlux::CreationHandle< T >::channels ( Args...  args)
inline

Definition at line 81 of file Creator.hpp.

82 {
83 static_assert(sizeof...(args) > 0, "channels() requires at least one argument");
84 static_assert((std::is_convertible_v<Args, uint32_t> && ...),
85 "All arguments must be convertible to uint32_t");
86
87 m_ctx.channels = std::vector<uint32_t> { static_cast<uint32_t>(args)... };
88 m_ctx.channel.reset();
90 return *this;
91 }
CreationContext m_ctx
Definition Creator.hpp:178
std::optional< uint32_t > channel
Definition Creator.hpp:10
std::optional< std::vector< uint32_t > > channels
Definition Creator.hpp:11

References MayaFlux::CreationHandle< T >::apply_if_ready(), MayaFlux::CreationContext::channel, MayaFlux::CreationContext::channels, and MayaFlux::CreationHandle< T >::m_ctx.

+ Here is the call graph for this function: