Struct VkPhysicalDevice

Source
pub struct VkPhysicalDevice { /* private fields */ }
Expand description

Wrapper for VkPhysicalDevice.

Implementations§

Source§

impl VkPhysicalDevice

Source

pub fn vk_handle(&self) -> u64

Returns the internal Vulkan handle for the object.

Source

pub fn is_null(&self) -> bool

Indicates if the Vulkan internal handle for this object is 0.

Source

pub fn null() -> Self

Creates an object with a null Vulkan internal handle.

Calling a method with a null handle will most likely result in a crash.

Source

pub fn get_features(&self) -> VkPhysicalDeviceFeatures

Source

pub fn get_format_properties(&self, format: VkFormat) -> VkFormatProperties

Source

pub fn get_image_format_properties( &self, format: VkFormat, type_: VkImageType, tiling: VkImageTiling, usage: VkImageUsageFlags, flags: VkImageCreateFlags, ) -> LavaResult<VkImageFormatProperties>

Source

pub fn get_properties(&self) -> VkPhysicalDeviceProperties

Source

pub fn get_queue_family_properties(&self) -> Vec<VkQueueFamilyProperties>

Source

pub fn get_memory_properties(&self) -> VkPhysicalDeviceMemoryProperties

Source

pub fn create_device( &self, create_info: VkDeviceCreateInfo<'_, '_>, ) -> LavaResult<VkDevice>

Wrapper for vkCreateDevice.

Source

pub fn enumerate_device_extension_properties( &self, layer_name: Option<&str>, ) -> LavaResult<Vec<VkExtensionProperties>>

Source

pub fn enumerate_device_layer_properties( &self, ) -> LavaResult<Vec<VkLayerProperties>>

Source

pub fn get_sparse_image_format_properties( &self, format: VkFormat, type_: VkImageType, samples: VkSampleCountFlags, usage: VkImageUsageFlags, tiling: VkImageTiling, ) -> Vec<VkSparseImageFormatProperties>

Source

pub fn get_features_2(&self) -> VkPhysicalDeviceFeatures2

Source

pub fn get_properties_2(&self) -> VkPhysicalDeviceProperties2

Source

pub fn get_format_properties_2(&self, format: VkFormat) -> VkFormatProperties2

Source

pub fn get_image_format_properties_2( &self, image_format_info: VkPhysicalDeviceImageFormatInfo2, ) -> LavaResult<VkImageFormatProperties2>

Source

pub fn get_queue_family_properties_2(&self) -> Vec<VkQueueFamilyProperties2>

Source

pub fn get_memory_properties_2(&self) -> VkPhysicalDeviceMemoryProperties2

Source

pub fn get_sparse_image_format_properties_2( &self, format_info: VkPhysicalDeviceSparseImageFormatInfo2, ) -> Vec<VkSparseImageFormatProperties2>

Source

pub fn get_external_buffer_properties( &self, external_buffer_info: VkPhysicalDeviceExternalBufferInfo, ) -> VkExternalBufferProperties

Source

pub fn get_external_fence_properties( &self, external_fence_info: VkPhysicalDeviceExternalFenceInfo, ) -> VkExternalFenceProperties

Source

pub fn get_external_semaphore_properties( &self, external_semaphore_info: VkPhysicalDeviceExternalSemaphoreInfo, ) -> VkExternalSemaphoreProperties

Source

pub fn get_surface_support( &self, queue_family_index: usize, surface: VkSurface, ) -> LavaResult<bool>

Source

pub fn get_surface_capabilities( &self, surface: VkSurface, ) -> LavaResult<VkSurfaceCapabilities>

Source

pub fn get_surface_formats( &self, surface: VkSurface, ) -> LavaResult<Vec<VkSurfaceFormat>>

Source

pub fn get_surface_present_modes( &self, surface: VkSurface, ) -> LavaResult<Vec<VkPresentMode>>

Source

