pub trait Pipeline: DeviceOwned {
// Required methods
fn bind_point(&self) -> PipelineBindPoint;
fn layout(&self) -> &Arc<PipelineLayout>;
fn num_used_descriptor_sets(&self) -> u32;
fn descriptor_binding_requirements(
&self
) -> &HashMap<(u32, u32), DescriptorBindingRequirements>;
}
Expand description
A trait for operations shared between pipeline types.
Required Methods§
sourcefn bind_point(&self) -> PipelineBindPoint
fn bind_point(&self) -> PipelineBindPoint
Returns the bind point of this pipeline.
sourcefn layout(&self) -> &Arc<PipelineLayout>
fn layout(&self) -> &Arc<PipelineLayout>
Returns the pipeline layout used in this pipeline.
sourcefn num_used_descriptor_sets(&self) -> u32
fn num_used_descriptor_sets(&self) -> u32
Returns the number of descriptor sets actually accessed by this pipeline. This may be less than the number of sets in the pipeline layout.
sourcefn descriptor_binding_requirements(
&self
) -> &HashMap<(u32, u32), DescriptorBindingRequirements>
fn descriptor_binding_requirements( &self ) -> &HashMap<(u32, u32), DescriptorBindingRequirements>
Returns a reference to the descriptor binding requirements for this pipeline.