pub struct SourceView<'a> { /* private fields */ }Expand description
A texture the renderer draws from as a source, borrowed from whoever owns
it: a RenderedTexture, an crate::UploadTexture (what
crate::Renderer::upload_rgba8 returns), or, through the wgpu
interop, any texture view of the renderer’s device.
A source texture stores premultiplied, sRGB-encoded RGBA in a non-sRGB format. The owner keeps it alive and unchanged for as long as the renderer may read it: until the frame drawn from it is submitted.
Trait Implementations§
Source§impl<'a> Clone for SourceView<'a>
impl<'a> Clone for SourceView<'a>
impl<'a> Copy for SourceView<'a>
Source§impl<'a> Debug for SourceView<'a>
impl<'a> Debug for SourceView<'a>
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.
Source§impl<'a> From<&'a UploadTexture> for SourceView<'a>
impl<'a> From<&'a UploadTexture> for SourceView<'a>
Source§fn from(texture: &'a UploadTexture) -> Self
fn from(texture: &'a UploadTexture) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SourceView<'a>
impl<'a> !UnwindSafe for SourceView<'a>
impl<'a> Freeze for SourceView<'a>
impl<'a> Send for SourceView<'a>
impl<'a> Sync for SourceView<'a>
impl<'a> Unpin for SourceView<'a>
impl<'a> UnsafeUnpin for SourceView<'a>
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