[][src]Struct vulkano::descriptor::descriptor_set::DescriptorsCount

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: u32storage_buffer: u32uniform_buffer_dynamic: u32storage_buffer_dynamic: u32uniform_texel_buffer: u32storage_texel_buffer: u32sampled_image: u32storage_image: u32sampler: u32combined_image_sampler: u32input_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 Clone for DescriptorsCount[src]

impl Copy for DescriptorsCount[src]

impl Eq for DescriptorsCount[src]

impl PartialEq<DescriptorsCount> for DescriptorsCount[src]

impl PartialOrd<DescriptorsCount> for DescriptorsCount[src]

impl Debug for DescriptorsCount[src]

impl Sub<DescriptorsCount> for DescriptorsCount[src]

type Output = DescriptorsCount

The resulting type after applying the - operator.

impl Add<DescriptorsCount> for DescriptorsCount[src]

type Output = DescriptorsCount

The resulting type after applying the + operator.

impl Mul<u32> for DescriptorsCount[src]

type Output = DescriptorsCount

The resulting type after applying the * operator.

impl AddAssign<DescriptorsCount> for DescriptorsCount[src]

impl SubAssign<DescriptorsCount> for DescriptorsCount[src]

impl MulAssign<u32> for DescriptorsCount[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Content for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]