Struct vulkano::swapchain::display::Display
[−]
[src]
pub struct Display { /* fields omitted */ }
Represents a monitor connected to a physical device.
Methods
impl Display
[src]
fn enumerate_raw(device: PhysicalDevice) -> Result<IntoIter<Display>, OomError>
See the docs of enumerate().
fn enumerate(device: PhysicalDevice) -> IntoIter<Display>
Enumerates all the displays that are available on a given physical device.
Panic
- Panics if the device or host ran out of memory.
fn name(&self) -> &str
Returns the name of the display.
fn physical_device(&self) -> PhysicalDevice
Returns the physical device that was used to create this display.
fn physical_dimensions(&self) -> [u32; 2]
Returns the physical dimensions of the display in millimeters.
fn physical_resolution(&self) -> [u32; 2]
Returns the physical, native, or preferred resolution of the display.
Note: The display is usually still capable of displaying other resolutions. This is only the "best" resolution.
fn supported_transforms(&self) -> SupportedSurfaceTransforms
Returns the transforms supported by this display.
fn plane_reorder_possible(&self) -> bool
Returns true if TODO.
fn persistent_content(&self) -> bool
Returns true if TODO.
fn display_modes_raw(&self) -> Result<IntoIter<DisplayMode>, OomError>
See the docs of display_modes().
fn display_modes(&self) -> IntoIter<DisplayMode>
Returns a list of all modes available on this display.
Panic
- Panics if the device or host ran out of memory.
Trait Implementations
impl Clone for Display
[src]
fn clone(&self) -> Display
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 VulkanObject for Display
[src]
type Object = DisplayKHR
The type of the object.
fn internal_object(&self) -> DisplayKHR
Returns a reference to the object.