Struct librashader::presets::TextureConfig
source · pub struct TextureConfig {
pub name: String,
pub path: PathBuf,
pub wrap_mode: WrapMode,
pub filter_mode: FilterMode,
pub mipmap: bool,
}
Available on crate feature
presets
only.Expand description
Configuration options for a lookup texture used in the shader.
Fields§
§name: String
The name of the texture.
path: PathBuf
The fully qualified path to the texture.
wrap_mode: WrapMode
The wrap (addressing) mode to use when sampling the texture.
filter_mode: FilterMode
The filter mode to use when sampling the texture.
mipmap: bool
Whether or not to generate mipmaps for this texture.
Trait Implementations§
source§impl Clone for TextureConfig
impl Clone for TextureConfig
source§fn clone(&self) -> TextureConfig
fn clone(&self) -> TextureConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for TextureConfig
impl Send for TextureConfig
impl Sync for TextureConfig
impl Unpin for TextureConfig
impl UnwindSafe for TextureConfig
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