/// Set index here corresponds to the descriptor_set index in the shader
Set index here corresponds to the descriptor_set index in the shader
Set index here corresponds to the descriptor_set index in the shader
pub fn bind_descriptor_sets(
        &self,
        pipeline: &Pipeline,
        sets: &[vk::DescriptorSet],
        set_index: u32,
    ) {
        let graphics_bind_point = vk::PipelineBindPoint::GRAPHICS;
        unsafe {
            self.device.cmd_bind_descriptor_sets(
                self.command_buffer,
                graphics_bind_point,
                pipeline.layout,
                set_index,
                sets,
                &[],
            )
        };
    }
pub fn bind_descriptor_sets ( & self , pipeline : & Pipeline , sets : & [ vk :: DescriptorSet ] , set_index : u32 , ) { let graphics_bind_point = vk :: PipelineBindPoint :: GRAPHICS ; unsafe { self . device . cmd_bind_descriptor_sets ( self . command_buffer , graphics_bind_point , pipeline . layout , set_index , sets , & [ ] , ) } ; }
Set index here corresponds to the descriptor_set index in the shader
Set index here corresponds to the descriptor_set index in the shader
&self
pipeline
&Pipeline
sets
&[vk::DescriptorSet]
set_index
u32