pub struct Label {
pub name: String,
pub index: u32,
}Expand description
A varying’s name in its source: the semantic name and its index (DXBC TEXCOORD and 5, SPIR-V Location and 3,
GLSL vUv and 0). Labels are not interpreted: games put anything in TEXCOORDn, and what a label means is
the consumer’s business. Stages match by label.
Fields§
§name: StringThe semantic or location name as the source writes it (TEXCOORD, SV_Target, vUv).
index: u32The semantic index (the 5 of TEXCOORD5; the location of a SPIR-V variable).
Trait Implementations§
impl Eq for Label
Source§impl Ord for Label
impl Ord for Label
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Label
impl PartialOrd for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin for Label
impl UnwindSafe for Label
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