pub unsafe fn create_descriptor_set_layout(
    device: &Device,
) -> Result<(vk::DescriptorSetLayout, Vec<vk::DescriptorSetLayoutBinding>)> {
    let bindings = vec![sampler_layout_binding()];
    let descriptor_set_layout =
        device.logical_device.create_descriptor_set_layout(
            &vk::DescriptorSetLayoutCreateInfo {
                p_bindings: bindings.as_ptr(),
                binding_count: bindings.len() as u32,
                ..Default::default()
            },
            None,
        )?;
    Ok((descriptor_set_layout, bindings))
}
/// Create a descriptor set layout instance which describes the bindings used by
/// Draw2d.
///
/// Unsafe:  the returned descriptor set is unowned. The caller is responsible
///          destroying it when it is no longer being used.
Create a descriptor set layout instance which describes the bindings used by
Draw2d.

the returned descriptor set is unowned. The caller is responsible
destroying it when it is no longer being used.
Create a descriptor set layout instance which describes the bindings used by Draw2d . the returned descriptor set is unowned . The caller is responsible destroying it when it is no longer being used .
pub unsafe fn create_descriptor_set_layout(
    device: &Device,
) -> Result<(vk::DescriptorSetLayout, Vec<vk::DescriptorSetLayoutBinding>)> {
    let bindings = vec![sampler_layout_binding()];
    let descriptor_set_layout =
        device.logical_device.create_descriptor_set_layout(
            &vk::DescriptorSetLayoutCreateInfo {
                p_bindings: bindings.as_ptr(),
                binding_count: bindings.len() as u32,
                ..Default::default()
            },
            None,
        )?;
    Ok((descriptor_set_layout, bindings))
}
pub unsafe fn create_descriptor_set_layout ( device : & Device , ) -> Result < ( vk :: DescriptorSetLayout , Vec < vk :: DescriptorSetLayoutBinding > ) > { let bindings = vec ! [ sampler_layout_binding ( ) ] ; let descriptor_set_layout = device . logical_device . create_descriptor_set_layout ( & vk :: DescriptorSetLayoutCreateInfo { p_bindings : bindings . as_ptr ( ) , binding_count : bindings . len ( ) as u32 , .. Default :: default ( ) } , None , ) ? ; Ok ( ( descriptor_set_layout , bindings ) ) }
Create a descriptor set layout instance which describes the bindings used by
Draw2d.
Create a descriptor set layout instance which describes the bindings used by Draw2d .
device
&Device