pub struct VulkanSurfaceReplacement {
pub logical_size: LogicalSize,
pub surface: u64,
}Expand description
A new Vulkan surface for RenderSessionHandle::set_vulkan_surface_target().
The session presents to it with the context that it attached with, so the
queue family of that context’s graphics_queue_family_index must support
presenting to the surface. It uses the surface until a replacement or
release of the target completes, a detach or release of the session
completes, or an abandon of it returns.
See mln_vulkan_surface_replacement in the
C API reference.
Fields§
§logical_size: LogicalSize§surface: u64Your VkSurfaceKHR.
Implementations§
Source§impl VulkanSurfaceReplacement
impl VulkanSurfaceReplacement
pub const fn new(logical_size: LogicalSize, surface: u64) -> Self
Trait Implementations§
Source§impl Clone for VulkanSurfaceReplacement
impl Clone for VulkanSurfaceReplacement
Source§fn clone(&self) -> VulkanSurfaceReplacement
fn clone(&self) -> VulkanSurfaceReplacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VulkanSurfaceReplacement
Source§impl Debug for VulkanSurfaceReplacement
impl Debug for VulkanSurfaceReplacement
Source§impl PartialEq for VulkanSurfaceReplacement
impl PartialEq for VulkanSurfaceReplacement
impl StructuralPartialEq for VulkanSurfaceReplacement
Auto Trait Implementations§
impl Freeze for VulkanSurfaceReplacement
impl RefUnwindSafe for VulkanSurfaceReplacement
impl Send for VulkanSurfaceReplacement
impl Sync for VulkanSurfaceReplacement
impl Unpin for VulkanSurfaceReplacement
impl UnsafeUnpin for VulkanSurfaceReplacement
impl UnwindSafe for VulkanSurfaceReplacement
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more