Function wgpu_test::fail

source ·
pub fn fail<T>(
    device: &Device,
    callback: impl FnOnce() -> T,
    expected_msg_substring: Option<&'static str>
) -> T
Expand description

Run some code in an error scope and assert that validation fails.