pub struct PhysicalDevice {
pub properties: PhysicalDeviceProperties,
/* private fields */
}Fields§
§properties: PhysicalDevicePropertiesImplementations§
Source§impl PhysicalDevice
impl PhysicalDevice
pub fn msaa_samples(&self) -> SampleCountFlags
Sourcepub fn enable_extension_if_present(&mut self, extension: ExtensionName) -> bool
pub fn enable_extension_if_present(&mut self, extension: ExtensionName) -> bool
If the given device extension is available on this physical device, mark it to be enabled when creating a logical device and return true. Returns false if the extension is not present.
Sourcepub fn enable_extensions_if_present<I: IntoIterator<Item = ExtensionName>>(
&mut self,
extensions: I,
) -> bool
pub fn enable_extensions_if_present<I: IntoIterator<Item = ExtensionName>>( &mut self, extensions: I, ) -> bool
If all extensions in extensions are available on this physical device, mark them to
be enabled when creating the logical device and return true. If any are missing,
nothing is enabled and false is returned.
pub fn name(&self) -> &str
pub fn api_version(&self) -> u32
pub fn api_version_string(&self) -> String
Trait Implementations§
Source§impl AsRef<PhysicalDevice> for PhysicalDevice
impl AsRef<PhysicalDevice> for PhysicalDevice
Source§fn as_ref(&self) -> &PhysicalDevice
fn as_ref(&self) -> &PhysicalDevice
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Debug for PhysicalDevice
impl Debug for PhysicalDevice
Source§impl Default for PhysicalDevice
impl Default for PhysicalDevice
impl Eq for PhysicalDevice
Source§impl Ord for PhysicalDevice
impl Ord for PhysicalDevice
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PhysicalDevice
impl PartialEq for PhysicalDevice
Source§impl PartialOrd for PhysicalDevice
impl PartialOrd for PhysicalDevice
Auto Trait Implementations§
impl Freeze for PhysicalDevice
impl RefUnwindSafe for PhysicalDevice
impl Send for PhysicalDevice
impl Sync for PhysicalDevice
impl Unpin for PhysicalDevice
impl UnsafeUnpin for PhysicalDevice
impl UnwindSafe for PhysicalDevice
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