[−][src]Struct luminance::shader::Stage
Implementations
impl<B: ?Sized> Stage<B> where
B: Shader,
[src]
B: Shader,
pub fn new<C, R>(ctx: &mut C, ty: StageType, src: R) -> Result<Self, StageError> where
C: GraphicsContext<Backend = B>,
R: AsRef<str>,
[src]
C: GraphicsContext<Backend = B>,
R: AsRef<str>,
Create a new stage of type ty
by compiling src
.
Parametricity
C
is the graphics context.C::Backend
must implement theShader
trait.R
is the source code to use in the stage. It must implementAsRef<str>
.
Notes
Feel free to consider using GraphicsContext::new_shader_stage
for a simpler form of
this method.
Auto Trait Implementations
impl<B: ?Sized> RefUnwindSafe for Stage<B> where
<B as Shader>::StageRepr: RefUnwindSafe,
[src]
<B as Shader>::StageRepr: RefUnwindSafe,
impl<B: ?Sized> Send for Stage<B> where
<B as Shader>::StageRepr: Send,
[src]
<B as Shader>::StageRepr: Send,
impl<B: ?Sized> Sync for Stage<B> where
<B as Shader>::StageRepr: Sync,
[src]
<B as Shader>::StageRepr: Sync,
impl<B: ?Sized> Unpin for Stage<B> where
<B as Shader>::StageRepr: Unpin,
[src]
<B as Shader>::StageRepr: Unpin,
impl<B: ?Sized> UnwindSafe for Stage<B> where
<B as Shader>::StageRepr: UnwindSafe,
[src]
<B as Shader>::StageRepr: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,