oa::runtime::PresentationCapabilities

Backend-neutral surface capabilities used to validate a future swapchain.

StRust public API

Declaration

pub struct PresentationCapabilities { pub min_image_count: u32, pub max_image_count: Option<u32>, pub current_extent: Option<[u32; 2]>, pub min_extent: [u32; 2], pub max_extent: [u32; 2], pub format_count: usize, pub present_mode_count: usize, pub supports_color_attachment: bool, pub supports_transfer_dst: bool, }
Public Rust declaration.

Public Methods

fn clone(&self) -> PresentationCapabilities
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &PresentationCapabilities) -> bool

Public Data Members

min_image_countu32field
max_image_countOption<u32>field
current_extentOption<[u32; 2]>field
min_extent[u32; 2]field
max_extent[u32; 2]field
format_countusizefield
present_mode_countusizefield
supports_color_attachmentboolfield
supports_transfer_dstboolfield

Public Method Documentation

fn clone( &self ) -> PresentationCapabilities
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &PresentationCapabilities ) -> bool
No public source comment is attached to this declaration.