pub struct IntegratedSwapchain<Surface: VkHandle<Handle = VkSurfaceKHR>> { /* private fields */ }
Expand description
WSI Swapchain implementation for PlatformPresenter
Implementations§
Source§impl<Surface: VkHandle<Handle = VkSurfaceKHR>> IntegratedSwapchain<Surface>
impl<Surface: VkHandle<Handle = VkSurfaceKHR>> IntegratedSwapchain<Surface>
pub fn new(g: &Graphics, surface: Surface, default_extent: Vector2<u32>) -> Self
pub const fn format(&self) -> VkFormat
pub fn back_buffer_count(&self) -> usize
pub fn back_buffer<'s>( &'s self, index: usize, ) -> Option<VkHandleRef<'s, VkImage>>
pub fn back_buffer_mut<'s>( &'s mut self, index: usize, ) -> Option<VkHandleRefMut<'s, VkImage>>
pub fn emit_initialize_back_buffer_commands<'r, E: 'r + ?Sized>( &self, recorder: CmdRecord<'r, E>, ) -> CmdRecord<'r, E>
pub fn acquire_next_back_buffer_index(&mut self) -> Result<u32>
pub const fn requesting_back_buffer_layout( &self, ) -> (ImageLayout, PipelineStageFlags)
pub fn render_and_present<'s, 'r>(
&'s mut self,
g: &mut Graphics,
last_render_fence: &mut impl VkHandleMut<Handle = VkFence>,
bb_index: u32,
render_submission: SubmissionBatchBuilder<'r>,
update_submission: Option<SubmissionBatchBuilder<'r>>,
) -> Result<()>where
's: 'r,
pub fn resize(&mut self, g: &Graphics, new_size: Vector2<u32>)
pub fn back_buffer_size(&self) -> Vector2<u32>
Trait Implementations§
Source§impl<Surface: VkHandle<Handle = VkSurfaceKHR>> Drop for IntegratedSwapchain<Surface>
impl<Surface: VkHandle<Handle = VkSurfaceKHR>> Drop for IntegratedSwapchain<Surface>
Auto Trait Implementations§
impl<Surface> Freeze for IntegratedSwapchain<Surface>
impl<Surface> !RefUnwindSafe for IntegratedSwapchain<Surface>
impl<Surface> !Send for IntegratedSwapchain<Surface>
impl<Surface> !Sync for IntegratedSwapchain<Surface>
impl<Surface> Unpin for IntegratedSwapchain<Surface>
impl<Surface> !UnwindSafe for IntegratedSwapchain<Surface>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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