Struct gfx_core::handle::Manager[][src]

pub struct Manager<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: Resources> Manager<R>[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<'a>(&mut self, handle: &'a RawBuffer<R>) -> &'a R::Buffer[src]

Reference a buffer

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

Reference a shader

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

Reference a program

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

Reference a pipeline state object

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

Reference a texture

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

Reference a shader resource view

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

Reference an unordered access view

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

Reference an RTV

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

Reference a DSV

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

Reference a sampler

pub fn ref_fence<'a>(&mut self, fence: &'a Fence<R>) -> &'a R::Fence[src]

Reference a fence

Trait Implementations

impl<R: Debug + Resources> Debug for Manager<R> where
    R::Shader: Debug,
    R::PipelineStateObject: Debug,
    R::ShaderResourceView: Debug,
    R::UnorderedAccessView: Debug,
    R::RenderTargetView: Debug,
    R::DepthStencilView: Debug,
    R::Sampler: Debug,
    R::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.