pub struct ShaderBuilder {
pub shader: String,
pub camera_effect: Option<Arc<str>>,
pub configs: ShaderConfigs,
}Expand description
Helps with building and updating shader code
Fields§
§shader: Stringthe shader itself
camera_effect: Option<Arc<str>>Should the camera effect be applied
configs: ShaderConfigsconfigurations to be applied to the shader
Implementations§
Auto Trait Implementations§
impl Freeze for ShaderBuilder
impl !RefUnwindSafe for ShaderBuilder
impl !Send for ShaderBuilder
impl !Sync for ShaderBuilder
impl Unpin for ShaderBuilder
impl !UnwindSafe for ShaderBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more