pub async fn require_test_renderer(
label: &'static str,
) -> Option<(Renderer, Device, Queue)>Expand description
An offscreen renderer for a GPU test, honouring REQUIRE_ADAPTER_VAR.
Returns None only when the variable is unset and the host has no
adapter; a test then returns early. Panics, naming the adapter it found,
when the variable asks for an adapter this host does not provide.