pub struct Shader<Vs, Fs> {
pub vertex_shader: Vs,
pub fragment_shader: Fs,
}Expand description
A type that composes a vertex and a fragment shader.
Fields§
§vertex_shader: Vs§fragment_shader: FsImplementations§
Trait Implementations§
Source§impl<Vs, Fs, Var> FragmentShader<Var> for Shader<Vs, Fs>where
Fs: FragmentShader<Var>,
impl<Vs, Fs, Var> FragmentShader<Var> for Shader<Vs, Fs>where
Fs: FragmentShader<Var>,
Source§impl<In, Vs, Fs, Uni> VertexShader<In, Uni> for Shader<Vs, Fs>where
Vs: VertexShader<In, Uni>,
impl<In, Vs, Fs, Uni> VertexShader<In, Uni> for Shader<Vs, Fs>where
Vs: VertexShader<In, Uni>,
Source§type Output = <Vs as VertexShader<In, Uni>>::Output
type Output = <Vs as VertexShader<In, Uni>>::Output
The type of the output vertex.
Source§fn shade_vertex(&self, vertex: In, uniform: Uni) -> Self::Output
fn shade_vertex(&self, vertex: In, uniform: Uni) -> Self::Output
Transforms
vertex and does performs other per-vertex computations
needed, outputting a new vertex of type Self::Output. Custom data
that is not vertex-specific can be passed in the uniform parameter. Read moreimpl<Vs: Copy, Fs: Copy> Copy for Shader<Vs, Fs>
Auto Trait Implementations§
impl<Vs, Fs> Freeze for Shader<Vs, Fs>
impl<Vs, Fs> RefUnwindSafe for Shader<Vs, Fs>where
Vs: RefUnwindSafe,
Fs: RefUnwindSafe,
impl<Vs, Fs> Send for Shader<Vs, Fs>
impl<Vs, Fs> Sync for Shader<Vs, Fs>
impl<Vs, Fs> Unpin for Shader<Vs, Fs>
impl<Vs, Fs> UnwindSafe for Shader<Vs, Fs>where
Vs: UnwindSafe,
Fs: UnwindSafe,
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