pub struct Display<PhysicalDevice: PhysicalDevice>(pub VkDisplayKHR, pub PhysicalDevice);
Available on crate feature
VK_KHR_display
only.Tuple Fields§
§0: VkDisplayKHR
§1: PhysicalDevice
Implementations§
Source§impl<PhysicalDevice: PhysicalDevice> Display<PhysicalDevice>
impl<PhysicalDevice: PhysicalDevice> Display<PhysicalDevice>
Sourcepub fn mode_property_count(&self) -> Result<u32>
Available on crate feature Implements
only.
pub fn mode_property_count(&self) -> Result<u32>
Implements
only.Query a count of the set of mode properties supported by the display
§Failures
On failure, this command returns
Sourcepub fn mode_properties(&self, sink: &mut [DisplayModeProperties]) -> Result<u32>
Available on crate feature Implements
only.
pub fn mode_properties(&self, sink: &mut [DisplayModeProperties]) -> Result<u32>
Implements
only.Query the set of mode properties supported by the display
§Failures
On failure, this command returns
Sourcepub fn mode_properties_alloc(&self) -> Result<Vec<DisplayModeProperties>>
Available on crate features Implements
and alloc
only.
pub fn mode_properties_alloc(&self) -> Result<Vec<DisplayModeProperties>>
Implements
and alloc
only.Query the set of mode properties supported by the display.
§Failures
On failure, this command returns
Sourcepub fn release(&self)where
PhysicalDevice::ConcreteInstance: InstanceExtensions,
Available on crate features Implements
and VK_EXT_direct_mode_display
only.
pub fn release(&self)where
PhysicalDevice::ConcreteInstance: InstanceExtensions,
Implements
and VK_EXT_direct_mode_display
only.Release access to an acquired VkDisplayKHR
Sourcepub fn acquire_xlib_display(&self, dpy: *mut Display) -> Result<()>where
PhysicalDevice::ConcreteInstance: InstanceExtensions,
Available on crate features Implements
and VK_EXT_acquire_xlib_display
only.
pub fn acquire_xlib_display(&self, dpy: *mut Display) -> Result<()>where
PhysicalDevice::ConcreteInstance: InstanceExtensions,
Implements
and VK_EXT_acquire_xlib_display
only.Acquire access to a VkDisplayKHR using Xlib
§Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_INITIALIZATION_FAILED
Sourcepub unsafe fn create_display_mode_raw(
&self,
info: &VkDisplayModeCreateInfoKHR,
allocation_callbacks: Option<&VkAllocationCallbacks>,
) -> Result<VkDisplayModeKHR>
Available on crate feature Implements
only.
pub unsafe fn create_display_mode_raw( &self, info: &VkDisplayModeCreateInfoKHR, allocation_callbacks: Option<&VkAllocationCallbacks>, ) -> Result<VkDisplayModeKHR>
Implements
only.Sourcepub fn create_display_mode(
&self,
params: VkDisplayModeParametersKHR,
) -> Result<DisplayMode>
Available on crate feature Implements
only.
pub fn create_display_mode( &self, params: VkDisplayModeParametersKHR, ) -> Result<DisplayMode>
Implements
only.Create a display mode
§Failures
On failure, this command returns
- VK_ERROR_OUT_OF_HOST_MEMORY
- VK_ERROR_OUT_OF_DEVICE_MEMORY
Trait Implementations§
Source§impl<PhysicalDevice: PhysicalDevice> VkHandle for Display<PhysicalDevice>
impl<PhysicalDevice: PhysicalDevice> VkHandle for Display<PhysicalDevice>
type Handle = VkDisplayKHR
Source§fn native_ptr(&self) -> Self::Handle
fn native_ptr(&self) -> Self::Handle
Retrieve an underlying handle
fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>
Source§impl<PhysicalDevice: PhysicalDevice> VkHandleMut for Display<PhysicalDevice>
impl<PhysicalDevice: PhysicalDevice> VkHandleMut for Display<PhysicalDevice>
Source§fn native_ptr_mut(&mut self) -> Self::Handle
fn native_ptr_mut(&mut self) -> Self::Handle
Retrieve an underlying mutable handle
fn as_transparent_ref_mut(&mut self) -> VkHandleRefMut<'_, Self::Handle>
Source§impl<PhysicalDevice: PhysicalDevice> VkObject for Display<PhysicalDevice>
impl<PhysicalDevice: PhysicalDevice> VkObject for Display<PhysicalDevice>
const TYPE: VkObjectType = 1_000_002_000i32
Auto Trait Implementations§
impl<PhysicalDevice> Freeze for Display<PhysicalDevice>where
PhysicalDevice: Freeze,
impl<PhysicalDevice> RefUnwindSafe for Display<PhysicalDevice>where
PhysicalDevice: RefUnwindSafe,
impl<PhysicalDevice> !Send for Display<PhysicalDevice>
impl<PhysicalDevice> !Sync for Display<PhysicalDevice>
impl<PhysicalDevice> Unpin for Display<PhysicalDevice>where
PhysicalDevice: Unpin,
impl<PhysicalDevice> UnwindSafe for Display<PhysicalDevice>where
PhysicalDevice: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more