pub struct PreparedSourceTexture { /* private fields */ }Expand description
A rendered source texture paired with presentation work that can be folded into the command encoder of its first consumer.
Implementations§
Source§impl PreparedSourceTexture
impl PreparedSourceTexture
Sourcepub fn into_parts(self) -> (RenderedTexture, Option<PendingSourceWork>)
pub fn into_parts(self) -> (RenderedTexture, Option<PendingSourceWork>)
Separates the sampleable output from its one-shot presentation work.
Sourcepub fn retained_bytes(&self) -> u64
pub fn retained_bytes(&self) -> u64
Returns the maximum GPU texture bytes retained until presentation.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PreparedSourceTexture
impl !RefUnwindSafe for PreparedSourceTexture
impl !UnwindSafe for PreparedSourceTexture
impl Send for PreparedSourceTexture
impl Sync for PreparedSourceTexture
impl Unpin for PreparedSourceTexture
impl UnsafeUnpin for PreparedSourceTexture
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