Expand description
Test utilities for the wgpu repository.
Re-exports§
pub use self::image::ComparisonType;
Modules§
- config 🔒
- Image comparison utilities
- init 🔒
- Infrastructure for the native,
cargo-nextest
based harness. - params 🔒
- poll 🔒
- report 🔒
- run 🔒
Macros§
- Adds the necessary main function for our gpu test harness.
Structs§
- Reason why a test matches a given failure case.
- Conditions under which a test should fail or be skipped.
- Reason why a test is expected to fail.
- Configuration for a GPU test.
- This information determines if a test should run.
- Parameters and resources handed to the test function.
Enums§
Functions§
- Returns true if the provided callback fails validation.
- Execute the given test configuration with the given adapter report.
- Run some code in an error scope and assert that validation fails.
- Run some code in an error scope and assert that validation succeeds or fails depending on the provided
should_fail
boolean. - Initialize a wgpu adapter, using the given adapter report to match the adapter.
- Initialize a wgpu device from a given adapter.
- Initialize a wgpu instance with the options from the environment.
- Run some code in an error scope and assert that validation succeeds.
Attribute Macros§
- Creates a test that will run on all gpus on a given system.