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, }
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
Methods
impl DescriptorsCount
[src]
fn zero() -> DescriptorsCount
[src]
Returns a DescriptorsCount
object with all fields set to 0.
fn add_one(&mut self, ty: DescriptorType)
[src]
Adds one descriptor of the given type to the count.
Trait Implementations
impl Debug for DescriptorsCount
[src]
impl Copy for DescriptorsCount
[src]
impl Clone for DescriptorsCount
[src]
fn clone(&self) -> DescriptorsCount
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for DescriptorsCount
[src]
fn eq(&self, other: &DescriptorsCount) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for DescriptorsCount
[src]
impl PartialOrd for DescriptorsCount
[src]
fn partial_cmp(&self, other: &DescriptorsCount) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn le(&self, other: &DescriptorsCount) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn ge(&self, other: &DescriptorsCount) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl Sub for DescriptorsCount
[src]
type Output = DescriptorsCount
The resulting type after applying the -
operator.
fn sub(self, rhs: DescriptorsCount) -> DescriptorsCount
[src]
Performs the -
operation.
impl SubAssign for DescriptorsCount
[src]
fn sub_assign(&mut self, rhs: DescriptorsCount)
[src]
Performs the -=
operation.
impl Add for DescriptorsCount
[src]
type Output = DescriptorsCount
The resulting type after applying the +
operator.
fn add(self, rhs: DescriptorsCount) -> DescriptorsCount
[src]
Performs the +
operation.
impl AddAssign for DescriptorsCount
[src]
fn add_assign(&mut self, rhs: DescriptorsCount)
[src]
Performs the +=
operation.
impl Mul<u32> for DescriptorsCount
[src]
type Output = DescriptorsCount
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> DescriptorsCount
[src]
Performs the *
operation.
impl MulAssign<u32> for DescriptorsCount
[src]
fn mul_assign(&mut self, rhs: u32)
[src]
Performs the *=
operation.