Add DebugMarker Markers functionality

This commit is contained in:
Jakub Okoński 2017-12-17 16:52:43 +01:00
parent cd2ae99707
commit e77fdf574c
2 changed files with 51 additions and 0 deletions

View file

@ -44,4 +44,35 @@ impl DebugMarker {
_ => Err(err_code)
}
}
pub unsafe fn cmd_debug_marker_begin_ext(
&self,
command_buffer: vk::CommandBuffer,
marker_info: &vk::DebugMarkerMarkerInfoEXT
) {
self.debug_marker_fn.cmd_debug_marker_begin_ext(
command_buffer,
marker_info
);
}
pub unsafe fn cmd_debug_marker_end_ext(
&self,
command_buffer: vk::CommandBuffer,
) {
self.debug_marker_fn.cmd_debug_marker_end_ext(
command_buffer,
);
}
pub unsafe fn cmd_debug_marker_insert_ext(
&self,
command_buffer: vk::CommandBuffer,
marker_info: &vk::DebugMarkerMarkerInfoEXT
) {
self.debug_marker_fn.cmd_debug_marker_insert_ext(
command_buffer,
marker_info
);
}
}

View file

@ -2538,6 +2538,14 @@ pub mod types {
pub p_object_name: *const c_char,
}
#[repr(C)]
pub struct DebugMarkerMarkerInfoEXT {
pub s_type: StructureType,
pub p_next: *const c_void,
pub p_marker_name: *const c_char,
pub color: [f32; 4]
}
#[repr(C)]
pub struct DebugReportCallbackCreateInfoEXT {
pub s_type: StructureType,
@ -2773,6 +2781,7 @@ pub mod types {
DisplayModeCreateInfoKhr = 1000002000,
DisplaySurfaceCreateInfoKhr = 1000002001,
DebugMarkerObjectNameInfoEXT = 1000022000,
DebugMarkerMarkerInfoEXT = 1000022002,
DebugReportCallbackCreateInfoExt = 1000011000,
IOSSurfaceCreateInfoMvk = 1000122000,
MacOSSurfaceCreateInfoMvk = 1000123000,
@ -5000,6 +5009,17 @@ pub mod cmds {
device: Device,
p_name_info: *const DebugMarkerObjectNameInfoEXT,
) -> Result;
"vkCmdDebugMarkerBeginEXT", cmd_debug_marker_begin_ext(
command_buffer: CommandBuffer,
p_marker_info: *const DebugMarkerMarkerInfoEXT,
) -> ();
"vkCmdDebugMarkerEndEXT", cmd_debug_marker_end_ext(
command_buffer: CommandBuffer,
) -> ();
"vkCmdDebugMarkerInsertEXT", cmd_debug_marker_insert_ext(
command_buffer: CommandBuffer,
p_marker_info: *const DebugMarkerMarkerInfoEXT,
) -> ();
}
vk_functions!{
DebugReportFn,