[][src]Struct gli_rs::sampler::FSampler2DArray

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

2d array texture sampler.

It interprets the texture data as float.

Methods

impl<'a, 'b: 'a> FSampler2DArray<'a>[src]

pub fn new(
    texture: &'b Texture2DArray,
    wrap: Wrap,
    mip: Filter,
    min: Filter
) -> FSampler2DArray
[src]

Constructor of FSampler2DArray.

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_layer: usize,
    max_layer: usize,
    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: Extent2d,
    layer: usize,
    level: usize
) -> [f32; 4]
[src]

Fetch a texel from the sampler texture.

pub fn texel_write(
    &mut self,
    texel_coord: Extent2d,
    layer: usize,
    level: usize,
    texel: [f32; 4]
)
[src]

Write a texel in the sampler texture.

pub fn texel_lod(
    &self,
    sample_coord: NormalizeCoord2d,
    layer: usize,
    level: f32
) -> [f32; 4]
[src]

Sample the sampler texture at a specific level.

Auto Trait Implementations

impl<'a> RefUnwindSafe for FSampler2DArray<'a>

impl<'a> Send for FSampler2DArray<'a>

impl<'a> Sync for FSampler2DArray<'a>

impl<'a> Unpin for FSampler2DArray<'a>

impl<'a> UnwindSafe for FSampler2DArray<'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.