Revision control

Copy as Markdown

Other Tools

use crate::vk;
#[cfg(doc)]
use crate::{ext, khr};
impl crate::ext::image_compression_control::Device {
///
/// Also available as [`khr::maintenance5::Device::get_image_subresource_layout2()`]
/// when [`VK_KHR_maintenance5`] is enabled.
///
/// Also available as [`ext::host_image_copy::Device::get_image_subresource_layout2()`]
/// when [`VK_EXT_host_image_copy`] is enabled.
///
#[inline]
pub unsafe fn get_image_subresource_layout2(
&self,
image: vk::Image,
subresource: &vk::ImageSubresource2EXT<'_>,
layout: &mut vk::SubresourceLayout2EXT<'_>,
) {
(self.fp.get_image_subresource_layout2_ext)(self.handle, image, subresource, layout)
}
}