mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-16 10:45:45 +00:00
Fix debug callback - should have a return value of VkBool32
This commit is contained in:
@@ -1883,7 +1883,7 @@ void WrappedVulkan::ReplayLog(uint32_t frameID, uint32_t startEventID, uint32_t
|
||||
}
|
||||
}
|
||||
|
||||
void WrappedVulkan::DebugCallback(
|
||||
VkBool32 WrappedVulkan::DebugCallback(
|
||||
VkFlags msgFlags,
|
||||
VkDbgObjectType objType,
|
||||
uint64_t srcObject,
|
||||
@@ -1893,6 +1893,7 @@ void WrappedVulkan::DebugCallback(
|
||||
const char* pMsg)
|
||||
{
|
||||
RDCWARN("[%s] %s", pLayerPrefix, pMsg);
|
||||
return false;
|
||||
}
|
||||
|
||||
void WrappedVulkan::AddDrawcall(FetchDrawcall d, bool hasEvents)
|
||||
|
||||
@@ -482,7 +482,7 @@ private:
|
||||
WrappedVulkan(const WrappedVulkan &);
|
||||
WrappedVulkan &operator =(const WrappedVulkan &);
|
||||
|
||||
void DebugCallback(
|
||||
VkBool32 DebugCallback(
|
||||
VkFlags msgFlags,
|
||||
VkDbgObjectType objType,
|
||||
uint64_t srcObject,
|
||||
@@ -491,7 +491,7 @@ private:
|
||||
const char* pLayerPrefix,
|
||||
const char* pMsg);
|
||||
|
||||
static void DebugCallbackStatic(
|
||||
static VkBool32 DebugCallbackStatic(
|
||||
VkFlags msgFlags,
|
||||
VkDbgObjectType objType,
|
||||
uint64_t srcObject,
|
||||
@@ -501,7 +501,7 @@ private:
|
||||
const char* pMsg,
|
||||
void* pUserData)
|
||||
{
|
||||
((WrappedVulkan *)pUserData)->DebugCallback(msgFlags, objType, srcObject, location, msgCode, pLayerPrefix, pMsg);
|
||||
return ((WrappedVulkan *)pUserData)->DebugCallback(msgFlags, objType, srcObject, location, msgCode, pLayerPrefix, pMsg);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user