oa::runtime::PresentationSurface

Struct published by the oa::runtime module.

StRust public API

Declaration

pub struct PresentationSurface<'window> { /* private fields */ }
Public Rust declaration.

Public Methods

pub const fn graphics_present_supported(&self) -> bool
pub fn capabilities(&self) -> Result<PresentationCapabilities>
pub fn swapchain_extent( &self, drawable_extent: [u32; 2], ) -> Result<Option<[u32; 2]>>
fn drop(&mut self)

Public Method Documentation

pub const fn graphics_present_supported( &self ) -> bool
Select the valid swapchain extent for one SDL drawable-pixel extent. None means the window is minimized and callers must defer allocation or acquisition until SDL reports a non-zero drawable extent.
pub fn capabilities( &self ) -> Result<PresentationCapabilities>
Select the valid swapchain extent for one SDL drawable-pixel extent. None means the window is minimized and callers must defer allocation or acquisition until SDL reports a non-zero drawable extent.
pub fn swapchain_extent( &self, drawable_extent: [u32; 2] ) -> Result<Option<[u32; 2]>>
No public source comment is attached to this declaration.
fn drop( &mut self )
No public source comment is attached to this declaration.