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:
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",