Struct vulkano::pipeline::layout::PipelineLayout [−][src]
pub struct PipelineLayout { /* fields omitted */ }
Expand description
Wrapper around the PipelineLayout
Vulkan object. Describes to the Vulkan implementation the
descriptor sets and push constants available to your shaders.
Implementations
pub fn new<D, P>(
device: Arc<Device>,
descriptor_set_layouts: D,
push_constant_ranges: P
) -> Result<PipelineLayout, PipelineLayoutCreationError> where
D: IntoIterator<Item = Arc<DescriptorSetLayout>>,
P: IntoIterator<Item = PipelineLayoutPcRange>,
pub fn new<D, P>(
device: Arc<Device>,
descriptor_set_layouts: D,
push_constant_ranges: P
) -> Result<PipelineLayout, PipelineLayoutCreationError> where
D: IntoIterator<Item = Arc<DescriptorSetLayout>>,
P: IntoIterator<Item = PipelineLayoutPcRange>,
Creates a new PipelineLayout
.
Returns the descriptor set layouts this pipeline layout was created from.
Returns a slice containing the push constant ranges this pipeline layout was created from.
pub fn ensure_superset_of(
&self,
descriptor_set_layout_descs: &[DescriptorSetDesc],
push_constant_range: &Option<PipelineLayoutPcRange>
) -> Result<(), PipelineLayoutSupersetError>
pub fn ensure_superset_of(
&self,
descriptor_set_layout_descs: &[DescriptorSetDesc],
push_constant_range: &Option<PipelineLayoutPcRange>
) -> Result<(), PipelineLayoutSupersetError>
Makes sure that self
is a superset of the provided descriptor set layouts and push
constant ranges. Returns an Err
if this is not the case.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PipelineLayout
impl Send for PipelineLayout
impl Sync for PipelineLayout
impl Unpin for PipelineLayout
impl UnwindSafe for PipelineLayout
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.