pub struct TextureReadbackResult {
pub data: Vec<u8>,
pub info: TextureImageInfo,
}Expand description
The pixels that RenderSessionHandle::read_texture() reads.
See mln_texture_readback_result in the
C API reference.
Fields§
§data: Vec<u8>Premultiplied RGBA pixels with 8 bits per channel, in rows from top to bottom.
info: TextureImageInfoTrait Implementations§
Source§impl Clone for TextureReadbackResult
impl Clone for TextureReadbackResult
Source§fn clone(&self) -> TextureReadbackResult
fn clone(&self) -> TextureReadbackResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextureReadbackResult
impl Debug for TextureReadbackResult
Source§impl Default for TextureReadbackResult
impl Default for TextureReadbackResult
Source§fn default() -> TextureReadbackResult
fn default() -> TextureReadbackResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextureReadbackResult
impl PartialEq for TextureReadbackResult
impl StructuralPartialEq for TextureReadbackResult
Auto Trait Implementations§
impl Freeze for TextureReadbackResult
impl RefUnwindSafe for TextureReadbackResult
impl Send for TextureReadbackResult
impl Sync for TextureReadbackResult
impl Unpin for TextureReadbackResult
impl UnsafeUnpin for TextureReadbackResult
impl UnwindSafe for TextureReadbackResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more