pub struct ResourceManager { /* private fields */ }
Implementations§
Source§impl ResourceManager
impl ResourceManager
pub fn new( device_context: &RafxDeviceContext, render_registry: &RenderRegistry, ) -> Self
pub fn device_context(&self) -> &RafxDeviceContext
pub fn resource_context(&self) -> ResourceContext
pub fn resources(&self) -> &ResourceLookupSet
pub fn graphics_pipeline_cache(&self) -> &GraphicsPipelineCache
pub fn dyn_command_pool_allocator(&self) -> &DynCommandPoolAllocator
pub fn create_dyn_resource_allocator_set(&self) -> DynResourceAllocatorSet
pub fn create_dyn_resource_allocator_provider( &self, ) -> DynResourceAllocatorSetProvider
pub fn create_descriptor_set_allocator(&self) -> DescriptorSetAllocatorRef
pub fn create_descriptor_set_allocator_provider( &self, ) -> DescriptorSetAllocatorProvider
pub fn render_registry(&self) -> &RenderRegistry
pub fn metrics(&self) -> ResourceManagerMetrics
pub fn on_frame_complete(&mut self) -> RafxResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResourceManager
impl RefUnwindSafe for ResourceManager
impl Send for ResourceManager
impl Sync for ResourceManager
impl Unpin for ResourceManager
impl UnwindSafe for ResourceManager
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.