You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: idea make a macro for overriding all `delete` operators of a class to enforce a finalizer that runs in reverse order to destructors (to allow polymorphic cleanups)
135
+
inlinevoidout_of_order_dtor()
132
136
{
133
137
// Only release the resources if the parent pool has not been reset because if it has been then the resources will already be released.
134
138
if (!checkForParentPoolReset())
135
-
{
136
139
releaseResourcesBackToPool();
137
-
}
138
140
}
139
141
140
142
system::logger_opt_smart_ptr m_logger;
@@ -252,9 +254,7 @@ class NBL_API2 IGPUCommandBuffer :
252
254
m_commandList.head = nullptr;
253
255
m_commandList.tail = nullptr;
254
256
255
-
// Example 05 crashes here, with assert in `ucrt` maybe vtable gets lost or something?
256
-
// For now commented out because we only have a Vulkan backend and function doesn't do anything.
257
-
//checkForParentPoolReset_impl();
257
+
checkForParentPoolReset_impl();
258
258
259
259
returntrue;
260
260
}
@@ -288,7 +288,7 @@ class NBL_API2 IGPUCommandBuffer :
288
288
returntrue;
289
289
}
290
290
291
-
uint64_t m_resetCheckedStamp = 0;
291
+
uint64_t m_resetCheckedStamp;
292
292
293
293
// This bound descriptor set record doesn't include the descriptor sets whose layout has _any_ one of its bindings
294
294
// created with IGPUDescriptorSetLayout::SBinding::E_CREATE_FLAGS::ECF_UPDATE_AFTER_BIND_BIT
0 commit comments