pub struct AssetManagerExtractRef(/* private fields */);Expand description
“Borrowed” from AssetManagerRenderResource, must be dropped before extract ends
Methods from Deref<Target = AssetManager>§
pub fn committed_asset<AssetT: 'static>( &self, handle: &Handle<AssetT>, ) -> Option<&AssetT>
pub fn latest_asset<AssetT: 'static>( &self, handle: &Handle<AssetT>, ) -> Option<&AssetT>
pub fn device_context(&self) -> &RafxDeviceContext
pub fn graphics_queue(&self) -> &RafxQueue
pub fn transfer_queue(&self) -> &RafxQueue
pub fn resource_manager(&self) -> &ResourceManager
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 upload_queue_context(&self) -> UploadQueueContext
pub fn get_descriptor_set_layout_for_pass( &self, handle: &Handle<MaterialAsset>, pass_index: usize, layout_index: usize, ) -> Option<ResourceArc<DescriptorSetLayoutResource>>
pub fn metrics(&self) -> AssetManagerMetrics
pub fn apply_material_instance_slot_assignment( &self, slot_assignment: &MaterialInstanceSlotAssignment, pass_slot_name_lookup: &SlotNameLookup, resources: &ResourceLookupSet, material_pass_write_set: &mut Vec<DescriptorSetWriteSet>, ) -> RafxResult<()>
pub fn create_write_sets_for_material_instance_pass( &self, pass: &MaterialPass, slots: &[MaterialInstanceSlotAssignment], resources: &ResourceLookupSet, ) -> RafxResult<Vec<DescriptorSetWriteSet>>
Trait Implementations§
Source§impl Clone for AssetManagerExtractRef
impl Clone for AssetManagerExtractRef
Source§fn clone(&self) -> AssetManagerExtractRef
fn clone(&self) -> AssetManagerExtractRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AssetManagerExtractRef
impl !RefUnwindSafe for AssetManagerExtractRef
impl Send for AssetManagerExtractRef
impl Sync for AssetManagerExtractRef
impl Unpin for AssetManagerExtractRef
impl !UnwindSafe for AssetManagerExtractRef
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.