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 their name from
glsl_built_in. - Varyings with location bindings are named
_S_location_XwhereSis a prefix identifying which pipeline stage the varying connects, andXis the location.
Fields§
§binding: &'a Binding§stage: ShaderStage§options: VaryingOptionsTrait 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