[−][src]Struct gli_rs::sampler::FSampler1D
1d texture sampler.
It interprets the texture data as float.
Methods
impl<'a, 'b: 'a> FSampler1D<'a>
[src]
pub fn new(
texture: &'b Texture1D,
wrap: Wrap,
mip: Filter,
min: Filter
) -> FSampler1D
[src]
texture: &'b Texture1D,
wrap: Wrap,
mip: Filter,
min: Filter
) -> FSampler1D
Constructor of FSampler1D
.
pub fn set_border_color(&mut self, color: [f32; 4])
[src]
Set the border color used by sampler. Default is [0.0, 0.0, 0.0, 1.0]
.
pub fn clear(&mut self, texel: [f32; 4])
[src]
Clear the sampler texture with a uniform texel.
pub fn generate_mipmaps(&mut self, minification: Filter)
[src]
Generate all the mipmaps of the sampler texture from the texture base level.
pub fn generate_mipmaps_detail(
&mut self,
base_level: usize,
max_level: usize,
minification: Filter
)
[src]
&mut self,
base_level: usize,
max_level: usize,
minification: Filter
)
Generate the mipmaps of the sampler texture from the texture base level to the texture max level included.
pub fn texel_fetch(&self, texel_coord: Extent1d, level: usize) -> [f32; 4]
[src]
Fetch a texel from the sampler texture.
pub fn texel_write(
&mut self,
texel_coord: Extent1d,
level: usize,
texel: [f32; 4]
)
[src]
&mut self,
texel_coord: Extent1d,
level: usize,
texel: [f32; 4]
)
Write a texel in the sampler texture.
pub fn texel_lod(&self, sample_coord: NormalizeCoord1d, level: f32) -> [f32; 4]
[src]
Sample the sampler texture at a specific level.
Auto Trait Implementations
impl<'a> RefUnwindSafe for FSampler1D<'a>
impl<'a> Send for FSampler1D<'a>
impl<'a> Sync for FSampler1D<'a>
impl<'a> Unpin for FSampler1D<'a>
impl<'a> UnwindSafe for FSampler1D<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,