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

◆ has_process_hook()

bool MayaFlux::Core::SubsystemManager::has_process_hook ( SubsystemType  type,
const std::string &  name 
)

Check if a processing hook exists.

Parameters
typeSubsystemType to check
nameHook identifier to look for
Returns
True if hook exists (in either pre or post position)

Checks both pre-process and post-process hook collections for the named hook.

Definition at line 348 of file SubsystemManager.cpp.

349{
350 auto handle = get_validated_handle(type);
351 if (!handle)
352 return false;
353
354 return handle->pre_process_hooks.contains(name) || handle->post_process_hooks.contains(name);
355}
vk::PhysicalDeviceType type
Definition VKDevice.cpp:126
std::string name
Definition VKDevice.cpp:123
SubsystemProcessingHandle * get_validated_handle(SubsystemType type) const
Get processing handle with validation.

References get_validated_handle(), name, and type.

+ Here is the call graph for this function: