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

Methods

impl DescriptorsCount
[src]

Returns a DescriptorsCount object with all fields set to 0.

Adds one descriptor of the given type to the count.

Trait Implementations

impl Debug for DescriptorsCount
[src]

Formats the value using the given formatter.

impl Copy for DescriptorsCount
[src]

impl Clone for DescriptorsCount
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for DescriptorsCount
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for DescriptorsCount
[src]

impl PartialOrd for DescriptorsCount
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. 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 (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

impl Sub for DescriptorsCount
[src]

The resulting type after applying the - operator

The method for the - operator

impl SubAssign for DescriptorsCount
[src]

The method for the -= operator

impl Add for DescriptorsCount
[src]

The resulting type after applying the + operator

The method for the + operator

impl AddAssign for DescriptorsCount
[src]

The method for the += operator

impl Mul<u32> for DescriptorsCount
[src]

The resulting type after applying the * operator

The method for the * operator

impl MulAssign<u32> for DescriptorsCount
[src]

The method for the *= operator