pub struct AssetHub {
    pub textures: Arc<AssetManager<Baker>>,
    pub models: AssetManager<Baker>,
    pub shaders: AssetManager<Baker>,
}Expand description
A single hub to manage all assets.
Fields§
§textures: Arc<AssetManager<Baker>>§models: AssetManager<Baker>§shaders: AssetManager<Baker>Implementations§
Source§impl AssetHub
 
impl AssetHub
Sourcepub fn new(
    target: &Path,
    choir: &Arc<Choir>,
    gpu_context: &Arc<Context>,
) -> Self
 
pub fn new( target: &Path, choir: &Arc<Choir>, gpu_context: &Arc<Context>, ) -> Self
Create a new hub.
Sourcepub fn flush(
    &self,
    command_encoder: &mut CommandEncoder,
    temp_buffers: &mut Vec<Buffer>,
)
 
pub fn flush( &self, command_encoder: &mut CommandEncoder, temp_buffers: &mut Vec<Buffer>, )
Flush the GPU state updates into the specified command encoder.
Populates the list of temporary buffers that can be freed when the relevant submission is completely retired.
pub fn open_context<'a, N: Into<Name>>( &'a self, base_path: &'a Path, name: N, ) -> LoadContext<'_>
pub fn list_running_tasks(&self) -> Vec<RunningTask>
Auto Trait Implementations§
impl !Freeze for AssetHub
impl !RefUnwindSafe for AssetHub
impl Send for AssetHub
impl Sync for AssetHub
impl Unpin for AssetHub
impl !UnwindSafe for AssetHub
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