pub struct CommandBuffer { /* private fields */ }Expand description
GPU command buffer
Implementations§
Source§impl CommandBuffer
impl CommandBuffer
pub fn new() -> Self
Sourcepub fn submit(&self) -> Result<(), KernelError>
pub fn submit(&self) -> Result<(), KernelError>
Submit command buffer to GPU.
If a VirtIO GPU is available, flushes the framebuffer to the display via transfer_to_host_2d + resource_flush. Otherwise this is a no-op (software rendering path).