Plasma Engine  2.0
Loading...
Searching...
No Matches
plInstanceDataDesc Struct Reference

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

#include <InstanceDataAllocator.h>

Public Member Functions

template<typename T >
PL_ALWAYS_INLINE void FillFromType ()
 

Public Attributes

plUInt32 m_uiTypeSize = 0
 
plUInt32 m_uiTypeAlignment = 0
 
plMemoryUtils::ConstructorFunction m_ConstructorFunction = nullptr
 
plMemoryUtils::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 plInstanceDataAllocator.

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


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