pub struct SwapchainDesc {
pub present: PresentMode,
pub srgb: bool,
pub copy_src: bool,
pub frames_in_flight: u32,
pub min_images: u32,
}Expand description
Device::create_swapchain
Fields§
§present: PresentMode§srgb: boolan sRGB format (the GPU encodes gamma on writes)
copy_src: boolthe images may be copied from (read-back of the presented image)
frames_in_flight: u32frames the CPU may record ahead of the GPU (1 ..= 3)
min_images: u32images of the swapchain at least (0: the surface’s minimum + 1)
Implementations§
Source§impl SwapchainDesc
impl SwapchainDesc
pub const DEFAULT: SwapchainDesc
Trait Implementations§
Source§impl Clone for SwapchainDesc
impl Clone for SwapchainDesc
impl Copy for SwapchainDesc
Auto Trait Implementations§
impl Forget for SwapchainDesc
impl Freeze for SwapchainDesc
impl RefUnwindSafe for SwapchainDesc
impl Send for SwapchainDesc
impl Sync for SwapchainDesc
impl Unpin for SwapchainDesc
impl UnsafeUnpin for SwapchainDesc
impl UnwindSafe for SwapchainDesc
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