Crate wgpu_test

source ·
Expand description

Test utilities for the wgpu repository.

Re-exports

Modules

  • Image comparison utilities
  • Infrastructure for the native, cargo-nextest based harness.

Macros

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

Structs

Enums

Functions

  • 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.