pub struct SamplerState {
pub wrap: [Option<AddressMode>; 3],
pub filters: Filters,
pub max_anisotropy: Option<u8>,
pub compare: Option<Compare>,
pub mip_lod_bias: Option<f32>,
}Expand description
A sampler’s state as the source stores it, for a texture slot: each part None where the source states none.
Fields§
§wrap: [Option<AddressMode>; 3]Addressing along u, v and w.
filters: FiltersThe sampler’s filters.
max_anisotropy: Option<u8>The most texels along the axis of anisotropy an anisotropic filter takes (1: none beyond the filters’), where the source states an anisotropic filter.
compare: Option<Compare>The comparison a depth-comparison sampler makes of the reference against the texel, where the sampler is one.
mip_lod_bias: Option<f32>Added to the mip level the hardware computes, where the source states a non-zero bias.
Trait Implementations§
Source§impl Clone for SamplerState
impl Clone for SamplerState
impl Copy for SamplerState
Source§impl Debug for SamplerState
impl Debug for SamplerState
Source§impl Default for SamplerState
impl Default for SamplerState
Source§impl PartialEq for SamplerState
impl PartialEq for SamplerState
Source§impl Serialize for SamplerState
impl Serialize for SamplerState
impl StructuralPartialEq for SamplerState
Auto Trait Implementations§
impl Freeze for SamplerState
impl RefUnwindSafe for SamplerState
impl Send for SamplerState
impl Sync for SamplerState
impl Unpin for SamplerState
impl UnsafeUnpin for SamplerState
impl UnwindSafe for SamplerState
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