pub struct SamplerDesc {
pub image_type: SamplerType,
pub mip_maps: usize,
pub pixel_format: PixelFormat,
}
Fields§
§image_type: SamplerType
§mip_maps: usize
§pixel_format: PixelFormat
Implementations§
Source§impl SamplerDesc
impl SamplerDesc
pub fn default(width: usize, height: usize) -> Self
pub fn with_wrap_mode(self, wrap: WrapMode) -> Self
pub fn with_pixel_format(self, pf: PixelFormat) -> Self
pub fn with_mip_maps(self, levels: usize) -> Self
pub fn width(&self) -> usize
pub fn height(&self) -> usize
Trait Implementations§
Source§impl Clone for SamplerDesc
impl Clone for SamplerDesc
Source§fn clone(&self) -> SamplerDesc
fn clone(&self) -> SamplerDesc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SamplerDesc
impl RefUnwindSafe for SamplerDesc
impl Send for SamplerDesc
impl Sync for SamplerDesc
impl Unpin for SamplerDesc
impl UnwindSafe for SamplerDesc
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