Blender  V3.3
Public Member Functions | Static Public Attributes | List of all members
blender::fn::CustomMF_presets::AllSpanOrSingle Struct Reference

#include <FN_multi_function_builder.hh>

Public Member Functions

template<typename Fn , typename... ParamTypes>
void try_devirtualize (devi::Devirtualizer< Fn, ParamTypes... > &devirtualizer)
 

Static Public Attributes

static constexpr bool use_devirtualization = true
 
static constexpr FallbackMode fallback_mode = FallbackMode::Materialized
 

Detailed Description

The most efficient preset, but also potentially generates a lot of code (exponential in the number of inputs of the function). It generates separate optimized loops for all combinations of inputs. This should be used for small functions of which all inputs are likely to be single values or spans, and the number of inputs is relatively small.

Definition at line 62 of file FN_multi_function_builder.hh.

Member Function Documentation

◆ try_devirtualize()

template<typename Fn , typename... ParamTypes>
void blender::fn::CustomMF_presets::AllSpanOrSingle::try_devirtualize ( devi::Devirtualizer< Fn, ParamTypes... > &  devirtualizer)
inline

Member Data Documentation

◆ fallback_mode

constexpr FallbackMode blender::fn::CustomMF_presets::AllSpanOrSingle::fallback_mode = FallbackMode::Materialized
staticconstexpr

Definition at line 64 of file FN_multi_function_builder.hh.

◆ use_devirtualization

constexpr bool blender::fn::CustomMF_presets::AllSpanOrSingle::use_devirtualization = true
staticconstexpr

Definition at line 63 of file FN_multi_function_builder.hh.


The documentation for this struct was generated from the following file: