Struct vulkano::descriptor_set::layout::DescriptorSetLayout
source · [−]pub struct DescriptorSetLayout { /* private fields */ }
Expand description
Describes to the Vulkan implementation the layout of all descriptors within a descriptor set.
Implementations
pub fn new<D>(
device: Arc<Device>,
set_desc: D
) -> Result<Arc<DescriptorSetLayout>, DescriptorSetLayoutError> where
D: Into<DescriptorSetDesc>,
pub fn new<D>(
device: Arc<Device>,
set_desc: D
) -> Result<Arc<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.
If the last binding has a variable count, returns its descriptor_count
. Otherwise returns
0.
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.
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.