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: 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

Implementations

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.

pub fn add_num(&mut self, ty: DescriptorType, num: u32)[src]

Adds num descriptors of the given type to the count.

Trait Implementations

impl Add<DescriptorsCount> for DescriptorsCount[src]

type Output = DescriptorsCount

The resulting type after applying the + operator.

fn add(self, rhs: DescriptorsCount) -> DescriptorsCount[src]

Performs the + operation. Read more

impl AddAssign<DescriptorsCount> for DescriptorsCount[src]

fn add_assign(&mut self, rhs: DescriptorsCount)[src]

Performs the += operation. Read more

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 Debug for DescriptorsCount[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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. Read more

impl MulAssign<u32> for DescriptorsCount[src]

fn mul_assign(&mut self, rhs: u32)[src]

Performs the *= operation. Read more

impl PartialEq<DescriptorsCount> 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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialOrd<DescriptorsCount> 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

#[must_use]
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

#[must_use]
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<DescriptorsCount> for DescriptorsCount[src]

type Output = DescriptorsCount

The resulting type after applying the - operator.

fn sub(self, rhs: DescriptorsCount) -> DescriptorsCount[src]

Performs the - operation. Read more

impl SubAssign<DescriptorsCount> for DescriptorsCount[src]

fn sub_assign(&mut self, rhs: DescriptorsCount)[src]

Performs the -= operation. Read more

impl Copy for DescriptorsCount[src]

impl Eq for DescriptorsCount[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for T[src]

pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>[src]

Builds a pointer to this type from a raw pointer.

pub fn is_size_suitable(usize) -> bool[src]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.