pub struct RunOptions {
pub diagnostics: Option<DiagnosticsConfig>,
pub frames: Option<u64>,
pub screenshot: Option<PathBuf>,
pub size: Option<(u32, u32)>,
pub hidden: bool,
pub uncapped: bool,
}Expand description
Optional run controls for bounded native rendering smoke checks. This is not the deferred interactive game-testing protocol.
Fields§
§diagnostics: Option<DiagnosticsConfig>Opt-in timings, submission counters and resource sampling. Disabled by default.
frames: Option<u64>Exit after this many presented frames. None means normal interactive play.
screenshot: Option<PathBuf>Save the last presented frame as a PNG.
size: Option<(u32, u32)>Override initial logical window dimensions.
Hide the window; still requires a working native graphics/display context.
uncapped: boolDisable VSync and the render cap. Useful for rendering measurements.
Implementations§
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§impl Debug for RunOptions
impl Debug for RunOptions
Auto Trait Implementations§
impl Freeze for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl UnwindSafe for RunOptions
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