#[repr(C)]pub struct SwapChainDescriptor {
pub usage: TextureUsage,
pub format: TextureFormat,
pub width: u32,
pub height: u32,
pub present_mode: PresentMode,
}
Expand description
Describes a [SwapChain
].
Fields§
§usage: TextureUsage
The usage of the swap chain. The only supported usage is OUTPUT_ATTACHMENT
format: TextureFormat
The texture format of the swap chain. The only formats that are guaranteed are
Bgra8Unorm
and Bgra8UnormSrgb
width: u32
Width of the swap chain. Must be the same size as the surface.
height: u32
Height of the swap chain. Must be the same size as the surface.
present_mode: PresentMode
Presentation mode of the swap chain. FIFO is the only guaranteed to be supported, though other formats will automatically fall back to FIFO.
Trait Implementations§
Source§impl Clone for SwapChainDescriptor
impl Clone for SwapChainDescriptor
Source§fn clone(&self) -> SwapChainDescriptor
fn clone(&self) -> SwapChainDescriptor
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 SwapChainDescriptor
impl Debug for SwapChainDescriptor
Source§impl<'de> Deserialize<'de> for SwapChainDescriptor
impl<'de> Deserialize<'de> for SwapChainDescriptor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SwapChainDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SwapChainDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SwapChainDescriptor
impl Hash for SwapChainDescriptor
Source§impl PartialEq for SwapChainDescriptor
impl PartialEq for SwapChainDescriptor
Source§impl Serialize for SwapChainDescriptor
impl Serialize for SwapChainDescriptor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SwapChainDescriptor
impl StructuralPartialEq for SwapChainDescriptor
Auto Trait Implementations§
impl Freeze for SwapChainDescriptor
impl RefUnwindSafe for SwapChainDescriptor
impl Send for SwapChainDescriptor
impl Sync for SwapChainDescriptor
impl Unpin for SwapChainDescriptor
impl UnwindSafe for SwapChainDescriptor
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