pub fn create(self, cx: &Context) -> wgpu::BindGroupLayout {
        cx.device
            .create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
                label: None,
                entries: &self
                    .0
                    .iter()
                    .enumerate()
                    .map(|(i, &entry)| wgpu::BindGroupLayoutEntry {
                        binding: i as u32,
                        ..entry.into()
                    })
                    .collect::<Vec<_>>(),
            })
    }
/// Creates a new [wgpu::BindGroupLayout] from stored entries.
Creates a new [wgpu::BindGroupLayout] from stored entries.
Creates a new [ wgpu :: BindGroupLayout ] from stored entries .
pub fn create(self, cx: &Context) -> wgpu::BindGroupLayout {
        cx.device
            .create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
                label: None,
                entries: &self
                    .0
                    .iter()
                    .enumerate()
                    .map(|(i, &entry)| wgpu::BindGroupLayoutEntry {
                        binding: i as u32,
                        ..entry.into()
                    })
                    .collect::<Vec<_>>(),
            })
    }
pub fn create ( self , cx : & Context ) -> wgpu :: BindGroupLayout { cx . device . create_bind_group_layout ( & wgpu :: BindGroupLayoutDescriptor { label : None , entries : & self . 0 . iter ( ) . enumerate ( ) . map ( | ( i , & entry ) | wgpu :: BindGroupLayoutEntry { binding : i as u32 , .. entry . into ( ) } ) . collect :: < Vec < _ > > ( ) , } ) }
Creates a new [wgpu::BindGroupLayout] from stored entries.
Creates a new [ wgpu :: BindGroupLayout ] from stored entries .
self
cx
&Context
self
cx
&Context