[−][src]Struct gli_rs::sampler::FSamplerCube
Cube map texture sampler.
It interprets the texture data as float.
Methods
impl<'a, 'b: 'a> FSamplerCube<'a>
[src]
pub fn new(
texture: &'b TextureCube,
wrap: Wrap,
mip: Filter,
min: Filter
) -> FSamplerCube
[src]
texture: &'b TextureCube,
wrap: Wrap,
mip: Filter,
min: Filter
) -> FSamplerCube
Constructor of FSamplerCube
.
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_face: usize,
max_face: usize,
base_level: usize,
max_level: usize,
minification: Filter
)
[src]
&mut self,
base_face: usize,
max_face: 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,
face: usize,
level: usize
) -> [f32; 4]
[src]
&self,
texel_coord: Extent2d,
face: usize,
level: usize
) -> [f32; 4]
Fetch a texel from the sampler texture.
pub fn texel_write(
&mut self,
texel_coord: Extent2d,
face: usize,
level: usize,
texel: [f32; 4]
)
[src]
&mut self,
texel_coord: Extent2d,
face: usize,
level: usize,
texel: [f32; 4]
)
Write a texel in the sampler texture.
pub fn texel_lod(
&self,
sample_coord: NormalizeCoord2d,
face: usize,
level: f32
) -> [f32; 4]
[src]
&self,
sample_coord: NormalizeCoord2d,
face: usize,
level: f32
) -> [f32; 4]
Sample the sampler texture at a specific level.
Auto Trait Implementations
impl<'a> Send for FSamplerCube<'a>
impl<'a> Sync for FSamplerCube<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,