pub struct DisplayInfoBuilder { /* private fields */ }Expand description
Builder for DisplayInfo.
Implementations§
Source§impl DisplayInfoBuilder
impl DisplayInfoBuilder
Sourcepub fn command_buffer_count(self, value: usize) -> Self
pub fn command_buffer_count(self, value: usize) -> Self
The number of command buffers to use for image submissions.
Generally one more than the swapchain image count is best.
Sourcepub fn queue_family_index(self, value: u32) -> Self
pub fn queue_family_index(self, value: u32) -> Self
The device queue family which will be used to submit and present images.
Source§impl DisplayInfoBuilder
impl DisplayInfoBuilder
Sourcepub fn build(self) -> DisplayInfo
pub fn build(self) -> DisplayInfo
Builds a new DisplayInfo.
§Panics
If any of the following values have not been set this function will panic:
command_buffer_count
Trait Implementations§
Source§impl Clone for DisplayInfoBuilder
impl Clone for DisplayInfoBuilder
Source§fn clone(&self) -> DisplayInfoBuilder
fn clone(&self) -> DisplayInfoBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplayInfoBuilder
impl Debug for DisplayInfoBuilder
Source§impl Default for DisplayInfoBuilder
impl Default for DisplayInfoBuilder
Source§impl From<DisplayInfoBuilder> for DisplayInfo
impl From<DisplayInfoBuilder> for DisplayInfo
Source§fn from(info: DisplayInfoBuilder) -> Self
fn from(info: DisplayInfoBuilder) -> Self
Converts to this type from the input type.
impl Copy for DisplayInfoBuilder
Auto Trait Implementations§
impl Freeze for DisplayInfoBuilder
impl RefUnwindSafe for DisplayInfoBuilder
impl Send for DisplayInfoBuilder
impl Sync for DisplayInfoBuilder
impl Unpin for DisplayInfoBuilder
impl UnwindSafe for DisplayInfoBuilder
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