pub fn rebind(&mut self, bindings: &[Binding]) -> &Self {
        self.inner = self
            .gpu
            .device
            .create_bind_group(&wgpu::BindGroupDescriptor {
                label: None,
                layout: &self.layout,
                entries: bindings
                    .iter()
                    .enumerate()
                    .map(|(i, b)| BindGroupEntry {
                        binding: i as _,
                        resource: b.resource.clone(),
                    })
                    .collect::<Vec<_>>()
                    .as_slice(),
            });
        self
    }
// Recreates the bind group with the same layout inplace, but with the given bindings.
Recreates the bind group with the same layout inplace, but with the given bindings.
Recreates the bind group with the same layout inplace but with the given bindings .
pub fn rebind(&mut self, bindings: &[Binding]) -> &Self {
        self.inner = self
            .gpu
            .device
            .create_bind_group(&wgpu::BindGroupDescriptor {
                label: None,
                layout: &self.layout,
                entries: bindings
                    .iter()
                    .enumerate()
                    .map(|(i, b)| BindGroupEntry {
                        binding: i as _,
                        resource: b.resource.clone(),
                    })
                    .collect::<Vec<_>>()
                    .as_slice(),
            });
        self
    }
pub fn rebind ( & mut self , bindings : & [ Binding ] ) -> & Self { self . inner = self . gpu . device . create_bind_group ( & wgpu :: BindGroupDescriptor { label : None , layout : & self . layout , entries : bindings . iter ( ) . enumerate ( ) . map ( | ( i , b ) | BindGroupEntry { binding : i as _ , resource : b . resource . clone ( ) , } ) . collect :: < Vec < _ > > ( ) . as_slice ( ) , } ) ; self }
Recreates the bind group with the same layout inplace, but with the given bindings.
Recreates the bind group with the same layout inplace but with the given bindings .
&mut self
bindings
&[Binding]
&mut self
bindings
&[Binding]