pub struct ShaderConfig {
pub fragment: Cow<'static, str>,
pub uniforms: Vec<ShaderUniform>,
pub name: String,
}Expand description
Configuration for a shader effect, stored in render commands. Contains the fragment shader source and uniform values.
Fields§
§fragment: Cow<'static, str>The GLSL ES 3.00 fragment shader source (resolved from ShaderAsset).
uniforms: Vec<ShaderUniform>The uniform values to set on the shader.
name: StringDebug-friendly name derived from the shader asset.
Trait Implementations§
Source§impl Clone for ShaderConfig
impl Clone for ShaderConfig
Source§fn clone(&self) -> ShaderConfig
fn clone(&self) -> ShaderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShaderConfig
impl RefUnwindSafe for ShaderConfig
impl Send for ShaderConfig
impl Sync for ShaderConfig
impl Unpin for ShaderConfig
impl UnsafeUnpin for ShaderConfig
impl UnwindSafe for ShaderConfig
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