Struct voodoo::PhysicalDevice
[−]
[src]
pub struct PhysicalDevice { /* fields omitted */ }
Methods
impl PhysicalDevice
[src]
fn from_parts(
instance: Instance,
handle: PhysicalDeviceHandle
) -> PhysicalDevice
[src]
instance: Instance,
handle: PhysicalDeviceHandle
) -> PhysicalDevice
fn handle(&self) -> PhysicalDeviceHandle
[src]
Returns this object's handle.
fn instance(&self) -> &Instance
[src]
Returns a reference to the associated instance.
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
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
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.
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
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.
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
fn extension_properties(&self) -> VdResult<SmallVec<[ExtensionProperties; 64]>>
[src]
Returns the properties of available physical device extensions.
https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkEnumerateDeviceExtensionProperties.html
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.
fn surface_capabilities_khr(
&self,
surface: &SurfaceKhr
) -> VdResult<SurfaceCapabilitiesKhr>
[src]
&self,
surface: &SurfaceKhr
) -> VdResult<SurfaceCapabilitiesKhr>
Queries surface capabilities.
https://manned.org/vkGetPhysicalDeviceSurfaceCapabilitiesKHR.3
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.
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
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]
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