pub struct RenderedTexture { /* private fields */ }Expand description
A GPU texture produced by the renderer. Image passes store premultiplied sRGB RGBA; raw solid clears retain the supplied component values.
Read it back with crate::Renderer::read_rgba8 or the renderer’s other
readbacks, or draw it as a source through 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