Struct gfx::handle::Manager[][src]

pub struct Manager<R> where
    R: Resources
{ /* fields omitted */ }

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]

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]

Reference a buffer

pub fn ref_shader(
    &mut self,
    handle: &'a Shader<R>
) -> &'a <R as Resources>::Shader
[src]

Reference a shader

pub fn ref_program(
    &mut self,
    handle: &'a Program<R>
) -> &'a <R as Resources>::Program
[src]

Reference a program

pub fn ref_pso(
    &mut self,
    handle: &'a RawPipelineState<R>
) -> (&'a <R as Resources>::PipelineStateObject, &'a <R as Resources>::Program)
[src]

Reference a pipeline state object

pub fn ref_texture(
    &mut self,
    handle: &'a RawTexture<R>
) -> &'a <R as Resources>::Texture
[src]

Reference a texture

pub fn ref_srv(
    &mut self,
    handle: &'a RawShaderResourceView<R>
) -> &'a <R as Resources>::ShaderResourceView
[src]

Reference a shader resource view

pub fn ref_uav(
    &mut self,
    handle: &'a RawUnorderedAccessView<R>
) -> &'a <R as Resources>::UnorderedAccessView
[src]

Reference an unordered access view

pub fn ref_rtv(
    &mut self,
    handle: &'a RawRenderTargetView<R>
) -> &'a <R as Resources>::RenderTargetView
[src]

Reference an RTV

pub fn ref_dsv(
    &mut self,
    handle: &'a RawDepthStencilView<R>
) -> &'a <R as Resources>::DepthStencilView
[src]

Reference a DSV

pub fn ref_sampler(
    &mut self,
    handle: &'a Sampler<R>
) -> &'a <R as Resources>::Sampler
[src]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.