pub struct Binding {
pub binding: u32,
pub offset: u32,
pub set: u32,
}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
Fields§
§binding: u32The value of the descriptor binding decoration applied to the variable.
offset: u32An array-element offset applied to this descriptor.
set: u32An optional descriptor set index value.
Trait Implementations§
Source§impl Ord for Binding
impl Ord for Binding
1.21.0 (const: unstable) · 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 PartialOrd for Binding
impl PartialOrd for Binding
impl Copy for Binding
impl Eq for Binding
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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