#[repr(transparent)]pub struct Sampler(pub NonZeroU64);Expand description
VkSampler : VkDevice
Tuple Fields§
§0: NonZeroU64Implementations§
Source§impl Sampler
impl Sampler
Sourcepub fn new(raw: u64) -> Option<Self>
pub fn new(raw: u64) -> Option<Self>
Creates a new Sampler from a raw handle value. Returns None if the value is zero.
Sourcepub unsafe fn new_unchecked(raw: u64) -> Self
pub unsafe fn new_unchecked(raw: u64) -> Self
Creates a new Sampler from a raw handle value without checking if it’s zero. The caller must ensure that the value is not zero.
Trait Implementations§
Source§impl ObjectType for Sampler
impl ObjectType for Sampler
const TYPE: ObjectType
Source§impl Ord for Sampler
impl Ord for Sampler
Source§impl PartialOrd for Sampler
impl PartialOrd for Sampler
impl Copy for Sampler
impl Eq for Sampler
impl RawHandle for Sampler
impl Send for Sampler
impl StructuralPartialEq for Sampler
impl Sync for Sampler
Auto Trait Implementations§
impl Freeze for Sampler
impl RefUnwindSafe for Sampler
impl Unpin for Sampler
impl UnsafeUnpin 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