Skip to main content

Module test_support

Module test_support 

Source

Enums§

ReadbackError
Why an offscreen readback could not produce pixels.

Constants§

REQUIRE_ADAPTER_VAR
The variable a test run sets to insist on a GPU adapter.

Functions§

adapter_required
true when REQUIRE_ADAPTER_VAR asks for an adapter.
create_offscreen_renderer
Build an offscreen renderer on the shared device, or None if this host can open no usable GPU device at all.
create_test_renderer
create_offscreen_renderer, under its earlier name.
is_lavapipe
true for Mesa’s lavapipe, the Vulkan rasteriser that runs on the CPU.
read_texture_rgba
Read a texture back as tightly-packed RGBA, panicking on GPU failure.
require_test_renderer
An offscreen renderer for a GPU test, honouring REQUIRE_ADAPTER_VAR.
try_read_texture_level_rgba
try_read_texture_rgba of mip level level, which is width × height.
try_read_texture_rgba
Read a texture back as tightly-packed RGBA.