pub struct Frame {
pub instances: Vec<GfxInstance>,
pub atlas_updates: Vec<AtlasUpdate>,
pub atlas_reset: bool,
}Expand description
一帧的绘制提交。
Fields§
§instances: Vec<GfxInstance>本帧的实例列表;顺序即绘制顺序(后画的在上)。
atlas_updates: Vec<AtlasUpdate>本帧需要上传的字形图集脏区;空表示图集没变,可跳过上传。
atlas_reset: bool图集是否被整体重建(true 时忽略 atlas_updates,整张重传)。
Trait Implementations§
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Framewhere
*const u8 is !null: Freeze,
PhantomData<GfxInstance>: Freeze,
PhantomData<AtlasUpdate>: Freeze,
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Framewhere
RawVecInner: Send,
impl Sync for Framewhere
RawVecInner: Sync,
impl Unpin for Frame
impl UnsafeUnpin for Framewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<GfxInstance>: UnsafeUnpin,
PhantomData<AtlasUpdate>: UnsafeUnpin,
impl UnwindSafe for Framewhere
RawVecInner: UnwindSafe,
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