pub struct DoubleBuffer { /* private fields */ }Expand description
Double Buffer para draw commands
Front Buffer: Lógica acumula comandos (executor) Back Buffer: Render ejecuta comandos (gfx) Swap: Intercambiar buffers al final del frame
Implementations§
Source§impl DoubleBuffer
impl DoubleBuffer
Sourcepub fn push(&mut self, command: DrawCommand)
pub fn push(&mut self, command: DrawCommand)
Push al front buffer (lógica)
Sourcepub fn swap(&mut self)
pub fn swap(&mut self)
Swap de buffers: front → back Retorna el back buffer anterior para ejecutar
Sourcepub fn swap_and_execute(&mut self, gfx: &mut RyditGfx, assets: &Assets)
pub fn swap_and_execute(&mut self, gfx: &mut RyditGfx, assets: &Assets)
Swap + execute (operación combinada)
Sourcepub fn stats(&self) -> (RenderQueueStats, RenderQueueStats)
pub fn stats(&self) -> (RenderQueueStats, RenderQueueStats)
Obtener estadísticas de ambos buffers
Auto Trait Implementations§
impl Freeze for DoubleBuffer
impl RefUnwindSafe for DoubleBuffer
impl Send for DoubleBuffer
impl Sync for DoubleBuffer
impl Unpin for DoubleBuffer
impl UnsafeUnpin for DoubleBuffer
impl UnwindSafe for DoubleBuffer
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