pub struct SurfaceCaps {
pub formats: Vec<TextureFormat>,
pub present_modes: Vec<PresentMode>,
pub alpha_modes: Vec<CompositeAlphaMode>,
pub usages: u32,
pub format_capabilities: Vec<(TextureFormat, u32)>,
}Fields§
§formats: Vec<TextureFormat>§present_modes: Vec<PresentMode>§alpha_modes: Vec<CompositeAlphaMode>§usages: u32§format_capabilities: Vec<(TextureFormat, u32)>Every format with the color spaces it can be presented in (a superset of
formats; HDR-only formats appear only here). Appended last so guests
built before it still decode the reply.
Trait Implementations§
Source§impl Clone for SurfaceCaps
impl Clone for SurfaceCaps
Source§fn clone(&self) -> SurfaceCaps
fn clone(&self) -> SurfaceCaps
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 SurfaceCaps
impl Debug for SurfaceCaps
Source§impl<'de> Deserialize<'de> for SurfaceCaps
impl<'de> Deserialize<'de> for SurfaceCaps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SurfaceCaps
impl RefUnwindSafe for SurfaceCaps
impl Send for SurfaceCaps
impl Sync for SurfaceCaps
impl Unpin for SurfaceCaps
impl UnsafeUnpin for SurfaceCaps
impl UnwindSafe for SurfaceCaps
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