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 SurfaceOptions
impl Move for SurfaceOptions
impl RefUnwindSafe for SurfaceOptions
impl Send for SurfaceOptions
impl Sync for SurfaceOptions
impl Unpin for SurfaceOptions
impl UnsafeUnpin for SurfaceOptions
impl UnwindSafe for SurfaceOptions
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