Struct rs_pbrt::core::paramset::TextureParams
source · 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: ParamSet
§material_params: ParamSet
Implementations§
source§impl TextureParams
impl TextureParams
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
pub fn get_spectrum_texture( &mut self, n: &str, def: Spectrum ) -> Arc<dyn Texture<Spectrum> + Send + Sync>
pub fn get_spectrum_texture_or_null( &mut self, n: &str ) -> Option<Arc<dyn Texture<Spectrum> + Send + Sync>>
pub fn get_float_texture( &mut self, n: &str, def: Float ) -> Arc<dyn Texture<Float> + Send + Sync>
pub fn get_float_texture_or_null( &mut self, n: &str ) -> Option<Arc<dyn Texture<Float> + Send + Sync>>
pub fn find_float(&mut self, name: &str, d: Float) -> Float
pub fn find_string(&mut self, name: &str, d: String) -> String
pub fn find_filename(&mut self, name: &str, d: String) -> String
pub fn find_int(&mut self, name: &str, d: i32) -> i32
pub fn find_bool(&mut self, name: &str, d: bool) -> bool
pub fn find_vector3f(&mut self, name: &str, d: Vector3f) -> Vector3f
pub fn find_spectrum(&mut self, name: &str, d: Spectrum) -> Spectrum
Trait Implementations§
source§impl Default for TextureParams
impl Default for TextureParams
source§fn default() -> TextureParams
fn default() -> TextureParams
Returns the “default value” for a type. Read more
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§
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
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.