Static wgpu_hal::VALIDATION_CANARY
source · pub static VALIDATION_CANARY: ValidationCanary
Expand description
Stores if any API validation error has occurred in this process since it was last reset.
This is used for internal wgpu testing only and must not be used as a way to check for errors.
This works as a static because cargo nextest
runs all of our
tests in separate processes, so each test gets its own canary.
This prevents the issue of one validation error terminating the entire process.