pub enum RenderTaskLocation {
    Unallocated {
        size: DeviceIntSize,
    },
    CacheRequest {
        size: DeviceIntSize,
    },
    Existing {
        parent_task_id: RenderTaskId,
        size: DeviceIntSize,
    },
    Dynamic {
        texture_id: CacheTextureId,
        rect: DeviceIntRect,
    },
    Static {
        surface: StaticRenderTaskSurface,
        rect: DeviceIntRect,
    },
}Expand description
Identifies the output buffer location for a given RenderTask.
Variants§
Unallocated
A dynamic task that has not yet been allocated a texture and rect.
Fields
§
size: DeviceIntSizeRequested size of this render task
CacheRequest
Will be replaced by a Static location after the texture cache update.
Fields
§
size: DeviceIntSizeExisting
Same allocation as an existing task deeper in the dependency graph
Dynamic
The RenderTask should be drawn to a target provided by the atlas
allocator. This is the most common case.
Fields
§
texture_id: CacheTextureIdTexture that this task was allocated to render on
§
rect: DeviceIntRectRectangle in the texture this task occupies
Static
A task that is output to a persistent / retained target.
Fields
§
surface: StaticRenderTaskSurfaceTarget to draw to
§
rect: DeviceIntRectRectangle in the texture this task occupies
Implementations§
Source§impl RenderTaskLocation
 
impl RenderTaskLocation
Sourcepub fn is_dynamic(&self) -> bool
 
pub fn is_dynamic(&self) -> bool
Returns true if this is a dynamic location.
pub fn size(&self) -> DeviceIntSize
Trait Implementations§
Source§impl Clone for RenderTaskLocation
 
impl Clone for RenderTaskLocation
Source§fn clone(&self) -> RenderTaskLocation
 
fn clone(&self) -> RenderTaskLocation
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 RenderTaskLocation
 
impl Debug for RenderTaskLocation
Auto Trait Implementations§
impl Freeze for RenderTaskLocation
impl RefUnwindSafe for RenderTaskLocation
impl Send for RenderTaskLocation
impl Sync for RenderTaskLocation
impl Unpin for RenderTaskLocation
impl UnwindSafe for RenderTaskLocation
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