Struct dacite::core::PhysicalDevice
[−]
[src]
pub struct PhysicalDevice { /* fields omitted */ }
See VkPhysicalDevice
Methods
impl PhysicalDevice
[src]
fn get_properties(&self) -> PhysicalDeviceProperties
fn get_features(&self) -> PhysicalDeviceFeatures
fn enumerate_device_layer_properties<B>(&self) -> Result<B, Error> where
B: FromIterator<LayerProperties>,
B: FromIterator<LayerProperties>,
fn get_device_extension_properties(
&self,
layer_name: Option<&str>
) -> Result<DeviceExtensionsProperties, Error>
&self,
layer_name: Option<&str>
) -> Result<DeviceExtensionsProperties, Error>
fn get_format_properties(&self, format: Format) -> FormatProperties
fn get_image_format_properties(
&self,
format: Format,
image_type: ImageType,
tiling: ImageTiling,
usage: ImageUsageFlags,
flags: ImageCreateFlags
) -> Result<ImageFormatProperties, Error>
&self,
format: Format,
image_type: ImageType,
tiling: ImageTiling,
usage: ImageUsageFlags,
flags: ImageCreateFlags
) -> Result<ImageFormatProperties, Error>
fn get_sparse_image_format_properties<B>(
&self,
format: Format,
image_type: ImageType,
samples: SampleCountFlagBits,
usage: ImageUsageFlags,
tiling: ImageTiling
) -> B where
B: FromIterator<SparseImageFormatProperties>,
&self,
format: Format,
image_type: ImageType,
samples: SampleCountFlagBits,
usage: ImageUsageFlags,
tiling: ImageTiling
) -> B where
B: FromIterator<SparseImageFormatProperties>,
fn get_queue_family_properties<B>(&self) -> B where
B: FromIterator<QueueFamilyProperties>,
B: FromIterator<QueueFamilyProperties>,
fn get_memory_properties(&self) -> PhysicalDeviceMemoryProperties
fn create_device(
&self,
create_info: &DeviceCreateInfo,
allocator: Option<Box<Allocator>>
) -> Result<Device, Error>
&self,
create_info: &DeviceCreateInfo,
allocator: Option<Box<Allocator>>
) -> Result<Device, Error>
See vkCreateDevice
fn get_surface_support_khr(
&self,
queue_family_index: u32,
surface: &SurfaceKhr
) -> Result<bool, Error>
&self,
queue_family_index: u32,
surface: &SurfaceKhr
) -> Result<bool, Error>
See vkGetPhysicalDeviceSurfaceSupportKHR
and extension VK_KHR_surface
fn get_surface_capabilities_khr(
&self,
surface: &SurfaceKhr
) -> Result<SurfaceCapabilitiesKhr, Error>
&self,
surface: &SurfaceKhr
) -> Result<SurfaceCapabilitiesKhr, Error>
See vkGetPhysicalDeviceSurfaceCapabilitiesKHR
and extension VK_KHR_surface
fn get_surface_formats_khr<B>(&self, surface: &SurfaceKhr) -> Result<B, Error> where
B: FromIterator<SurfaceFormatKhr>,
B: FromIterator<SurfaceFormatKhr>,
See vkGetPhysicalDeviceSurfaceFormatsKHR
and extension VK_KHR_surface
fn get_surface_present_modes_khr<B>(
&self,
surface: &SurfaceKhr
) -> Result<B, Error> where
B: FromIterator<PresentModeKhr>,
&self,
surface: &SurfaceKhr
) -> Result<B, Error> where
B: FromIterator<PresentModeKhr>,
See vkGetPhysicalDeviceSurfacePresentModesKHR
and extension VK_KHR_surface
fn get_display_properties_khr(&self) -> Result<Vec<DisplayPropertiesKhr>, Error>
See vkGetPhysicalDeviceDisplayPropertiesKHR
and extension VK_KHR_display
fn get_display_plane_properties_khr(
&self
) -> Result<Vec<DisplayPlanePropertiesKhr>, Error>
&self
) -> Result<Vec<DisplayPlanePropertiesKhr>, Error>
See vkGetPhysicalDeviceDisplayPlanePropertiesKHR
and extension VK_KHR_display
fn get_display_plane_supported_displays_khr(
&self,
plane_index: u32
) -> Result<Vec<DisplayKhr>, Error>
&self,
plane_index: u32
) -> Result<Vec<DisplayKhr>, Error>
See vkGetDisplayPlaneSupportedDisplaysKHR
and extension VK_KHR_display
fn get_xlib_presentation_support_khr(
&self,
queue_family_index: u32,
dpy: *mut Display,
visual_id: VisualID
) -> bool
&self,
queue_family_index: u32,
dpy: *mut Display,
visual_id: VisualID
) -> bool
See vkGetPhysicalDeviceXlibPresentationSupportKHR
and extension VK_KHR_xlib_surface
fn get_wayland_presentation_support_khr(
&self,
queue_family_index: u32,
display: *mut wl_display
) -> bool
&self,
queue_family_index: u32,
display: *mut wl_display
) -> bool
See vkGetPhysicalDeviceWaylandPresentationSupportKHR
and extension VK_KHR_wayland_surface
fn get_xcb_presentation_support_khr(
&self,
queue_family_index: u32,
connection: *mut xcb_connection_t,
visual_id: xcb_visualid_t
) -> bool
&self,
queue_family_index: u32,
connection: *mut xcb_connection_t,
visual_id: xcb_visualid_t
) -> bool
See vkGetPhysicalDeviceXcbPresentationSupportKHR
and extension VK_KHR_xcb_surface
fn get_mir_presentation_support_khr(
&self,
queue_family_index: u32,
connection: *mut MirConnection
) -> bool
&self,
queue_family_index: u32,
connection: *mut MirConnection
) -> bool
See vkGetPhysicalDeviceMirPresentationSupportKHR
and extension VK_KHR_mir_surface
fn get_win32_presentation_support_khr(&self, queue_family_index: u32) -> bool
See vkGetPhysicalDeviceWin32PresentationSupportKHR
and extension VK_KHR_win32_surface
fn get_features2_khr(
&self,
chain_query: Option<&PhysicalDeviceFeatures2ChainQueryKhr>
) -> PhysicalDeviceFeatures2Khr
&self,
chain_query: Option<&PhysicalDeviceFeatures2ChainQueryKhr>
) -> PhysicalDeviceFeatures2Khr
See vkGetPhysicalDeviceFeatures2KHR
and extension VK_KHR_get_physical_device_properties2
fn get_properties2_khr(
&self,
chain_query: Option<&PhysicalDeviceProperties2ChainQueryKhr>
) -> PhysicalDeviceProperties2Khr
&self,
chain_query: Option<&PhysicalDeviceProperties2ChainQueryKhr>
) -> PhysicalDeviceProperties2Khr
See vkGetPhysicalDeviceProperties2KHR
and extension VK_KHR_get_physical_device_properties2
fn get_format_properties2_khr(
&self,
format: Format,
chain_query: Option<&FormatProperties2ChainQueryKhr>
) -> FormatProperties2Khr
&self,
format: Format,
chain_query: Option<&FormatProperties2ChainQueryKhr>
) -> FormatProperties2Khr
fn get_image_format_properties2_khr(
&self,
image_format_info: &PhysicalDeviceImageFormatInfo2Khr,
chain_query: Option<&ImageFormatProperties2ChainQueryKhr>
) -> Result<ImageFormatProperties2Khr, Error>
&self,
image_format_info: &PhysicalDeviceImageFormatInfo2Khr,
chain_query: Option<&ImageFormatProperties2ChainQueryKhr>
) -> Result<ImageFormatProperties2Khr, Error>
See vkGetPhysicalDeviceImageFormatProperties2KHR
and extension VK_KHR_get_physical_device_properties2
fn get_queue_family_properties2_khr<B>(
&self,
chain_query: Option<&QueueFamilyProperties2ChainQueryKhr>
) -> B where
B: FromIterator<QueueFamilyProperties2Khr>,
&self,
chain_query: Option<&QueueFamilyProperties2ChainQueryKhr>
) -> B where
B: FromIterator<QueueFamilyProperties2Khr>,
See vkGetPhysicalDeviceQueueFamilyProperties2KHR
and extension VK_KHR_get_physical_device_properties2
fn get_memory_properties2_khr(
&self,
chain_query: Option<&PhysicalDeviceMemoryProperties2ChainQueryKhr>
) -> PhysicalDeviceMemoryProperties2Khr
&self,
chain_query: Option<&PhysicalDeviceMemoryProperties2ChainQueryKhr>
) -> PhysicalDeviceMemoryProperties2Khr
fn get_sparse_image_format_properties2_khr<B>(
&self,
format_info: &PhysicalDeviceSparseImageFormatInfo2Khr,
chain_query: Option<&SparseImageFormatProperties2ChainQueryKhr>
) -> B where
B: FromIterator<SparseImageFormatProperties2Khr>,
&self,
format_info: &PhysicalDeviceSparseImageFormatInfo2Khr,
chain_query: Option<&SparseImageFormatProperties2ChainQueryKhr>
) -> B where
B: FromIterator<SparseImageFormatProperties2Khr>,
Trait Implementations
impl Debug for PhysicalDevice
[src]
impl Clone for PhysicalDevice
[src]
fn clone(&self) -> PhysicalDevice
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Send for PhysicalDevice
[src]
impl Sync for PhysicalDevice
[src]
impl PartialEq for PhysicalDevice
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for PhysicalDevice
[src]
impl PartialOrd for PhysicalDevice
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for PhysicalDevice
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Hash for PhysicalDevice
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl VulkanObject for PhysicalDevice
[src]
type NativeVulkanObject = VkPhysicalDevice
fn id(&self) -> u64
Get the object id. Read more
fn as_native_vulkan_object(&self) -> Self::NativeVulkanObject
fn try_destroy(self) -> Result<(), TryDestroyError<Self>>
impl FromNativeObject for PhysicalDevice
[src]
type Parameters = Instance
unsafe fn from_native_object(
object: Self::NativeVulkanObject,
params: Self::Parameters
) -> Self
object: Self::NativeVulkanObject,
params: Self::Parameters
) -> Self