Struct let_engine::texture::Sampler
source · pub struct Sampler {
pub mag_filter: Filter,
pub min_filter: Filter,
pub mipmap_mode: Filter,
pub address_mode: [AddressMode; 3],
pub border_color: BorderColor,
}
Expand description
The sampler of the texture that determines how the shader should handle textures.
Fields§
§mag_filter: Filter
Way to filter the texture when the texture is bigger than it’s actual resolution.
min_filter: Filter
Way to filter the texture when it’s smaller than the actual texture.
mipmap_mode: Filter
How the final sampled value should be calculated from the samples of individual mipmaps.
address_mode: [AddressMode; 3]
How out of range texture coordinates should be handled.
border_color: BorderColor
Color for the border when the address mode is on ClampToBorder.
Implementations§
source§impl Sampler
impl Sampler
pub fn to_vulkano(&self) -> SamplerCreateInfo
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin for Sampler
impl UnwindSafe for Sampler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.