Blender  V3.3
Public Member Functions | Public Attributes | List of all members
blender::bke::AttributeReader< T > Struct Template Reference

#include <BKE_attribute.hh>

Public Member Functions

 operator bool () const
 

Public Attributes

VArray< Tvarray
 
eAttrDomain domain
 

Detailed Description

template<typename T>
struct blender::bke::AttributeReader< T >

Result when looking up an attribute from some geometry with the intention of only reading from it.

Definition at line 136 of file BKE_attribute.hh.

Member Function Documentation

◆ operator bool()

template<typename T >
blender::bke::AttributeReader< T >::operator bool ( ) const
inline

Definition at line 146 of file BKE_attribute.hh.

References blender::bke::AttributeReader< T >::varray.

Member Data Documentation

◆ domain

template<typename T >
eAttrDomain blender::bke::AttributeReader< T >::domain

Domain where the attribute is stored. This also determines the size of the virtual array.

Definition at line 144 of file BKE_attribute.hh.

◆ varray

template<typename T >
VArray<T> blender::bke::AttributeReader< T >::varray

Virtual array that provides access to the attribute data. This may be empty.

Definition at line 140 of file BKE_attribute.hh.

Referenced by blender::bke::AttributeReader< T >::operator bool().


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