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: CacheTextureId
Which texture in the texture cache should be drawn into.
§
target_kind: RenderTargetKind
What 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: TextureSource
PictureCache
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: ResolvedSurfaceTexture
Describes 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 copy 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§fn eq(&self, other: &StaticRenderTaskSurface) -> bool
fn eq(&self, other: &StaticRenderTaskSurface) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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> 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