Struct vulkano::descriptor::descriptor_set::DescriptorsCount
source · 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,
}
Expand description
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
Implementations
sourceimpl DescriptorsCount
impl DescriptorsCount
sourcepub fn zero() -> DescriptorsCount
pub fn zero() -> DescriptorsCount
Returns a DescriptorsCount
object with all fields set to 0.
sourcepub fn add_one(&mut self, ty: DescriptorType)
pub fn add_one(&mut self, ty: DescriptorType)
Adds one descriptor of the given type to the count.
Trait Implementations
sourceimpl Add<DescriptorsCount> for DescriptorsCount
impl Add<DescriptorsCount> for DescriptorsCount
type Output = DescriptorsCount
type Output = DescriptorsCount
The resulting type after applying the
+
operator.sourcefn add(self, rhs: DescriptorsCount) -> DescriptorsCount
fn add(self, rhs: DescriptorsCount) -> DescriptorsCount
Performs the
+
operation. Read moresourceimpl AddAssign<DescriptorsCount> for DescriptorsCount
impl AddAssign<DescriptorsCount> for DescriptorsCount
sourcefn add_assign(&mut self, rhs: DescriptorsCount)
fn add_assign(&mut self, rhs: DescriptorsCount)
Performs the
+=
operation. Read moresourceimpl Clone for DescriptorsCount
impl Clone for DescriptorsCount
sourcefn clone(&self) -> DescriptorsCount
fn clone(&self) -> DescriptorsCount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DescriptorsCount
impl Debug for DescriptorsCount
sourceimpl Mul<u32> for DescriptorsCount
impl Mul<u32> for DescriptorsCount
type Output = DescriptorsCount
type Output = DescriptorsCount
The resulting type after applying the
*
operator.sourcefn mul(self, rhs: u32) -> DescriptorsCount
fn mul(self, rhs: u32) -> DescriptorsCount
Performs the
*
operation. Read moresourceimpl MulAssign<u32> for DescriptorsCount
impl MulAssign<u32> for DescriptorsCount
sourcefn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
Performs the
*=
operation. Read moresourceimpl PartialEq<DescriptorsCount> for DescriptorsCount
impl PartialEq<DescriptorsCount> for DescriptorsCount
sourcefn eq(&self, other: &DescriptorsCount) -> bool
fn eq(&self, other: &DescriptorsCount) -> bool
sourceimpl PartialOrd<DescriptorsCount> for DescriptorsCount
impl PartialOrd<DescriptorsCount> for DescriptorsCount
sourcefn partial_cmp(&self, other: &DescriptorsCount) -> Option<Ordering>
fn partial_cmp(&self, other: &DescriptorsCount) -> Option<Ordering>
sourcefn le(&self, other: &DescriptorsCount) -> bool
fn le(&self, other: &DescriptorsCount) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourcefn ge(&self, other: &DescriptorsCount) -> bool
fn ge(&self, other: &DescriptorsCount) -> bool
This method tests greater than or equal to (for
self
and other
) and is used by the >=
operator. Read moresourceimpl Sub<DescriptorsCount> for DescriptorsCount
impl Sub<DescriptorsCount> for DescriptorsCount
type Output = DescriptorsCount
type Output = DescriptorsCount
The resulting type after applying the
-
operator.sourcefn sub(self, rhs: DescriptorsCount) -> DescriptorsCount
fn sub(self, rhs: DescriptorsCount) -> DescriptorsCount
Performs the
-
operation. Read moresourceimpl SubAssign<DescriptorsCount> for DescriptorsCount
impl SubAssign<DescriptorsCount> for DescriptorsCount
sourcefn sub_assign(&mut self, rhs: DescriptorsCount)
fn sub_assign(&mut self, rhs: DescriptorsCount)
Performs the
-=
operation. Read moreimpl Copy for DescriptorsCount
impl Eq for DescriptorsCount
Auto Trait Implementations
impl RefUnwindSafe for DescriptorsCount
impl Send for DescriptorsCount
impl Sync for DescriptorsCount
impl Unpin for DescriptorsCount
impl UnwindSafe for DescriptorsCount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.