pub struct PipelineLayout { /* private fields */ }
Expand description
Describes the layout of descriptor sets and push constants that are made available to shaders.
Implementations
pub fn new<D, P>(
device: Arc<Device>,
descriptor_set_layouts: D,
push_constant_ranges: P
) -> Result<Arc<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<Arc<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.
The ranges are guaranteed to be sorted deterministically by offset, size, then stages. This means that two slices containing the same elements will always have the same order.
Returns whether self
is compatible with other
for the given number of sets.
pub fn ensure_compatible_with_shader<'a>(
&self,
descriptor_requirements: impl IntoIterator<Item = ((u32, u32), &'a DescriptorRequirements)>,
push_constant_range: Option<&PipelineLayoutPcRange>
) -> Result<(), PipelineLayoutSupersetError>
pub fn ensure_compatible_with_shader<'a>(
&self,
descriptor_requirements: impl IntoIterator<Item = ((u32, u32), &'a DescriptorRequirements)>,
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.