[][src]Struct gfx::pso::resource::TextureSampler

pub struct TextureSampler<T>(_, _);

A convenience type for a texture paired with a sampler. It only makes sense for DX9 class hardware, where every texture by default is bundled with a sampler, hence they are represented by the same name. In DX10 and higher samplers are totally separated from the textures.

  • init: &str = name of the sampler/texture (assuming they match)
  • data: (ShaderResourceView<T>, Sampler)

Trait Implementations

impl<'a, T> DataLink<'a> for TextureSampler<T>[src]

type Init = &'a str

The assotiated "init" type - a member of the PSO "init" struct.

Attempt to link with a vertex buffer containing multiple attributes.

Attempt to link with a vertex attribute.

Attempt to link with a constant buffer.

Attempt to link with a global constant.

Attempt to link with an output render target (RTV).

Attempt to link with a depth-stencil target (DSV).

Attempt to link with an unordered access (UAV).

Attempt to enable scissor test.

impl<R: Resources, T> DataBind<R> for TextureSampler<T>[src]

type Data = (ShaderResourceView<R, T>, Sampler<R>)

The associated "data" type - a member of the PSO "data" struct.

impl<T> Eq for TextureSampler<T> where
    T: Eq
[src]

impl<T> Clone for TextureSampler<T> where
    T: Clone
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> PartialEq<TextureSampler<T>> for TextureSampler<T> where
    T: PartialEq
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<T> Hash for TextureSampler<T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Debug for TextureSampler<T> where
    T: Debug
[src]

Auto Trait Implementations

impl<T> Send for TextureSampler<T> where
    T: Send

impl<T> Sync for TextureSampler<T> where
    T: Sync

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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