pub struct Sampler {
pub(crate) raw: ManuallyDrop<Box<dyn DynSampler>>,
pub(crate) device: Arc<Device>,
pub(crate) label: String,
pub(crate) tracking_data: TrackingData,
pub(crate) comparison: bool,
pub(crate) filtering: bool,
}
Fields§
§raw: ManuallyDrop<Box<dyn DynSampler>>
§device: Arc<Device>
§label: String
The label
from the descriptor used to create the resource.
tracking_data: TrackingData
§comparison: bool
true
if this is a comparison sampler
filtering: bool
true
if this is a filtering sampler
Implementations§
Trait Implementations§
source§impl Labeled for Sampler
impl Labeled for Sampler
source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
source§impl ParentDevice for Sampler
impl ParentDevice for Sampler
source§impl Trackable for Sampler
impl Trackable for Sampler
fn tracker_index(&self) -> TrackerIndex
Auto Trait Implementations§
impl Freeze for Sampler
impl !RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin 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