pub struct RenderedTexture { /* private fields */ }Expand description
A GPU texture produced by the renderer, storing premultiplied sRGB RGBA (solid clears keep the given values).
Read it back with crate::Renderer::read_rgba8 and friends, or draw it via SourceView.
Implementations§
Source§impl RenderedTexture
impl RenderedTexture
Sourcepub const fn size(&self) -> RenderSize
pub const fn size(&self) -> RenderSize
Texture dimensions in pixels.
Trait Implementations§
Source§impl Clone for RenderedTexture
impl Clone for RenderedTexture
Source§impl Debug for RenderedTexture
impl Debug for RenderedTexture
Source§impl<'a> From<&'a RenderedTexture> for SourceView<'a>
impl<'a> From<&'a RenderedTexture> for SourceView<'a>
Source§fn from(texture: &'a RenderedTexture) -> Self
fn from(texture: &'a RenderedTexture) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RenderedTexture
impl !UnwindSafe for RenderedTexture
impl Freeze for RenderedTexture
impl Send for RenderedTexture
impl Sync for RenderedTexture
impl Unpin for RenderedTexture
impl UnsafeUnpin for RenderedTexture
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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