Skip to main content

GpuQueue

Trait GpuQueue 

Source
pub trait GpuQueue: Send + Sync {
    // Required methods
    fn submit(&mut self, commands: Vec<RecordedCommand>);
    fn on_completion(&mut self, callback: Box<dyn FnOnce() + Send>);
}
Expand description

Command queue for submitting work to the GPU.

Required Methods§

Source

fn submit(&mut self, commands: Vec<RecordedCommand>)

Source

fn on_completion(&mut self, callback: Box<dyn FnOnce() + Send>)

Implementors§