Blender V5.3
blender::bke::bake::DeferredTypeAttributeFieldInput Class Reference

#include <BKE_bake_attribute_field.hh>

Inherits blender::fn::FieldInput.

Public Types

using DummyT = float

Public Member Functions

 DeferredTypeAttributeFieldInput (std::string attribute_name)
GVArray get_varray_for_context (const fn::FieldContext &, const IndexMask &mask, ResourceScope &) const override
Public Member Functions inherited from blender::fn::FieldInput
 FieldInput (const CPPType &type, std::string debug_name="")
 ~FieldInput () override
const FieldInputsPtr & field_inputs () const
uint64_t hash () const
virtual void hash_unique (UniqueHashBytes &hash, FieldHashDeep &deep_hash_cache) const
virtual void foreach_recursive_field (FunctionRef< void(const GField &)> fn) const
void delete_self () override
StringRefNull debug_name () const
virtual std::string socket_inspection_name () const
const CPPType & cpp_type () const
Public Member Functions inherited from blender::blender::ImplicitSharingInfo
virtual ~ImplicitSharingInfo ()
bool is_mutable () const
bool is_expired () const
void add_user () const
void add_weak_user () const
void tag_ensured_mutable () const
int64_t version () const
int strong_users () const
void remove_user_and_delete_if_last () const
void remove_weak_user_and_delete_if_last () const

Public Attributes

std::string attribute_name

Additional Inherited Members

Protected Attributes inherited from blender::fn::FieldInput
const CPPType * type_
std::string debug_name_
CacheMutex field_inputs_mutex_
FieldInputsPtr field_inputs_

Detailed Description

When reading an attribute field from a bake, the type of the field may not be known immediately because it used to not be stored. However, it can be derived later when all actually existing attributes are known.

Definition at line 20 of file BKE_bake_attribute_field.hh.

Member Typedef Documentation

◆ DummyT

Constructor & Destructor Documentation

◆ DeferredTypeAttributeFieldInput()

blender::bke::bake::DeferredTypeAttributeFieldInput::DeferredTypeAttributeFieldInput ( std::string attribute_name)
inline

Member Function Documentation

◆ get_varray_for_context()

GVArray blender::bke::bake::DeferredTypeAttributeFieldInput::get_varray_for_context ( const fn::FieldContext & context,
const IndexMask & mask,
ResourceScope & scope ) const
inlineoverridevirtual

Output a virtual array for the given index mask in the given context.

Implements blender::fn::FieldInput.

Definition at line 30 of file BKE_bake_attribute_field.hh.

References blender::VArray< T >::from_single().

Member Data Documentation

◆ attribute_name

std::string blender::bke::bake::DeferredTypeAttributeFieldInput::attribute_name

Definition at line 22 of file BKE_bake_attribute_field.hh.

Referenced by DeferredTypeAttributeFieldInput().


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