Struct gfx::handle::Manager [−][src]
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
impl<R> Manager<R> where
R: Resources,
[src]
R: Resources,
pub fn new() -> Manager<R>
[src]
Create a new handle manager
pub fn clear(&mut self)
[src]
Clear all references
pub fn extend(&mut self, other: &Manager<R>)
[src]
Extend with all references of another handle manager
pub fn count(&self) -> usize
[src]
Count the total number of referenced resources
pub fn ref_buffer(
&mut self,
handle: &'a RawBuffer<R>
) -> &'a <R as Resources>::Buffer
[src]
&mut self,
handle: &'a RawBuffer<R>
) -> &'a <R as Resources>::Buffer
Reference a buffer
pub fn ref_shader(
&mut self,
handle: &'a Shader<R>
) -> &'a <R as Resources>::Shader
[src]
&mut self,
handle: &'a Shader<R>
) -> &'a <R as Resources>::Shader
Reference a shader
pub fn ref_program(
&mut self,
handle: &'a Program<R>
) -> &'a <R as Resources>::Program
[src]
&mut self,
handle: &'a Program<R>
) -> &'a <R as Resources>::Program
Reference a program
pub fn ref_pso(
&mut self,
handle: &'a RawPipelineState<R>
) -> (&'a <R as Resources>::PipelineStateObject, &'a <R as Resources>::Program)
[src]
&mut self,
handle: &'a RawPipelineState<R>
) -> (&'a <R as Resources>::PipelineStateObject, &'a <R as Resources>::Program)
Reference a pipeline state object
pub fn ref_texture(
&mut self,
handle: &'a RawTexture<R>
) -> &'a <R as Resources>::Texture
[src]
&mut self,
handle: &'a RawTexture<R>
) -> &'a <R as Resources>::Texture
Reference a texture
pub fn ref_srv(
&mut self,
handle: &'a RawShaderResourceView<R>
) -> &'a <R as Resources>::ShaderResourceView
[src]
&mut self,
handle: &'a RawShaderResourceView<R>
) -> &'a <R as Resources>::ShaderResourceView
Reference a shader resource view
pub fn ref_uav(
&mut self,
handle: &'a RawUnorderedAccessView<R>
) -> &'a <R as Resources>::UnorderedAccessView
[src]
&mut self,
handle: &'a RawUnorderedAccessView<R>
) -> &'a <R as Resources>::UnorderedAccessView
Reference an unordered access view
pub fn ref_rtv(
&mut self,
handle: &'a RawRenderTargetView<R>
) -> &'a <R as Resources>::RenderTargetView
[src]
&mut self,
handle: &'a RawRenderTargetView<R>
) -> &'a <R as Resources>::RenderTargetView
Reference an RTV
pub fn ref_dsv(
&mut self,
handle: &'a RawDepthStencilView<R>
) -> &'a <R as Resources>::DepthStencilView
[src]
&mut self,
handle: &'a RawDepthStencilView<R>
) -> &'a <R as Resources>::DepthStencilView
Reference a DSV
pub fn ref_sampler(
&mut self,
handle: &'a Sampler<R>
) -> &'a <R as Resources>::Sampler
[src]
&mut self,
handle: &'a Sampler<R>
) -> &'a <R as Resources>::Sampler
Reference a sampler
pub fn ref_fence(&mut self, fence: &'a Fence<R>) -> &'a <R as Resources>::Fence
[src]
Reference a fence
Trait Implementations
impl<R> Debug for Manager<R> where
R: Resources + Debug,
<R as Resources>::Shader: Debug,
<R as Resources>::PipelineStateObject: Debug,
<R as Resources>::ShaderResourceView: Debug,
<R as Resources>::UnorderedAccessView: Debug,
<R as Resources>::RenderTargetView: Debug,
<R as Resources>::DepthStencilView: Debug,
<R as Resources>::Sampler: Debug,
<R as Resources>::Fence: Debug,
[src]
R: Resources + Debug,
<R as Resources>::Shader: Debug,
<R as Resources>::PipelineStateObject: Debug,
<R as Resources>::ShaderResourceView: Debug,
<R as Resources>::UnorderedAccessView: Debug,
<R as Resources>::RenderTargetView: Debug,
<R as Resources>::DepthStencilView: Debug,
<R as Resources>::Sampler: Debug,
<R as Resources>::Fence: Debug,
Auto Trait Implementations
impl<R> !RefUnwindSafe for Manager<R>
impl<R> Send for Manager<R>
impl<R> Sync for Manager<R>
impl<R> Unpin for Manager<R>
impl<R> !UnwindSafe for Manager<R>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,