[−][src]Struct gli_rs::sampler::FSampler2DArray
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]
texture: &'b Texture2DArray,
wrap: Wrap,
mip: Filter,
min: Filter
) -> FSampler2DArray
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]
&mut self,
base_layer: usize,
max_layer: usize,
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: Extent2d,
layer: usize,
level: usize
) -> [f32; 4]
[src]
&self,
texel_coord: Extent2d,
layer: usize,
level: usize
) -> [f32; 4]
Fetch a texel from the sampler texture.
pub fn texel_write(
&mut self,
texel_coord: Extent2d,
layer: usize,
level: usize,
texel: [f32; 4]
)
[src]
&mut self,
texel_coord: Extent2d,
layer: usize,
level: usize,
texel: [f32; 4]
)
Write a texel in the sampler texture.
pub fn texel_lod(
&self,
sample_coord: NormalizeCoord2d,
layer: usize,
level: f32
) -> [f32; 4]
[src]
&self,
sample_coord: NormalizeCoord2d,
layer: usize,
level: f32
) -> [f32; 4]
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]
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>,