Struct wgpu_test::GpuTestConfiguration
source · pub struct GpuTestConfiguration { /* private fields */ }
Expand description
Configuration for a GPU test.
Implementations§
source§impl GpuTestConfiguration
impl GpuTestConfiguration
pub fn new() -> Self
sourcepub fn name(self, name: &str) -> Self
pub fn name(self, name: &str) -> Self
Set the name of the test. Must be unique across all tests in the binary.
sourcepub fn parameters(self, parameters: TestParameters) -> Self
pub fn parameters(self, parameters: TestParameters) -> Self
Set the parameters that the test needs to succeed.
sourcepub fn run_sync(
self,
test: impl Fn(TestingContext) + Copy + RunTestSendSync + 'static
) -> Self
pub fn run_sync( self, test: impl Fn(TestingContext) + Copy + RunTestSendSync + 'static ) -> Self
Make the test function an synchronous function.
Trait Implementations§
source§impl Clone for GpuTestConfiguration
impl Clone for GpuTestConfiguration
source§fn clone(&self) -> GpuTestConfiguration
fn clone(&self) -> GpuTestConfiguration
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 GpuTestConfiguration
impl Send for GpuTestConfiguration
impl Sync for GpuTestConfiguration
impl Unpin for GpuTestConfiguration
impl !UnwindSafe for GpuTestConfiguration
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