[][src]Struct pbrt::core::paramset::TextureParams

pub struct TextureParams {
    pub float_textures: Arc<HashMap<String, Arc<dyn Texture<Float> + Send + Sync>>>,
    pub spectrum_textures: Arc<HashMap<String, Arc<dyn Texture<Spectrum> + Send + Sync>>>,
    pub geom_params: ParamSet,
    pub material_params: ParamSet,
}

Fields

float_textures: Arc<HashMap<String, Arc<dyn Texture<Float> + Send + Sync>>>spectrum_textures: Arc<HashMap<String, Arc<dyn Texture<Spectrum> + Send + Sync>>>geom_params: ParamSetmaterial_params: ParamSet

Implementations

impl TextureParams[src]

pub fn new(
    geom_params: ParamSet,
    material_params: ParamSet,
    f_tex: Arc<HashMap<String, Arc<dyn Texture<Float> + Send + Sync>>>,
    s_tex: Arc<HashMap<String, Arc<dyn Texture<Spectrum> + Send + Sync>>>
) -> Self
[src]

pub fn get_spectrum_texture(
    &mut self,
    n: &str,
    def: Spectrum
) -> Arc<dyn Texture<Spectrum> + Send + Sync>
[src]

pub fn get_spectrum_texture_or_null(
    &mut self,
    n: &str
) -> Option<Arc<dyn Texture<Spectrum> + Send + Sync>>
[src]

pub fn get_float_texture(
    &mut self,
    n: &str,
    def: Float
) -> Arc<dyn Texture<Float> + Send + Sync>
[src]

pub fn get_float_texture_or_null(
    &mut self,
    n: &str
) -> Option<Arc<dyn Texture<Float> + Send + Sync>>
[src]

pub fn find_float(&mut self, name: &str, d: Float) -> Float[src]

pub fn find_string(&mut self, name: &str, d: String) -> String[src]

pub fn find_filename(&mut self, name: &str, d: String) -> String[src]

pub fn find_int(&mut self, name: &str, d: i32) -> i32[src]

pub fn find_bool(&mut self, name: &str, d: bool) -> bool[src]

pub fn find_vector3f(&mut self, name: &str, d: Vector3f) -> Vector3f[src]

pub fn find_spectrum(&mut self, name: &str, d: Spectrum) -> Spectrum[src]

Trait Implementations

impl Default for TextureParams[src]

Auto Trait Implementations

impl !RefUnwindSafe for TextureParams

impl Send for TextureParams

impl Sync for TextureParams

impl Unpin for TextureParams

impl !UnwindSafe for TextureParams

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.