pub struct GpuBackendFactory;Expand description
Vendor detection and backend creation
Implementations§
Source§impl GpuBackendFactory
impl GpuBackendFactory
Sourcepub fn detect_available_vendors() -> Vec<GpuVendor>
pub fn detect_available_vendors() -> Vec<GpuVendor>
Detect available GPU vendors
Sourcepub fn get_preferred_vendor() -> GpuVendor
pub fn get_preferred_vendor() -> GpuVendor
Get preferred vendor based on platform
Sourcepub fn create_default_config(vendor: GpuVendor) -> VendorConfig
pub fn create_default_config(vendor: GpuVendor) -> VendorConfig
Create backend configuration for vendor
Auto Trait Implementations§
impl Freeze for GpuBackendFactory
impl RefUnwindSafe for GpuBackendFactory
impl Send for GpuBackendFactory
impl Sync for GpuBackendFactory
impl Unpin for GpuBackendFactory
impl UnwindSafe for GpuBackendFactory
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more