MCPcopy Create free account
hub / github.com/defold/defold / DestroyInstance

Function DestroyInstance

engine/rig/src/rig.cpp:1733–1744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1731 }
1732
1733 static void DestroyInstance(HRigContext context, uint32_t index)
1734 {
1735 RigInstance* instance = context->m_Instances.Get(index);
1736 // If we're going to use memset, then we should explicitly clear pose and instance arrays.
1737 instance->m_Pose.SetCapacity(0);
1738 instance->m_IKTargets.SetCapacity(0);
1739 instance->m_MorphSlots.SetCapacity(0);
1740 instance->m_MorphWeightsBuffer.SetCapacity(0);
1741 instance->m_MorphScratch.SetCapacity(0);
1742 delete instance;
1743 context->m_Instances.Free(index, true);
1744 }
1745
1746 Result InstanceCreate(HRigContext context, const InstanceCreateParams& params, HRigInstance* out_instance)
1747 {

Callers 3

InstanceCreateFunction · 0.70
InstanceDestroyFunction · 0.70
vkQuality_destroyFunction · 0.50

Calls 3

GetMethod · 0.45
SetCapacityMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected