Expand description
Test utilities for the wgpu repository.
Re-exportsยง
pub use self::image::ComparisonType;
Modulesยง
- config ๐
- expectations ๐
- image
- Image comparison utilities
- init ๐
- isolation ๐
- native
- Infrastructure for the native,
cargo-nextest
based harness. - params ๐
- poll ๐
- report ๐
- run ๐
Macrosยง
- gpu_
test_ main - Adds the necessary main function for our gpu test harness.
Structsยง
- Failure
Application Reasons - Reason why a test matches a given failure case.
- Failure
Case - Conditions under which a test should fail or be skipped.
- Failure
Reason - Reason why a test is expected to fail.
- GpuTest
Configuration - Configuration for a GPU test.
- Test
Parameters - This information determines if a test should run.
- Testing
Context - Parameters and resources handed to the test function.
Enumsยง
Functionsยง
- did_
fail - Returns true if the provided callback fails validation.
- did_
fill_ ๐error_ scope - did_oom
- Returns true if the provided callback encounters an out-of-memory error.
- execute_
test - Execute the given test configuration with the given adapter report.
- fail
- Run some code in an error scope and assert that validation fails.
- fail_if
- Run some code in an error scope and assert that validation succeeds or fails depending on the
provided
should_fail
boolean. - initialize_
adapter - Initialize a wgpu adapter, using the given adapter report to match the adapter.
- initialize_
device - Initialize a wgpu device from a given adapter.
- initialize_
instance - Initialize a wgpu instance with the options from the environment.
- valid
- Run some code in an error scope and assert that validation succeeds.
Type Aliasesยง
Attribute Macrosยง
- gpu_
test - Creates a test that will run on all gpus on a given system.