ezEngine  Release 25.03
ezInstanceDataDesc Struct Reference

Structure to describe an instance data type. More...

#include <InstanceDataAllocator.h>

Public Member Functions

template<typename T >
EZ_ALWAYS_INLINE void FillFromType ()
 

Public Attributes

ezUInt32 m_uiTypeSize = 0
 
ezUInt32 m_uiTypeAlignment = 0
 
ezMemoryUtils::ConstructorFunction m_ConstructorFunction = nullptr
 
ezMemoryUtils::DestructorFunction m_DestructorFunction = nullptr
 

Detailed Description

Structure to describe an instance data type.

Many resources, such as VMs, state machines and visual scripts of various types have shared state (their configuration) as well as per-instance state (for their execution).

This structure describes the type of instance data used by a such a resource (or a node inside it). Instance data is allocated through the ezInstanceDataAllocator.

Use the templated Fill() method to fill the desc from a data type.


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