pub struct Frame {
Show 13 fields pub device_rect: DeviceIntRect, pub passes: Vec<RenderPass>, pub transform_palette: Vec<TransformData>, pub render_tasks: RenderTaskGraph, pub prim_headers: PrimitiveHeaders, pub gpu_cache_frame_id: FrameId, pub deferred_resolves: Vec<DeferredResolve>, pub has_texture_cache_tasks: bool, pub has_been_rendered: bool, pub debug_items: Vec<DebugItem>, pub composite_state: CompositeState, pub gpu_buffer_f: GpuBuffer<GpuBufferBlockF>, pub gpu_buffer_i: GpuBuffer<GpuBufferBlockI>,
}
Expand description

A rendering-oriented representation of the frame built by the render backend and presented to the renderer.

Fields§

§device_rect: DeviceIntRect

The rectangle to show the frame in, on screen.

§passes: Vec<RenderPass>§transform_palette: Vec<TransformData>§render_tasks: RenderTaskGraph§prim_headers: PrimitiveHeaders§gpu_cache_frame_id: FrameId

The GPU cache frame that the contents of Self depend on

§deferred_resolves: Vec<DeferredResolve>

List of textures that we don’t know about yet from the backend thread. The render thread will use a callback to resolve these and patch the data structures.

§has_texture_cache_tasks: bool

True if this frame contains any render tasks that write to the texture cache.

§has_been_rendered: bool

True if this frame has been drawn by the renderer.

§debug_items: Vec<DebugItem>

Debugging information to overlay for this frame.

§composite_state: CompositeState

Contains picture cache tiles, and associated information. Used by the renderer to composite tiles into the framebuffer, or hand them off to an OS compositor.

§gpu_buffer_f: GpuBuffer<GpuBufferBlockF>

Main GPU data buffer constructed (primarily) during the prepare pass for primitives that were visible and dirty.

§gpu_buffer_i: GpuBuffer<GpuBufferBlockI>

Implementations§

source§

impl Frame

source

pub fn must_be_drawn(&self) -> bool

source

pub fn is_nop(&self) -> bool

Trait Implementations§

source§

impl Serialize for Frame

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Frame

§

impl Send for Frame

§

impl Sync for Frame

§

impl Unpin for Frame

§

impl UnwindSafe for Frame

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.