pub enum Image {
Vulkan(VulkanTexture),
Gles(GlesTexture),
}Expand description
Something to draw into. A texture a paint can sample.
Distinct from a Surface in the type system even though both are textures
underneath, because the two are used in opposite directions and mixing them
up is exactly the mistake worth making impossible: a surface is drawn into,
an image is read from.
Variants§
Vulkan(VulkanTexture)
Gles(GlesTexture)
Implementations§
Auto Trait Implementations§
impl !Freeze for Image
impl !RefUnwindSafe for Image
impl !Sync for Image
impl Send for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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