[−][src]Struct luminance::shader::Program
A shader program.
Shader programs are GPU binaries that execute when a draw command is issued.
Parametricity
B
is the backend type.Sem
is theSemantics
type.Out
is the render target type.Uni
is theUniformInterface
type.
Implementations
impl<B: ?Sized, Sem, Out, Uni> Program<B, Sem, Out, Uni> where
B: Shader,
Sem: Semantics,
[src]
B: Shader,
Sem: Semantics,
pub fn adapt<Q>(
self
) -> Result<BuiltProgram<B, Sem, Out, Q>, AdaptationFailure<B, Sem, Out, Uni>> where
Q: UniformInterface<B>,
[src]
self
) -> Result<BuiltProgram<B, Sem, Out, Q>, AdaptationFailure<B, Sem, Out, Uni>> where
Q: UniformInterface<B>,
Create a new UniformInterface
but keep the Program
around without rebuilding it.
Parametricity
Q
is the newUniformInterface
.
pub fn adapt_env<Q, E>(
self,
env: &mut E
) -> Result<BuiltProgram<B, Sem, Out, Q>, AdaptationFailure<B, Sem, Out, Uni>> where
Q: UniformInterface<B, E>,
[src]
self,
env: &mut E
) -> Result<BuiltProgram<B, Sem, Out, Q>, AdaptationFailure<B, Sem, Out, Uni>> where
Q: UniformInterface<B, E>,
Create a new UniformInterface
but keep the Program
around without rebuilding it, by
using a mutable environment variable.
Parametricity
Q
is the newUniformInterface
.E
is the mutable environment variable.
pub fn readapt_env<E>(
self,
env: &mut E
) -> Result<BuiltProgram<B, Sem, Out, Uni>, AdaptationFailure<B, Sem, Out, Uni>> where
Uni: UniformInterface<B, E>,
[src]
self,
env: &mut E
) -> Result<BuiltProgram<B, Sem, Out, Uni>, AdaptationFailure<B, Sem, Out, Uni>> where
Uni: UniformInterface<B, E>,
Re-create the UniformInterface
but keep the Program
around without rebuilding it.
Parametricity
E
is the mutable environment variable.
Auto Trait Implementations
impl<B: ?Sized, Sem, Out, Uni> RefUnwindSafe for Program<B, Sem, Out, Uni> where
Out: RefUnwindSafe,
Sem: RefUnwindSafe,
Uni: RefUnwindSafe,
<B as Shader>::ProgramRepr: RefUnwindSafe,
Out: RefUnwindSafe,
Sem: RefUnwindSafe,
Uni: RefUnwindSafe,
<B as Shader>::ProgramRepr: RefUnwindSafe,
impl<B, Sem, Out, Uni> !Send for Program<B, Sem, Out, Uni>
impl<B, Sem, Out, Uni> !Sync for Program<B, Sem, Out, Uni>
impl<B: ?Sized, Sem, Out, Uni> Unpin for Program<B, Sem, Out, Uni> where
Uni: Unpin,
<B as Shader>::ProgramRepr: Unpin,
Uni: Unpin,
<B as Shader>::ProgramRepr: Unpin,
impl<B: ?Sized, Sem, Out, Uni> UnwindSafe for Program<B, Sem, Out, Uni> where
Out: RefUnwindSafe,
Sem: RefUnwindSafe,
Uni: UnwindSafe,
<B as Shader>::ProgramRepr: UnwindSafe,
Out: RefUnwindSafe,
Sem: RefUnwindSafe,
Uni: UnwindSafe,
<B as Shader>::ProgramRepr: 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>,