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.
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
Source§fn default() -> PhysicalDevice
fn default() -> PhysicalDevice
Returns the “default value” for a type. Read more
Source§impl Ord for PhysicalDevice
impl Ord for PhysicalDevice
Source§impl PartialEq for PhysicalDevice
impl PartialEq for PhysicalDevice
Source§impl PartialOrd for PhysicalDevice
impl PartialOrd for PhysicalDevice
impl Eq 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 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