pub struct SamplerBuilder<'a, 'gpu> {
pub gpu: &'gpu Gpu,
pub inner: SamplerDescriptor<'a>,
}Fields§
§gpu: &'gpu Gpu§inner: SamplerDescriptor<'a>Implementations§
Source§impl SamplerBuilder<'_, '_>
impl SamplerBuilder<'_, '_>
pub fn create(&self) -> Sampler
Sourcepub const fn tile(self) -> Self
pub const fn tile(self) -> Self
How to deal with out of bounds accesses xyz/uvw are all affected (for now)
pub const fn mirror_tile(self) -> Self
pub const fn oob_transparent(self) -> Self
pub const fn oob_black(self) -> Self
pub const fn oob_white(self) -> Self
pub const fn linear_filter(self) -> Self
pub const fn lod_range(self, range: Range<f32>) -> Self
pub const fn comparator(self, comparator: CompareFunction) -> Self
Auto Trait Implementations§
impl<'a, 'gpu> !RefUnwindSafe for SamplerBuilder<'a, 'gpu>
impl<'a, 'gpu> !Send for SamplerBuilder<'a, 'gpu>
impl<'a, 'gpu> !Sync for SamplerBuilder<'a, 'gpu>
impl<'a, 'gpu> !UnwindSafe for SamplerBuilder<'a, 'gpu>
impl<'a, 'gpu> Freeze for SamplerBuilder<'a, 'gpu>
impl<'a, 'gpu> Unpin for SamplerBuilder<'a, 'gpu>
impl<'a, 'gpu> UnsafeUnpin for SamplerBuilder<'a, 'gpu>
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