pub fn read_texture_rgba(
device: &Device,
queue: &Queue,
texture: &Texture,
width: u32,
height: u32,
) -> Vec<u8> ⓘExpand description
Read a texture back as tightly-packed RGBA, panicking on GPU failure.
Kept for tests, where a lost device is a test failure and a panic is the
clearest report. Anything user-facing — a screenshot tool that must survive
a driver restart — should call try_read_texture_rgba instead.