mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-18 13:37:11 +00:00
Only create initial contents for memory that is initialisable
This commit is contained in:
@@ -1786,8 +1786,10 @@ void WrappedVulkan::Create_InitialState(ResourceId id, WrappedVkRes *live, bool)
|
||||
}
|
||||
else if(type == eResDeviceMemory)
|
||||
{
|
||||
VkBuffer dstBuf = m_CreationInfo.m_Memory[id].wholeMemBuf;
|
||||
// need to ensure there are initial contents to apply though we don't create any memory
|
||||
GetResourceManager()->SetInitialContents(id, VkInitialContents(type, MemoryAllocation()));
|
||||
if(dstBuf != VK_NULL_HANDLE)
|
||||
GetResourceManager()->SetInitialContents(id, VkInitialContents(type, MemoryAllocation()));
|
||||
}
|
||||
else if(type == eResDeviceMemory || type == eResBuffer || type == eResAccelerationStructureKHR)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user