pub struct SurfaceOptions {
pub cap_frame_rate: bool,
pub usages: Option<TextureUsages>,
pub format: Option<TextureFormat>,
}Expand description
How a SurfaceTarget presents.
Fields§
§cap_frame_rate: boolPresent in step with the display. Off, frames are presented at once, tearing.
usages: Option<TextureUsages>The usages the surface supports, where the host knows them better
than the device’s adapter does, as for a browser’s canvas, or where
the device has no adapter. Frames can be read back when they have
COPY_SRC.
format: Option<TextureFormat>The format to configure the surface with, in place of the device’s surface format.
Trait Implementations§
Source§impl Clone for SurfaceOptions
impl Clone for SurfaceOptions
impl Copy for SurfaceOptions
Source§impl Debug for SurfaceOptions
impl Debug for SurfaceOptions
Auto Trait Implementations§
impl Forget for SurfaceOptions
impl Freeze for SurfaceOptionswhere
InternalBitFlags: Freeze,
impl Move for SurfaceOptions
impl RefUnwindSafe for SurfaceOptionswhere
InternalBitFlags: RefUnwindSafe,
impl Send for SurfaceOptionswhere
InternalBitFlags: Send,
impl Sync for SurfaceOptionswhere
InternalBitFlags: Sync,
impl Unpin for SurfaceOptionswhere
InternalBitFlags: Unpin,
impl UnsafeUnpin for SurfaceOptionswhere
InternalBitFlags: UnsafeUnpin,
impl UnwindSafe for SurfaceOptionswhere
InternalBitFlags: UnwindSafe,
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