pub struct ShaderMaterialBuilder {
pub glsl_fragment: Option<&'static str>,
pub uniform_time: Option<f32>,
pub uniforms: Option<Vec<(String, f32)>>,
pub children: Option<Vec<NodeBlueprint>>,
pub __strata_key: Option<String>,
}Fields§
§glsl_fragment: Option<&'static str>§uniform_time: Option<f32>§uniforms: Option<Vec<(String, f32)>>§children: Option<Vec<NodeBlueprint>>§__strata_key: Option<String>Implementations§
Source§impl ShaderMaterialBuilder
impl ShaderMaterialBuilder
pub fn glsl_fragment(self, val: impl Into<Option<&'static str>>) -> Self
pub fn uniform_time(self, val: impl Into<Option<f32>>) -> Self
pub fn uniforms(self, val: impl Into<Option<Vec<(String, f32)>>>) -> Self
pub fn children(self, children: Vec<NodeBlueprint>) -> Self
pub fn key(self, key: impl Display) -> Self
pub fn build(self) -> View
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ShaderMaterialBuilder
impl !Send for ShaderMaterialBuilder
impl !Sync for ShaderMaterialBuilder
impl !UnwindSafe for ShaderMaterialBuilder
impl Forget for ShaderMaterialBuilder
impl Freeze for ShaderMaterialBuilder
impl Move for ShaderMaterialBuilder
impl Unpin for ShaderMaterialBuilder
impl UnsafeUnpin for ShaderMaterialBuilder
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