Struct vulkano::descriptor_set::layout::DescriptorSetLayout [−][src]
pub struct DescriptorSetLayout { /* fields omitted */ }
Expand description
Describes to the Vulkan implementation the layout of all descriptors within a descriptor set.
Implementations
pub fn new<D>(
device: Arc<Device>,
desc: D
) -> Result<DescriptorSetLayout, DescriptorSetLayoutError> where
D: Into<DescriptorSetDesc>,
pub fn new<D>(
device: Arc<Device>,
desc: D
) -> Result<DescriptorSetLayout, DescriptorSetLayoutError> where
D: Into<DescriptorSetDesc>,
Builds a new DescriptorSetLayout
with the given descriptors.
The descriptors must be passed in the order of the bindings. In order words, descriptor
at bind point 0 first, then descriptor at bind point 1, and so on. If a binding must remain
empty, you can make the iterator yield None
for an element.
Returns the number of descriptors of each type.
Returns the number of descriptors in a variable count descriptor. This will return zero if there are no variable count descriptors present.
Returns the number of binding slots in the set.
Returns a description of a descriptor, or None
if out of range.
Returns whether self
is compatible with other
.
“Compatible” in this sense is defined by the Vulkan specification under the section “Pipeline layout compatibility”: either the two are the same descriptor set layout, or they must be identically defined to the Vulkan API.
pub fn ensure_compatible_with_bind(
&self,
other: &DescriptorSetLayout
) -> Result<(), DescriptorSetCompatibilityError>
pub fn ensure_compatible_with_bind(
&self,
other: &DescriptorSetLayout
) -> Result<(), DescriptorSetCompatibilityError>
Checks whether the descriptor of a pipeline layout self
is compatible with the descriptor
of a descriptor set being bound other
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DescriptorSetLayout
impl Send for DescriptorSetLayout
impl Sync for DescriptorSetLayout
impl Unpin for DescriptorSetLayout
impl UnwindSafe for DescriptorSetLayout
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.