Struct vulkano::pipeline::layout::PipelineLayoutDesc [−][src]
pub struct PipelineLayoutDesc { /* fields omitted */ }
Expand description
Object that describes the layout of the descriptors and push constants of a pipeline.
Implementations
pub fn new(
descriptor_sets: Vec<Vec<Option<DescriptorDesc>>>,
push_constants: Vec<PipelineLayoutDescPcRange>
) -> Result<PipelineLayoutDesc, PipelineLayoutDescError>
pub fn new(
descriptor_sets: Vec<Vec<Option<DescriptorDesc>>>,
push_constants: Vec<PipelineLayoutDescPcRange>
) -> Result<PipelineLayoutDesc, PipelineLayoutDescError>
Builds a new PipelineLayoutDesc
from the descriptors and push constants descriptions.
pub unsafe fn new_unchecked(
descriptor_sets: Vec<Vec<Option<DescriptorDesc>>>,
push_constants: Vec<PipelineLayoutDescPcRange>
) -> PipelineLayoutDesc
pub unsafe fn new_unchecked(
descriptor_sets: Vec<Vec<Option<DescriptorDesc>>>,
push_constants: Vec<PipelineLayoutDescPcRange>
) -> PipelineLayoutDesc
Builds a new PipelineLayoutDesc
from the descriptors and push constants descriptions.
Safety
The provided push constants must not conflict with each other.
Creates a description of an empty pipeline layout description, with no descriptor sets or push constants.
Returns a description of the descriptor sets.
Returns a description of the push constants.
Transforms a PipelineLayoutDesc
.
Used to adjust automatically inferred PipelineLayoutDesc
s with information that cannot be inferred.
Builds the union of this layout description and another.
Checks whether this description fulfills the device limits requirements.
pub fn ensure_superset_of(
&self,
other: &PipelineLayoutDesc
) -> Result<(), PipelineLayoutNotSupersetError>
pub fn ensure_superset_of(
&self,
other: &PipelineLayoutDesc
) -> Result<(), PipelineLayoutNotSupersetError>
Makes sure that self
is a superset of other
. Returns an Err
if this is not the case.
pub fn is_descriptor_sets_compatible<S>(&self, sets: &S) -> bool where
S: DescriptorSetsCollection,
pub fn is_descriptor_sets_compatible<S>(&self, sets: &S) -> bool where
S: DescriptorSetsCollection,
Returns true if sets
can be used with a pipeline that uses self
as layout.
Returns true if constants
can be used with a pipeline that uses self
as layout.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PipelineLayoutDesc
impl Send for PipelineLayoutDesc
impl Sync for PipelineLayoutDesc
impl Unpin for PipelineLayoutDesc
impl UnwindSafe for PipelineLayoutDesc
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.