| 1 | //! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_EXT_image_compression_control.html> |
| 2 | |
| 3 | use crate::vk; |
| 4 | #[cfg(doc)] |
| 5 | use crate::{ext, khr}; |
| 6 | |
| 7 | impl crate::ext::image_compression_control::Device { |
| 8 | /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetImageSubresourceLayout2EXT.html> |
| 9 | /// |
| 10 | /// Also available as [`khr::maintenance5::Device::get_image_subresource_layout2()`] |
| 11 | /// when [`VK_KHR_maintenance5`] is enabled. |
| 12 | /// |
| 13 | /// Also available as [`ext::host_image_copy::Device::get_image_subresource_layout2()`] |
| 14 | /// when [`VK_EXT_host_image_copy`] is enabled. |
| 15 | /// |
| 16 | /// [`VK_KHR_maintenance5`]: https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_maintenance5.html |
| 17 | /// [`VK_EXT_host_image_copy`]: https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_EXT_host_image_copy.html |
| 18 | #[inline] |
| 19 | pub unsafe fn get_image_subresource_layout2( |
| 20 | &self, |
| 21 | image: vk::Image, |
| 22 | subresource: &vk::ImageSubresource2EXT<'_>, |
| 23 | layout: &mut vk::SubresourceLayout2EXT<'_>, |
| 24 | ) { |
| 25 | (self.fp.get_image_subresource_layout2_ext)(self.handle, image, subresource, layout) |
| 26 | } |
| 27 | } |