pub fn create(self, cx: &Context) -> (wgpu::PipelineLayout, Vec<wgpu::BindGroupLayout>) {
        let groups = self
            .0
            .iter()
            .map(|&group| group.create(cx))
            .collect::<Vec<_>>();

        let layout = cx
            .device
            .create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
                label: None,
                bind_group_layouts: &groups.iter().collect::<Vec<_>>(),
                push_constant_ranges: &[],
            });

        (layout, groups)
    }
/// Creates a new [wgpu::PipelineLayout] from the stored bind group layouts.
///
/// Also returns, at tuple index 1, the [wgpu::BindGroupLayout]s created in the process.
Creates a new [wgpu::PipelineLayout] from the stored bind group layouts.
Also returns, at tuple index 1, the [wgpu::BindGroupLayout]s created in the process.
Creates a new [ wgpu :: PipelineLayout ] from the stored bind group layouts . Also returns at tuple index 1 the [ wgpu :: BindGroupLayout ] s created in the process .
pub fn create(self, cx: &Context) -> (wgpu::PipelineLayout, Vec<wgpu::BindGroupLayout>) {
        let groups = self
            .0
            .iter()
            .map(|&group| group.create(cx))
            .collect::<Vec<_>>();
        let layout = cx
            .device
            .create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
                label: None,
                bind_group_layouts: &groups.iter().collect::<Vec<_>>(),
                push_constant_ranges: &[],
            });
        (layout, groups)
    }
pub fn create ( self , cx : & Context ) -> ( wgpu :: PipelineLayout , Vec < wgpu :: BindGroupLayout > ) { let groups = self . 0 . iter ( ) . map ( | & group | group . create ( cx ) ) . collect :: < Vec < _ > > ( ) ; let layout = cx . device . create_pipeline_layout ( & wgpu :: PipelineLayoutDescriptor { label : None , bind_group_layouts : & groups . iter ( ) . collect :: < Vec < _ > > ( ) , push_constant_ranges : & [ ] , } ) ; ( layout , groups ) }
Creates a new [wgpu::PipelineLayout] from the stored bind group layouts.
Creates a new [ wgpu :: PipelineLayout ] from the stored bind group layouts .
self
cx
&Context
self
cx
&Context