pub struct TextureSampler { /* private fields */ }Expand description
Wraps the corresponding Model I/O texture sampler counterpart.
Implementations§
Source§impl TextureSampler
impl TextureSampler
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Wraps the corresponding Model I/O initializer for the wrapped Model I/O texture sampler counterpart.
Sourcepub fn info(&self) -> Result<TextureSamplerInfo>
pub fn info(&self) -> Result<TextureSamplerInfo>
Calls the corresponding Model I/O method on the wrapped Model I/O texture sampler counterpart.
Sourcepub fn texture(&self) -> Option<Texture>
pub fn texture(&self) -> Option<Texture>
Calls the corresponding Model I/O method on the wrapped Model I/O texture sampler counterpart.
Sourcepub fn set_texture(&self, texture: Option<&Texture>)
pub fn set_texture(&self, texture: Option<&Texture>)
Calls the corresponding Model I/O method on the wrapped Model I/O texture sampler counterpart.
Sourcepub fn hardware_filter(&self) -> Option<TextureFilter>
pub fn hardware_filter(&self) -> Option<TextureFilter>
Calls the corresponding Model I/O method on the wrapped Model I/O texture sampler counterpart.
Sourcepub fn set_hardware_filter(&self, filter: Option<&TextureFilter>)
pub fn set_hardware_filter(&self, filter: Option<&TextureFilter>)
Calls the corresponding Model I/O method on the wrapped Model I/O texture sampler counterpart.
Sourcepub fn transform(&self) -> Option<Transform>
pub fn transform(&self) -> Option<Transform>
Calls the corresponding Model I/O method on the wrapped Model I/O texture sampler counterpart.
Sourcepub fn set_transform(&self, transform: Option<&Transform>)
pub fn set_transform(&self, transform: Option<&Transform>)
Calls the corresponding Model I/O method on the wrapped Model I/O texture sampler counterpart.
Trait Implementations§
Source§impl Clone for TextureSampler
impl Clone for TextureSampler
Source§fn clone(&self) -> TextureSampler
fn clone(&self) -> TextureSampler
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more