Struct naga::back::glsl::VaryingName
source · struct VaryingName<'a> {
binding: &'a Binding,
stage: ShaderStage,
options: VaryingOptions,
}
Expand description
Helper wrapper used to get a name for a varying
Varying have different naming schemes depending on their binding:
- Varyings with builtin bindings get the from
glsl_built_in
. - Varyings with location bindings are named
_S_location_X
whereS
is a prefix identifying which pipeline stage the varying connects, andX
is the location.
Fields§
§binding: &'a Binding
§stage: ShaderStage
§options: VaryingOptions
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VaryingName<'a>
impl<'a> RefUnwindSafe for VaryingName<'a>
impl<'a> Send for VaryingName<'a>
impl<'a> Sync for VaryingName<'a>
impl<'a> Unpin for VaryingName<'a>
impl<'a> UnwindSafe for VaryingName<'a>
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