mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Split up C-comment in a multi-line macro that was confusing clang-format
* Every time clang-format applied to this file, it would add a new \ on the end of the first line of the comment. Splitting it into two single-line C comments works around this behaviour.
This commit is contained in:
@@ -3009,26 +3009,26 @@ string ToStrHelper<false, VkPresentModeKHR>::Get(const VkPresentModeKHR &el)
|
||||
}
|
||||
|
||||
// we know the object will be a non-dispatchable object type
|
||||
#define SerialiseObjectInternal(type, name, obj, opt) \
|
||||
{ \
|
||||
VulkanResourceManager *rm = (VulkanResourceManager *)GetUserData(); \
|
||||
ResourceId id; \
|
||||
if(m_Mode >= WRITING) \
|
||||
id = GetResID(obj); \
|
||||
Serialise(name, id); \
|
||||
if(m_Mode < WRITING) \
|
||||
{ \
|
||||
obj = VK_NULL_HANDLE; \
|
||||
if(id != ResourceId()) \
|
||||
{ \
|
||||
if(rm->HasLiveResource(id)) \
|
||||
obj = Unwrap(rm->GetLiveHandle<type>(id)); \
|
||||
else if(!opt) \
|
||||
/* It can be OK for a resource to have no live equivalent if the \
|
||||
capture decided its not needed, which some APIs do fairly often. */ \
|
||||
RDCWARN("Capture may be missing reference to " #type " resource."); \
|
||||
} \
|
||||
} \
|
||||
#define SerialiseObjectInternal(type, name, obj, opt) \
|
||||
{ \
|
||||
VulkanResourceManager *rm = (VulkanResourceManager *)GetUserData(); \
|
||||
ResourceId id; \
|
||||
if(m_Mode >= WRITING) \
|
||||
id = GetResID(obj); \
|
||||
Serialise(name, id); \
|
||||
if(m_Mode < WRITING) \
|
||||
{ \
|
||||
obj = VK_NULL_HANDLE; \
|
||||
if(id != ResourceId()) \
|
||||
{ \
|
||||
if(rm->HasLiveResource(id)) \
|
||||
obj = Unwrap(rm->GetLiveHandle<type>(id)); \
|
||||
else if(!opt) \
|
||||
/* It can be OK for a resource to have no live equivalent if the */ \
|
||||
/* capture decided its not needed, which some APIs do fairly often. */ \
|
||||
RDCWARN("Capture may be missing reference to " #type " resource."); \
|
||||
} \
|
||||
} \
|
||||
}
|
||||
|
||||
#define SerialiseObject(type, name, obj) SerialiseObjectInternal(type, name, obj, false)
|
||||
|
||||
Reference in New Issue
Block a user