Trait gfx_core::factory::Phantom
[−]
[src]
pub trait Phantom: Sized { type Raw; fn new(raw: Self::Raw) -> Self; fn raw(&self) -> &Self::Raw; }
A service trait used to get the raw data out of strong types. Not meant for public use.
Associated Types
type Raw
The raw type behind the phantom.
Required Methods
fn new(raw: Self::Raw) -> Self
Crete a new phantom from the raw type.
fn raw(&self) -> &Self::Raw
Get an internal reference to the raw type.
Implementors
impl<R: Resources, T> Phantom for Buffer<R, T>
impl<R: Resources, S> Phantom for Texture<R, S>
impl<R: Resources, T> Phantom for ShaderResourceView<R, T>
impl<R: Resources, T> Phantom for UnorderedAccessView<R, T>
impl<R: Resources, T> Phantom for RenderTargetView<R, T>
impl<R: Resources, T> Phantom for DepthStencilView<R, T>