pub enum BuiltinShader {
Identity,
Glitch,
ParticleVortex,
DustTransfer,
SilkFlow,
}Variants§
Implementations§
Source§impl BuiltinShader
impl BuiltinShader
pub const ALL: &'static [Self]
Sourcepub fn default_preset(self) -> AnimationPreset
pub fn default_preset(self) -> AnimationPreset
Return independent recommended values without compiling a shader.
pub fn source(self) -> ShaderSource<'static>
pub const fn name(self) -> &'static str
Trait Implementations§
Source§impl Clone for BuiltinShader
impl Clone for BuiltinShader
Source§fn clone(&self) -> BuiltinShader
fn clone(&self) -> BuiltinShader
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 Copy for BuiltinShader
Source§impl Debug for BuiltinShader
impl Debug for BuiltinShader
impl Eq for BuiltinShader
Source§impl<'a> From<BuiltinShader> for ShaderSource<'a>
impl<'a> From<BuiltinShader> for ShaderSource<'a>
Source§fn from(shader: BuiltinShader) -> Self
fn from(shader: BuiltinShader) -> Self
Converts to this type from the input type.
Source§impl FromStr for BuiltinShader
impl FromStr for BuiltinShader
Source§impl PartialEq for BuiltinShader
impl PartialEq for BuiltinShader
Source§fn eq(&self, other: &BuiltinShader) -> bool
fn eq(&self, other: &BuiltinShader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BuiltinShader
Auto Trait Implementations§
impl Freeze for BuiltinShader
impl RefUnwindSafe for BuiltinShader
impl Send for BuiltinShader
impl Sync for BuiltinShader
impl Unpin for BuiltinShader
impl UnsafeUnpin for BuiltinShader
impl UnwindSafe for BuiltinShader
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