pub struct RenderQueue { /* private fields */ }Expand description
Command Queue para draw calls
Capacidad: 8192+ comandos por frame Estrategia: Buffer circular con head/tail
Implementations§
Source§impl RenderQueue
impl RenderQueue
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Crear queue con capacidad custom
Sourcepub fn push(&mut self, command: DrawCommand)
pub fn push(&mut self, command: DrawCommand)
Push de comando a la queue
Sourcepub fn execute(&mut self, gfx: &mut RyditGfx, assets: &Assets)
pub fn execute(&mut self, gfx: &mut RyditGfx, assets: &Assets)
Ejecutar todos los comandos acumulados
Sourcepub fn execute_with_handle(&mut self, d: &mut DrawHandle<'_>, assets: &Assets)
pub fn execute_with_handle(&mut self, d: &mut DrawHandle<'_>, assets: &Assets)
✅ v0.10.4: Ejecutar comandos con DrawHandle existente (para integrar con partículas)
Sourcepub fn stats(&self) -> RenderQueueStats
pub fn stats(&self) -> RenderQueueStats
Obtener estadísticas
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderQueue
impl RefUnwindSafe for RenderQueue
impl Send for RenderQueue
impl Sync for RenderQueue
impl Unpin for RenderQueue
impl UnsafeUnpin for RenderQueue
impl UnwindSafe for RenderQueue
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