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
sourceimpl 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
sourceimpl Default for TextureParams
impl Default for TextureParams
sourcefn 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
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
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn 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()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.