pub struct PhysicalDevice { /* private fields */ }
Implementations§
Source§impl PhysicalDevice
impl PhysicalDevice
pub fn from_parts( instance: Instance, handle: PhysicalDeviceHandle, ) -> PhysicalDevice
Sourcepub fn handle(&self) -> PhysicalDeviceHandle
pub fn handle(&self) -> PhysicalDeviceHandle
Returns this object’s handle.
Sourcepub fn features(&self) -> PhysicalDeviceFeatures
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
Sourcepub fn format_properties(&self, format: Format) -> FormatProperties
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
Sourcepub fn image_format_properties<Pd>(
&self,
format: Format,
type_: ImageType,
tiling: ImageTiling,
usage: ImageUsageFlags,
flags: ImageCreateFlags,
) -> VdResult<ImageFormatProperties>
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
Sourcepub fn properties(&self) -> PhysicalDeviceProperties
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
Sourcepub fn queue_family_properties(
&self,
) -> VdResult<SmallVec<[QueueFamilyProperties; 16]>>
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
Sourcepub fn memory_properties(&self) -> PhysicalDeviceMemoryProperties
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
Sourcepub fn extension_properties(
&self,
) -> VdResult<SmallVec<[ExtensionProperties; 64]>>
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
Sourcepub fn surface_support_khr(
&self,
queue_family_index: u32,
surface: &SurfaceKhr,
) -> VdResult<bool>
pub fn surface_support_khr( &self, queue_family_index: u32, surface: &SurfaceKhr, ) -> VdResult<bool>
Queries if presentation is supported.
https://manned.org/vkGetPhysicalDeviceSurfaceSupportKHR.3
Sourcepub fn surface_capabilities_khr(
&self,
surface: &SurfaceKhr,
) -> VdResult<SurfaceCapabilitiesKhr>
pub fn surface_capabilities_khr( &self, surface: &SurfaceKhr, ) -> VdResult<SurfaceCapabilitiesKhr>
Queries surface capabilities.
https://manned.org/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.3
Sourcepub fn surface_formats_khr(
&self,
surface: &SurfaceKhr,
) -> VdResult<SmallVec<[SurfaceFormatKhr; 64]>>
pub fn surface_formats_khr( &self, surface: &SurfaceKhr, ) -> VdResult<SmallVec<[SurfaceFormatKhr; 64]>>
Queries color formats supported by surface.
https://manned.org/vkGetPhysicalDeviceSurfaceFormatsKHR.3
Sourcepub fn surface_present_modes_khr(
&self,
surface: &SurfaceKhr,
) -> VdResult<SmallVec<[PresentModeKhr; 16]>>
pub fn surface_present_modes_khr( &self, surface: &SurfaceKhr, ) -> VdResult<SmallVec<[PresentModeKhr; 16]>>
Queries supported presentation modes.
https://manned.org/vkGetPhysicalDeviceSurfacePresentModesKHR.3
Trait Implementations§
Source§impl Clone for PhysicalDevice
impl Clone for PhysicalDevice
Source§fn clone(&self) -> PhysicalDevice
fn clone(&self) -> PhysicalDevice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more