pub struct Sampler<B: Backend> { /* private fields */ }
Expand description
Generic sampler resource wrapper.
Implementations§
Source§impl<B> Sampler<B>where
B: Backend,
impl<B> Sampler<B>where
B: Backend,
Sourcepub fn assert_device_owner(&self, device: &Device<B>)
pub fn assert_device_owner(&self, device: &Device<B>)
Assert specified device is owner.
Sourcepub fn instance_id(&self) -> InstanceId
pub fn instance_id(&self) -> InstanceId
Get owned id.
Sourcepub fn assert_instance_owner(&self, instance: &Instance<B>)
pub fn assert_instance_owner(&self, instance: &Instance<B>)
Assert specified instance is owner.
Source§impl<B> Sampler<B>where
B: Backend,
impl<B> Sampler<B>where
B: Backend,
Sourcepub fn create(
device: &Device<B>,
info: SamplerDesc,
) -> Result<Self, AllocationError>
pub fn create( device: &Device<B>, info: SamplerDesc, ) -> Result<Self, AllocationError>
Create new sampler.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Sampler<B>
impl<B> RefUnwindSafe for Sampler<B>
impl<B> Send for Sampler<B>
impl<B> Sync for Sampler<B>
impl<B> Unpin for Sampler<B>
impl<B> UnwindSafe for Sampler<B>
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