[−]Trait amethyst_rendy::rendy::hal::Surface
A Surface
abstracts the surface of a native window, which will be presented
on the display.
Required methods
fn supports_queue_family(&self, family: &<B as Backend>::QueueFamily) -> bool
fn compatibility(
&self,
physical_device: &<B as Backend>::PhysicalDevice
) -> (SurfaceCapabilities, Option<Vec<Format>>, Vec<PresentMode>)
&self,
physical_device: &<B as Backend>::PhysicalDevice
) -> (SurfaceCapabilities, Option<Vec<Format>>, Vec<PresentMode>)
Query surface capabilities, formats, and present modes for this physical device.
Use this function for configuring swapchain creation.
Returns a tuple of surface capabilities and formats.
If formats are None
then the surface has no preferred format and the
application may use any desired format.
Implementors
impl Surface<Backend> for Surface
fn supports_queue_family(&self, _queue_family: &QueueFamily) -> bool
fn compatibility(
&self,
device: &PhysicalDevice
) -> (SurfaceCapabilities, Option<Vec<Format>>, Vec<PresentMode>)
&self,
device: &PhysicalDevice
) -> (SurfaceCapabilities, Option<Vec<Format>>, Vec<PresentMode>)