Enum screen_13::graph::pass_ref::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 set0
and 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)
An array binding which includes an offset
argument for the bound element.
Binding(DescriptorSetIndex, BindingIndex)
A single binding.
Trait Implementations§
source§impl Clone for Descriptor
impl Clone for Descriptor
source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Descriptor
impl Debug for Descriptor
source§impl From<(u32, [u32; 1])> for Descriptor
impl From<(u32, [u32; 1])> for Descriptor
source§fn from(tuple: (BindingIndex, [BindingOffset; 1])) -> Self
fn from(tuple: (BindingIndex, [BindingOffset; 1])) -> Self
Converts to this type from the input type.
source§impl From<(u32, u32)> for Descriptor
impl From<(u32, u32)> for Descriptor
source§fn from(tuple: (DescriptorSetIndex, BindingIndex)) -> Self
fn from(tuple: (DescriptorSetIndex, BindingIndex)) -> Self
Converts to this type from the input type.
source§impl From<(u32, u32, [u32; 1])> for Descriptor
impl From<(u32, u32, [u32; 1])> for Descriptor
source§fn from(tuple: (DescriptorSetIndex, BindingIndex, [BindingOffset; 1])) -> Self
fn from(tuple: (DescriptorSetIndex, BindingIndex, [BindingOffset; 1])) -> Self
Converts to this type from the input type.
source§impl From<u32> for Descriptor
impl From<u32> for Descriptor
source§fn from(val: BindingIndex) -> Self
fn from(val: BindingIndex) -> Self
Converts to this type from the input type.
source§impl Hash for Descriptor
impl Hash for Descriptor
source§impl Ord for Descriptor
impl Ord for Descriptor
source§fn cmp(&self, other: &Descriptor) -> Ordering
fn cmp(&self, other: &Descriptor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
source§fn 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 ==
.source§impl PartialOrd for Descriptor
impl PartialOrd for Descriptor
source§fn partial_cmp(&self, other: &Descriptor) -> Option<Ordering>
fn partial_cmp(&self, other: &Descriptor) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl Copy for Descriptor
impl Eq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.