Struct vulkano::descriptor_set::pool::DescriptorSetAllocateInfo
source · pub struct DescriptorSetAllocateInfo {
pub layout: Arc<DescriptorSetLayout>,
pub variable_descriptor_count: u32,
pub _ne: NonExhaustive,
}
Expand description
Parameters to allocate a new UnsafeDescriptorSet
from an UnsafeDescriptorPool
.
Fields§
§layout: Arc<DescriptorSetLayout>
The descriptor set layout to create the set for.
There is no default value.
variable_descriptor_count: u32
For layouts with a variable-count binding, the number of descriptors to allocate for that binding. This should be 0 for layouts that don’t have a variable-count binding.
The default value is 0.
_ne: NonExhaustive
Implementations§
source§impl DescriptorSetAllocateInfo
impl DescriptorSetAllocateInfo
sourcepub fn new(layout: Arc<DescriptorSetLayout>) -> Self
pub fn new(layout: Arc<DescriptorSetLayout>) -> Self
Returns a DescriptorSetAllocateInfo
with the specified layout
.
Trait Implementations§
source§impl Clone for DescriptorSetAllocateInfo
impl Clone for DescriptorSetAllocateInfo
source§fn clone(&self) -> DescriptorSetAllocateInfo
fn clone(&self) -> DescriptorSetAllocateInfo
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 DescriptorSetAllocateInfo
impl Send for DescriptorSetAllocateInfo
impl Sync for DescriptorSetAllocateInfo
impl Unpin for DescriptorSetAllocateInfo
impl !UnwindSafe for DescriptorSetAllocateInfo
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