pub struct DrawSpecialization<'a> { /* private fields */ }Expand description
The pipeline specialization one draw of a RuntimeShader compiles,
chosen by RuntimeShader::draw_specialization.
Implementations§
Source§impl<'a> DrawSpecialization<'a>
impl<'a> DrawSpecialization<'a>
Sourcepub fn overrides(self) -> &'a [(&'static str, f64)]
pub fn overrides(self) -> &'a [(&'static str, f64)]
The pipeline-overridable constants the draw fixes, ordered by name.
Sourcepub fn overrides_hash(self) -> u64
pub fn overrides_hash(self) -> u64
Hash of Self::overrides; zero when no override is fixed.
Sourcepub fn draw_split(self) -> Option<&'static str>
pub fn draw_split(self) -> Option<&'static str>
The override selecting the interior or the rim draw, when declared.
Sourcepub fn exact(self) -> bool
pub fn exact(self) -> bool
Whether the specialization lands on the general pipeline’s bytes,
as RuntimeShader::set_specialization_exact declares.
Trait Implementations§
Source§impl<'a> Clone for DrawSpecialization<'a>
impl<'a> Clone for DrawSpecialization<'a>
impl<'a> Copy for DrawSpecialization<'a>
Auto Trait Implementations§
impl<'a> Freeze for DrawSpecialization<'a>
impl<'a> RefUnwindSafe for DrawSpecialization<'a>
impl<'a> Send for DrawSpecialization<'a>
impl<'a> Sync for DrawSpecialization<'a>
impl<'a> Unpin for DrawSpecialization<'a>
impl<'a> UnsafeUnpin for DrawSpecialization<'a>
impl<'a> UnwindSafe for DrawSpecialization<'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