Crate wgpu_test

Source
Expand description

Test utilities for the wgpu repository.

Re-exports§

Modules§

Macros§

  • Adds the necessary main function for our gpu test harness.

Structs§

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.