Skip to main content

jay_ash/extensions/ext/
vertex_input_dynamic_state.rs

1//! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_EXT_vertex_input_dynamic_state.html>
2
3use crate::vk;
4
5impl crate::ext::vertex_input_dynamic_state::Device {
6    /// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdSetVertexInputEXT.html>
7    #[inline]
8    pub unsafe fn cmd_set_vertex_input(
9        &self,
10        command_buffer: vk::CommandBuffer,
11        vertex_binding_descriptions: &[vk::VertexInputBindingDescription2EXT<'_>],
12        vertex_attribute_descriptions: &[vk::VertexInputAttributeDescription2EXT<'_>],
13    ) {
14        unsafe {
15            (self.fp.cmd_set_vertex_input_ext)(
16                command_buffer,
17                vertex_binding_descriptions.len() as u32,
18                vertex_binding_descriptions.as_ptr(),
19                vertex_attribute_descriptions.len() as u32,
20                vertex_attribute_descriptions.as_ptr(),
21            )
22        }
23    }
24}