diff options
| author | Courtney Goeltzenleuchter <courtneygo@google.com> | 2015-12-02 15:29:33 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2015-12-17 11:20:07 -0700 |
| commit | 6fed229bcddf5c07eefc5a0d42841b7827189d0b (patch) | |
| tree | 62e4707cbe9262bd0e15245d7630a9dec3ac6029 /loader/debug_report.h | |
| parent | 24df68333a28df31316eda3dddf2939f35342068 (diff) | |
| download | usermoji-6fed229bcddf5c07eefc5a0d42841b7827189d0b.tar.xz | |
loader: utils for managing debug report events
Now need to create & destroy callbacks as part of
vkCreateInstance, so refactor debug_report entries
into API function and work function that can be
used from the loader.
Conflicts:
loader/debug_report.c
Diffstat (limited to 'loader/debug_report.h')
| -rw-r--r-- | loader/debug_report.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/loader/debug_report.h b/loader/debug_report.h index 1d812756..baaae86f 100644 --- a/loader/debug_report.h +++ b/loader/debug_report.h @@ -123,3 +123,24 @@ VKAPI_ATTR void VKAPI_CALL loader_DebugReportMessage( int32_t msgCode, const char* pLayerPrefix, const char* pMsg); + +VkResult util_CreateDebugReportCallback( + struct loader_instance *inst, + VkDebugReportCallbackCreateInfoLUNARG *pCreateInfo, + const VkAllocationCallbacks *pAllocator, + VkDebugReportCallbackLUNARG callback); + +void util_DestroyDebugReportCallback( + struct loader_instance *inst, + VkDebugReportCallbackLUNARG callback, + const VkAllocationCallbacks *pAllocator); + +VkBool32 util_DebugReportMessage( + const struct loader_instance* inst, + VkFlags msgFlags, + VkDebugReportObjectTypeLUNARG objectType, + uint64_t srcObject, + size_t location, + int32_t msgCode, + const char* pLayerPrefix, + const char* pMsg); |
