[−][src]Struct vulkano::descriptor::descriptor_set::DescriptorsCount
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]
pub fn zero() -> DescriptorsCount
[src]
Returns a DescriptorsCount
object with all fields set to 0.
pub fn add_one(&mut self, ty: DescriptorType)
[src]
Adds one descriptor of the given type to the count.
Trait Implementations
impl Eq for DescriptorsCount
[src]
impl Clone for DescriptorsCount
[src]
fn clone(&self) -> DescriptorsCount
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialOrd<DescriptorsCount> for DescriptorsCount
[src]
fn partial_cmp(&self, other: &DescriptorsCount) -> Option<Ordering>
[src]
fn le(&self, other: &DescriptorsCount) -> bool
[src]
fn ge(&self, other: &DescriptorsCount) -> bool
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<DescriptorsCount> for DescriptorsCount
[src]
fn eq(&self, other: &DescriptorsCount) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Copy for DescriptorsCount
[src]
impl Add<DescriptorsCount> for DescriptorsCount
[src]
type Output = DescriptorsCount
The resulting type after applying the +
operator.
fn add(self, rhs: DescriptorsCount) -> DescriptorsCount
[src]
impl Sub<DescriptorsCount> for DescriptorsCount
[src]
type Output = DescriptorsCount
The resulting type after applying the -
operator.
fn sub(self, rhs: DescriptorsCount) -> DescriptorsCount
[src]
impl Mul<u32> for DescriptorsCount
[src]
type Output = DescriptorsCount
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> DescriptorsCount
[src]
impl AddAssign<DescriptorsCount> for DescriptorsCount
[src]
fn add_assign(&mut self, rhs: DescriptorsCount)
[src]
impl SubAssign<DescriptorsCount> for DescriptorsCount
[src]
fn sub_assign(&mut self, rhs: DescriptorsCount)
[src]
impl MulAssign<u32> for DescriptorsCount
[src]
fn mul_assign(&mut self, rhs: u32)
[src]
impl Debug for DescriptorsCount
[src]
Auto Trait Implementations
impl Send for DescriptorsCount
impl Unpin for DescriptorsCount
impl Sync for DescriptorsCount
impl UnwindSafe for DescriptorsCount
impl RefUnwindSafe for DescriptorsCount
Blanket Implementations
impl<T> Content for T
[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,