pub fn with_pipeline_layout<Cs>(device: Arc<Device>, shader: &Cs,
                                    specialization: &Cs::SpecializationConstants,
                                    pipeline_layout: Pl)
                                    -> Result<ComputePipeline<Pl>, ComputePipelineCreationError>
        where Cs::PipelineLayout: Clone,
              Cs: EntryPointAbstract,
              Pl: PipelineLayoutAbstract
    {
        unsafe {
            PipelineLayoutSuperset::ensure_superset_of(&pipeline_layout, shader.layout())?;
            ComputePipeline::with_unchecked_pipeline_layout(device,
                                                            shader,
                                                            specialization,
                                                            pipeline_layout)
        }
    }
/// Builds a new `ComputePipeline` with a specific pipeline layout.
///
/// An error will be returned if the pipeline layout isn't a superset of what the shader
/// uses.
Builds a new `ComputePipeline` with a specific pipeline layout.
An error will be returned if the pipeline layout isn't a superset of what the shader
uses.
Builds a new ` ComputePipeline ` with a specific pipeline layout . An error will be returned if the pipeline layout isn ' t a superset of what the shader uses .
pub fn with_pipeline_layout<Cs>(device: Arc<Device>, shader: &Cs,
                                    specialization: &Cs::SpecializationConstants,
                                    pipeline_layout: Pl)
                                    -> Result<ComputePipeline<Pl>, ComputePipelineCreationError>
        where Cs::PipelineLayout: Clone,
              Cs: EntryPointAbstract,
              Pl: PipelineLayoutAbstract
    {
        unsafe {
            PipelineLayoutSuperset::ensure_superset_of(&pipeline_layout, shader.layout())?;
            ComputePipeline::with_unchecked_pipeline_layout(device,
                                                            shader,
                                                            specialization,
                                                            pipeline_layout)
        }
    }
pub fn with_pipeline_layout < Cs > ( device : Arc < Device > , shader : & Cs , specialization : & Cs :: SpecializationConstants , pipeline_layout : Pl ) -> Result < ComputePipeline < Pl > , ComputePipelineCreationError > where Cs :: PipelineLayout : Clone , Cs : EntryPointAbstract , Pl : PipelineLayoutAbstract { unsafe { PipelineLayoutSuperset :: ensure_superset_of ( & pipeline_layout , shader . layout ( ) ) ? ; ComputePipeline :: with_unchecked_pipeline_layout ( device , shader , specialization , pipeline_layout ) } }
Builds a new `ComputePipeline` with a specific pipeline layout.
Builds a new ` ComputePipeline ` with a specific pipeline layout .
device
Arc<Device>
shader
&Cs
specialization
&Cs::SpecializationConstants
pipeline_layout
Pl
device
Arc<Device>
shader
&Cs
specialization
&Cs::SpecializationConstants
pipeline_layout
Pl