Struct rend3::PotentialAdapter
source · [−]pub struct PotentialAdapter<T> {
pub inner: T,
pub info: ExtendedAdapterInfo,
pub features: Features,
pub limits: Limits,
pub profile: RendererProfile,
}
Expand description
Validated set of features and limits for a given T.
Fields
inner: T
info: ExtendedAdapterInfo
features: Features
limits: Limits
profile: RendererProfile
Implementations
sourceimpl<T> PotentialAdapter<T>
impl<T> PotentialAdapter<T>
pub fn new(
inner: T,
inner_info: AdapterInfo,
inner_limits: Limits,
inner_features: Features,
desired_profile: Option<RendererProfile>
) -> Result<Self, RendererInitializationError>
Auto Trait Implementations
impl<T> RefUnwindSafe for PotentialAdapter<T> where
T: RefUnwindSafe,
impl<T> Send for PotentialAdapter<T> where
T: Send,
impl<T> Sync for PotentialAdapter<T> where
T: Sync,
impl<T> Unpin for PotentialAdapter<T> where
T: Unpin,
impl<T> UnwindSafe for PotentialAdapter<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more