Blender  V2.93
Public Member Functions | Static Public Member Functions | List of all members
MapRangeSteppedFunction Class Reference

Inherits blender::fn::MultiFunction.

Public Member Functions

 MapRangeSteppedFunction (bool clamp)
 
void call (blender::IndexMask mask, blender::fn::MFParams params, blender::fn::MFContext UNUSED(context)) const override
 
- Public Member Functions inherited from blender::fn::MultiFunction
virtual ~MultiFunction ()
 
virtual void call (IndexMask mask, MFParams params, MFContext context) const =0
 
virtual uint64_t hash () const
 
virtual bool equals (const MultiFunction &UNUSED(other)) const
 
int param_amount () const
 
IndexRange param_indices () const
 
MFParamType param_type (int param_index) const
 
StringRefNull param_name (int param_index) const
 
StringRefNull name () const
 
bool depends_on_context () const
 
const MFSignaturesignature () const
 

Static Public Member Functions

static blender::fn::MFSignature create_signature ()
 

Additional Inherited Members

- Protected Member Functions inherited from blender::fn::MultiFunction
void set_signature (const MFSignature *signature)
 

Detailed Description

Definition at line 149 of file node_shader_map_range.cc.

Constructor & Destructor Documentation

◆ MapRangeSteppedFunction()

MapRangeSteppedFunction::MapRangeSteppedFunction ( bool  clamp)
inline

Member Function Documentation

◆ call()

void MapRangeSteppedFunction::call ( blender::IndexMask  mask,
blender::fn::MFParams  params,
blender::fn::MFContext   UNUSEDcontext 
) const
inlineoverride

Definition at line 167 of file node_shader_map_range.cc.

References clamp_f(), floorf, mask(), params, safe_divide(), and steps.

◆ create_signature()

static blender::fn::MFSignature MapRangeSteppedFunction::create_signature ( )
inlinestatic

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