Struct rs_pbrt::textures::constant::ConstantTexture
source · pub struct ConstantTexture<T> {
pub value: T,
}
Fields§
§value: T
Implementations§
Trait Implementations§
source§impl<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§
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