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>
Source§fn clone(&self) -> DrawSpecialization<'a>
fn clone(&self) -> DrawSpecialization<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.