pub struct Manager<R>where
R: Resources,{ /* private fields */ }
Expand description
Stores reference-counted resources used in a command buffer. Seals actual resource names behind the interface, automatically referencing them both by the Factory on resource creation and the Renderer during CommandBuffer population.
Implementations§
source§impl<R> Manager<R>where
R: Resources,
impl<R> Manager<R>where R: Resources,
sourcepub fn extend(&mut self, other: &Manager<R>)
pub fn extend(&mut self, other: &Manager<R>)
Extend with all references of another handle manager
sourcepub fn ref_buffer<'a>(
&mut self,
handle: &'a RawBuffer<R>
) -> &'a <R as Resources>::Buffer
pub fn ref_buffer<'a>( &mut self, handle: &'a RawBuffer<R> ) -> &'a <R as Resources>::Buffer
Reference a buffer
sourcepub fn ref_shader<'a>(
&mut self,
handle: &'a Shader<R>
) -> &'a <R as Resources>::Shader
pub fn ref_shader<'a>( &mut self, handle: &'a Shader<R> ) -> &'a <R as Resources>::Shader
Reference a shader
sourcepub fn ref_program<'a>(
&mut self,
handle: &'a Program<R>
) -> &'a <R as Resources>::Program
pub fn ref_program<'a>( &mut self, handle: &'a Program<R> ) -> &'a <R as Resources>::Program
Reference a program
sourcepub fn ref_pso<'a>(
&mut self,
handle: &'a RawPipelineState<R>
) -> (&'a <R as Resources>::PipelineStateObject, &'a <R as Resources>::Program)
pub fn ref_pso<'a>( &mut self, handle: &'a RawPipelineState<R> ) -> (&'a <R as Resources>::PipelineStateObject, &'a <R as Resources>::Program)
Reference a pipeline state object
sourcepub fn ref_texture<'a>(
&mut self,
handle: &'a RawTexture<R>
) -> &'a <R as Resources>::Texture
pub fn ref_texture<'a>( &mut self, handle: &'a RawTexture<R> ) -> &'a <R as Resources>::Texture
Reference a texture
sourcepub fn ref_srv<'a>(
&mut self,
handle: &'a RawShaderResourceView<R>
) -> &'a <R as Resources>::ShaderResourceView
pub fn ref_srv<'a>( &mut self, handle: &'a RawShaderResourceView<R> ) -> &'a <R as Resources>::ShaderResourceView
Reference a shader resource view
sourcepub fn ref_uav<'a>(
&mut self,
handle: &'a RawUnorderedAccessView<R>
) -> &'a <R as Resources>::UnorderedAccessView
pub fn ref_uav<'a>( &mut self, handle: &'a RawUnorderedAccessView<R> ) -> &'a <R as Resources>::UnorderedAccessView
Reference an unordered access view
sourcepub fn ref_rtv<'a>(
&mut self,
handle: &'a RawRenderTargetView<R>
) -> &'a <R as Resources>::RenderTargetView
pub fn ref_rtv<'a>( &mut self, handle: &'a RawRenderTargetView<R> ) -> &'a <R as Resources>::RenderTargetView
Reference an RTV
sourcepub fn ref_dsv<'a>(
&mut self,
handle: &'a RawDepthStencilView<R>
) -> &'a <R as Resources>::DepthStencilView
pub fn ref_dsv<'a>( &mut self, handle: &'a RawDepthStencilView<R> ) -> &'a <R as Resources>::DepthStencilView
Reference a DSV
sourcepub fn ref_sampler<'a>(
&mut self,
handle: &'a Sampler<R>
) -> &'a <R as Resources>::Sampler
pub fn ref_sampler<'a>( &mut self, handle: &'a Sampler<R> ) -> &'a <R as Resources>::Sampler
Reference a sampler