Source code

Revision control

Copy as Markdown

Other Tools

use crate::prelude::*;
use crate::vk;
use crate::RawPtr;
impl crate::nv::low_latency2::Device {
#[inline]
pub unsafe fn set_latency_sleep_mode(
&self,
swapchain: vk::SwapchainKHR,
sleep_mode_info: Option<&vk::LatencySleepModeInfoNV<'_>>,
) -> VkResult<()> {
(self.fp.set_latency_sleep_mode_nv)(self.handle, swapchain, sleep_mode_info.as_raw_ptr())
.result()
}
#[inline]
pub unsafe fn latency_sleep(
&self,
swapchain: vk::SwapchainKHR,
sleep_info: &vk::LatencySleepInfoNV<'_>,
) -> VkResult<()> {
(self.fp.latency_sleep_nv)(self.handle, swapchain, sleep_info).result()
}
#[inline]
pub unsafe fn set_latency_marker(
&self,
swapchain: vk::SwapchainKHR,
latency_marker_info: &vk::SetLatencyMarkerInfoNV<'_>,
) {
(self.fp.set_latency_marker_nv)(self.handle, swapchain, latency_marker_info)
}
#[inline]
pub unsafe fn get_latency_timings(
&self,
swapchain: vk::SwapchainKHR,
latency_marker_info: &mut vk::GetLatencyMarkerInfoNV<'_>,
) {
(self.fp.get_latency_timings_nv)(self.handle, swapchain, latency_marker_info)
}
#[inline]
pub unsafe fn queue_notify_out_of_band(
&self,
queue: vk::Queue,
queue_type_info: &vk::OutOfBandQueueTypeInfoNV<'_>,
) {
(self.fp.queue_notify_out_of_band_nv)(queue, queue_type_info)
}
}