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

◆ set_sorting_parameter()

template<ComputeData InputType = Kakshya::DataVariant, ComputeData OutputType = InputType>
void MayaFlux::Yantra::StandardSorter< InputType, OutputType >::set_sorting_parameter ( const std::string &  name,
std::any  value 
)
inlineoverrideprotectedvirtual

Custom parameter handling.

Reimplemented from MayaFlux::Yantra::UniversalSorter< InputType, OutputType >.

Definition at line 146 of file StandardSorter.hpp.

147 {
148 if (name == "algorithm") {
149 if (auto alg_result = safe_any_cast<SortingAlgorithm>(value)) {
150 m_algorithm = *alg_result.value;
151 return;
152 }
153 if (auto str_result = safe_any_cast<std::string>(value)) {
154 auto algorithm_enum = Reflect::string_to_enum_case_insensitive<SortingAlgorithm>(*str_result.value);
155 if (algorithm_enum) {
156 m_algorithm = *algorithm_enum;
157 return;
158 }
159 }
160 }
161 if (name == "chunk_size") {
162 if (auto size_result = safe_any_cast<size_t>(value)) {
163 m_chunk_size = *size_result.value;
164 return;
165 }
166 }
168 }
glm::vec3 value
std::string name
Definition VKDevice.cpp:123
virtual void set_sorting_parameter(const std::string &name, std::any value)
Sorting-specific parameter handling (override for custom parameters)

References MayaFlux::Yantra::StandardSorter< InputType, OutputType >::m_algorithm, MayaFlux::Yantra::StandardSorter< InputType, OutputType >::m_chunk_size, name, MayaFlux::Yantra::UniversalSorter< InputType, OutputType >::set_sorting_parameter(), and value.

+ Here is the call graph for this function: