pub struct ConstantTexture<T> {
pub value: T,
}
Fields
value: T
Implementations
sourceimpl<T: Copy> ConstantTexture<T>
impl<T: Copy> ConstantTexture<T>
Trait Implementations
sourceimpl<T: Copy> Texture<T> for ConstantTexture<T>
impl<T: Copy> Texture<T> for ConstantTexture<T>
fn evaluate(&self, _si: &SurfaceInteraction<'_>) -> T
Auto Trait Implementations
impl<T> RefUnwindSafe for ConstantTexture<T> where
T: RefUnwindSafe,
impl<T> Send for ConstantTexture<T> where
T: Send,
impl<T> Sync for ConstantTexture<T> where
T: Sync,
impl<T> Unpin for ConstantTexture<T> where
T: Unpin,
impl<T> UnwindSafe for ConstantTexture<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more