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§
fn submit(&mut self, commands: Vec<RecordedCommand>)
fn on_completion(&mut self, callback: Box<dyn FnOnce() + Send>)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".