pub enum StaticRenderTaskSurface {
TextureCache {
texture: CacheTextureId,
target_kind: RenderTargetKind,
},
ReadOnly {
source: TextureSource,
},
PictureCache {
surface: ResolvedSurfaceTexture,
},
}Expand description
A render task location that targets a persistent output buffer which will be retained over multiple frames.
Variants§
TextureCache
The output of the RenderTask will be persisted beyond this frame, and
thus should be drawn into the TextureCache.
Fields
§
texture: CacheTextureIdWhich texture in the texture cache should be drawn into.
§
target_kind: RenderTargetKindWhat format this texture cache surface is
ReadOnly
Only used as a source for render tasks, can be any texture including an external one.
Fields
§
source: TextureSourcePictureCache
This render task will be drawn to a picture cache texture that is persisted between both frames and scenes, if the content remains valid.
Fields
§
surface: ResolvedSurfaceTextureDescribes either a WR texture or a native OS compositor target
Trait Implementations§
Source§impl Clone for StaticRenderTaskSurface
impl Clone for StaticRenderTaskSurface
Source§fn clone(&self) -> StaticRenderTaskSurface
fn clone(&self) -> StaticRenderTaskSurface
Returns a duplicate of the value. Read more
1.0.0 · 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 StaticRenderTaskSurface
impl Debug for StaticRenderTaskSurface
Source§impl Hash for StaticRenderTaskSurface
impl Hash for StaticRenderTaskSurface
Source§impl PartialEq for StaticRenderTaskSurface
impl PartialEq for StaticRenderTaskSurface
Source§impl Serialize for StaticRenderTaskSurface
impl Serialize for StaticRenderTaskSurface
impl Eq for StaticRenderTaskSurface
impl StructuralPartialEq for StaticRenderTaskSurface
Auto Trait Implementations§
impl Freeze for StaticRenderTaskSurface
impl RefUnwindSafe for StaticRenderTaskSurface
impl Send for StaticRenderTaskSurface
impl Sync for StaticRenderTaskSurface
impl Unpin for StaticRenderTaskSurface
impl UnwindSafe for StaticRenderTaskSurface
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,
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