Skip to main content

jay_ash/extensions/khr/
dynamic_rendering_local_read.rs

1//! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_dynamic_rendering_local_read.html>
2
3use crate::vk;
4
5impl crate::khr::dynamic_rendering_local_read::Device {
6    /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdSetRenderingAttachmentLocationsKHR.html>
7    #[inline]
8    pub unsafe fn cmd_set_rendering_attachment_locations(
9        &self,
10        command_buffer: vk::CommandBuffer,
11        location_info: &vk::RenderingAttachmentLocationInfoKHR<'_>,
12    ) {
13        unsafe {
14            (self.fp.cmd_set_rendering_attachment_locations_khr)(command_buffer, location_info)
15        }
16    }
17
18    /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdSetRenderingInputAttachmentIndicesKHR.html>
19    #[inline]
20    pub unsafe fn cmd_set_rendering_input_attachment_indices(
21        &self,
22        command_buffer: vk::CommandBuffer,
23        location_info: &vk::RenderingInputAttachmentIndexInfoKHR<'_>,
24    ) {
25        unsafe {
26            (self.fp.cmd_set_rendering_input_attachment_indices_khr)(command_buffer, location_info)
27        }
28    }
29}