pub fn get_present_rectangles( &self, surface: VkSurface, ) -> LavaResult<Vec<VkRect2D>>

Source

pub fn get_display_properties(&self) -> LavaResult<Vec<VkDisplayProperties<'_>>>

Source

pub fn get_display_plane_properties( &self, ) -> LavaResult<Vec<VkDisplayPlaneProperties>>

Source

pub fn get_display_plane_supported_displays( &self, plane_index: usize, ) -> LavaResult<Vec<VkDisplay>>

Source

pub fn get_display_mode_properties( &self, display: VkDisplay, ) -> LavaResult<Vec<VkDisplayModeProperties>>

Source

pub fn create_display_mode( &self, display: VkDisplay, create_info: VkDisplayModeCreateInfo, ) -> LavaResult<VkDisplayMode>

Source

pub fn get_display_plane_capabilities( &self, mode: VkDisplayMode, plane_index: usize, ) -> LavaResult<VkDisplayPlaneCapabilities>

Source

pub fn get_queue_family_performance_query_passes( &self, performance_query_create_info: VkQueryPoolPerformanceCreateInfo, ) -> usize

Source

pub fn get_surface_capabilities_2( &self, surface_info: VkPhysicalDeviceSurfaceInfo2, ) -> LavaResult<VkSurfaceCapabilities2>

Source

pub fn get_surface_formats_2( &self, surface_info: VkPhysicalDeviceSurfaceInfo2, ) -> LavaResult<Vec<VkSurfaceFormat2>>

Source

pub fn get_display_properties_2( &self, ) -> LavaResult<Vec<VkDisplayProperties2<'_>>>

Source

pub fn get_display_plane_properties_2( &self, ) -> LavaResult<Vec<VkDisplayPlaneProperties2>>

Source

pub fn get_display_mode_properties_2( &self, display: VkDisplay, ) -> LavaResult<Vec<VkDisplayModeProperties2>>

Source

pub fn get_display_plane_capabilities_2( &self, display_plane_info: VkDisplayPlaneInfo2, ) -> LavaResult<VkDisplayPlaneCapabilities2>

Source

pub fn get_external_image_format_properties( &self, format: VkFormat, type_: VkImageType, tiling: VkImageTiling, usage: VkImageUsageFlags, flags: VkImageCreateFlags, external_handle_type: VkExternalMemoryHandleTypeFlags, ) -> LavaResult<VkExternalImageFormatProperties>

Source

pub fn release_display(&self, display: VkDisplay) -> LavaResult<()>

Wrapper for vkReleaseDisplayEXT.

Source

pub fn get_surface_capabilities_2_ext( &self, surface: VkSurface, ) -> LavaResult<VkSurfaceCapabilities2>

Source

pub fn get_multisample_properties( &self, samples: VkSampleCountFlags, ) -> VkMultisampleProperties

Source

pub fn get_calibrateable_time_domains(&self) -> LavaResult<Vec<VkTimeDomain>>

Source

pub fn get_tool_properties( &self, ) -> LavaResult<Vec<VkPhysicalDeviceToolProperties>>

Source

pub fn get_cooperative_matrix_properties( &self, ) -> LavaResult<Vec<VkCooperativeMatrixProperties>>

Source

pub fn get_supported_framebuffer_mixed_samples_combinations( &self, ) -> LavaResult<Vec<VkFramebufferMixedSamplesCombination>>

Trait Implementations§

Source§

impl Clone for VkPhysicalDevice

Source§

fn clone(&self) -> VkPhysicalDevice

Returns a copy 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 VkPhysicalDevice

Source§

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

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

impl Default for VkPhysicalDevice

Source§

fn default() -> VkPhysicalDevice

Returns the “default value” for a type. Read more
Source§

impl PartialEq for VkPhysicalDevice

Source§

fn eq(&self, other: &VkPhysicalDevice) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for VkPhysicalDevice

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.