diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2015-08-27 17:41:42 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobin@lunarg.com> | 2015-08-28 10:14:39 -0600 |
| commit | 74f400bb35120d405f78b9aaab28dcc1de374ccf (patch) | |
| tree | 30040dfa68a45f7389a68eb93388a86fee3d1886 | |
| parent | 41f0628dd4272315121d5b57c6f135bc2e1be86c (diff) | |
| download | usermoji-74f400bb35120d405f78b9aaab28dcc1de374ccf.tar.xz | |
vktrace: Add support for debug_marker_lunarg extension
| -rwxr-xr-x | vk_helper.py | 2 | ||||
| -rwxr-xr-x | vulkan.py | 28 |
2 files changed, 28 insertions, 2 deletions
diff --git a/vk_helper.py b/vk_helper.py index 41f31a62..352afb41 100755 --- a/vk_helper.py +++ b/vk_helper.py @@ -1277,7 +1277,7 @@ class StructWrapperGen: sh_funcs.append('%s}' % (indent)) sh_funcs.append("%sreturn structSize;\n}" % (indent)) # Now generate generic functions to loop over entire struct chain (or just handle single generic structs) - if 'wsi' not in self.header_filename and 'debug_report' not in self.header_filename: + if 'wsi' not in self.header_filename and '_debug_' not in self.header_filename: for follow_chain in [True, False]: sh_funcs.append('%s' % self.lineinfo.get()) if follow_chain: @@ -1136,9 +1136,35 @@ debug_report_lunarg = Extension( Param("VkDbgMsgCallback", "msgCallback")]), ], ) +debug_marker_lunarg = Extension( + name="VK_DEBUG_MARKER_LunarG", + headers=["vk_debug_marker_lunarg.h"], + objects=[], + protos=[ + Proto("void", "CmdDbgMarkerBegin", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("const char*", "pMarker")]), + Proto("void", "CmdDbgMarkerEnd", + [Param("VkCmdBuffer", "cmdBuffer")]), + + Proto("VkResult", "DbgSetObjectTag", + [Param("VkDevice", "device"), + Param("VkDbgObjectType", "objType"), + Param("uint64_t", "object"), + Param("size_t", "tagSize"), + Param("const void*", "pTag")]), + + Proto("VkResult", "DbgSetObjectName", + [Param("VkDevice", "device"), + Param("VkDbgObjectType", "objType"), + Param("uint64_t", "object"), + Param("size_t", "nameSize"), + Param("const char*", "pName")]), + ], +) extensions = [core, wsi_swapchain, wsi_device_swapchain] -extensions_all = [core, wsi_swapchain, wsi_device_swapchain, debug_report_lunarg] +extensions_all = [core, wsi_swapchain, wsi_device_swapchain, debug_report_lunarg, debug_marker_lunarg] object_dispatch_list = [ "VkInstance", "VkPhysicalDevice", |
