Struct blade_graphics::SurfaceConfig
source · pub struct SurfaceConfig {
pub size: Extent,
pub usage: TextureUsage,
pub display_sync: DisplaySync,
pub color_space: ColorSpace,
}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.
Trait Implementations§
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