pub struct GraphchainInfoBuilder { /* private fields */ }Expand description
Builder for GraphchainInfo.
Implementations§
Source§impl GraphchainInfoBuilder
impl GraphchainInfoBuilder
Sourcepub fn acquire_timeout(self, value: u64) -> Self
pub fn acquire_timeout(self, value: u64) -> Self
Timeout in nanoseconds used when acquiring the next image.
Do not use u64::MAX on surfaces where acquire forward progress cannot be guaranteed.
Sourcepub fn composite_alpha(self, value: CompositeAlphaFlagsKHR) -> Self
pub fn composite_alpha(self, value: CompositeAlphaFlagsKHR) -> Self
Alpha compositing mode used by the presentation engine.
Sourcepub fn clipped(self, value: bool) -> Self
pub fn clipped(self, value: bool) -> Self
Whether to clip pixels obscured by other windows on the native surface.
Sourcepub fn frame_capacity(self, value: usize) -> Self
pub fn frame_capacity(self, value: usize) -> Self
The 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.
Sourcepub fn min_image_count(self, value: u32) -> Self
pub fn min_image_count(self, value: u32) -> Self
The minimum number of presentable images that the application needs.
Sourcepub fn present_mode(self, value: PresentModeKHR) -> Self
pub fn present_mode(self, value: PresentModeKHR) -> Self
vk::PresentModeKHR determines timing and queueing with which frames are displayed.
Sourcepub fn surface(self, value: SurfaceFormatKHR) -> Self
pub fn surface(self, value: SurfaceFormatKHR) -> Self
The format and color space of the surface.
Source§impl GraphchainInfoBuilder
impl GraphchainInfoBuilder
Sourcepub fn build(self) -> GraphchainInfo
pub fn build(self) -> GraphchainInfo
Builds a new GraphchainInfo.
Trait Implementations§
Source§impl Clone for GraphchainInfoBuilder
impl Clone for GraphchainInfoBuilder
Source§fn clone(&self) -> GraphchainInfoBuilder
fn clone(&self) -> GraphchainInfoBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GraphchainInfoBuilder
Source§impl Debug for GraphchainInfoBuilder
impl Debug for GraphchainInfoBuilder
Source§impl Default for GraphchainInfoBuilder
impl Default for GraphchainInfoBuilder
Source§impl From<GraphchainInfoBuilder> for GraphchainInfo
impl From<GraphchainInfoBuilder> for GraphchainInfo
Source§fn from(info: GraphchainInfoBuilder) -> Self
fn from(info: GraphchainInfoBuilder) -> Self
Converts to this type from the input type.
Source§impl From<GraphchainInfoBuilder> for SwapchainInfo
impl From<GraphchainInfoBuilder> for SwapchainInfo
Source§fn from(info: GraphchainInfoBuilder) -> Self
fn from(info: GraphchainInfoBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphchainInfoBuilder
impl RefUnwindSafe for GraphchainInfoBuilder
impl Send for GraphchainInfoBuilder
impl Sync for GraphchainInfoBuilder
impl Unpin for GraphchainInfoBuilder
impl UnsafeUnpin for GraphchainInfoBuilder
impl UnwindSafe for GraphchainInfoBuilder
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.