Struct bitt::PlaybackTestingOptions
source · pub struct PlaybackTestingOptions {
pub read_only: bool,
pub assert_window: f32,
pub collect_frame_metrics: bool,
pub manual_start: bool,
}
Expand description
Options to use when running playback testing. Inserted as a resource for test gear usage, you shouldn’t modify it
Fields§
§read_only: bool
If true, the test will panic if the script doesn’t exist.
assert_window: f32
The amount of seconds to wait for the asserter to pass after input ends.
collect_frame_metrics: bool
If true, the test will collect frame metrics. There may be some overhead from the test gear Some operations are performed sync and may create a long frame, but it should only land on one frame.
manual_start: bool
By default, BITT automatically starts recording or playback from first update, but in some games it
takes a few update cycles for all of the assets to load and the game to actually be ready.
This takes more time on less powerful hardware, for example in CI, so if that is a problem you can
set this to false and manually call TestWrangler::start
through the TestWrangler resource.
Trait Implementations§
source§impl Clone for PlaybackTestingOptions
impl Clone for PlaybackTestingOptions
source§fn clone(&self) -> PlaybackTestingOptions
fn clone(&self) -> PlaybackTestingOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlaybackTestingOptions
impl Debug for PlaybackTestingOptions
source§impl Default for PlaybackTestingOptions
impl Default for PlaybackTestingOptions
impl Resource for PlaybackTestingOptions
Auto Trait Implementations§
impl RefUnwindSafe for PlaybackTestingOptions
impl Send for PlaybackTestingOptions
impl Sync for PlaybackTestingOptions
impl Unpin for PlaybackTestingOptions
impl UnwindSafe for PlaybackTestingOptions
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
T
[ShaderType
] for self
. When used in [AsBindGroup
]
derives, it is safe to assume that all images in self
exist.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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Self
using data from the given [World
].