Assert IsLoading() in Vulkan AddEvent(), AddAction()

This commit is contained in:
Jake Turner
2026-07-20 12:40:34 +01:00
parent a5164bd9f2
commit bf4b34671f
+2
View File
@@ -6017,6 +6017,7 @@ void WrappedVulkan::AddForcedReference(VkResourceRecord *record)
void WrappedVulkan::AddAction(const ActionDescription &a)
{
RDCASSERT(IsLoading(m_State));
m_AddedAction = true;
ActionDescription action = a;
@@ -6698,6 +6699,7 @@ void WrappedVulkan::AddFramebufferUsageAllChildren(VulkanActionTreeNode &actionN
void WrappedVulkan::AddEvent()
{
RDCASSERT(IsLoading(m_State));
APIEvent apievent;
apievent.fileOffset = m_CurChunkOffset;