Struct wgpu_test::TestParameters
source · pub struct TestParameters {
pub required_features: Features,
pub required_downlevel_caps: DownlevelCapabilities,
pub required_limits: Limits,
pub force_fxc: bool,
pub skips: Vec<FailureCase>,
pub failures: Vec<FailureCase>,
}
Expand description
This information determines if a test should run.
Fields§
§required_features: Features
§required_downlevel_caps: DownlevelCapabilities
§required_limits: Limits
§force_fxc: bool
On Dx12, specifically test against the Fxc compiler.
For testing workarounds to Fxc bugs.
skips: Vec<FailureCase>
Conditions under which this test should be skipped.
failures: Vec<FailureCase>
Conditions under which this test should be run, but is expected to fail.
Implementations§
source§impl TestParameters
impl TestParameters
sourcepub fn test_features_limits(self) -> Self
pub fn test_features_limits(self) -> Self
Set of common features that most internal tests require for compute and readback.
pub fn downlevel_flags(self, downlevel_flags: DownlevelFlags) -> Self
pub fn force_fxc(self, force_fxc: bool) -> Self
sourcepub fn expect_fail(self, when: FailureCase) -> Self
pub fn expect_fail(self, when: FailureCase) -> Self
Mark the test as always failing, but not to be skipped.
sourcepub fn skip(self, when: FailureCase) -> Self
pub fn skip(self, when: FailureCase) -> Self
Mark the test as always failing, and needing to be skipped.
Trait Implementations§
source§impl Clone for TestParameters
impl Clone for TestParameters
source§fn clone(&self) -> TestParameters
fn clone(&self) -> TestParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for TestParameters
impl Send for TestParameters
impl Sync for TestParameters
impl Unpin for TestParameters
impl UnwindSafe for TestParameters
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