pub struct GpuPixelTestSuite {
pub kernel_name: String,
pub results: Vec<GpuPixelResult>,
pub duration: Duration,
}Expand description
Suite of GPU pixel tests for a kernel
Fields§
§kernel_name: StringKernel name being tested
results: Vec<GpuPixelResult>Test results
duration: DurationTotal duration
Implementations§
Source§impl GpuPixelTestSuite
impl GpuPixelTestSuite
Sourcepub fn add_result(&mut self, result: GpuPixelResult)
pub fn add_result(&mut self, result: GpuPixelResult)
Add a test result
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Check if all tests passed
Sourcepub fn passed_count(&self) -> usize
pub fn passed_count(&self) -> usize
Get passed count
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Get failed count
Sourcepub fn failures(&self) -> Vec<&GpuPixelResult>
pub fn failures(&self) -> Vec<&GpuPixelResult>
Get failures
Sourcepub fn run_kernel_pixels(&mut self, ptx: &str, config: &KernelPixelConfig)
pub fn run_kernel_pixels(&mut self, ptx: &str, config: &KernelPixelConfig)
Run kernel-specific pixel tests
Trait Implementations§
Source§impl Clone for GpuPixelTestSuite
impl Clone for GpuPixelTestSuite
Source§fn clone(&self) -> GpuPixelTestSuite
fn clone(&self) -> GpuPixelTestSuite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for GpuPixelTestSuite
impl RefUnwindSafe for GpuPixelTestSuite
impl Send for GpuPixelTestSuite
impl Sync for GpuPixelTestSuite
impl Unpin for GpuPixelTestSuite
impl UnsafeUnpin for GpuPixelTestSuite
impl UnwindSafe for GpuPixelTestSuite
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more