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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)