mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-28 10:21:48 +00:00
Assert IsLoading() in Vulkan AddEvent(), AddAction()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user