pub enum FramePixels {
Cpu(PixelBuffer),
Gpu(Texture),
}Expand description
FramePixels is what a decoder hands back — never an image; the loader makes those.
Variants§
Cpu(PixelBuffer)
Cpu is owned samples in any layout PixelBuffer accepts; the loader uploads them.
Gpu(Texture)
Gpu is a texture already holding the frame on the request’s device, so nothing is copied
back through the CPU. It must be 2D, single-sample, Rgba8Unorm or Bgra8Unorm, carry
TEXTURE_BINDING, and hold premultiplied sRGB samples. Whatever backs it must stay alive
until wgpu drops the texture; see valo::import_metal_texture.
Auto Trait Implementations§
impl !RefUnwindSafe for FramePixels
impl !UnwindSafe for FramePixels
impl Freeze for FramePixels
impl Send for FramePixels
impl Sync for FramePixels
impl Unpin for FramePixels
impl UnsafeUnpin for FramePixels
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more