pub struct GraphicsPipelineCache { /* private fields */ }
Implementations§
Source§impl GraphicsPipelineCache
impl GraphicsPipelineCache
pub fn new( render_registry: &RenderRegistry, resource_lookup_set: ResourceLookupSet, ) -> Self
pub fn metrics(&self) -> GraphicsPipelineCacheMetrics
pub fn on_frame_complete(&self)
pub fn get_render_phase_by_name(&self, name: &str) -> Option<RenderPhaseIndex>
pub fn register_renderpass_to_phase_per_frame<T: RenderPhase>( &self, render_target_meta: &GraphicsPipelineRenderTargetMeta, )
pub fn register_renderpass_to_phase_index_per_frame( &self, render_target_meta: &GraphicsPipelineRenderTargetMeta, render_phase_index: RenderPhaseIndex, )
pub fn do_register_renderpass_to_phase_index_per_frame( inner: &mut GraphicsPipelineCacheInner, render_target_meta: &GraphicsPipelineRenderTargetMeta, render_phase_index: RenderPhaseIndex, )
pub fn register_material_to_phase_index( &self, material_pass: &ResourceArc<MaterialPassResource>, render_phase_index: RenderPhaseIndex, )
pub fn do_register_material_to_phase_index( inner: &mut GraphicsPipelineCacheInner, material_pass: &ResourceArc<MaterialPassResource>, render_phase_index: RenderPhaseIndex, )
pub fn try_get_graphics_pipeline( &self, render_phase_index: Option<RenderPhaseIndex>, material_pass: &ResourceArc<MaterialPassResource>, render_target_meta: &GraphicsPipelineRenderTargetMeta, vertex_data_set_layout: &VertexDataSetLayout, ) -> Option<ResourceArc<GraphicsPipelineResource>>
pub fn get_or_create_graphics_pipeline( &self, render_phase_index: Option<RenderPhaseIndex>, material_pass: &ResourceArc<MaterialPassResource>, render_target_meta: &GraphicsPipelineRenderTargetMeta, vertex_data_set_layout: &VertexDataSetLayout, ) -> RafxResult<ResourceArc<GraphicsPipelineResource>>
pub fn graphics_pipeline( &self, render_phase_index: Option<RenderPhaseIndex>, material_pass: &ResourceArc<MaterialPassResource>, render_target_meta: &GraphicsPipelineRenderTargetMeta, vertex_data_set_layout: &VertexDataSetLayout, create_if_missing: bool, ) -> Option<RafxResult<ResourceArc<GraphicsPipelineResource>>>
pub fn precache_pipelines_for_all_phases(&self) -> RafxResult<()>
pub fn clear_all_pipelines(&self)
Trait Implementations§
Source§impl Clone for GraphicsPipelineCache
impl Clone for GraphicsPipelineCache
Source§fn clone(&self) -> GraphicsPipelineCache
fn clone(&self) -> GraphicsPipelineCache
Returns a copy 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 GraphicsPipelineCache
impl RefUnwindSafe for GraphicsPipelineCache
impl Send for GraphicsPipelineCache
impl Sync for GraphicsPipelineCache
impl Unpin for GraphicsPipelineCache
impl UnwindSafe for GraphicsPipelineCache
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.