Blender V5.0
blender::bke::AttributeInitShared Struct Reference

#include <BKE_attribute.hh>

Inherits blender::bke::AttributeInit.

Public Member Functions

 AttributeInitShared (const void *data, const ImplicitSharingInfo &sharing_info)
Public Member Functions inherited from blender::bke::AttributeInit
 AttributeInit (const Type type)

Public Attributes

const void * data = nullptr
const ImplicitSharingInfosharing_info = nullptr
Public Attributes inherited from blender::bke::AttributeInit
Type type

Additional Inherited Members

Public Types inherited from blender::bke::AttributeInit
enum class  Type {
  Construct , DefaultValue , VArray , MoveArray ,
  Shared
}

Detailed Description

Create a shared attribute by adding a user to a shared data array. The sharing info has ownership of the provided contiguous array.

Definition at line 167 of file BKE_attribute.hh.

Constructor & Destructor Documentation

◆ AttributeInitShared()

blender::bke::AttributeInitShared::AttributeInitShared ( const void * data,
const ImplicitSharingInfo & sharing_info )
inline

Member Data Documentation

◆ data

const void* blender::bke::AttributeInitShared::data = nullptr

Definition at line 168 of file BKE_attribute.hh.

Referenced by AttributeInitShared().

◆ sharing_info

const ImplicitSharingInfo* blender::bke::AttributeInitShared::sharing_info = nullptr

Definition at line 169 of file BKE_attribute.hh.

Referenced by AttributeInitShared().


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