Struct sierra::DescriptorBindingFlags[][src]

pub struct DescriptorBindingFlags { /* fields omitted */ }

Flags that can be set in each DescriptorSetLayoutBinding to specify options for the corresponding descriptor set layout binding. Note that Vulkan 1.2 is required for any of these flags. That is, the only valid value prior Vulkan 1.2 is DescriptorBindingFlags::empty().

Implementations

impl DescriptorBindingFlags[src]

pub const UPDATE_AFTER_BIND: DescriptorBindingFlags[src]

Allows update binding after set is bound to encoder. Updating binding without this flag would invalidate encoder or built command buffer where set is used.

pub const UPDATE_UNUSED_WHILE_PENDING: DescriptorBindingFlags[src]

Allows updating descriptors in this binding that are not used. while set is bound to pending command buffer.
i.e. when shader may access other descriptors in the set.

If DescriptorBindingFlags::PARTIALLY_BOUND is also set then descriptors that are not dynamically used by any shader invocation can be updated. Otherwise only descriptors that are not statically used by any shader invocation can be updated.

pub const PARTIALLY_BOUND: DescriptorBindingFlags[src]

Allows descriptors that are not dynamically used by any shader invocation to be unbound.

pub const VARIABLE_DESCRIPTOR_COUNT: DescriptorBindingFlags[src]

Binding with this flag does not have descriptors count defined by layout. Instead count is specified when set instance is created. Allowing sets with same layout to have differently sized arrays of descriptors bound to the binding.

pub const fn empty() -> DescriptorBindingFlags[src]

Returns an empty set of flags

pub const fn all() -> DescriptorBindingFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<DescriptorBindingFlags>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> DescriptorBindingFlags[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> DescriptorBindingFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: DescriptorBindingFlags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: DescriptorBindingFlags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: DescriptorBindingFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: DescriptorBindingFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: DescriptorBindingFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: DescriptorBindingFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for DescriptorBindingFlags[src]

impl BitAnd<DescriptorBindingFlags> for DescriptorBindingFlags[src]

type Output = DescriptorBindingFlags

The resulting type after applying the & operator.

fn bitand(self, other: DescriptorBindingFlags) -> DescriptorBindingFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<DescriptorBindingFlags> for DescriptorBindingFlags[src]

fn bitand_assign(&mut self, other: DescriptorBindingFlags)[src]

Disables all flags disabled in the set.

impl BitOr<DescriptorBindingFlags> for DescriptorBindingFlags[src]

type Output = DescriptorBindingFlags

The resulting type after applying the | operator.

fn bitor(self, other: DescriptorBindingFlags) -> DescriptorBindingFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<DescriptorBindingFlags> for DescriptorBindingFlags[src]

fn bitor_assign(&mut self, other: DescriptorBindingFlags)[src]

Adds the set of flags.

impl BitXor<DescriptorBindingFlags> for DescriptorBindingFlags[src]

type Output = DescriptorBindingFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: DescriptorBindingFlags) -> DescriptorBindingFlags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<DescriptorBindingFlags> for DescriptorBindingFlags[src]

fn bitxor_assign(&mut self, other: DescriptorBindingFlags)[src]

Toggles the set of flags.

impl Clone for DescriptorBindingFlags[src]

impl Copy for DescriptorBindingFlags[src]

impl Debug for DescriptorBindingFlags[src]

impl Eq for DescriptorBindingFlags[src]

impl Extend<DescriptorBindingFlags> for DescriptorBindingFlags[src]

impl FromIterator<DescriptorBindingFlags> for DescriptorBindingFlags[src]

impl Hash for DescriptorBindingFlags[src]

impl LowerHex for DescriptorBindingFlags[src]

impl Not for DescriptorBindingFlags[src]

type Output = DescriptorBindingFlags

The resulting type after applying the ! operator.

fn not(self) -> DescriptorBindingFlags[src]

Returns the complement of this set of flags.

impl Octal for DescriptorBindingFlags[src]

impl Ord for DescriptorBindingFlags[src]

impl PartialEq<DescriptorBindingFlags> for DescriptorBindingFlags[src]

impl PartialOrd<DescriptorBindingFlags> for DescriptorBindingFlags[src]

impl StructuralEq for DescriptorBindingFlags[src]

impl StructuralPartialEq for DescriptorBindingFlags[src]

impl Sub<DescriptorBindingFlags> for DescriptorBindingFlags[src]

type Output = DescriptorBindingFlags

The resulting type after applying the - operator.

fn sub(self, other: DescriptorBindingFlags) -> DescriptorBindingFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<DescriptorBindingFlags> for DescriptorBindingFlags[src]

fn sub_assign(&mut self, other: DescriptorBindingFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for DescriptorBindingFlags[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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.