pub fn reset_cache_with_pipeline(
        &mut self,
        pipeline: &Arc<dyn GraphicsPipelineAbstract + Send + Sync>,
    ) -> Fallible<Option<Box<dyn GpuFuture>>> {
        let future = None;

        for material in &mut self.materials {
            material.cache.reset();
            material.cache.uniform_buffer = Some(create_material_desc_set(
                material.data.clone(),
                pipeline.clone(),
            )?);
        }

        for texture in &mut self.textures {
            texture.cache.reset();
            texture.cache.descriptor_set = Some(create_diffuse_texture_desc_set(
                texture.image.clone(),
                texture.sampler.clone(),
                pipeline.clone(),
            )?);
        }

        Ok(future)
    }
/// Reset and initialize caches with the given pipeline.
Reset and initialize caches with the given pipeline.
Reset and initialize caches with the given pipeline .
pub fn reset_cache_with_pipeline(
        &mut self,
        pipeline: &Arc<dyn GraphicsPipelineAbstract + Send + Sync>,
    ) -> Fallible<Option<Box<dyn GpuFuture>>> {
        let future = None;
        for material in &mut self.materials {
            material.cache.reset();
            material.cache.uniform_buffer = Some(create_material_desc_set(
                material.data.clone(),
                pipeline.clone(),
            )?);
        }
        for texture in &mut self.textures {
            texture.cache.reset();
            texture.cache.descriptor_set = Some(create_diffuse_texture_desc_set(
                texture.image.clone(),
                texture.sampler.clone(),
                pipeline.clone(),
            )?);
        }
        Ok(future)
    }
pub fn reset_cache_with_pipeline ( & mut self , pipeline : & Arc < dyn GraphicsPipelineAbstract + Send + Sync > , ) -> Fallible < Option < Box < dyn GpuFuture > > > { let future = None ; for material in & mut self . materials { material . cache . reset ( ) ; material . cache . uniform_buffer = Some ( create_material_desc_set ( material . data . clone ( ) , pipeline . clone ( ) , ) ? ) ; } for texture in & mut self . textures { texture . cache . reset ( ) ; texture . cache . descriptor_set = Some ( create_diffuse_texture_desc_set ( texture . image . clone ( ) , texture . sampler . clone ( ) , pipeline . clone ( ) , ) ? ) ; } Ok ( future ) }
Reset and initialize caches with the given pipeline.
Reset and initialize caches with the given pipeline .
&mut self
pipeline
&Arc<dyn GraphicsPipelineAbstract + Send + Sync>
&mut self
pipeline
&Arc<dyn GraphicsPipelineAbstract + Send + Sync>