Enum screen_13::graph::Descriptor
source · [−]pub enum Descriptor {
ArrayBinding(DescriptorSetIndex, BindingIndex, BindingOffset),
Binding(DescriptorSetIndex, BindingIndex),
}Expand description
Describes the SPIR-V binding index, and optionally a specific descriptor set and array index.
Generally you might pass a function a descriptor using a simple integer:
let descriptor = 42;
my_func(descriptor, image);But also:
(0, 42)for descriptor set0and binding index42(42, [8])for the same binding, but the 8th element(0, 42, [8])same as the previous example
Variants
ArrayBinding(DescriptorSetIndex, BindingIndex, BindingOffset)
Binding(DescriptorSetIndex, BindingIndex)
Trait Implementations
sourceimpl Clone for Descriptor
impl Clone for Descriptor
sourcefn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
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 more
sourceimpl Debug for Descriptor
impl Debug for Descriptor
sourceimpl From<(u32, [u32; 1])> for Descriptor
impl From<(u32, [u32; 1])> for Descriptor
sourcefn from(tuple: (BindingIndex, [BindingOffset; 1])) -> Self
fn from(tuple: (BindingIndex, [BindingOffset; 1])) -> Self
Converts to this type from the input type.
sourceimpl From<(u32, u32, [u32; 1])> for Descriptor
impl From<(u32, u32, [u32; 1])> for Descriptor
sourcefn from(tuple: (DescriptorSetIndex, BindingIndex, [BindingOffset; 1])) -> Self
fn from(tuple: (DescriptorSetIndex, BindingIndex, [BindingOffset; 1])) -> Self
Converts to this type from the input type.
sourceimpl From<(u32, u32)> for Descriptor
impl From<(u32, u32)> for Descriptor
sourcefn from(tuple: (DescriptorSetIndex, BindingIndex)) -> Self
fn from(tuple: (DescriptorSetIndex, BindingIndex)) -> Self
Converts to this type from the input type.
sourceimpl From<u32> for Descriptor
impl From<u32> for Descriptor
sourcefn from(val: BindingIndex) -> Self
fn from(val: BindingIndex) -> Self
Converts to this type from the input type.
sourceimpl Ord for Descriptor
impl Ord for Descriptor
sourceimpl PartialEq<Descriptor> for Descriptor
impl PartialEq<Descriptor> for Descriptor
sourcefn eq(&self, other: &Descriptor) -> bool
fn eq(&self, other: &Descriptor) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Descriptor) -> bool
fn ne(&self, other: &Descriptor) -> bool
This method tests for !=.
sourceimpl PartialOrd<Descriptor> for Descriptor
impl PartialOrd<Descriptor> for Descriptor
sourcefn partial_cmp(&self, other: &Descriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &Descriptor) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for Descriptor
impl Eq for Descriptor
impl StructuralEq for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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