[][src]Struct gli_rs::sampler::FSampler1D

#[repr(transparent)]
pub struct FSampler1D<'a> { /* fields omitted */ }

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]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.