allocate

Function allocate 

pub fn allocate(handle: impl Into<Handle>) -> Task<Result<Allocation, Error>>
Available on crate feature image only.
Expand description

Allocates an image Handle.

When you obtain an Allocation explicitly, you get the guarantee that using a Handle will draw the corresponding image immediately in the next frame.