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

◆ apply_if_ready()

template<typename T >
void MayaFlux::CreationHandle< T >::apply_if_ready ( )
inlineprivate

Definition at line 104 of file Creator.hpp.

105 {
106 if constexpr (std::is_base_of_v<Kakshya::SignalSourceContainer, T>) {
107 if (m_ctx.domain) {
109 m_ctx = CreationContext {};
110 }
111 } else if (m_ctx.domain && (m_ctx.channel || m_ctx.channels)) {
112 if constexpr (std::is_base_of_v<Nodes::Node, T>) {
113 if (m_ctx.domain) {
115 }
116 } else if constexpr (std::is_base_of_v<Buffers::Buffer, T>) {
117 if (m_ctx.domain) {
119 }
120 } else if constexpr (std::is_base_of_v<Nodes::NodeNetwork, T>) {
121 if (m_ctx.domain) {
123 }
124 }
125 m_ctx = CreationContext {};
126 } else if (m_ctx.domain) {
127 if constexpr (std::is_base_of_v<Buffers::VKBuffer, T>) {
129 }
131 if constexpr (std::is_base_of_v<Nodes::Node, T>) {
133 }
134 if constexpr (std::is_base_of_v<Nodes::NodeNetwork, T>) {
136 }
137 }
138 m_ctx = CreationContext {};
139 }
140 }
CreationContext m_ctx
Definition Creator.hpp:178
@ GRAPHICS
Standard real-time graphics processing domain.
Definition Domain.hpp:55
std::optional< uint32_t > channel
Definition Creator.hpp:10
std::optional< std::vector< uint32_t > > channels
Definition Creator.hpp:11
std::optional< Domain > domain
Definition Creator.hpp:9

References MayaFlux::CreationHandle< T >::apply_buffer_context(), MayaFlux::CreationHandle< T >::apply_container_context(), MayaFlux::CreationHandle< T >::apply_network_context(), MayaFlux::CreationHandle< T >::apply_node_context(), MayaFlux::CreationContext::channel, MayaFlux::CreationContext::channels, MayaFlux::CreationContext::domain, MayaFlux::GRAPHICS, and MayaFlux::CreationHandle< T >::m_ctx.

Referenced by MayaFlux::CreationHandle< T >::channel(), MayaFlux::CreationHandle< T >::channels(), MayaFlux::CreationHandle< T >::channels(), MayaFlux::CreationHandle< T >::domain(), and MayaFlux::CreationHandle< T >::operator[]().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: