Struct PhysicalDevice

Source
pub struct PhysicalDevice { /* private fields */ }

Implementations§

Source§

impl PhysicalDevice

Source

pub fn from_parts( instance: Instance, handle: PhysicalDeviceHandle, ) -> PhysicalDevice

Source

pub fn handle(&self) -> PhysicalDeviceHandle

Returns this object’s handle.

Source

pub fn instance(&self) -> &Instance

Returns a reference to the associated instance.

Source

pub fn features(&self) -> PhysicalDeviceFeatures

Reports the capabilities of a physical device.

https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceFeatures.html

Source

pub fn format_properties(&self, format: Format) -> FormatProperties

Lists a physical device’s format capabilities.

https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceFormatProperties.html

Source

pub fn image_format_properties<Pd>( &self, format: Format, type_: ImageType, tiling: ImageTiling, usage: ImageUsageFlags, flags: ImageCreateFlags, ) -> VdResult<ImageFormatProperties>

Lists a physical device’s image format capabilities.

https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceImageFormatProperties.html

Source

pub fn properties(&self) -> PhysicalDeviceProperties

Returns the properties of a physical device.

https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceProperties.html

Source

pub fn queue_family_properties( &self, ) -> VdResult<SmallVec<[QueueFamilyProperties; 16]>>

Reports properties of the queues of the specified physical device.

https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceQueueFamilyProperties.html

Source

pub fn memory_properties(&self) -> PhysicalDeviceMemoryProperties

Reports memory information for the specified physical device.

https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceMemoryProperties.html

Source

pub fn extension_properties( &self, ) -> VdResult<SmallVec<[ExtensionProperties; 64]>>

Returns the properties of available physical device extensions.

https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkEnumerateDeviceExtensionProperties.html

Source

pub fn surface_support_khr( &self, queue_family_index: u32, surface: &SurfaceKhr, ) -> VdResult<bool>

Queries if presentation is supported.

https://manned.org/vkGetPhysicalDeviceSurfaceSupportKHR.3

Source

pub fn surface_capabilities_khr( &self, surface: &SurfaceKhr, ) -> VdResult<SurfaceCapabilitiesKhr>

Queries surface capabilities.

https://manned.org/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.3

Source

pub fn surface_formats_khr( &self, surface: &SurfaceKhr, ) -> VdResult<SmallVec<[SurfaceFormatKhr; 64]>>

Queries color formats supported by surface.

https://manned.org/vkGetPhysicalDeviceSurfaceFormatsKHR.3

Source

pub fn surface_present_modes_khr( &self, surface: &SurfaceKhr, ) -> VdResult<SmallVec<[PresentModeKhr; 16]>>

Queries supported presentation modes.

https://manned.org/vkGetPhysicalDeviceSurfacePresentModesKHR.3

Source

pub fn verify_extension_support<'a, 'cs, Cs>( &'a self, extension_names: Cs, ) -> VdResult<bool>
where Cs: 'cs + Into<CharStrs<'cs>>, 'cs: 'a,

Verifies that the extensions listed are supported by this physical device.

Trait Implementations§

Source§

impl Clone for PhysicalDevice

Source§

fn clone(&self) -> PhysicalDevice

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PhysicalDevice

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'p> Handle for &'p PhysicalDevice

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.