pub struct GraphchainInfo {
pub acquire_timeout: u64,
pub composite_alpha: CompositeAlphaFlagsKHR,
pub clipped: bool,
pub frame_capacity: usize,
pub height: u32,
pub min_image_count: u32,
pub present_mode: PresentModeKHR,
pub surface: SurfaceFormatKHR,
pub width: u32,
}Expand description
Information used to create a Graphchain instance.
Fields§
§acquire_timeout: u64Timeout in nanoseconds used when acquiring the next image.
Do not use u64::MAX on surfaces where acquire forward progress cannot be guaranteed.
composite_alpha: CompositeAlphaFlagsKHRAlpha compositing mode used by the presentation engine.
clipped: boolWhether to clip pixels obscured by other windows on the native surface.
frame_capacity: usizeThe requested frame capacity used for in-flight graphchain work.
The effective live capacity may be raised at runtime to match the swapchain image count.
That resolved value is reflected through EffectiveGraphchainInfo.
height: u32The initial height of the surface.
min_image_count: u32The minimum number of presentable images that the application needs.
present_mode: PresentModeKHRvk::PresentModeKHR determines timing and queueing with which frames are displayed.
surface: SurfaceFormatKHRThe format and color space of the surface.
width: u32The initial width of the surface.
Implementations§
Source§impl GraphchainInfo
impl GraphchainInfo
Sourcepub fn new(width: u32, height: u32, surface: SurfaceFormatKHR) -> GraphchainInfo
pub fn new(width: u32, height: u32, surface: SurfaceFormatKHR) -> GraphchainInfo
Specifies a default graphchain with the given width, height and format values.
Sourcepub fn builder() -> GraphchainInfoBuilder
pub fn builder() -> GraphchainInfoBuilder
Creates a default GraphchainInfoBuilder.
Sourcepub fn into_builder(self) -> GraphchainInfoBuilder
pub fn into_builder(self) -> GraphchainInfoBuilder
Converts a GraphchainInfo into a GraphchainInfoBuilder.
Sourcepub fn into_swapchain_info(self) -> SwapchainInfo
pub fn into_swapchain_info(self) -> SwapchainInfo
Converts this graphchain info into low-level swapchain info.
Trait Implementations§
Source§impl Clone for GraphchainInfo
impl Clone for GraphchainInfo
Source§fn clone(&self) -> GraphchainInfo
fn clone(&self) -> GraphchainInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GraphchainInfo
Source§impl Debug for GraphchainInfo
impl Debug for GraphchainInfo
impl Eq for GraphchainInfo
Source§impl From<EffectiveGraphchainInfo> for GraphchainInfo
impl From<EffectiveGraphchainInfo> for GraphchainInfo
Source§fn from(info: EffectiveGraphchainInfo) -> Self
fn from(info: EffectiveGraphchainInfo) -> Self
Source§impl From<GraphchainInfo> for SwapchainInfo
impl From<GraphchainInfo> for SwapchainInfo
Source§fn from(val: GraphchainInfo) -> Self
fn from(val: GraphchainInfo) -> Self
Source§impl From<GraphchainInfoBuilder> for GraphchainInfo
impl From<GraphchainInfoBuilder> for GraphchainInfo
Source§fn from(info: GraphchainInfoBuilder) -> Self
fn from(info: GraphchainInfoBuilder) -> Self
Source§impl Hash for GraphchainInfo
impl Hash for GraphchainInfo
Source§impl PartialEq for GraphchainInfo
impl PartialEq for GraphchainInfo
impl StructuralPartialEq for GraphchainInfo
Auto Trait Implementations§
impl Freeze for GraphchainInfo
impl RefUnwindSafe for GraphchainInfo
impl Send for GraphchainInfo
impl Sync for GraphchainInfo
impl Unpin for GraphchainInfo
impl UnsafeUnpin for GraphchainInfo
impl UnwindSafe for GraphchainInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.