Struct vulkano::descriptor_set::layout::DescriptorSetLayoutSupport
source · #[non_exhaustive]pub struct DescriptorSetLayoutSupport {
pub max_variable_descriptor_count: u32,
}
Expand description
Contains information about the level of support a device has for a particular descriptor set.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.max_variable_descriptor_count: u32
If the queried descriptor set layout has a binding with the
DescriptorBindingFlags::VARIABLE_DESCRIPTOR_COUNT
flag set, then this indicates the
maximum number of descriptors that binding could have. This is always at least as large
as the descriptor count of the create info that was queried; if the queried descriptor
count is higher than supported, None
is returned instead of this structure.
If the queried descriptor set layout does not have such a binding, or if the
descriptor_binding_variable_descriptor_count
feature isn’t enabled on the device, this
will be 0.
Trait Implementations§
source§impl Clone for DescriptorSetLayoutSupport
impl Clone for DescriptorSetLayoutSupport
source§fn clone(&self) -> DescriptorSetLayoutSupport
fn clone(&self) -> DescriptorSetLayoutSupport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DescriptorSetLayoutSupport
impl Send for DescriptorSetLayoutSupport
impl Sync for DescriptorSetLayoutSupport
impl Unpin for DescriptorSetLayoutSupport
impl UnwindSafe for DescriptorSetLayoutSupport
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more