pub struct PhysicalDevice { /* private fields */ }Implementations§
Source§impl PhysicalDevice
impl PhysicalDevice
pub fn new( instance: Arc<Instance>, handle: PhysicalDevice, ) -> Result<Self, PhysicalDeviceError>
pub fn supports_min_api_ver(&self, api_version: ApiVersion) -> bool
Sourcepub fn any_unsupported_extensions<'a>(
&self,
extension_names: Vec<CString>,
) -> Vec<CString>
pub fn any_unsupported_extensions<'a>( &self, extension_names: Vec<CString>, ) -> Vec<CString>
Returns any of the provided extension_names that are unsupported by this device.
pub fn supports_extension(&self, extension_name: CString) -> bool
pub fn handle(&self) -> PhysicalDevice
pub fn properties(&self) -> &PhysicalDeviceProperties
pub fn name(&self) -> String
pub fn queue_family_properties(&self) -> &Vec<QueueFamilyProperties>
pub fn memory_properties(&self) -> &PhysicalDeviceMemoryProperties
pub fn extension_properties(&self) -> &Vec<ExtensionProperties>
pub fn instance(&self) -> &Arc<Instance>
Trait Implementations§
Source§impl Clone for PhysicalDevice
impl Clone for PhysicalDevice
Source§fn clone(&self) -> PhysicalDevice
fn clone(&self) -> PhysicalDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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