Struct vulkano::descriptor::descriptor_set::DescriptorsCount [−][src]
pub struct DescriptorsCount { pub uniform_buffer: u32, pub storage_buffer: u32, pub uniform_buffer_dynamic: u32, pub storage_buffer_dynamic: u32, pub uniform_texel_buffer: u32, pub storage_texel_buffer: u32, pub sampled_image: u32, pub storage_image: u32, pub sampler: u32, pub combined_image_sampler: u32, pub input_attachment: u32, }
Expand description
Number of available descriptors slots in a pool.
Example
use vulkano::descriptor::descriptor_set::DescriptorsCount; let _descriptors = DescriptorsCount { uniform_buffer: 10, input_attachment: 5, .. DescriptorsCount::zero() };
Fields
uniform_buffer: u32
storage_buffer: u32
uniform_buffer_dynamic: u32
storage_buffer_dynamic: u32
uniform_texel_buffer: u32
storage_texel_buffer: u32
sampled_image: u32
storage_image: u32
sampler: u32
combined_image_sampler: u32
input_attachment: u32
Implementations
Returns a DescriptorsCount
object with all fields set to 0.
Adds one descriptor of the given type to the count.
Adds num
descriptors of the given type to the count.
Trait Implementations
type Output = DescriptorsCount
type Output = DescriptorsCount
The resulting type after applying the +
operator.
Performs the +
operation. Read more
Performs the +=
operation. Read more
type Output = DescriptorsCount
type Output = DescriptorsCount
The resulting type after applying the *
operator.
Performs the *
operation. Read more
Performs the *=
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
type Output = DescriptorsCount
type Output = DescriptorsCount
The resulting type after applying the -
operator.
Performs the -
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for DescriptorsCount
impl Send for DescriptorsCount
impl Sync for DescriptorsCount
impl Unpin for DescriptorsCount
impl UnwindSafe for DescriptorsCount
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.