Struct ash::extensions::ext::FullScreenExclusive
source · pub struct FullScreenExclusive { /* private fields */ }
Expand description
Implementations§
source§impl FullScreenExclusive
impl FullScreenExclusive
sourcepub fn new(instance: &Instance, device: &Device) -> Self
pub fn new(instance: &Instance, device: &Device) -> Self
§Warning
Instance
functions cannot be loaded from a Device
and will always panic when called:
Load this struct using an Instance
instead via Self::new_from_instance()
if the
above Instance
function is called. This will be solved in the next breaking ash
release: https://github.com/ash-rs/ash/issues/727.
sourcepub fn new_from_instance(
entry: &Entry,
instance: &Instance,
device: Device
) -> Self
pub fn new_from_instance( entry: &Entry, instance: &Instance, device: Device ) -> Self
Loads all functions on the Instance
instead of Device
. This incurs an extra
dispatch table for Device
functions but also allows the Instance
function to be
loaded instead of always panicking. See also Self::new()
for more details.
It is okay to pass vk::Device::null()
when this struct is only used to call the
Instance
function.
sourcepub unsafe fn acquire_full_screen_exclusive_mode(
&self,
swapchain: SwapchainKHR
) -> VkResult<()>
pub unsafe fn acquire_full_screen_exclusive_mode( &self, swapchain: SwapchainKHR ) -> VkResult<()>
sourcepub unsafe fn get_physical_device_surface_present_modes2(
&self,
physical_device: PhysicalDevice,
surface_info: &PhysicalDeviceSurfaceInfo2KHR
) -> VkResult<Vec<PresentModeKHR>>
pub unsafe fn get_physical_device_surface_present_modes2( &self, physical_device: PhysicalDevice, surface_info: &PhysicalDeviceSurfaceInfo2KHR ) -> VkResult<Vec<PresentModeKHR>>
§Warning
Function will always panic unless this struct is loaded via Self::new_from_instance()
.
sourcepub unsafe fn release_full_screen_exclusive_mode(
&self,
swapchain: SwapchainKHR
) -> VkResult<()>
pub unsafe fn release_full_screen_exclusive_mode( &self, swapchain: SwapchainKHR ) -> VkResult<()>
sourcepub unsafe fn get_device_group_surface_present_modes2(
&self,
surface_info: &PhysicalDeviceSurfaceInfo2KHR
) -> VkResult<DeviceGroupPresentModeFlagsKHR>
pub unsafe fn get_device_group_surface_present_modes2( &self, surface_info: &PhysicalDeviceSurfaceInfo2KHR ) -> VkResult<DeviceGroupPresentModeFlagsKHR>
pub const fn name() -> &'static CStr
pub fn fp(&self) -> &ExtFullScreenExclusiveFn
pub fn device(&self) -> Device
Trait Implementations§
source§impl Clone for FullScreenExclusive
impl Clone for FullScreenExclusive
source§fn clone(&self) -> FullScreenExclusive
fn clone(&self) -> FullScreenExclusive
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FullScreenExclusive
impl RefUnwindSafe for FullScreenExclusive
impl Send for FullScreenExclusive
impl Sync for FullScreenExclusive
impl Unpin for FullScreenExclusive
impl UnwindSafe for FullScreenExclusive
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