Struct voodoo::PhysicalDevice
[−]
[src]
pub struct PhysicalDevice { /* fields omitted */ }
Methods
impl PhysicalDevice
[src]
pub fn from_parts(
instance: Instance,
handle: PhysicalDeviceHandle
) -> PhysicalDevice
[src]
instance: Instance,
handle: PhysicalDeviceHandle
) -> PhysicalDevice
pub fn handle(&self) -> PhysicalDeviceHandle
[src]
Returns this object's handle.
pub fn instance(&self) -> &Instance
[src]
Returns a reference to the associated instance.
pub fn features(&self) -> PhysicalDeviceFeatures
[src]
Reports the capabilities of a physical device.
https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceFeatures.html
pub fn format_properties(&self, format: Format) -> FormatProperties
[src]
Lists a physical device's format capabilities.
https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceFormatProperties.html
pub fn image_format_properties<Pd>(
&self,
format: Format,
type_: ImageType,
tiling: ImageTiling,
usage: ImageUsageFlags,
flags: ImageCreateFlags
) -> VdResult<ImageFormatProperties>
[src]
&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
pub fn properties(&self) -> PhysicalDeviceProperties
[src]
Returns the properties of a physical device.
https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceProperties.html
pub fn queue_family_properties(
&self
) -> VdResult<SmallVec<[QueueFamilyProperties; 16]>>
[src]
&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
pub fn memory_properties(&self) -> PhysicalDeviceMemoryProperties
[src]
Reports memory information for the specified physical device.
https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkGetPhysicalDeviceMemoryProperties.html
pub fn extension_properties(
&self
) -> VdResult<SmallVec<[ExtensionProperties; 64]>>
[src]
&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
pub fn surface_support_khr(
&self,
queue_family_index: u32,
surface: &SurfaceKhr
) -> VdResult<bool>
[src]
&self,
queue_family_index: u32,
surface: &SurfaceKhr
) -> VdResult<bool>
Queries if presentation is supported.
https://manned.org/vkGetPhysicalDeviceSurfaceSupportKHR.3
pub fn surface_capabilities_khr(
&self,
surface: &SurfaceKhr
) -> VdResult<SurfaceCapabilitiesKhr>
[src]
&self,
surface: &SurfaceKhr
) -> VdResult<SurfaceCapabilitiesKhr>
Queries surface capabilities.
https://manned.org/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.3
pub fn surface_formats_khr(
&self,
surface: &SurfaceKhr
) -> VdResult<SmallVec<[SurfaceFormatKhr; 64]>>
[src]
&self,
surface: &SurfaceKhr
) -> VdResult<SmallVec<[SurfaceFormatKhr; 64]>>
Queries color formats supported by surface.
https://manned.org/vkGetPhysicalDeviceSurfaceFormatsKHR.3
pub fn surface_present_modes_khr(
&self,
surface: &SurfaceKhr
) -> VdResult<SmallVec<[PresentModeKhr; 16]>>
[src]
&self,
surface: &SurfaceKhr
) -> VdResult<SmallVec<[PresentModeKhr; 16]>>
Queries supported presentation modes.
https://manned.org/vkGetPhysicalDeviceSurfacePresentModesKHR.3
pub fn verify_extension_support<'a, 'cs, Cs>(
&'a self,
extension_names: Cs
) -> VdResult<bool> where
'cs: 'a,
Cs: 'cs + Into<CharStrs<'cs>>,
[src]
&'a self,
extension_names: Cs
) -> VdResult<bool> where
'cs: 'a,
Cs: 'cs + Into<CharStrs<'cs>>,
Verifies that the extensions listed are supported by this physical device.
Trait Implementations
impl Debug for PhysicalDevice
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for PhysicalDevice
[src]
fn clone(&self) -> PhysicalDevice
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more