[−][src]Struct vulkayes_core::swapchain::Swapchain
Implementations
impl Swapchain
[src]
pub fn new(
device: Vrc<Device>,
surface: Surface,
create_info: SwapchainCreateInfo<impl AsRef<[u32]>>,
host_memory_allocator: HostMemoryAllocator
) -> Result<SwapchainData, SwapchainError>
[src]
device: Vrc<Device>,
surface: Surface,
create_info: SwapchainCreateInfo<impl AsRef<[u32]>>,
host_memory_allocator: HostMemoryAllocator
) -> Result<SwapchainData, SwapchainError>
pub fn recreate(
&self,
create_info: SwapchainCreateInfo<impl AsRef<[u32]>>,
host_memory_allocator: HostMemoryAllocator
) -> Result<SwapchainData, SwapchainError>
[src]
&self,
create_info: SwapchainCreateInfo<impl AsRef<[u32]>>,
host_memory_allocator: HostMemoryAllocator
) -> Result<SwapchainData, SwapchainError>
pub unsafe fn from_create_info(
device: Vrc<Device>,
surface: Vrc<Surface>,
create_info: impl Deref<Target = SwapchainCreateInfoKHR>,
host_memory_allocator: HostMemoryAllocator
) -> Result<SwapchainData, SwapchainError>
[src]
device: Vrc<Device>,
surface: Vrc<Surface>,
create_info: impl Deref<Target = SwapchainCreateInfoKHR>,
host_memory_allocator: HostMemoryAllocator
) -> Result<SwapchainData, SwapchainError>
Creates a new Swapchain
from an existing SwapchainCreateInfoKHR
.
Safety
See https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateSwapchainKHR.html.
pub unsafe fn present(
&self,
queue: &Queue,
info: impl Deref<Target = PresentInfoKHR>
) -> QueuePresentResult
[src]
&self,
queue: &Queue,
info: impl Deref<Target = PresentInfoKHR>
) -> QueuePresentResult
Presents on given queue.
Safety
See https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkQueuePresentKHR.html
pub fn acquire_next(
&self,
timeout: WaitTimeout,
synchronization: AcquireSynchronization<'_>
) -> AcquireResult
[src]
&self,
timeout: WaitTimeout,
synchronization: AcquireSynchronization<'_>
) -> AcquireResult
pub const fn device(&self) -> &Vrc<Device>
[src]
pub const fn surface(&self) -> &Vrc<Surface>
[src]
pub const fn loader(&self) -> &Swapchain
[src]
pub fn retired(&self) -> bool
[src]
Methods from Deref<Target = Vutex<SwapchainKHR>>
pub fn lock(&self) -> Result<VutexGuard<'_, T>, BorrowMutError>
[src]
Trait Implementations
impl Borrow<Vutex<SwapchainKHR>> for Swapchain
[src]
fn borrow(&self) -> &Vutex<SwapchainKHR>
[src]
impl Debug for Swapchain
[src]
impl Deref for Swapchain
[src]
type Target = Vutex<SwapchainKHR>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl Drop for Swapchain
[src]
impl Eq for Swapchain
[src]
impl HasSynchronizedHandle<SwapchainKHR> for Swapchain
[src]
fn lock_handle(&self) -> VutexGuard<'_, T>
[src]
fn lock_safe_handle(&self) -> VutexGuardSafeHandleBorrow<'_, T>
[src]
impl Hash for Swapchain
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Swapchain
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Swapchain> for Swapchain
[src]
impl PartialOrd<Swapchain> for Swapchain
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Swapchain
[src]
impl !Send for Swapchain
[src]
impl !Sync for Swapchain
[src]
impl Unpin for Swapchain
[src]
impl !UnwindSafe for Swapchain
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,