pub struct SurfaceConfig {
pub size: Extent,
pub usage: TextureUsage,
pub display_sync: DisplaySync,
pub color_space: ColorSpace,
pub transparent: bool,
pub allow_exclusive_full_screen: bool,
}Fields§
§size: Extent§usage: TextureUsage§display_sync: DisplaySync§color_space: ColorSpaceThe color space that render output colors are expected to be in.
This will affect the surface format returned by the Context.
For example, if the display expects sRGB space and we render
in ColorSpace::Linear space, the returned format will be sRGB.
transparent: bool§allow_exclusive_full_screen: boolTrait Implementations§
Source§impl Clone for SurfaceConfig
impl Clone for SurfaceConfig
Source§fn clone(&self) -> SurfaceConfig
fn clone(&self) -> SurfaceConfig
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 SurfaceConfig
impl Debug for SurfaceConfig
Source§impl Default for SurfaceConfig
impl Default for SurfaceConfig
Source§fn default() -> SurfaceConfig
fn default() -> SurfaceConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SurfaceConfig
impl PartialEq for SurfaceConfig
impl Copy for SurfaceConfig
impl StructuralPartialEq for SurfaceConfig
Auto Trait Implementations§
impl Freeze for SurfaceConfig
impl RefUnwindSafe for SurfaceConfig
impl Send for SurfaceConfig
impl Sync for SurfaceConfig
impl Unpin for SurfaceConfig
impl UnwindSafe for SurfaceConfig
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